:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --ink: #1e2533;
  --muted: #6b7486;
  --faint: #a3abbb;
  --outline: #e3e7ef;
  --base: #d6dce6;
  --green: #22c55e;
  --green-base: #15803d;
  --blue: #3b82f6;
  --blue-soft: #e8f0fe;
  --purple: #8b5cf6;
  --red: #ef4444;
  --amber: #f59e0b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151c;
    --surface: #1a2029;
    --ink: #e8ecf2;
    --muted: #9aa3b4;
    --faint: #677084;
    --outline: #2a323e;
    --base: #0b0e13;
    --blue-soft: #1d2a42;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--blue); text-decoration: none; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 8px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--red); font-weight: 600; margin: 0; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { display: grid; font-weight: 800; font-size: 16px; line-height: 1.15; }
.brand-text small { color: var(--muted); font-weight: 600; font-size: 12px; }
.logo {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--green); color: #fff; font-weight: 900; box-shadow: 0 2px 0 var(--green-base);
}

.card {
  background: var(--surface);
  border: 2px solid var(--outline);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--base);
  padding: 18px;
}

.btn {
  font: inherit; font-weight: 700; cursor: pointer;
  border: 2px solid var(--outline); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  padding: 9px 16px; box-shadow: 0 3px 0 var(--base);
  transition: transform .06s, box-shadow .06s;
}
.btn:active { transform: translateY(3px); box-shadow: none; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green-base); }
.btn.ghost { box-shadow: none; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }

input, select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 2px solid var(--outline); border-radius: 12px; padding: 9px 12px;
}
input:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; color: var(--muted); }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: min(380px, 100%); display: grid; gap: 16px; }
.not-found { text-align: center; justify-items: center; gap: 10px; }
.not-found-code { font-size: 56px; font-weight: 900; line-height: 1; color: var(--blue); }
.not-found h1 { font-size: 20px; margin: 0; }
.not-found p { color: var(--muted); margin: 0 0 6px; }

/* ---- Kabuk: kenar menü + üst çubuk ---- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px;
  padding: 20px 14px 14px; border-right: 1px solid var(--outline); background: var(--surface);
}
.side .brand { padding: 0 6px; }
.side nav { display: grid; gap: 18px; }
.nav-group { display: grid; gap: 2px; }
.nav-title {
  padding: 0 10px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
}
.side nav a {
  position: relative; display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-weight: 650; font-size: 14px; padding: 8px 10px; border-radius: 9px;
}
.side nav a:hover { background: var(--bg); color: var(--ink); }
.side nav a.on { background: var(--blue-soft); color: var(--blue); }
.side nav a.on::before {
  content: ''; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--blue);
}
.side svg, .icon-btn svg {
  width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.side-foot {
  margin-top: auto; display: flex; align-items: center; gap: 4px;
  padding: 6px; border: 1px solid var(--outline); border-radius: 12px; background: var(--bg);
}
.side-version { margin: -14px 0 0; padding: 0 6px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-version:empty { display: none; }
.account-btn {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px;
  font: inherit; color: inherit; text-align: left; background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.account-btn:hover { background: var(--surface); }
.avatar {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: var(--blue-soft); color: var(--blue); font-weight: 800; font-size: 14px;
}
.user-photo { width: 48px; height: 48px; font-size: 20px; object-fit: cover; }
.avatar-row { align-items: center; }
.avatar-large { width: 128px; height: 128px; border-radius: 16px; object-fit: cover; flex: none; background: var(--surface); }
.who { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.who-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.who-mail { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); border-color: var(--outline); color: var(--ink); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--outline);
}
.crumb { flex: 1; display: flex; gap: 8px; font-size: 14px; font-weight: 700; min-width: 0; }
.crumb .muted:not(:empty)::after { content: '/'; margin-left: 8px; color: var(--faint); }
.menu-btn { display: none; }
.scrim { position: fixed; inset: 0; z-index: 19; background: rgb(0 0 0 / .35); }
/* Tek sütun ekran genişliğinde kalır; geniş tablo sayfayı değil kendi kutusunu kaydırır. */
.view { padding: 24px 28px 40px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; width: 100%; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.page-head > .head-text { flex: 1 1 320px; }
.page-head > :not(.head-text) { flex: none; }
.page-head .muted { max-width: 70ch; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tile .label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile .value { font-size: 28px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: 13px; color: var(--muted); }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

.chart-box { width: 100%; min-height: 220px; }
.chart { display: block; overflow: visible; }
.chart .bar { fill: var(--blue); }
.chart .bar2 { fill: var(--green); }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .grid { stroke: var(--outline); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.legend .c1 { background: var(--blue); }
.legend .c2 { background: var(--green); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar input[type=search] { flex: 1 1 240px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 14px; }
/* Süzgeçler tek satırı paylaşır: kutu en uzun seçeneğe göre değil, seçili
   yazıya göre boyutlanır (field-sizing), artan yer eşit dağılır; çok dar
   ekranda alta geçer. */
.filters select {
  width: auto; flex: 1 1 auto; min-width: 0; field-sizing: content; text-overflow: ellipsis;
  padding: 7px 8px; font-size: 13px;
}
.filters .btn { flex: none; }
.filters select.on { border-color: var(--blue); color: var(--blue); background-color: var(--blue-soft); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--outline); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
th.sortable { cursor: pointer; }
th.sortable.on { color: var(--blue); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: var(--blue-soft); }

.pill { display: inline-block; white-space: nowrap; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.ok { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.pill.no { background: color-mix(in srgb, var(--faint) 22%, transparent); color: var(--muted); }
.pill.mail { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }
.pill.free { background: color-mix(in srgb, var(--purple) 18%, transparent); color: var(--purple); }
.pill.premium { background: color-mix(in srgb, var(--amber) 20%, transparent); color: #b45309; }

.pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }

.drawer-bg { position: fixed; inset: 0; background: rgb(0 0 0 / .35); z-index: 10; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); z-index: 11;
  background: var(--bg); border-left: 2px solid var(--outline);
  overflow-y: auto; padding: 24px; display: grid; gap: 16px; align-content: start;
}
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { margin: 0; word-break: break-all; }

.note {
  border-left: 4px solid var(--amber); background: color-mix(in srgb, var(--amber) 10%, transparent);
  padding: 12px 14px; border-radius: 10px; font-size: 14px;
}
.empty { color: var(--muted); padding: 24px; text-align: center; }

/* ---- Reklamlar ---- */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 40px; align-items: start; }
.setting-block { display: grid; }
.setting {
  display: flex; align-items: center; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--outline);
}
.setting:last-child { border-bottom: 0; }
.setting .text { flex: 1; min-width: 0; }
.setting .title { font-weight: 700; }
.setting .hint { font-size: 13px; color: var(--muted); }
.setting.off .title, .setting.off .hint { opacity: .55; }
.unit { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.unit input { width: 84px; text-align: right; }
.unit span { min-width: 44px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px; background: var(--base); transition: background .15s;
  pointer-events: none;
}
.switch span::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s;
}
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; padding-top: 14px; }
.form-foot .status { margin-right: auto; font-size: 13px; color: var(--muted); }
.form-foot .status.saved { color: var(--green); font-weight: 700; }
.seg { display: inline-flex; border: 1px solid var(--outline); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg button {
  font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border: 0;
  background: transparent; color: var(--muted); cursor: pointer;
}
.seg button.on { background: var(--blue-soft); color: var(--blue); }
/* Segmentin yanındaki filtre seçimi onunla aynı boy ve görünümde. */
.seg + select {
  align-self: stretch; border-width: 1px; border-radius: 10px;
  padding-top: 0; padding-bottom: 0; font-size: 13px; font-weight: 700;
}
.legend .c3 { background: var(--purple); }
.chart .bar3 { fill: var(--purple); }
.rate { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; z-index: 20; inset: 0 auto 0 0; width: min(280px, 86vw); height: 100vh;
    transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility .2s;
  }
  .shell.menu-open .side { transform: none; visibility: visible; box-shadow: 0 0 40px rgb(0 0 0 / .2); }
  .side nav a.on::before { display: none; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 12px; }
  .view { padding: 16px; }
}
.setting-group { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 18px 0 0; }
.setting-group:first-child { margin-top: 4px; }
.setting-group.off { opacity: .55; }

/* ---- Hesap paneli ---- */
.account-head { display: flex; align-items: center; gap: 14px; }
.account-head .avatar { width: 48px; height: 48px; font-size: 20px; }
.account-head h1 { font-size: 20px; margin: 0; word-break: break-all; }
.stack { display: grid; gap: 12px; }
.stack .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.stack .row .grow { margin-right: auto; }
.list { display: grid; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--outline); }
.list-item:last-child { border-bottom: 0; }
.list-item .text { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.list-item .sub { font-size: 13px; color: var(--muted); }
.btn.danger { color: var(--red); }
.meter { height: 6px; border-radius: 3px; background: var(--outline); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .15s, background .15s; }
.ok-text { color: var(--green); font-weight: 700; font-size: 13px; }

/* ---- Depolama ---- */
.gauge { height: 8px; border-radius: 4px; background: var(--outline); overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 4px; }
.meter-row { display: grid; gap: 6px; padding: 6px 0; }
.list .meter-row { padding: 8px 0; }
.stack > .list { display: block; }
.meter-label { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.quota-cell { min-width: 140px; }
.quota-cell .gauge { display: inline-block; width: 90px; vertical-align: middle; margin-right: 8px; }

/* ---- E-posta ---- */
.mail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; align-items: start; }
textarea {
  font: inherit; color: var(--ink); background: var(--surface); resize: vertical;
  border: 2px solid var(--outline); border-radius: 12px; padding: 10px 12px; line-height: 1.5;
}
textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
textarea.grow-text { padding: 9px 12px; resize: none; overflow: hidden; width: 100%; box-sizing: border-box; }
.label-row { display: flex; justify-content: space-between; }
.audience { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--outline); }
.audience .count { font-size: 22px; font-weight: 800; }
.audience .muted { word-break: break-word; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: 13px; }
.check input { margin-top: 3px; }
.stack .row input { flex: 1; min-width: 180px; }
.preview { border-radius: 14px; background: #f1f5f9; padding: 18px; color: #1e293b; }
.pv-subject { font-weight: 800; margin-bottom: 12px; }
.pv-card { background: #fff; border-radius: 12px; padding: 18px; line-height: 1.55; font-size: 14px; }
.pv-card p { margin: 0 0 12px; white-space: pre-wrap; word-break: break-word; }
.pv-card p:last-child { margin-bottom: 0; }
.pv-foot { font-size: 12px; color: #64748b; margin-top: 12px; }
@media (max-width: 520px) { .mail-grid { grid-template-columns: 1fr; } }
.mail-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.mail-side { display: grid; gap: 20px; position: sticky; top: 20px; min-width: 0; }
.mail-compose { display: grid; gap: 0; min-width: 0; }
.mail-compose > h2 { margin-bottom: 4px; }
.mail-field { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--outline); }
.mail-field-title { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.mail-field-title .label-row { align-items: center; gap: 12px; }
.mail-field textarea, .mail-field input:not([type=checkbox]), .mail-field select { width: 100%; }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind-pick button {
  font: inherit; text-align: left; cursor: pointer; display: grid; gap: 2px;
  padding: 10px 14px; border-radius: 12px; border: 2px solid var(--outline); background: var(--surface); color: var(--ink);
}
.kind-pick button span { font-size: 12px; color: var(--muted); }
.kind-pick button.on { border-color: var(--blue); background: var(--blue-soft); }
.kind-pick button.on strong { color: var(--blue); }
.mail-hint { margin: 0; font-size: 13px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.mail-hint.warn { color: color-mix(in srgb, var(--amber) 70%, var(--ink)); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.mail-audience { display: flex; gap: 10px; align-items: end; }
.mail-audience > * { flex: 1 1 0; min-width: 0; }
.audience-count {
  text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 800; color: var(--blue);
  background: var(--blue-soft); padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.audience-sub { word-break: break-word; }
.audience-sub:empty { display: none; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; padding-top: 18px; }
.mail-test { flex: 1 1 300px; }
.inline-pair { display: flex; gap: 8px; }
.inline-pair input { flex: 1; min-width: 0; }
.mail-actions .btn.primary { padding: 10px 22px; }
.mail-compose > .small { margin-top: 12px; }
.pv-meta { display: grid; gap: 4px; font-size: 13px; }
.pv-meta > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
.pv-meta > div > :last-child { overflow-wrap: anywhere; }
.pv-subject.placeholder, .pv-card p:only-child:empty { color: #94a3b8; }
.csv-row { justify-content: flex-start !important; flex-wrap: nowrap !important; }
.csv-row select { flex: 1; min-width: 0; }
@media (max-width: 1100px) {
  .mail-layout { grid-template-columns: minmax(0, 1fr); }
  .mail-side { position: static; }
}
@media (max-width: 520px) {
  .kind-pick, .mail-audience { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .kind-pick { display: grid; }
}

/* ---- Kullanıcı yönetimi ---- */
.pill.bad { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.grow { flex: 1; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.drawer { overflow-x: hidden; grid-template-columns: minmax(0, 1fr); }
/* Kullanıcı metni (gizleme nedeni, gönderi, yorum) boşluksuz uzun olabilir; kartı genişletmesin. */
.drawer { overflow-wrap: anywhere; }
.drawer .card, .drawer .stack > * { min-width: 0; }
.drawer input:not([type=checkbox]):not([type=number]) { width: 100%; min-width: 0; }
.drawer .toolbar { flex-wrap: nowrap; align-items: flex-start; }
.drawer .toolbar h1 { word-break: break-word; }
.inline { display: flex; align-items: center; gap: 8px; flex: none; }
.inline input { width: 76px; text-align: right; padding: 6px 8px; }
.danger-card { border-color: color-mix(in srgb, var(--red) 35%, var(--outline)); }
.btn.danger { border-color: color-mix(in srgb, var(--red) 40%, var(--outline)); }
.drawer .list-item { flex-wrap: wrap; }
.drawer td { white-space: normal; word-break: break-word; }
.drawer td.nowrap { white-space: nowrap; word-break: normal; width: 1%; }

/* ---- Zaman çizelgesi ---- */
.seg-wrap { flex-wrap: wrap; }
.timeline-box {
  max-height: 560px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--outline); border-radius: 12px; padding: 0 14px;
}
.timeline { display: grid; }
.tl-day-head {
  position: sticky; top: 0; z-index: 1; background: var(--surface);
  padding: 10px 0 6px; font-size: 12px; font-weight: 700; color: var(--faint);
  border-bottom: 1px solid var(--outline);
}
.tl-item { display: flex; gap: 10px; padding: 8px 0; position: relative; align-items: flex-start; }
.tl-item:not(:last-child)::before {
  content: ''; position: absolute; left: 13px; top: 36px; bottom: -8px; width: 2px; background: var(--outline);
}
.tl-icon {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--muted); border: 1px solid var(--outline);
}
.tl-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl-rewards .tl-icon { color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.tl-content .tl-icon { color: var(--purple); background: color-mix(in srgb, var(--purple) 12%, var(--surface)); }
.tl-email .tl-icon { color: var(--blue); background: var(--blue-soft); }
.tl-admin .tl-icon { color: var(--red); background: color-mix(in srgb, var(--red) 10%, var(--surface)); }
.tl-text { min-width: 0; flex: 1; padding-top: 3px; }
.tl-title { font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.tl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-time { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tl-detail { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-more { justify-content: center; padding: 10px 0 14px; }
.tl-more:has(> [hidden]) { display: none; }
.amount { flex: none; font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.amount.plus { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.amount.minus { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }

/* ---- Sürümler ---- */
.meter-row.click { cursor: pointer; border-radius: 8px; padding-inline: 8px; margin-inline: -8px; }
.meter-row.click:hover, .meter-row.click:focus-visible { background: var(--blue-soft); outline: none; }
.chip-x { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0 0 0 2px; }

/* ---- Keşfet ---- */
.prewrap { white-space: pre-wrap; word-break: break-word; margin: 0; }
.strong { font-weight: 700; }
.tile.click { cursor: pointer; }
.tile.alert { border-color: var(--red); }
.tile.alert .value { color: var(--red); }

/* Üniversite önerileri: ad ve şehir alanları geniş, satır alt alta. */
.req-row { flex: 1; flex-wrap: wrap; }
.req-row input { width: auto; flex: 1 1 200px; text-align: left; }
.req-row input.req-city { flex: 0 1 120px; }
.req-table td { vertical-align: middle; }
.req-actions { width: 1%; white-space: nowrap; }
.req-merge td { padding-top: 0; }
.rep-item { align-items: flex-start; padding: 14px 0; }
.rep-count { color: var(--red); }
.rep-details { margin-top: 8px; }
.rep-details summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.rep-details[open] summary { margin-bottom: 8px; }
/* Uzun metinli hücreler satır kırar (tablo hücreleri varsayılan tek satır). */
td.wrap, .req-merge td { white-space: normal; }
td.wrap { min-width: 280px; }
.rep-line + .rep-line { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--outline); }
.nav-badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }

/* Aranabilir açılır liste (kullanıcı profili: üniversite, bölüm) */
.combo { position: relative; display: grid; }
.combo-menu {
  position: absolute; z-index: 3; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow-y: auto;
  padding: 4px; background: var(--surface); border: 1px solid var(--outline); border-radius: 12px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25); font-weight: 600; color: var(--ink);
}
.combo-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.combo-item:hover, .combo-item.active { background: var(--blue-soft); }
.combo-item.on { color: var(--blue); }
.combo-empty { padding: 8px 10px; font-size: 13px; color: var(--muted); }
a.tile { color: inherit; text-decoration: none; }

/* ---- Geri bildirimler ---- */
.feedback-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.feedback-title { margin: 0; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.feedback-note { margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--bg); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-reply { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--green) 10%, transparent); border: 1px solid color-mix(in srgb, var(--green) 30%, var(--outline)); display: grid; gap: 4px; }
a.btn { display: inline-block; text-decoration: none; }
.feedback-images { display: flex; flex-wrap: wrap; gap: 6px; }
.feedback-cell { width: 100%; }
.feedback-clip { max-width: min(520px, 40vw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feedback-images img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--outline); display: block; }

/* Keşfet listesi: uzun başlık ve üniversite adı satır kırar. */
.explore-table td.wrap { min-width: 180px; white-space: normal; }

/* Bildirimler (duyurular) */
.bc-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.bc-row > label { flex: 1 1 140px; }
.bc-row > label.grow { flex: 2 1 200px; }
.bc-days { flex-wrap: wrap; }
.bc-translations summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 4px 0; }
.bc-translations[open] summary { margin-bottom: 6px; }
.bc-lang { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--outline); }
.bc-lang-name { font-size: 13px; font-weight: 600; color: var(--muted); }
td.actions { white-space: nowrap; }
td.actions .btn + .btn { margin-left: 6px; }
.kind-pick.bc-kinds { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .kind-pick.bc-kinds { grid-template-columns: 1fr 1fr; } }

/* Duyuru önizlemesi: telefon ekranı, uygulamanın ölçü ve renkleriyle */
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
.ph-frame { position: relative; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 30px; overflow: hidden; border: 6px solid #111827; background: #111827; }
.ph-screen { position: absolute; top: 0; left: 0; width: 402px; transform-origin: 0 0; overflow: hidden; }
/* Kilit ekranı bildirimi (iOS) */
.ph-lock { height: 300px; padding: 26px 12px 0; background: linear-gradient(160deg, #6d8bd6, #9b7fd0 55%, #e3a2b9); font-family: -apple-system, 'SF Pro Text', system-ui, sans-serif; color: #fff; }
.ph-clock { text-align: center; margin-bottom: 22px; }
.ph-date { font-size: 19px; font-weight: 600; opacity: .9; }
.ph-time { font-size: 82px; font-weight: 700; line-height: 1; letter-spacing: -2px; }
.ph-notif { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 22px; background: rgba(250, 250, 252, .78); backdrop-filter: blur(20px); color: #111; }
.ph-notif-icon { flex: none; width: 38px; height: 38px; border-radius: 9px; background: #22c55e; color: #fff; display: grid; place-items: center; font: 800 20px 'Poppins', sans-serif; }
.ph-notif-text { min-width: 0; flex: 1; }
.ph-notif-head { display: flex; gap: 8px; align-items: baseline; }
.ph-notif-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-notif-time { flex: none; font-size: 13px; color: #6b6b70; }
.ph-notif-body { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; white-space: pre-wrap; }
/* Uygulamadaki pencere (AlertDialog + PressButton) */
.ph-app { height: 600px; padding: 58px 20px 0; background: #f3f5f9; font-family: 'Poppins', sans-serif; }
.ph-app-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.ph-app-logo { width: 30px; height: 30px; border-radius: 8px; background: #22c55e; }
.ph-app-name { font-size: 28px; font-weight: 800; color: #1f2937; }
.ph-app-card { height: 92px; margin-bottom: 14px; border-radius: 22px; background: #fff; border: 2px solid #e6ebf2; box-shadow: 0 5px 0 #d6dce4; }
.ph-app-card.short { height: 60px; }
.ph-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .54); }
.ph-dlg { position: absolute; left: 40px; right: 40px; top: 50%; transform: translateY(-50%); padding: 24px 24px 16px; border-radius: 20px; background: #fff; }
.ph-dlg-title { font-size: 18px; font-weight: 800; line-height: 1.33; color: #1f2937; overflow-wrap: anywhere; }
.ph-dlg-body { margin-top: 16px; max-height: 300px; overflow: hidden; font-size: 14px; line-height: 1.43; color: #4b5563; white-space: pre-wrap; overflow-wrap: anywhere; }
.ph-dlg-actions { display: flex; gap: 10px; margin: 24px -4px 0; }
.ph-btn { flex: 1; min-width: 0; height: 54px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; font-size: 16px; font-weight: 800; white-space: nowrap; margin-bottom: 4px; }
.ph-btn span { display: inline-block; transform-origin: center; }
.ph-btn[hidden] { display: none; }
.ph-btn-close { background: #fff; color: #4b5563; border: 2px solid #e6ebf2; box-shadow: 0 4px 0 #d6dce4; }
.ph-btn-go { background: #3b82f6; color: #fff; box-shadow: 0 4px 0 #1d4ed8; }
.bc-btns { display: grid; gap: 10px; }
.bc-btn-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--outline); border-radius: 12px; }
.bc-btn-num { width: 26px; height: 26px; margin-top: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 13px; }
.bc-btn-fields { display: grid; gap: 8px; min-width: 0; }
.bc-btn-tools { display: flex; gap: 4px; margin-top: 20px; }
.btn.small.icon { width: 30px; padding: 5px 0; text-align: center; }
.bc-forced { border-color: color-mix(in srgb, var(--amber) 45%, var(--outline)); }
.bc-lang-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.ph-dlg-actions.column { flex-direction: column; gap: 10px; }
.ph-dlg-actions.column .ph-btn { flex: none; width: 100%; }
.ph-dlg-lock { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font: 600 13px 'Poppins', sans-serif; color: rgba(255, 255, 255, .85); }
.ph-dlg-lock[hidden] { display: none; }
@media (max-width: 700px) { .bc-btn-row { grid-template-columns: minmax(0, 1fr); } .bc-btn-num { display: none; } .bc-btn-tools { margin-top: 0; } }
