.admin-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.admin-jump a {
  padding: 9px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: var(--ad-navy);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.admin-jump a:hover { background: #eff6ff; }
.cms-panel {
  margin: 32px 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}
.cms-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}
.cms-panel-heading h2 { color: var(--ad-navy); margin: 6px 0 0; }
.cms-panel-heading p { max-width: 480px; color: var(--text-secondary); font-size: .9rem; }
.cms-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.cms-field-grid label { display: grid; gap: 8px; color: var(--ad-navy); font-weight: 700; font-size: .9rem; }
.cms-field-grid textarea { resize: vertical; }
.cms-wide { grid-column: 1 / -1; }
.cms-actions, .cms-upload { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cms-upload input { flex: 1; min-width: 210px; }
.cms-list { display: grid; gap: 12px; margin-top: 28px; }
.cms-list-item { display: flex; justify-content: space-between; gap: 20px; padding: 16px; border: 1px solid #e2e8f0; border-radius: var(--radius-md); }
.cms-list-item h3 { margin: 0 0 5px; font-size: 1rem; color: var(--ad-navy); }
.cms-list-item p { margin: 0; color: var(--text-secondary); font-size: .84rem; }
.cms-list-item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cms-media-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 22px; }
.cms-media-card { border: 1px solid #e2e8f0; border-radius: var(--radius-md); padding: 8px; min-width: 0; }
.cms-media-card img { width: 100%; height: 110px; object-fit: cover; border-radius: var(--radius-sm); background: #f1f5f9; }
.cms-media-card span { display: block; font-size: .75rem; overflow-wrap: anywhere; }
.cms-message { min-height: 1.4em; color: #166534; font-weight: 700; margin: 18px 0; }
.cms-message:not(:empty) {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  max-width: min(92vw, 560px);
  padding: 12px 18px;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  background: #f0fdf4;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
}
.cms-message.error { color: #b91c1c; }
.cms-message.error:not(:empty) { border-color: #fecaca; background: #fef2f2; }
.cms-hero-image { width: 100%; max-height: 250px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 18px; }
.cms-hero-image[hidden], .cms-home-section[hidden] { display: none !important; }
.cms-home-section { padding-top: 10px; }
.cms-card-image { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }
.cms-card-meta { color: var(--text-muted); font-size: .8rem; margin-bottom: 10px; }
.cms-article { max-width: 800px; margin: 0 auto; }
/* Yazı sayfasında kapak kırpılmaz: dikey afişler ve yazılı görseller tam görünür. */
.cms-article-image { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin: 24px auto; border-radius: var(--radius-md); box-shadow: 0 12px 30px rgba(15, 23, 42, .12); }
.cms-article-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
@media (max-width: 720px) {
  .cms-panel-heading { display: block; }
  .cms-field-grid { grid-template-columns: 1fr; }
  .cms-list-item { display: block; }
  .cms-list-item-actions { margin-top: 12px; }
}

/* Roller, onay akışı ve hesap yönetimi */
[data-roles][hidden] { display: none !important; }
.cms-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cms-fieldset:disabled textarea, .cms-fieldset:disabled input, .cms-fieldset:disabled select { background: #f8fafc; color: #475569; }
.cms-list-item.is-selected { border-color: var(--ad-navy); background: #f8fafc; }
.state-in_review { color: #b45309; font-weight: 700; }
.state-changes_requested { color: #b91c1c; font-weight: 700; }
.state-approved, .state-published { color: #166534; font-weight: 700; }
.cms-review { margin-top: 28px; padding: 20px; border: 1px solid #cbd5e1; border-radius: var(--radius-md); background: #f8fafc; }
.cms-review[hidden] { display: none; }
.cms-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cms-review-head h3 { margin: 0; color: var(--ad-navy); font-size: 1.05rem; }
.cms-thread { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.cms-comment { padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: var(--radius-sm); background: #fff; }
.cms-comment small { color: var(--text-muted); }
.cms-comment p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cms-comment-request_changes { border-color: #fecaca; background: #fef2f2; }
.cms-comment-approval { border-color: #bbf7d0; background: #f0fdf4; }
.cms-comment-system { background: #f1f5f9; }
.cms-note-label { display: grid; gap: 8px; margin-bottom: 14px; color: var(--ad-navy); font-weight: 700; font-size: .9rem; }
.cms-role-help { margin: 0 0 22px; padding-left: 20px; color: var(--text-secondary); font-size: .88rem; line-height: 1.7; }
.member-tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.member-tools input { flex: 1; min-width: 220px; }
.member-edit { margin-bottom: 20px; padding: 18px; border: 1px solid #cbd5e1; border-radius: var(--radius-md); background: #f8fafc; }
.member-edit[hidden] { display: none; }
.btn[hidden] { display: none !important; }

/* Etkinlik takvimi */
.cal-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #e2e8f0; border-radius: var(--radius-md); overflow: hidden; }
.cal-head { padding: 8px; text-align: center; font-size: .78rem; font-weight: 800; color: var(--ad-navy); background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.cal-cell { min-height: 104px; padding: 4px; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.is-empty { background: #f8fafc; }
.cal-cell.is-today { background: #eff6ff; }
.cal-day { align-self: flex-start; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; font-weight: 700; color: var(--ad-navy); cursor: pointer; }
.cal-day:hover { background: #e2e8f0; }
.cal-cell.is-today .cal-day { background: var(--ad-navy); color: #fff; }
.cal-chip { display: block; width: 100%; padding: 3px 6px; border: 0; border-radius: 6px; font-size: .74rem; line-height: 1.3; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.cal-chip.is-published { background: var(--ad-navy); color: #fff; }
.cal-chip.is-draft { background: #e2e8f0; color: #475569; }
@media (max-width: 720px) {
  .cal-cell { min-height: 72px; }
  .cal-chip { font-size: .66rem; padding: 2px 3px; }
}

.post-actions { margin-top: 28px; padding-top: 18px; border-top: 1px solid #e2e8f0; display: grid; gap: 14px; }
.post-like-row, .post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-like.is-liked { background: #dc2626; border-color: #dc2626; color: #fff; }
.post-like-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: var(--radius-sm); background: rgba(0,0,0,.08); font-size: .8rem; text-align: center; }
.post-like.is-liked .post-like-n { background: rgba(255,255,255,.28); }
.post-like-guest, .post-share-msg { font-size: .9rem; color: #475569; }

.theme-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.theme-option { position: relative; display: grid; gap: 10px; padding: 14px; border: 2px solid var(--border-color); border-radius: var(--radius-md); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.theme-option:hover { border-color: var(--ad-navy-light); }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option:has(input:checked) { border-color: var(--ad-red); box-shadow: 0 0 0 3px var(--ad-red-soft); }
.theme-option:has(input:focus-visible) { outline: 2px solid var(--ad-navy); outline-offset: 2px; }
.theme-dots { display: flex; gap: 6px; }
.theme-dots i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.1); display: block; }
.theme-name { font-weight: 800; color: var(--ad-navy); display: grid; }
.theme-name small { font-weight: 600; color: var(--text-muted); font-size: .8rem; }
.theme-shapes { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; }
.theme-shapes b { display: block; width: 54px; height: 18px; }
.theme-shapes em { display: block; width: 34px; height: 26px; background: #fff; border: 2px solid; opacity: .85; }

/* Blog ve duyuru kartları: az sayıda olsa da ortada durur, çoğaldıkça satırlara yayılır */
.cards-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cards-center > .card { flex: 0 1 calc((100% - 48px) / 3); min-width: 300px; max-width: 100%; display: flex; flex-direction: column; }
.cards-center > .card .btn { margin-top: auto; align-self: flex-start; }
.cards-center > .card p:last-of-type { margin-bottom: 14px; }

/* Sayfa yönetimi */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pg-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.pg-table-wrap { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.pg-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.pg-table th { text-align: left; padding: 12px 14px; background: var(--bg-muted); color: var(--ad-navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.pg-table td { padding: 12px 14px; border-top: 1px solid var(--border-color); vertical-align: middle; }
.pg-table code { font-size: .84rem; color: var(--text-secondary); }
.pg-actions-cell { white-space: nowrap; text-align: right; }
.pg-actions-cell .btn { margin-left: 6px; }
.pg-danger { color: #b91c1c; border-color: #fecaca; }
.pg-danger:hover { background: #fee2e2; }
.pg-editor-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pg-editor-head h3 { margin: 0; color: var(--ad-navy); }
.pg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.pg-main, .pg-side { display: grid; gap: 16px; }
.pg-field { display: grid; gap: 6px; color: var(--ad-navy); font-weight: 700; font-size: .9rem; }
.pg-label { font-weight: 700; color: var(--ad-navy); font-size: .9rem; }
.pg-url { display: flex; align-items: center; gap: 6px; }
.pg-url span { color: var(--text-muted); font-weight: 600; }
.pg-box { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fff; }
.pg-box h4 { margin: 0; color: var(--ad-navy); font-size: .95rem; }
.pg-check { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--text-secondary); }
.pg-actions { display: grid; gap: 8px; }
.pg-actions-row { display: flex; gap: 10px; margin-top: 14px; }
.pg-cover-preview { width: 100%; max-height: 150px; object-fit: cover; border-radius: var(--radius-sm); }
.pg-upload { text-align: center; cursor: pointer; }
@media (max-width: 900px) { .pg-layout { grid-template-columns: 1fr; } }

/* Zengin metin editörü */
.rte { border: 1.5px solid var(--border-color); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.rte:focus-within { border-color: var(--ad-navy-light); }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 8px; background: var(--bg-muted); border-bottom: 1px solid var(--border-color); }
.rte-block { padding: 6px 8px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: .85rem; }
.rte-btn { padding: 6px 9px; min-width: 32px; border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; color: var(--ad-navy); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.rte-btn:hover { background: #fff; border-color: var(--border-color); }
.rte-sep { width: 1px; height: 22px; background: var(--border-color); margin: 0 4px; }
.rte-panel { padding: 12px; border-bottom: 1px solid var(--border-color); background: #fafafa; display: grid; gap: 10px; }
.rte-panel label { display: grid; gap: 4px; font-size: .84rem; font-weight: 700; color: var(--ad-navy); }
.rte-media-head { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.rte-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: 190px; overflow-y: auto; }
.rte-thumb { padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: none; cursor: pointer; overflow: hidden; }
.rte-thumb:hover { border-color: var(--ad-red); }
.rte-thumb img { width: 100%; height: 72px; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.rte-error { color: #b91c1c; font-size: .85rem; margin: 0; }
.rte-body { min-height: 340px; max-height: 70vh; overflow-y: auto; padding: 18px 20px; outline: none; }
.rte-body:empty::before { content: attr(data-placeholder); color: #94a3b8; }

.pg-sys-grid { display: grid; gap: 20px; }
.rte-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.rte-btn { display: inline-flex; align-items: center; gap: 5px; }
.rte-btn svg { flex: none; }
.rte-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 190px; overflow-y: auto; }
.rte-file { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: .88rem; color: var(--ad-navy); cursor: pointer; text-align: left; }
.rte-file:hover { border-color: var(--ad-red); }
.rte-file small { margin-left: auto; color: var(--text-muted); }

.pg-table tr.is-selected td { background: var(--ad-red-soft); }

/* Yönetim ekranları: kartlar beyaz kalır, arka plan temanın lacivert tonuyla belirgin biçimde koyulaştırılır */
body:has(.admin-header) { background: #d6dde6; background: color-mix(in srgb, var(--bg-body) 84%, var(--ad-navy)); }
body:has(.admin-header) .cms-panel { border-color: color-mix(in srgb, var(--border-color) 70%, var(--ad-navy)); box-shadow: 0 10px 30px rgba(15, 23, 42, .10); }

/* Yetki matrisi */
.perm-table th.perm-col, .perm-table td.perm-col { text-align: center; width: 120px; }
.perm-table tr.perm-group th { background: var(--ad-navy); color: #fff; text-align: left; font-size: .8rem; letter-spacing: .04em; }
.perm-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ad-red); }
.qa-reject-box { margin-top: 10px; }
.qa-reject-box label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--ad-navy); }

.perm-count { display: block; margin-top: 2px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text-muted); }

/* Yönetim paneli: sekmeli yerleşim (profil sayfasıyla aynı bileşenler) */
[data-ad-panel]:not(.ad-active) { display: none !important; }
.pf-content > .cms-panel { margin-top: 0; }
.ad-tabs { top: 90px; }
.ad-todo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 22px; }
.ad-todo { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--ad-red-border); border-radius: var(--radius-md); background: var(--ad-red-soft); color: var(--ad-navy); font: inherit; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ad-todo:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.ad-todo strong { font-size: 1.9rem; line-height: 1; color: var(--ad-red-hover); }
.ad-todo span { font-size: .86rem; font-weight: 700; }
.ad-todo.is-zero { background: var(--bg-muted); border-color: var(--border-color); }
.ad-todo.is-zero strong { color: var(--text-muted); }
.ad-stats { margin: 6px 0 18px; }
.ad-stat-label { font-size: .84rem; color: var(--text-muted); font-weight: 700; }
.ad-stat { font-size: 2rem; font-weight: 800; color: var(--ad-navy); }

/* Analitik panosu: veri renkleri tema renklerinden bağımsızdır (doğrulanmış sabit değerler) */
.an-controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.an-ranges { display: flex; flex-wrap: wrap; gap: 6px; }
.an-range { padding: 8px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-btn, 10px); background: #fff; color: var(--ad-navy); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.an-range small { display: block; font-weight: 600; color: #52514e; font-size: .72rem; }
.an-range:hover { border-color: #2a78d6; }
.an-range.is-active { background: var(--ad-navy); border-color: var(--ad-navy); color: #fff; }
.an-range.is-active small { color: rgba(255, 255, 255, .85); }
.an-filter { display: grid; gap: 4px; font-size: .84rem; font-weight: 700; color: var(--ad-navy); min-width: 240px; }
.an-live { transition: opacity .2s; }
.an-live.is-refetching { opacity: .55; pointer-events: none; }

.an-kpis { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.an-kpi { display: grid; gap: 4px; align-content: start; padding: 16px 18px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-muted); }
.an-kpi-label { font-size: .78rem; font-weight: 700; color: #52514e; text-transform: uppercase; letter-spacing: .04em; }
.an-kpi strong { font-size: 2.1rem; line-height: 1.1; color: var(--ad-navy); font-weight: 800; }
.an-kpi.is-hero strong { font-size: 3.4rem; line-height: 1; }
.an-delta { min-height: 1.2em; font-size: .8rem; font-weight: 700; color: #52514e; }
.an-delta.up { color: #006300; }
.an-delta.down { color: #b91c1c; }
.an-spark { width: 100%; max-width: 160px; height: 36px; margin-top: 4px; overflow: visible; }

.an-card { padding: 18px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fcfcfb; margin-bottom: 18px; }
.an-card h3 { margin: 0 0 12px; color: var(--ad-navy); font-size: 1.02rem; }
.an-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.an-card-head h3 { margin: 0; }
.an-card-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.an-legend { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: #52514e; }
.an-key { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-left: 10px; }
.an-key-views { background: #2a78d6; }
.an-key-reads { background: #eb6834; }

.an-chart-wrap, .an-hours-wrap { position: relative; }
.an-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.an-chart:focus-visible { outline: 2px solid #2a78d6; outline-offset: 4px; border-radius: 6px; }
.an-axis { fill: #898781; font-size: 11px; }
.an-peak { fill: #0b0b0b; font-size: 12px; font-weight: 700; }
.an-bar { transition: opacity .12s; }
.an-bar.is-dim { opacity: .4; }
.an-empty { padding: 48px 0; text-align: center; }
.an-table-wrap { max-height: 360px; overflow-y: auto; }
.an-table tfoot td { font-weight: 800; border-top: 2px solid var(--border-color); }
.an-num { text-align: right; white-space: nowrap; }

.an-tip { position: absolute; z-index: 6; min-width: 170px; padding: 10px 12px; border: 1px solid #e1e0d9; border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .16); pointer-events: none; font-size: .82rem; }
.an-tip-title { margin-bottom: 6px; font-weight: 700; color: #52514e; }
.an-tip-row { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 8px; padding: 2px 0; }
.an-tip-row strong { color: #0b0b0b; font-size: .95rem; }
.an-tip-row span { color: #52514e; }
.an-tip-key { display: block; width: 14px; height: 3px; border-radius: 2px; }

.an-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.an-grid > .an-card, .an-stack .an-card { margin-bottom: 0; }
.an-stack { display: grid; gap: 18px; }

.an-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 120px; align-items: end; border-bottom: 1px solid #c3c2b7; }
.an-hour { display: grid; grid-template-rows: 1fr auto; height: 100%; justify-items: center; cursor: default; position: relative; }
.an-hour:focus-visible { outline: 2px solid #2a78d6; outline-offset: 1px; border-radius: 3px; }
.an-hour-bar { display: block; width: 100%; max-width: 14px; min-height: 2px; align-self: end; border-radius: 4px 4px 0 0; background: #c3c2b7; }
.an-hour-bar.is-peak { background: #2a78d6; }
.an-hour:hover .an-hour-bar { filter: brightness(.9); }
.an-hour small { position: absolute; top: 100%; margin-top: 3px; font-size: .62rem; color: #898781; line-height: 1; }
.an-note { margin: 22px 0 0; font-size: .84rem; color: #52514e; }

.an-sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.an-sources li strong { text-align: right; }
.an-sources li { display: grid; grid-template-columns: 120px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: .88rem; color: #0b0b0b; }
.an-source-bar { height: 8px; border-radius: 999px; background: #f0efec; overflow: hidden; }
.an-source-bar i { display: block; height: 100%; background: #2a78d6; border-radius: 999px; }
.an-split { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; background: #f0efec; }
.an-split i { display: block; height: 100%; }
.an-split-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 0; font-size: .84rem; color: #52514e; }
.an-split-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

@media (max-width: 1100px) { .an-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .an-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .an-kpis { grid-template-columns: 1fr; } .an-kpi.is-hero strong { font-size: 2.8rem; } }
@media (prefers-reduced-motion: reduce) { .an-live, .an-bar { transition: none; } }

.an-sections { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: var(--radius-md); background: var(--bg-muted); width: fit-content; max-width: 100%; }
.an-section { padding: 8px 16px; border: 0; border-radius: var(--radius-sm); background: transparent; color: #52514e; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.an-section:hover { color: var(--ad-navy); background: rgba(255, 255, 255, .6); }
.an-section.is-active { background: #fff; color: var(--ad-navy); box-shadow: 0 1px 4px rgba(15, 23, 42, .14); }
.an-kpis { margin-bottom: 12px; }
.an-kpi.is-link { font: inherit; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.an-kpi.is-link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.an-kpi.is-link:focus-visible { outline: 2px solid #2a78d6; outline-offset: 2px; }
.an-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.an-chip { display: grid; gap: 2px; min-width: 120px; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-muted); }
.an-chip strong { font-size: 1.5rem; line-height: 1.1; color: var(--ad-navy); }
.an-chip span { font-size: .8rem; font-weight: 700; color: #52514e; }
#an-body > .an-card, #an-body > .an-grid { margin-top: 6px; }

/* Görseli olmayan yazı kartı: aynı yükseklikte sade marka alanı, kartlar yan yana dengeli durur */
.cms-card-brand { display: grid; place-items: center; background: radial-gradient(circle at 80% 20%, rgba(var(--ad-accent-rgb, 225, 29, 72), .28), transparent 55%), linear-gradient(135deg, var(--ad-navy-dark, #081523), var(--ad-navy, #0f2439)); }
.cms-card-brand span { color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -.5px; }
.cms-card-brand b { color: var(--ad-accent-light, #fb7185); font-weight: 800; }

/* Sistem sağlığı */
.hl-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hl-toolbar #health-refresh { margin-left: auto; }
.hl-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 800; }
.hl-pill.hl-ok { background: #dcfce7; color: #166534; }
.hl-pill.hl-warn { background: #fef3c7; color: #92400e; }
.hl-pill.hl-fail { background: #fee2e2; color: #991b1b; }
.hl-group { margin-bottom: 22px; }
.hl-group h3 { margin: 0 0 10px; font-size: 1rem; color: var(--ad-navy); }
.hl-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.hl-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--border-color); }
.hl-item:first-child { border-top: 0; }
.hl-item strong { color: var(--ad-navy); }
.hl-item p { margin: 2px 0 0; font-size: .86rem; color: var(--text-secondary); overflow-wrap: anywhere; }
.hl-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .8rem; font-weight: 800; color: #fff; }
.hl-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.hl-ok .hl-icon { background: #16a34a; } .hl-ok .hl-label { color: #166534; }
.hl-warn .hl-icon { background: #d97706; } .hl-warn .hl-label { color: #92400e; }
.hl-fail .hl-icon { background: #dc2626; } .hl-fail .hl-label { color: #991b1b; }
.hl-info .hl-icon { background: #94a3b8; } .hl-info .hl-label { color: #475569; }
.hl-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.hl-actions .form-help { flex-basis: 100%; margin: 4px 0 0; }
@media (max-width: 600px) { .hl-item { grid-template-columns: 24px minmax(0, 1fr); } .hl-label { grid-column: 2; } }
