/* Pazus uzman ekranı ekleri. CYP kuralı: yeni renk tanımlanmaz, cyp.css değişkenleri kullanılır. */
.pos { color: var(--ok); }
.w60 { width: 60px; }
.w90 { width: 90px; }
.col { display: flex; flex-direction: column; gap: 6px; }
.login { min-height: 100vh; display: grid; place-items: center; }
.login .card { width: min(460px, 92vw); }
.login .card-b { padding: 30px 32px 26px; display: grid; gap: 14px; }
.login .brand { font-size: 20px; margin-bottom: 6px; } .login .brand .logo { width: 44px; height: 44px; }
.login .input { font-size: 16px; padding: 11px 13px; }
.login label { font-size: 13.5px; }
.login .btn.big { width: 100%; padding: 12px; font-size: 16px; margin-top: 4px; justify-content: center; text-align: center; }
.login .forgot { justify-self: center; }
.login code { font-size: 12px; word-break: break-all; }
.lang-switch { display: flex; gap: 4px; padding: 6px 14px; }
.lang-switch .chip { padding: 3px 9px; font-size: 12px; }
.login .lang-switch { padding: 0; }
.login-wrap { display: grid; gap: 14px; justify-items: center; padding: 16px 0; }
.login .sample { width: min(460px, 92vw); padding: 14px 18px; display: grid; gap: 6px; font-size: 13.5px; }
.login .sample a.btn { justify-self: start; }
.foot.linkish { border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; padding: 0; }
.foot.linkish:hover { color: var(--accent); }
.account .field { margin-top: 8px; } .account .btn.primary { margin-top: 12px; }

/* geri sayım */
.cd { font-variant-numeric: tabular-nums; font-weight: 650; }
.cd.big { font-size: 28px; letter-spacing: -.5px; }
.cd.warm { color: var(--warn); }
.cd.hot { color: var(--danger); }
.cd.paused { color: var(--muted); }

/* kokpit kartları */
.auc-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.auc { cursor: pointer; transition: border-color .15s; }
.auc:hover { border-color: var(--accent); }
.auc.attn, .card.attn { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.auc-title { font-weight: 650; margin: 6px 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auc-title.big { font-size: 18px; white-space: normal; }
.auc-mid { align-items: flex-end; margin-bottom: 8px; }
.auc-head { gap: 20px; }

/* ihale ekranı */
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; margin-top: 16px; }
.split2 > div > .card + .card { margin-top: 16px; }
@media (max-width: 1100px) { .split2 { grid-template-columns: 1fr; } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: 4px 10px; cursor: pointer; font-size: 12.5px; color: var(--muted); }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dot { background: var(--line); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot.away { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sup { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.sup .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.feed { max-height: 360px; overflow: auto; padding-top: 4px; padding-bottom: 4px; }
.feed .list-item.bid .what { color: var(--text); }
.feed .list-item.extend .what, .feed .list-item.round .what { color: var(--accent); }
.feed .when { width: 70px; }

/* yeni ihale */
.drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.drop.on { border-color: var(--accent); background: var(--accent-soft); }
.drop-ico { font-size: 34px; }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kind { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; }
.kind:hover { border-color: var(--accent); }
.kind.on { border-color: var(--accent); background: var(--accent-soft); }

/* sohbet */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.chat-h { display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-b { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--panel-2); min-height: 240px; }
.bub { max-width: 78%; padding: 8px 11px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); }
.bub.me { align-self: flex-end; background: var(--accent-soft); border-color: transparent; }
.bub.them { align-self: flex-start; }
.bub-t { white-space: pre-wrap; overflow-wrap: anywhere; }
.bub-m { font-size: 11px; color: var(--muted); margin-top: 3px; text-align: right; }
.bub-who { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.bub-tag { font-size: 10.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }
.chat-q { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; border-top: 1px solid var(--line-2); }
.chat-q .chip { white-space: nowrap; font-size: 12px; }
.chat-f { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line-2); align-items: flex-end; }
.chat-f textarea { flex: 1; min-height: 44px; }
/* Sohbet yana yerleşik panel: arka plan katmanı yok, sayfa panel kadar daralır. */
.chat-dock { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 21; background: var(--panel);
  border-left: 1px solid var(--line); box-shadow: -8px 0 30px rgba(0, 0, 0, .10); display: flex; flex-direction: column; animation: slide .18s ease-out; }
.chat-dock .chat { flex: 1; min-height: 0; }
body.chat-open .content { padding-right: 444px; }
body.chat-open .split2 { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { body.chat-open .content { padding-right: 24px; } }
.inbox { grid-template-columns: 340px minmax(0, 1fr); }
.inbox > .card:last-child { min-height: 520px; display: flex; flex-direction: column; }
.thr { display: flex; align-items: center; gap: 8px; }

.iconbtn { white-space: nowrap; }
.iconbtn .badge { margin-left: 3px; }
.t td:last-child { white-space: nowrap; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split2 > div > .card { margin-top: 16px; }
.split2 > div > .card:first-child { margin-top: 0; }

/* ---------- teklif seyri grafiği. Seri renkleri tedarikçiye bağlı (davet sırası), sıralamaya değil.
   Palet renk körlüğü denetiminden geçti (açık: #fff, koyu: #111827 yüzeyinde); açık modda 3 renk 3:1'in
   altında, bu yüzden adlar açıklamada ve ipucunda yazılı, sıralama tablosu grafiğin hemen altında. */
:root { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948; }
:root[data-theme="dark"] { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767; }
.pchart { position: relative; }
.pchart svg { display: block; touch-action: pan-y; }
.pchart .ax { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.pchart .ax.strong { fill: var(--text); font-weight: 600; }
.pchart .ax.lbl { fill: var(--text); }
.pchart .grid { stroke: var(--line-2); }
.pchart .remain { fill: var(--panel-2); }
.pchart .mark { stroke: var(--muted); stroke-dasharray: 3 3; opacity: .6; }
.pchart .mark.close { stroke-dasharray: none; }
.pchart .ext { fill: var(--muted); }
.pchart .target { stroke: var(--text); stroke-dasharray: 6 4; opacity: .7; }
.pchart .cross { stroke: var(--muted); }
.pchart .tip { position: absolute; top: 8px; width: 240px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); padding: 8px 10px; font-size: 12px; pointer-events: none; z-index: 2; }
.pchart .tip-h { color: var(--muted); margin-bottom: 4px; }
.pchart .tip-r { display: flex; align-items: center; gap: 6px; padding: 1px 0; }
.pchart .tip-r.dim { opacity: .55; }
.pchart .tip-r b { font-variant-numeric: tabular-nums; }
.pchart .tip-r .n { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pchart .k { width: 14px; height: 0; border-top: 2px solid; flex: none; }
.pchart .leg { display: flex; flex-wrap: wrap; gap: 2px 14px; padding-top: 6px; }
.pchart .leg button { border: 0; background: none; color: var(--text); font-size: 12px; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 3px 0; max-width: 230px; }
.pchart .leg button.off { opacity: .4; }
.pchart .leg .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---------- veri ürünleri: radar, Analiz (tek seri s1; ikinci seri s2; doğrulandı: açık #fff, koyu #111827) */
.radar-b { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.radar-svg { max-width: 380px; }
.pred-card .t.compact td, .pred-card .t.compact th { padding: 4px 10px; font-size: 12.5px; }
.pred-card .card-b.muted { padding-top: 6px; padding-bottom: 8px; }
.radar-col { min-width: 0; }
.radar-k { margin-bottom: 4px; } .radar-k b { font-size: 20px; }
.radar-row { padding: 4px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; } .radar-row:last-child { border-bottom: 0; }
.radar-row div { overflow-wrap: anywhere; }
.radar-svg, .an-svg { display: block; width: 100%; height: auto; overflow: visible; }
.an-svg { max-width: 760px; }  /* viewBox ölçeklenir: geniş ekranda yazılar şişmesin */
.radar-svg .ax, .an-svg .ax { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.radar-svg .base, .an-svg .base { stroke: var(--line); } .an-svg .grid { stroke: var(--line-2); }
.radar-svg .hit, .an-svg .hit { fill: transparent; }
.radar-svg .bar, .an-svg .bar { fill: var(--s1); } .radar-svg .bar.on, .an-svg .bar.on { opacity: .75; }
.radar-svg .gap-line { fill: none; stroke: var(--s1); stroke-width: 2; stroke-linejoin: round; }
.radar-svg .gap-dot { fill: var(--s1); stroke: var(--panel); stroke-width: 2; }
.radar-tip { min-height: 18px; }
.an-svg .band { stroke: var(--s1); stroke-width: 6; stroke-linecap: round; opacity: .28; }
:root[data-theme="dark"] .an-svg .band, :root[data-theme="dark"] .an-leg i.band { opacity: .55; }
.an-svg .mid { stroke: var(--s1); stroke-width: 2; }
.an-svg .act { fill: var(--s2); stroke: var(--panel); stroke-width: 2; }
.an-leg { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; padding-top: 6px; }
.an-leg i { display: inline-block; width: 14px; height: 8px; border-radius: 4px; margin-right: 6px; vertical-align: middle; }
.an-leg i.band { background: var(--s1); opacity: .35; } .an-leg i.mid { height: 2px; background: var(--s1); } .an-leg i.act { width: 9px; height: 9px; background: var(--s2); }
.an-tip { min-height: 18px; font-size: 12px; }
.signal { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 6px; }
.behavior { margin-top: 6px; }
/* sağlık göstergesi: durum rengi yalnız ikonda ve kenarda; anlamı yazı taşır */
.health { margin-bottom: 12px; border-left: 4px solid var(--ok); }
.health.warn { border-left-color: var(--warn); } .health.err { border-left-color: var(--danger); }
.h-ico { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--ok); }
.h-ico.warn { background: var(--warn); color: #0b0b0b; } .h-ico.err { background: var(--danger); }
.ext-note { border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 10px; padding-bottom: 10px; }
.chart-pick { max-width: min(420px, 50vw); padding: 5px 8px; font-size: 13px; }
.snotes { margin-top: 4px; } .snote-f { display: grid; gap: 6px; padding: 8px; background: var(--panel-2); border-radius: 8px; margin-top: 4px; }
.att-img { display: block; max-width: 260px; max-height: 300px; border-radius: 10px; margin: 2px 0 4px; }
.stale { margin: 12px 24px 0; }
.modal.scard { width: min(860px, 96vw); }
.modal.scard .t td { white-space: normal; }
.cd-row { justify-content: flex-end; gap: 10px; }
.auth-line { margin-top: 8px; } .other-auth { gap: 6px; margin-top: 6px; } .other-auth .input { flex: 1 1 150px; }
.admin-form { gap: 6px; } .admin-form .input { flex: 1 1 160px; } .sm-sel { padding: 3px 6px; font-size: 12.5px; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--panel-2); }
.firm-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 4px; } .firm-kpis .kpi .v { font-size: 22px; }
@media (max-width: 760px) { .firm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.savings { margin-bottom: 16px; } .big-num { font-size: 28px; font-weight: 700; } .big-num.pos { color: var(--ok); } .mid-num { font-size: 18px; font-weight: 650; }
.inbox-note { padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.w-vendor { flex: 1 1 280px; min-width: 220px; } .w-item { flex: 0 1 300px; min-width: 160px; max-width: 320px; }

/* Ayarlar: mail şablonları, döviz kurları, geliştirme günlüğü; sürüm satırı ve fikir penceresi */
a.tab { text-decoration: none; display: inline-block; }
.side .foot.version { display: block; text-decoration: none; padding-top: 0; }
.side .foot.version:hover { color: var(--accent); }
.modal.wide { width: min(760px, 96vw); }
.btn.block { display: block; width: 100%; text-align: center; }
.chip.sm { padding: 2px 8px; font-size: 12px; }
.prio { gap: 6px; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--muted); vertical-align: middle; }
.pdot.err { background: var(--danger); }
.pdot.info { background: var(--accent); }
.idea-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.rel { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.rel:last-child { border-bottom: 0; }
.rel-items { margin: 6px 0 0; padding-left: 18px; }
.rel-items li { margin: 3px 0; }
.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.dev-grid > div > .card + .card { margin-top: 16px; }
.tpl-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.tpl-group { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding: 12px 14px 4px; }
.tpl-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 14px; cursor: pointer; font: inherit; color: inherit; border-left: 3px solid transparent; }
.tpl-item:hover { background: var(--accent-soft); }
.tpl-item.on { background: var(--accent-soft); border-left-color: var(--accent); color: var(--accent); }
.tpl-item.dim { opacity: .6; }
.tpl-main > .card, .tpl-main > div > .card, .tpl-two { margin-bottom: 16px; }
.tpl-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.tpl-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.mail-prev { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin: 8px 0; font-size: 13.5px; background: var(--bg); }
textarea.mono-ish { font-size: 13.5px; line-height: 1.45; }
.diff { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; background: var(--bg); border-radius: 6px; padding: 8px; }
.diff .add { background: var(--ok-soft); }
.diff .del { background: var(--danger-soft); text-decoration: line-through; }
.rates-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 16px; align-items: start; }
.neg { color: var(--danger); }
@media (max-width: 1100px) { .dev-grid, .tpl-grid, .tpl-two, .rates-grid { grid-template-columns: 1fr; } }

/* ihale yönü ve Hollanda usulü */
.dir-seg button { min-width: 108px; }
.dutch-strip { background: var(--accent-soft); display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }

.input.w-date { width: 150px; }
.input.w-time { width: 72px; text-align: center; font-variant-numeric: tabular-nums; }
.input.bad { border-color: var(--danger); }

/* başlangıca geri sayım: küçük, mavi (canlı sayaç büyük kalır) */
.cd-start { color: var(--accent); font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cd-start small { color: var(--muted); font-weight: 400; font-size: 12px; margin-right: 2px; }

/* logo ana ekrana gider; sağ üstte süren ihaleler şeridi */
a.brand { text-decoration: none; color: inherit; }
.live-strip { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 60%; }
.live-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel, #fff); text-decoration: none; color: inherit; font-size: 12.5px; white-space: nowrap; }
.live-chip:hover, .live-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.live-chip .nm { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.live-chip .cd { font-weight: 650; font-variant-numeric: tabular-nums; }
.pdot.live { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* mesaj asistanı: uzmanın sohbet penceresindeki öneri kutusu */
.bot-box { border: 1px dashed var(--accent); border-radius: 10px; padding: 10px 12px; margin: 8px 0; background: var(--accent-soft); display: grid; gap: 6px; }
.bot-box.blocked, .bot-box.error { border-color: var(--warn); background: var(--warn-soft); }
.bot-box .bot-h { font-weight: 600; font-size: 13px; }
.bot-box .bot-t { white-space: pre-wrap; font-size: 14px; }
.bot-box .row { gap: 6px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 16px; }
.bot-box details summary { cursor: pointer; color: var(--muted); }
.bot-box pre.ctx { white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; font-size: 12px; background: var(--panel, #fff); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px; margin: 6px 0 0; }
.grid2 .field { margin-bottom: 12px; }

/* çok lotlu ihale: lot seçici ve tıklanır özet satırları */
.lot-pick { width: auto; max-width: 340px; padding: 5px 8px; font-size: 13px; }
.t.click tbody tr { cursor: pointer; }
.t.click tbody tr:hover { background: var(--accent-soft); }
.account .lang-switch { padding: 0 0 4px; }
.account .lang-switch + .muted { margin-bottom: 14px; }

/* ihale ekranı: yatay tedarikçi tablosu */
.sup-table td { vertical-align: top; }
.sup-table .badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sup-table .badges:empty { display: none; }
.sup-table .link-cell .input { width: 210px; font-size: 11.5px; padding: 4px 6px; }
.sup-table .iconbtn .badge { font-size: 10px; }

/* yeni ihale: örnek RFQ dosyası (yükleme alanının altında) */
.sample-row { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13.5px; flex-wrap: wrap; }
.sample-row .grow { flex: 1; min-width: 220px; }
/* danışman ve karar desteği (danisman.js): güç ve durum ikon + yazıyla; renk yalnız destek */
.advice { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; display: grid; gap: 8px; background: var(--panel-2); }
.adv-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.adv-row.ok { opacity: .8; }
.adv-ev { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 2px; }
.adv-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; max-width: 100%; }
.adv-reasons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lvl { font-size: 12px; white-space: nowrap; color: var(--muted); }
.lvl > span { letter-spacing: 1px; color: var(--accent); }
.lvl.unsupported > span { color: var(--muted); }
.question .q-ask { margin: 10px 0 8px; }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.q-opts .btn { flex: 1 1 200px; white-space: normal; text-align: left; }
.question .card-b { display: grid; gap: 6px; } .q-sim { padding: 6px 8px; border-radius: 8px; background: var(--panel-2); }
.next-act { border-left: 4px solid var(--accent); } .next-act.calm { border-left-color: var(--line); }
.na-title { font-size: 15px; margin-bottom: 4px; }
.na-facts { margin: 8px 0; padding-left: 18px; display: grid; gap: 2px; }
.next-act .row { gap: 6px; margin-top: 4px; } .na-notes { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.att-ico.err { color: var(--danger); } .att-ico.warn { color: var(--warn); } .att-ico.info { color: var(--accent); }
.cal { display: grid; gap: 10px; } .cal-h { font-weight: 600; font-size: 13px; margin-bottom: 4px; text-transform: capitalize; }
.cal-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 4px; }
.cal-row.clash { border-color: var(--warn); }
.coach { padding: 8px 0; border-bottom: 1px solid var(--line); } .coach:last-of-type { border-bottom: 0; }
.coach-items { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 3px; }

/* Telefon (≤900 px): sol menü çekmece olur (☰), içerik yana taşmaz; geniş tablolar kendi kutusunda kayar. */
.menu-btn { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); height: 100vh; height: 100dvh; }
  .main { min-width: 0; overflow-x: hidden; }
  .menu-btn { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--panel); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
  .app .side { display: flex; position: fixed; top: 0; bottom: 0; left: 0; width: min(280px, 82vw); z-index: 40;
    transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility .2s; box-shadow: 0 0 24px rgba(0, 0, 0, .25); }
  .app.menu-open .side { transform: none; visibility: visible; }
  .menu-veil { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .35); }
  .top { padding: 10px 12px; flex-wrap: wrap; gap: 10px; }
  .top h1 { font-size: 17px; }
  .top-title { flex: 1 1 0; min-width: 0; }
  .top .live-strip { flex-basis: 100%; }
  .content { padding: 14px 12px 32px; }
  .card-h { flex-wrap: wrap; }
  .card-b.flush, .card-b:has(> .t), .card > .t { overflow-x: auto; }
  .card > .t { display: block; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .split2 > *, .split > *, .g2 > * { min-width: 0; }  /* ızgara sütunu içindeki geniş tabloya göre büyümesin */
}


/* Kuşbakışı takvimi: hafta şeridi ve günün programı */
.takvim { margin-bottom: 16px; scroll-margin-top: 84px; }
.cal-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cal-chip:hover { border-color: var(--accent); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; }
.wk:hover { border-color: var(--accent); }
.wk.on { background: var(--accent-soft); border-color: var(--accent); }
.wk-d { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }
.wk-n { font-size: 17px; line-height: 1.2; }
.wk.today .wk-n { color: var(--accent); }
.wk-c { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.prog-sum { margin: 14px 0 6px; gap: 12px; }
.prog-sum b.grow { text-transform: capitalize; }
.prog-empty { padding: 14px 0 4px; }
.prog-undated { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.prog-row { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 14px; align-items: center; padding: 8px 6px; border-top: 1px solid var(--line-2); color: inherit; text-decoration: none; }
a.prog-row:hover { background: var(--accent-soft); }
.prog-head { padding: 0 6px; border-top: 0; }
.prog-time { font-variant-numeric: tabular-nums; }
.prog-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-info { min-width: 0; }
.prog-track { position: relative; height: 18px; }
.prog-head .prog-track { height: 18px; }
.prog-hour { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.prog-tick { position: absolute; top: -8px; bottom: -8px; width: 1px; background: var(--line-2); }
.prog-now { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--danger); z-index: 1; }
.prog-bar { position: absolute; top: 3px; height: 12px; min-width: 6px; border-radius: 4px; background: var(--muted); z-index: 2; }
.prog-bar.s-running { background: var(--ok); }
.prog-bar.s-paused { background: var(--warn); }
.prog-bar.s-published { background: var(--accent); }
.prog-bar.s-draft { background: transparent; border: 2px dashed var(--muted); box-sizing: border-box; }
.prog-bar.missed { background: var(--danger-soft); border: 2px solid var(--danger); box-sizing: border-box; }
.prog-bar.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.prog-bar.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Yeni ihale: dosyadan içgörüler */
.ins { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.ins:first-child { border-top: 0; padding-top: 0; }
.ins .grow { flex: 1; min-width: 220px; }
.ins-i { width: 20px; text-align: center; }
.ins.warn .ins-i { color: var(--warn); }
.ins-facts { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; }
.ins-done { white-space: nowrap; align-self: center; }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ins-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.ins-box.wide { grid-column: 1 / -1; }
.ins-box h4 { margin: 0 0 2px; font-size: 13.5px; }
.lad { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; }
.lad.two { grid-template-columns: minmax(0, 50%) minmax(0, 1fr); }
.lad-n { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lad-t { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lad-b { display: inline-block; height: 10px; border-radius: 0 4px 4px 0; background: var(--accent); }
.lad-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.lad-v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lad-h { grid-column: 1 / -1; margin-top: -3px; }
.cov-wrap { overflow-x: auto; margin-top: 8px; }
.cov { border-collapse: collapse; font-size: 12px; }
.cov th, .cov td { padding: 3px 6px; text-align: center; border: 1px solid var(--line-2); min-width: 24px; }
.cov tbody th { text-align: left; font-weight: 500; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: sticky; left: 0; background: var(--panel); }
.cov th.alone { color: var(--warn); }
.cov td.c2 { color: var(--accent); background: var(--accent-soft); }
.cov td.c1 { color: var(--muted); }
.t.edit td { padding: 5px 6px; }
.t.edit .input { width: 100%; box-sizing: border-box; min-width: 80px; }
.input.w120 { width: 120px; }
@media (max-width: 900px) {
  .ins-grid { grid-template-columns: minmax(0, 1fr); }
  .prog-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .prog-head > div:first-child { display: none; }
  .wk-c { font-size: 10.5px; }
  .top .cal-chip { flex-basis: 100%; justify-content: center; }
}

.bot-strip { display: flex; align-items: center; gap: 8px; padding: 6px 16px; font-size: 13px; background: var(--accent-soft); border-bottom: 1px solid var(--line); }
.bot-strip.held { background: var(--panel-2); }
.inbox-tabs { padding: 8px 12px; border-bottom: 1px solid var(--line-2); margin: 0; }

.modal.intro-modal { width: min(960px, 94vw); max-width: none; }
.intro-video { display: block; width: 100%; background: #000; }
/* Kabuk: pencereler (fixed) ızgarada ikinci satıra düşer; o satır yer kaplamasın, menü ekranı doldursun */
.app { grid-template-rows: minmax(0, 1fr); grid-auto-rows: 0; }
