/* Ajanda "Kadran": gece mavisi zemin, tek vurgu rengi (kehribar); kırmızı yalnızca geciken ve süresi dolan için,
   mavi yalnızca etkinlikler için. Renkler yalnızca bu değişkenlerde: açık tema :root, koyu tema [data-theme="dark"].
   data-theme'yı <head>'de theme.js yazar (kayıtlı seçim, yoksa sistem ayarı); düğme app.js'te.
   Önce telefon: tek sütun; geniş ekranda solda kadran, sağda akış (flex-wrap). Dış font ve kütüphane yok. */
:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --slot: #eef1f6;
  --line: #dde2ea;
  --line-2: #cfd6e1;
  --ink: #141a26;
  --muted: #566075;
  --faint: #8a94a6;
  --accent: #f2b84b;       /* zemin olarak: etkin gün, sıradaki vakit, düğme */
  --accent-ink: #1b1405;   /* vurgu zeminindeki yazı */
  --accent-text: #8a5a00;  /* yazı olarak vurgu (açık zeminde okunur) */
  --accent-bg: #fbf1dc;
  --event: #2f5fd0;
  --ok: #1f7a50;   --ok-bg: #e6f4ec;   --ok-line: #bfe2ce;   --ok-muted: #3f6b56; --ok-bar: #2f9e6d;
  --warn: #8a5a00; --warn-bg: #fbf1dc; --warn-line: #ecd291;
  --err: #b3261e;  --err-bg: #fdecea;  --err-line: #f3c2bc;  --err-muted: #9b4a42;
  --off-bg: #e8ecf2; --off-line: #cfd6e1;
  /* Kadran */
  --dial-ring: #e8ecf2; --dial-day: #d5dce8; --dial-tick: #b8c0cc; --dial-hand: #141a26;
  --p-past: #b5bdca; --p-fut: #4a5568; --t-past: #8a94a6; --t-fut: #566075; --past-slot: #7a8496;
  --shadow: 0 1px 2px rgba(20, 26, 38, .05), 0 4px 14px rgba(20, 26, 38, .04);
  --radius: 14px;
  --sans: -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --head: var(--sans);     /* başlık yazısı */
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1320;
  --panel: #121929;
  --panel-2: #161d2c;
  --slot: #161d2c;
  --line: #222a3d;
  --line-2: #2a3348;
  --ink: #e8ecf4;
  --muted: #9aa6bb;
  --faint: #5f6b82;
  --accent-text: #f2b84b;
  --accent-bg: #2a2312;
  --event: #8fb4ff;
  --ok: #8fd9b6;   --ok-bg: #13261f;   --ok-line: #23493a;   --ok-muted: #a9c9ba; --ok-bar: #6fd3a8;
  --warn: #f2b84b; --warn-bg: #2a2312; --warn-line: #5a4720;
  --err: #ff8f80;  --err-bg: #2a1618;  --err-line: #5a2a2b;  --err-muted: #d3a19a;
  --off-bg: #1d2536; --off-line: #2a3348;
  --dial-ring: #1d2536; --dial-day: #25304a; --dial-tick: #3a4560; --dial-hand: #e8ecf4;
  --p-past: #5b6680; --p-fut: #c3ccdb; --t-past: #5f6b82; --t-fut: #9aa6bb; --past-slot: #6c7890;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
code, .m { font-family: var(--mono); }
code { font-size: .82em; background: var(--panel-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted, .dim { color: var(--muted); }
.small { font-size: 13px; }
.c-ok { color: var(--ok); } .c-warn { color: var(--warn); } .c-error { color: var(--err); }

/* Üst şerit */
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 8px 18px; padding: 10px 16px; max-width: 1180px; margin: 0 auto; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; font: 600 19px var(--head); text-decoration: none; color: var(--ink); }
.brand-mark { width: 20px; height: 22px; border-radius: 4px; border: 2px solid var(--accent-text); border-top-width: 6px; position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 4px; right: 4px; top: 5px; height: 2px; border-radius: 1px; background: var(--accent-text); box-shadow: 0 4px 0 var(--accent-text); opacity: .55; }
.nav { display: flex; gap: 2px; }
.nav a { font-size: 15px; padding: 6px 11px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
/* Bugün görünüm seçici (Kadran / Gazete / Fiş) */
.viewnav { display: flex; gap: 2px; padding: 2px; border-radius: 999px; border: 1px solid var(--line); }
.viewnav a { font-size: 13px; padding: 3px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.viewnav a:hover { color: var(--ink); }
.viewnav a.is-active { color: var(--ink); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.top__right a { text-decoration: none; color: var(--muted); }
.top__right a:hover, .top__right a.is-active { color: var(--ink); }
.top__right form { margin: 0; }
.top__right .link { color: var(--muted); text-decoration: none; }

.page { padding: 18px 16px 48px; max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 900px; margin: 0 auto; }

/* Bugün: başlık */
.today { display: flex; flex-direction: column; gap: 16px; --row-bg: var(--panel-2); }
.today__head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.today__title { margin-right: auto; display: grid; gap: 2px; min-width: 0; }
.today__rel { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.today__date { font: 600 34px/1.05 var(--head); letter-spacing: -.02em; }
.today__year--cur { display: none; }
.today__refresh { margin: 0; }
.daynav { order: 5; flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; }
.daynav a { height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); font-size: 15px; text-decoration: none; }
.daynav a:hover { color: var(--ink); }
.daynav a.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

/* Yuvarlak simge düğmesi (tema, yenile); geniş ekranda yazısıyla */
.icon-btn { height: 44px; min-width: 44px; padding: 0 12px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 14px var(--sans); cursor: pointer; }
.icon-btn:hover { color: var(--ink); }
.icon-btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.icon-btn__text { display: none; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Görünümlerin düğme kuralları bunu ezmesin diye seçici bilerek güçlü */
:root[data-theme="dark"] .theme-btn .ico--moon, :root[data-theme="dark"] .theme-btn .theme-btn__to-dark,
:root:not([data-theme="dark"]) .theme-btn .ico--sun, :root:not([data-theme="dark"]) .theme-btn .theme-btn__to-light { display: none; }
.top .icon-btn { height: 34px; min-width: 34px; padding: 0 8px; }
.top .icon-btn .ico { width: 18px; height: 18px; }
.top .icon-btn__text { display: none; }

/* Bugün: düzen. Kadran ve akış yan yana sığmazsa alt alta (flex-wrap) */
.today__grid { display: flex; flex-wrap: wrap; gap: 20px 24px; align-items: flex-start; }
.today__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
/* Sol sütun (namaz + maçlar). Dar ekranda sütun yok: sarmalayıcılar display: contents, sıra order ile
   namaz, uyarılar, akış, maçlar, özet, kaynaklar. Geniş ekranda (≥1040) sütunlar geri gelir. */
@media (max-width: 1039.98px) {
  .today .today__aside, .today .today__main, .today .today__cols, .today .today__side { display: contents; }
  .today__grid > *, .today__aside > *, .today__main > *, .today__cols > *, .today__side > * { flex: 1 1 100%; min-width: 0; }
  .dial-panel { order: 1; flex: 1 1 100%; }
  .today__main > .down { order: 2; }
  .flow { order: 3; }
  .matches { order: 4; }
  .sums { order: 5; }
  .srcs-line { order: 6; }
}

/* Proje simgesi (Sources 'icon', appIcon()) ve kart başlığı */
.app-ico { display: block; flex: none; width: 20px; height: 20px; border-radius: 5px; }
.app-ico--sm { width: 16px; height: 16px; border-radius: 4px; }
.app-ico--xs { display: inline-block; width: 13px; height: 13px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.panel-head { align-self: stretch; display: flex; align-items: center; gap: 8px; min-width: 0; }
.panel-head .label { letter-spacing: .14em; }
.panel-head .label a { color: inherit; text-decoration: none; }
.panel-head .label a:hover { color: var(--ink); }
.panel-head__meta { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.panel-head .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-head .count { margin-left: auto; }
.down { width: 100%; font-size: 14px; color: var(--err); background: var(--err-bg); border: 1px solid var(--err-line); border-radius: 10px; padding: 8px 12px; }
.is-stale { opacity: .6; }
.dial-panel.is-stale, .matches.is-stale { opacity: 1; }
.dial-panel.is-stale > :not(.down), .matches.is-stale > :not(.down) { opacity: .6; }

/* Namaz kartı küçük ve yatay: solda kadran (24 saat, 12 üstte, 00 altta; Domain/Dial.php), sağda vakit listesi.
   Kadrandaki saat yazıları liste varken gizli; ortadaki yazılar küçük kadranda okunsun diye büyük. */
.dial-panel { flex: 1 1 320px; max-width: 400px; margin: 0 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: 10px 14px; --dial-bg: var(--bg); --dial-center: var(--panel); }
.dial-panel > :not(.dial):not(.slots) { grid-column: 1 / -1; }
.dial { display: block; width: 100%; max-width: 230px; height: auto; justify-self: center; font-family: var(--sans); }
.dial text { text-anchor: middle; }
.dial__ring, .dial__day, .dial__past { fill: none; stroke-width: 22; }
.dial__ring { stroke: var(--dial-ring); }
.dial__day { stroke: var(--dial-day); }
.dial__past { stroke: var(--accent); stroke-opacity: .35; }
.dial__tick { stroke: var(--dial-tick); stroke-width: 1; }
.dial__tick.is-major { stroke-width: 2; }
.dial__p circle { fill: var(--p-fut); stroke: var(--dial-bg); stroke-width: 3; }
.dial__p text, .dial__kicker, .dial__hour { display: none; }
.dial__p.is-past circle { fill: var(--p-past); }
.dial__p.is-next circle { fill: var(--accent); }
.dial__ev { fill: var(--event); }
.dial__hand { stroke: var(--dial-hand); stroke-width: 2; stroke-linecap: round; }
.dial__hand-dot { fill: var(--dial-hand); }
.dial__center { fill: var(--dial-center); stroke: var(--line); }
.dial__title { fill: var(--ink); font-size: 40px; font-weight: 600; }
.dial__title.is-small { font-size: 30px; }
.dial__time { fill: var(--accent-text); font: 26px var(--mono); }
.dial__sub { fill: var(--muted); font-size: 19px; }
.dial-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.dial-legend__k { display: inline-flex; align-items: center; gap: 6px; }
.dial-legend__k::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
.dial-legend__k--e::before { border-radius: 2px; background: var(--event); }
/* Vakit listesi, kadranın yanında */
.slots { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.slots li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 4px 10px; border-radius: 8px; background: var(--slot); }
.slots span { font-size: 13px; color: var(--muted); }
.slots b { font: 400 15px var(--mono); font-variant-numeric: tabular-nums; }
.slots .is-past { color: var(--past-slot); }
.slots .is-past span { color: inherit; }
.slots .is-next { background: var(--accent); color: var(--accent-ink); }
.slots .is-next span { color: inherit; }
.slots .is-next b { font-weight: 600; }

/* Günün akışı: önce kırmızı kutular (geciken, süresi dolan), sonra saat sırasıyla */
.flow { display: flex; flex-direction: column; gap: 8px; }
.flow__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.flow__head .label { letter-spacing: .14em; }
.flow__empty { color: var(--muted); font-size: 15px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 14px; }
.flow__note { font-size: 13px; color: var(--muted); }
.row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  background: var(--row-bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.row:hover .row__title { text-decoration: underline; text-underline-offset: 3px; }
.row__time { font: 13px var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.row__body { display: flex; flex-direction: column; min-width: 0; }
.row__title { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.row__meta { font-size: 12px; color: var(--muted); }
.row__tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.row--alert { background: var(--err-bg); border-color: var(--err-line); }
.row--alert .row__time { font-size: 12px; color: var(--err); }
.row--alert .row__meta { color: var(--err-muted); }
.row--alert .row__tag { color: var(--err); }
.row--event .row__time { color: var(--event); }
.row--match .row__time, .row--match .row__tag { color: var(--accent-text); }
.row--match.is-done .row__time, .row--match.is-past .row__time { color: var(--past-slot); }
.row.is-past { opacity: .6; }
.count { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.count--bad { color: var(--err); background: var(--err-bg); }
.count--warn { color: var(--warn); background: var(--warn-bg); }

/* Tahmine açık maçlar (SkorTahmin): akıştan ayrı kart, satırlar akışın .row'u */
.matches { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.matches .row { grid-template-columns: 48px minmax(0, 1fr); }
.matches .row__tag { display: none; }   /* durum alt satırda yazar; tahmin bekleyen satır vurgulu */
.matches .row--match.is-open { border-color: var(--warn-line); box-shadow: inset 3px 0 0 var(--accent); }
.matches .row--match.is-open .row__meta { color: var(--accent-text); }
.row--ico { grid-template-columns: 20px 50px minmax(0, 1fr) auto; }
.row__ico { width: 20px; height: 20px; }

/* Özet kartları */
.sums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sum { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px; border-radius: 14px; background: var(--row-bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
a.sum:hover .sum__value { text-decoration: underline; text-underline-offset: 3px; }
.sum__label { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.sum__value { font-size: 20px; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.sum__note { font-size: 12px; color: var(--accent-text); }
.sum__note.is-bad { color: var(--err); }
.sum__line { font-size: 12px; color: var(--muted); }
.sum__bar { height: 4px; border-radius: 2px; background: var(--off-bg); overflow: hidden; }
.sum__bar i { display: block; height: 100%; background: var(--accent); }
.sum--ok { background: var(--ok-bg); border-color: var(--ok-line); }
.sum--ok .sum__label { color: var(--ok); }
.sum--ok .sum__value { font-size: 26px; line-height: 1; }
.sum--ok .sum__line { color: var(--ok-muted); }
.sum--ok .sum__bar { background: var(--ok-line); }
.sum--ok .sum__bar i { background: var(--ok-bar); }
.sum--warn { background: var(--warn-bg); border-color: var(--warn-line); }
.sum--warn .sum__label { color: var(--warn); }
.sum--accent .sum__label { color: var(--accent-text); }

/* Kaynaklar: ne zaman çekildi, ulaşılamayan kırmızı; her biri projenin ana sayfasına */
.srcs-line { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.srcs-line > * { color: var(--muted); text-decoration: none; }
.srcs-line > * > span { color: var(--faint); }
.srcs-line > a:hover { color: var(--ink); }
.srcs-line .is-bad, .srcs-line .is-bad > span { color: var(--err); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 16px; min-width: 0; }
.card--empty { display: grid; gap: 8px; text-align: center; padding: 28px 18px; }

/* Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 14px var(--sans);
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); padding: 10px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn--ghost { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.btn--danger { background: var(--err); border-color: var(--err); color: var(--bg); }
.btn--small { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn--ghost.c-error { color: var(--err); border-color: var(--err); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link--danger { color: var(--err); }

/* Yönetim: kutular */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; flex-wrap: wrap; }
.head h1 { font: 600 26px var(--head); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
h2.label { margin: 0; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.box + .box { margin-top: 18px; }
.box__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; background: var(--panel-2); border-bottom: 1px solid var(--line); min-height: 46px; }
.box__head .m { font-size: 12px; color: var(--muted); }
.box__head form { margin: 0; }
.box__foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; }
.box__foot form { margin: 0; }
.pad { padding: 16px; }
.pad > * + * { margin-top: 12px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; vertical-align: middle; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.pill--warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.pill--error { color: var(--err); background: var(--err-bg); border-color: var(--err-line); }
.pill--unknown, .pill--off { color: var(--muted); background: var(--off-bg); border-color: var(--off-line); }

.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 16px; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; }
.kv dt { font-size: 13px; color: var(--muted); }
.kv dd { margin: 0; min-width: 0; font: 14px var(--mono); overflow-wrap: anywhere; }
.kv .sub { color: var(--muted); }

.iss { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.iss li { font-size: 14px; padding: 8px 10px; border-left: 3px solid var(--line-2); background: var(--panel-2); color: var(--muted); border-radius: 0 6px 6px 0; }
.iss .error { border-color: var(--err); color: var(--err); background: var(--err-bg); }
.iss .warn { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 9px 12px; background: var(--panel-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:first-child td { border-top: 0; }
.tbl td.m { font-size: 13px; white-space: nowrap; }
.tbl td.m.wrap { white-space: normal; overflow-wrap: anywhere; }
.tbl .num { text-align: right; }
.tbl tr.is-error td { background: var(--err-bg); }
.tbl tr.is-warn td { background: var(--warn-bg); }
.tbl td form { display: inline; margin: 0; }
.tag { font-size: 11px; font-weight: 600; color: var(--accent-text); border: 1px solid currentColor; padding: 0 5px; border-radius: 4px; margin-left: 6px; letter-spacing: .04em; vertical-align: 1px; }

.tabs { display: flex; gap: 4px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; }
.tabs a { font-size: 15px; padding: 7px 13px; text-decoration: none; color: var(--muted); border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-active { color: var(--ink); background: var(--panel); border-color: var(--line-2); }
.tab-badge { background: var(--err); color: var(--bg); border-radius: 999px; padding: 0 6px; margin-left: 6px; font-size: 12px; }
.filters { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filters form { display: flex; gap: 8px; margin: 0; }

.form { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form .wide { grid-column: 1 / -1; }
.f { display: grid; gap: 5px; min-width: 0; }
.f > span { font-size: 13px; color: var(--muted); }
.f--inline { display: flex; align-items: center; gap: 8px; }
.f--inline select { width: auto; }
input, select, textarea { font: 16px var(--sans); color: var(--ink); padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); width: 100%; min-width: 0; }
input:disabled { background: var(--panel-2); color: var(--muted); }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
.hint { font-size: 13px; color: var(--muted); }

.notice { border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; background: var(--panel); }
.notice a { font-weight: 600; color: inherit; }
.notice--ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.notice--warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.notice--error { background: var(--err-bg); border-color: var(--err); color: var(--err); }

.empty { text-align: center; padding: 48px 18px; display: grid; gap: 12px; justify-items: center; }
.empty__title { font: 600 18px var(--head); }
.foot { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; gap: 8px 24px; flex-wrap: wrap; }
pre.code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 12px; overflow: auto; max-height: 480px; font: 13px/1.55 var(--mono); margin: 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
details summary { cursor: pointer; }
.mail-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 9px; background: #fff; margin-top: 8px; }
.error-text { font-size: 13px; color: var(--err); margin-top: 4px; }
.pagination { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 16px; }
.pagination a, .pagination span { font-size: 14px; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 8px; text-decoration: none; background: var(--panel); }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.tbl--fixed { table-layout: fixed; }
.tbl--fixed td.m:first-child { white-space: normal; overflow-wrap: anywhere; }
.older { border-top: 1px solid var(--line); }
.older summary { list-style: none; display: flex; justify-content: space-between; gap: 2px 12px; padding: 10px 16px; background: var(--panel-2); font-size: 14px; cursor: pointer; flex-wrap: wrap; }
.older summary::-webkit-details-marker { display: none; }
.older summary > span:first-child::before { content: "▸"; display: inline-block; width: 16px; transition: transform .15s; }
.older[open] summary > span:first-child::before { transform: rotate(90deg); }
.older[open] summary { border-bottom: 1px solid var(--line); }
.older .tbl td, .older .tbl td a { color: var(--muted); }

.code-wrap { position: relative; max-width: 100%; }
.code-wrap pre.code { padding-right: 96px; }
.code-wrap__copy { position: absolute; top: 7px; right: 7px; z-index: 1; }
.srcs { list-style: none; margin: 0; padding: 0; }
.srcs li { padding: 11px 16px; border-top: 1px solid var(--line); display: grid; gap: 3px; }
.srcs li:first-child { border-top: 0; }
.srcs li.is-warn { background: var(--warn-bg); }
.srcs .m { overflow-wrap: anywhere; }
.srcs__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.token { border-top: 1px solid var(--line); background: var(--accent-bg); }

/* Giriş ve kurulum */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth__card { width: 100%; max-width: 390px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 18px; overflow: hidden; }
.auth__head { padding: 24px 24px 4px; }
.auth__head .brand { font-size: 24px; }
.auth__head p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.auth__body { padding: 18px 24px 24px; display: grid; gap: 14px; }
.auth__body .notice { margin: 0; }
.auth__body .btn { padding: 13px; }

/* Geniş ekran */
@media (min-width: 640px) {
  .top__in { padding: 12px 24px; }
  .page { padding: 26px 24px 56px; }
  .today__head { align-items: center; gap: 16px; }
  .today__date { font-size: 40px; }
  .today__year--cur { display: inline; }
  .daynav { order: 0; flex: 0 0 auto; display: flex; }
  .daynav a { padding: 0 22px; }
  .icon-btn { height: 48px; border-radius: 24px; padding: 0 16px; }
  .icon-btn__text { display: inline; }
  .ico { width: 18px; height: 18px; }
  .row { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; padding: 14px 18px; }
  .row--ico { grid-template-columns: 22px 64px minmax(0, 1fr) auto; }
  .row__ico { width: 22px; height: 22px; }
  .matches .row { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
  .row__time { font-size: 14px; }
  .row--alert .row__time { font-size: 13px; }
  .row__title { font-size: 16px; }
  .row__meta { font-size: 13px; }
  .sums { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
  .sum { padding: 16px; }
  .kv > div { grid-template-columns: 220px minmax(0, 1fr); gap: 14px; }
  .form { grid-template-columns: 1fr 1fr; }
  .tbl th, .tbl td { padding-left: 16px; padding-right: 16px; }
}
/* Geniş ekran: solda namaz ve maç kartları (kutulu), yanında akış ve özet */
@media (min-width: 1040px) {
  .today { gap: 24px; --row-bg: var(--panel); }
  .today__aside { display: flex; flex-direction: column; gap: 20px; flex: 1 1 300px; max-width: 380px; min-width: 0; }
  .today__aside > .dial-panel, .today__aside > .matches { flex: none; }
  .dial-panel, .matches { margin: 0; padding: 18px; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
    --dial-bg: var(--panel); --dial-center: var(--bg); }
  .matches { --row-bg: var(--bg); }
  .matches .row { grid-template-columns: 42px minmax(0, 1fr); gap: 8px; padding: 8px 12px; }
  .matches .row__time { font-size: 13px; }
  .matches .row__title, .matches .row__meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .matches .row__title { font-size: 15px; overflow-wrap: normal; }
  .matches .row__meta { font-size: 12px; }
  .today__main { gap: 24px; }
}
@media (max-width: 420px) {
  .top__right { order: 1; }
  .top__in::after { content: ""; order: 2; flex-basis: 100%; }
  .nav { order: 3; }
  .viewnav { order: 4; margin-left: auto; }
  .top__right { gap: 12px; }
}

/* ============================================================
   Görünüm "Gazete" (app/Pages/today/gazete.php): kâğıt zemin, siyah çizgiler, tek kırmızı vurgu.
   Renkler yine değişkenlerde; data-view="gazete" yalnızca Bugün sayfasında yazılır.
   ============================================================ */
:root[data-view="gazete"] {
  color-scheme: light;
  --bg: #f4f2ec; --panel: #f4f2ec; --panel-2: #ebe8e0; --slot: #ebe8e0;
  --line: #c9c5ba; --line-2: #8a877f;
  --ink: #141414; --muted: #4a4a46; --faint: #8a877f;
  --accent: #b3261e; --accent-ink: #ffffff; --accent-text: #b3261e; --accent-bg: #f6e3e0;
  --np-rule: #141414; --np-body: #2c2c29; --np-dim: #8a877f; --np-red: #b3261e;
  --np-display: "Bodoni 72", Didot, "Bodoni MT", "Iowan Old Style", Georgia, serif;
  --np-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --shadow: none;
}
:root[data-view="gazete"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #161513; --panel: #161513; --panel-2: #22201c; --slot: #22201c;
  --line: #3a3833; --line-2: #6f6c64;
  --ink: #ece8de; --muted: #b0ab9f; --faint: #77736a;
  --accent: #e0675c; --accent-ink: #161513; --accent-text: #f08a80; --accent-bg: #3a1c19;
  --np-rule: #ece8de; --np-body: #d6d1c5; --np-dim: #77736a; --np-red: #f08a80;
}
.np { display: flex; flex-direction: column; gap: 14px; font-family: var(--np-serif); color: var(--ink); }
.np a { color: inherit; text-decoration: none; }
.np a:hover { text-decoration: underline; text-underline-offset: 3px; }
.np__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; border-bottom: 1px solid var(--np-rule);
  font: 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.np__tools { display: flex; align-items: center; gap: 14px; }
.np .np-link { height: auto; min-width: 0; padding: 8px 0; border: 0; border-radius: 0; background: none; color: var(--muted);
  font: 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; gap: 5px; }
.np .np-link:hover { color: var(--ink); }
.np .np-link .ico { width: 13px; height: 13px; }
.np .np-link .icon-btn__text { display: inline; }
.np__mast { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 10px; border-bottom: 3px double var(--np-rule); text-align: center; }
.np__mast h1 { font: 900 54px/1 var(--np-display); letter-spacing: -.01em; }
.np__mast p { font-style: italic; font-size: 15px; }
.np__sub { display: none; }
.np__days { display: flex; justify-content: center; font: 500 13px var(--sans); margin-top: -8px; }
.np__days a { padding: 12px 16px; color: var(--np-dim); }
.np__days a.is-active { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--np-red); }
.np__days a:hover { text-decoration: none; color: var(--ink); }

/* Telefon: manşet; vakitler | program; spor; kitaplık | aile; ilanlar */
.np__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "lead lead" "times prog" "sport sport" "book fam" "ads ads"; }
.np__lead { grid-area: lead; } .np__times { grid-area: times; } .np__prog { grid-area: prog; } .np__sport { grid-area: sport; }
.np__book { grid-area: book; } .np__fam { grid-area: fam; } .np__ads { grid-area: ads; }
.np__lead, .np__cell { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--np-rule); min-width: 0; }
.np__times, .np__book { padding-right: 14px; border-right: 1px solid var(--line); }
.np__prog, .np__fam { padding-left: 14px; }
.np__ads { border-bottom: 0; }
.np__kicker { font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.np__kicker--red { color: var(--np-red); }
.np__lead h2 { font: 700 31px/1.08 var(--np-display); }
.np__paras { display: grid; gap: 10px; }
.np__paras p { font-size: 16px; line-height: 1.45; color: var(--np-body); }
.np__paras a { text-decoration: underline; text-underline-offset: 3px; }
.np__time { display: flex; justify-content: space-between; font-size: 15px; font-variant-numeric: tabular-nums; }
.np__time.is-past { color: var(--np-dim); }
.np__time.is-next { font-weight: 600; background: var(--np-rule); color: var(--bg); margin: 0 -6px; padding: 2px 6px; }
.np__note { font-style: italic; font-size: 13px; color: var(--muted); }
.np__entry { display: flex; flex-direction: column; }
.np__entry.is-past { opacity: .6; }
.np__at { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .02em; }
.np__red { color: var(--np-red); font-weight: 600; }
.np__item { font-size: 16px; font-weight: 600; line-height: 1.2; }
.np__where { font-size: 13px; font-style: italic; color: var(--muted); }
.np__match { font: 700 19px/1.15 var(--np-display); }
.np__big { font: 700 22px/1.1 var(--np-display); }
.np__text { font-size: 15px; line-height: 1.4; color: var(--np-body); display: block; }
.np__ad { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px dashed var(--np-dim); }
.np__ad.is-due { border: 1px solid var(--np-rule); }
.np__adtag { font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.np__ad.is-due .np__adtag { color: var(--np-red); }
.np .down { font-family: var(--sans); border-radius: 0; }
.np .srcs-line { font-family: var(--sans); padding-top: 8px; border-top: 1px solid var(--np-rule); }
@media (min-width: 900px) {
  .np { gap: 16px; }
  .np__bar { flex-wrap: nowrap; }
  .np__mast h1 { font-size: 88px; }
  .np__mast p { font-size: 18px; }
  .np__sub { display: inline; }
  .np__grid { grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas: "lead lead lead times" "prog sport book ads" "prog sport fam ads"; }
  .np__lead { padding: 4px 24px 18px 0; border-right: 1px solid var(--line); }
  .np__lead h2 { font-size: 46px; line-height: 1.05; }
  .np__paras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .np__paras p { font-size: 17px; line-height: 1.5; }
  .np__times { padding: 4px 0 18px 24px; border-right: 0; }
  .np__time { font-size: 17px; }
  .np__prog, .np__sport, .np__book, .np__fam, .np__ads { border-bottom: 0; padding: 14px 20px 0; border-right: 1px solid var(--line); }
  .np__prog { padding-left: 0; }
  .np__ads { padding-right: 0; border-right: 0; }
  .np__book { padding-bottom: 6px; }
  .np__fam { padding-top: 6px; }
  .np__item { font-size: 18px; }
  .np__match { font-size: 22px; }
  .np__big { font-size: 26px; }
  .np__text { font-size: 16px; }
}

/* ============================================================
   Görünüm "Fiş" (app/Pages/today/fis.php): masa üstünde termal fiş, eş aralıklı yazı.
   Fiş kâğıdı koyu temada da açık kalır; masa koyulaşır.
   ============================================================ */
:root[data-view="fis"] {
  color-scheme: light;
  --bg: #d8dcd3; --panel: #e2e5dd; --panel-2: #eceee8; --slot: #eceee8;
  --line: #c3c8bd; --line-2: #a7aca0;
  --ink: #1c1c1a; --muted: #44443f; --faint: #7a7a73;
  --accent: #1c1c1a; --accent-ink: #fbfaf6; --accent-text: #1c1c1a; --accent-bg: #eceee8;
  --paper: #fbfaf6; --paper-ink: #1c1c1a; --paper-muted: #55554f; --paper-faint: #8d8c84; --paper-red: #b3261e;
  --paper-shadow: rgba(40, 40, 30, .22);
  --shadow: none;
}
:root[data-view="fis"][data-theme="dark"] {
  color-scheme: dark;
  --bg: #2b2d30; --panel: #25272a; --panel-2: #33363a; --slot: #33363a;
  --line: #3b3e42; --line-2: #55595f;
  --ink: #e6e6e0; --muted: #b5b5ad; --faint: #85857e;
  --accent: #e6e6e0; --accent-ink: #1c1c1a; --accent-text: #e6e6e0; --accent-bg: #33363a;
  --paper: #ebe9e1; --paper-shadow: rgba(0, 0, 0, .45);
}
.rc { display: flex; flex-direction: column; gap: 16px; font-family: var(--mono); }
.rc a { color: inherit; text-decoration: none; }
.rc__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc__brand { display: none; font-size: 20px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; margin-right: auto; }
.rc__meta { display: none; font-size: 13px; color: var(--muted); }
.rc__days { display: flex; gap: 6px; flex: 1 1 100%; }
.rc__days a { flex: 1; justify-content: center; height: 44px; padding: 0 14px; display: flex; align-items: center; border-radius: 22px; background: var(--panel-2); font-size: 13px; color: var(--ink); }
.rc__days a.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.rc__tools { display: flex; gap: 6px; margin-left: auto; }
.rc .rc-pill { height: 44px; min-width: 44px; padding: 0 14px; border-radius: 22px; border: 0; background: var(--panel-2); color: var(--ink); font: 13px var(--mono); }
.rc .rc-pill--ink { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.rc .rc-pill .ico { width: 18px; height: 18px; }
.rc__wide { display: none; }
.rc__desk { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 32px; }
.rc__main { flex: 0 1 440px; min-width: 0; filter: drop-shadow(0 8px 18px var(--paper-shadow)); }
.rc__paper { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 22px; margin: 12px 0;
  background: var(--paper); color: var(--paper-ink); font-size: 14px; line-height: 1.45; }
/* Tırtıklı kenarlar */
.rc__paper::before, .rc__paper::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; }
.rc__paper::before { top: -12px; background: linear-gradient(135deg, transparent 6px, var(--paper) 0) 0 0 / 12px 12px repeat-x, linear-gradient(225deg, transparent 6px, var(--paper) 0) 0 0 / 12px 12px repeat-x; }
.rc__paper::after { bottom: -12px; background: linear-gradient(45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 12px repeat-x, linear-gradient(-45deg, transparent 6px, var(--paper) 0) 0 0 / 12px 12px repeat-x; }
.rc__c { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.rc__title { font-size: 22px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.rc__spaced { letter-spacing: .2em; text-transform: uppercase; }
.rc__dim { color: var(--paper-muted); font-size: 12px; }
i.rc__dim { font-size: inherit; }
.rc__red { color: var(--paper-red); }
.rc__rule { display: block; border-top: 1px dashed var(--paper-faint); }
.rc__sec { display: flex; flex-direction: column; gap: 3px; }
.rc__sec h2 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.rc__row { display: flex; justify-content: space-between; gap: 10px; }
.rc__row > span:last-child { white-space: nowrap; text-transform: uppercase; }
.rc__name { min-width: 0; overflow-wrap: anywhere; }
.rc__lead { text-transform: uppercase; }
.rc__lead i { flex: 1; border-bottom: 1px dotted var(--paper-faint); margin-bottom: 5px; }
.rc__lead.is-past { color: var(--paper-faint); }
.rc__lead.is-next { font-weight: 700; background: var(--paper-ink); color: var(--paper); margin: 0 -6px; padding: 0 6px; }
.rc__lead.is-next i { border-color: transparent; }
.rc__task { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; }
.rc__task > span:last-child, .rc__ev > span:first-child { white-space: nowrap; text-transform: uppercase; }
.rc__ev { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 6px; }
.rc__match { grid-template-columns: 50px minmax(0, 1fr) auto; }
.rc__match.is-open > span:last-child { font-weight: 700; }
.rc__match.is-done, .rc__match.is-past { color: var(--paper-muted); }
.rc .is-late { color: var(--paper-red); font-weight: 500; }
.rc .is-bold { font-weight: 700; }
.rc a.rc__row:hover .rc__name, .rc a.rc__task:hover .rc__name, .rc a.rc__ev:hover .rc__name { text-decoration: underline; }
.rc__total { display: flex; justify-content: space-between; padding: 6px 0; border-top: 2px solid var(--paper-ink); border-bottom: 2px solid var(--paper-ink);
  font-weight: 700; font-size: 15px; text-transform: uppercase; }
.rc__barcode { width: 220px; height: 40px; background: repeating-linear-gradient(90deg, var(--paper-ink) 0 2px, transparent 2px 4px, var(--paper-ink) 4px 7px, transparent 7px 9px, var(--paper-ink) 9px 10px, transparent 10px 13px); }
.rc__stub { display: none; }
.rc .is-stale { opacity: .55; }
.rc .down { margin: 0; }
@media (min-width: 640px) {
  .rc__brand, .rc__meta, .rc__wide { display: inline; }
  .rc__days { order: 5; justify-content: center; }
  .rc__days a { flex: 0 0 auto; }
  .rc__tools { margin-left: 0; }
  .rc__paper { padding: 20px 28px 24px; }
}
@media (min-width: 1040px) {
  .rc__stub { display: flex; flex: 0 1 260px; opacity: .78; filter: drop-shadow(0 4px 10px var(--paper-shadow)); transition: opacity .15s; }
  .rc__stub:hover { opacity: 1; }
  .rc__stub .rc__paper { width: 100%; font-size: 13px; padding: 14px 18px 16px; gap: 8px; }
  .rc__stub--prev { margin-top: 40px; transform: rotate(-2.5deg); }
  .rc__stub--next { margin-top: 70px; transform: rotate(2deg); }
}

/* ============================================================
   Tek ekran: Bugün sayfası Kadran ve Gazete görünümünde, geniş ve yeterince yüksek ekranda kaydırmadan sığar
   (Fiş ve telefon kayar). Sığmayan liste öğelerini app.js gizler ve "+N daha" düğmesi koyar; düğme tek ekranı
   kapatır (html.fit-off) ve sayfa her şeyi göstererek kayar. Eşik app.js'teki FIT_MQ ile aynı olmalı.
   ============================================================ */
.fit-more { align-self: flex-start; font: 600 12px var(--sans); color: var(--muted); background: none; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.fit-more:hover { color: var(--ink); border-color: var(--ink); }
.today__cols, .today__side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (min-width: 1040px) {
  .today__cols, .today__side { gap: 24px; }
}
@media (min-width: 1040px) and (min-height: 600px) {
  :root[data-view="kadran"]:not(.fit-off) body, :root[data-view="gazete"]:not(.fit-off) body { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
  :root[data-view="kadran"]:not(.fit-off) .top, :root[data-view="gazete"]:not(.fit-off) .top { flex: none; }
  :root[data-view="kadran"]:not(.fit-off) .top__in, :root[data-view="gazete"]:not(.fit-off) .top__in { max-width: 1680px; }
  :root[data-view="kadran"]:not(.fit-off) .page, :root[data-view="gazete"]:not(.fit-off) .page { flex: 1 1 auto; min-height: 0; width: 100%; max-width: 1680px; padding-top: 16px; padding-bottom: 16px;
    display: flex; flex-direction: column; }
  :root[data-view="kadran"]:not(.fit-off) .page > .notice, :root[data-view="gazete"]:not(.fit-off) .page > .notice { flex: none; margin-bottom: 10px; padding-top: 7px; padding-bottom: 7px; }

  /* Kadran: kadran | akış | özet */
  :root[data-view="kadran"]:not(.fit-off) .today { flex: 1 1 auto; min-height: 0; gap: 14px; }
  :root[data-view="kadran"]:not(.fit-off) .today__date { font-size: 32px; }
  :root[data-view="kadran"]:not(.fit-off) .today__grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 3fr); gap: 20px; align-items: stretch; }
  :root[data-view="kadran"]:not(.fit-off) .today__grid > :only-child { grid-column: 1 / -1; }
  :root[data-view="kadran"]:not(.fit-off) .today__aside { max-width: none; min-height: 0; gap: 14px; }
  :root[data-view="kadran"]:not(.fit-off) .dial-panel { max-width: none; padding: 14px; gap: 8px 12px; }
  :root[data-view="kadran"]:not(.fit-off) .matches { flex: 0 1 auto; min-height: 0; overflow: hidden; padding: 14px; gap: 6px; }
  :root[data-view="kadran"]:not(.fit-off) .today__main { min-height: 0; gap: 12px; }
  :root[data-view="kadran"]:not(.fit-off) .today__cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 20px; }
  :root[data-view="kadran"]:not(.fit-off) .flow { min-height: 0; overflow: hidden; gap: 6px; }
  :root[data-view="kadran"]:not(.fit-off) .row { padding: 9px 16px; }
  :root[data-view="kadran"]:not(.fit-off) .today__side { min-height: 0; overflow: hidden; gap: 14px; }
  :root[data-view="kadran"]:not(.fit-off) .sums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  :root[data-view="kadran"]:not(.fit-off) .sum { padding: 12px 14px; }

  @media (max-height: 760px) {
    :root[data-view="kadran"]:not(.fit-off) .dial-legend { display: none; }
  }

  /* Gazete: manşet + vakitler üstte, dört sütun kalan yüksekliği doldurur */
  :root[data-view="gazete"]:not(.fit-off) .np { flex: 1 1 auto; min-height: 0; gap: 10px; }
  :root[data-view="gazete"]:not(.fit-off) .np__mast { padding-bottom: 6px; }
  :root[data-view="gazete"]:not(.fit-off) .np__mast h1 { font-size: 60px; }
  :root[data-view="gazete"]:not(.fit-off) .np__mast p { font-size: 16px; }
  :root[data-view="gazete"]:not(.fit-off) .np__days { margin-top: -6px; }
  :root[data-view="gazete"]:not(.fit-off) .np__days a { padding: 8px 16px; }
  :root[data-view="gazete"]:not(.fit-off) .np__grid { flex: 1 1 auto; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr); }
  :root[data-view="gazete"]:not(.fit-off) .np__lead { padding-bottom: 12px; }
  :root[data-view="gazete"]:not(.fit-off) .np__lead h2 { font-size: 38px; }
  :root[data-view="gazete"]:not(.fit-off) .np__paras p { font-size: 16px; line-height: 1.45; }
  :root[data-view="gazete"]:not(.fit-off) .np__times { padding-bottom: 12px; }
  :root[data-view="gazete"]:not(.fit-off) .np__cell { min-height: 0; overflow: hidden; }
  :root[data-view="gazete"]:not(.fit-off) .srcs-line { flex: none; }
}
/* Alçak ekranda (dizüstü) Gazete'nin başlığı ve manşeti küçülür ki alttaki sütunlara yer kalsın */
@media (min-width: 1040px) and (min-height: 600px) and (max-height: 860px) {
  :root[data-view="gazete"]:not(.fit-off) .np { gap: 6px; }
  :root[data-view="gazete"]:not(.fit-off) .np .np-link { padding: 4px 0; }
  :root[data-view="gazete"]:not(.fit-off) .np__mast { flex-direction: row; justify-content: center; align-items: baseline; gap: 14px; padding-bottom: 4px; }
  :root[data-view="gazete"]:not(.fit-off) .np__mast h1 { font-size: 40px; }
  :root[data-view="gazete"]:not(.fit-off) .np__mast p { font-size: 15px; }
  :root[data-view="gazete"]:not(.fit-off) .np__days { margin-top: -4px; }
  :root[data-view="gazete"]:not(.fit-off) .np__days a { padding: 6px 14px; }
  :root[data-view="gazete"]:not(.fit-off) .np__lead, :root[data-view="gazete"]:not(.fit-off) .np__times { gap: 4px; padding-top: 8px; padding-bottom: 8px; }
  :root[data-view="gazete"]:not(.fit-off) .np__lead h2 { font-size: 28px; }
  :root[data-view="gazete"]:not(.fit-off) .np__paras p { font-size: 14px; line-height: 1.4; }
  :root[data-view="gazete"]:not(.fit-off) .np__time { font-size: 15px; }
  :root[data-view="gazete"]:not(.fit-off) .np__cell { gap: 6px; padding-top: 10px; }
}
