/* Görsel dil: ılık fildişi zemin, koyu çam vurgu, başlıklarda serif,
   verilerde tabular rakam.

   Renkler istisnasız değişken üzerinden okunuyor — koyu tema yalnızca
   :root[data-theme="dark"] bloğundaki değerleri değiştiriyor, tek bir
   bileşen kuralı bile tema bloğunun içinde tanımlı değil. Bir rengin
   yalnız koyu blokta tanımlanması, açık temada okunmayan metin demek. */

:root {
  --bg:      #FAF8F5;
  --surface: #FFFFFF;
  --raised:  #FFFFFF;
  --ink:     #16181C;
  --muted:   #6B6F76;
  --soft:    #4A4E55;
  --line:    #E3DFD8;
  --rule:    #EDE8E0;
  --field:   #D9D3C9;
  --accent:  #1B5E5A;
  --on-accent: #FFFFFF;
  --tint:    #F1F5F3;
  --good:    #17694A;
  --bad:     #A8341F;
  --warn:    #8A5A12;
  --warnbg:  #FDF8EF;
  --warnln:  #E8D9BC;
  --chipbg:  #F3F0EA;
  --panel:   #16302E;      /* giriş ekranının koyu paneli */
  --panel-ink: #F2EFE9;
  --panel-dim: #BFD4D0;
  --panel-line:#7FB8AE;
  --tipbg:   #16181C;
  --tipink:  #FFFFFF;
  --tipdim:  #C8C4BC;
  --shadow:  0 6px 20px rgba(0,0,0,.22);
  /* Sadece Otel ısı haritası: rakip ucuzsa sıcak (kırmızımsı), biz ucuzsak yeşil */
  --heat-r2: #F3C9B8; --heat-r1: #FBE6DC; --heat-n: #F4F2EE;
  --heat-b1: #DCEFE3; --heat-b2: #B7DEC6;
  --heat-rt: #7A2A12; --heat-bt: #0F4E33;
  /* Rapor stop pop-up'ı */
  --stp-open: #CFE8D8; --stp-closed: #F3C9B8; --stp-unk: #EDE8E0; --stp-scrim: rgba(15,18,20,.45);
}

:root[data-theme="dark"] {
  --bg:      #0F1214;
  --surface: #171B1E;
  --raised:  #1D2226;
  --ink:     #E9ECEE;
  --muted:   #98A1A8;
  --soft:    #BCC4CA;
  --line:    #2A3135;
  --rule:    #232A2E;
  --field:   #39434A;
  --accent:  #6FBFAF;
  --on-accent: #0F1214;
  --tint:    #1B2A28;
  --good:    #5FC79A;
  --bad:     #E58B76;
  --warn:    #D9A84E;
  --warnbg:  #2A2317;
  --warnln:  #4A3D20;
  --chipbg:  #232A2E;
  --panel:   #101F1E;
  --panel-ink: #E9ECEE;
  --panel-dim: #9BB5B1;
  --panel-line:#6FBFAF;
  --tipbg:   #2A3135;
  --tipink:  #F2F4F5;
  --tipdim:  #9AA3A9;
  --shadow:  0 8px 26px rgba(0,0,0,.55);
  --heat-r2: #6B3322; --heat-r1: #4A2D24; --heat-n: #20262A;
  --heat-b1: #1F3B2D; --heat-b2: #2A5A42;
  --heat-rt: #F6C9B8; --heat-bt: #BFE9CF;
  --stp-open: #1F3B2D; --stp-closed: #6B3322; --stp-unk: #232A2E; --stp-scrim: rgba(0,0,0,.6);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-feature-settings: 'tnum' 1;
}

a { color: var(--accent); }

/* 2026-09-25: başlıklar ve büyük rakamlar da gövde yazı tipiyle (IBM Plex Sans).
   Sıkışık serif (Instrument Serif) uzun süre bakınca göz yoruyordu; yalnızca
   marka adında kaldı. */
h1, h2, h3 {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 600;
  margin: 0;
}
h1 { font-size: 22px; }
h2 { font-size: 16px; }

.num { font-family: 'IBM Plex Mono', monospace; }
.dim { color: var(--muted); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.right { text-align: right; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- üst bar --- */
header.top {
  display: flex; align-items: center; gap: 28px;
  padding: 0 40px; height: 64px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--accent); }
.brand .name {
  font-family: 'Instrument Serif', Georgia, serif; font-size: 23px;
  color: var(--ink); letter-spacing: .01em;
}
.logo { display: block; flex: none; }
nav { display: flex; gap: 4px; flex-grow: 1; }
nav a {
  font-size: 13px; color: var(--soft); text-decoration: none;
  padding: 8px 14px; border-radius: 7px;
}
nav a.on { font-weight: 600; color: var(--ink); background: var(--tint); }
.badge {
  display: inline-block; margin-left: 5px; background: var(--warn);
  color: #fff; font-size: 11px; font-weight: 600;
  border-radius: 9px; padding: 1px 7px;
}
.status { font-size: 12px; color: var(--soft); display: flex; align-items: center; gap: 8px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.pulse.busy { background: var(--warn); }

/* dil ve tema anahtarı */
.chrome { display: flex; align-items: center; gap: 6px; }
.lang { display: flex; border: 1px solid var(--field); border-radius: 7px; overflow: hidden; }
.lang a {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 9px; text-decoration: none; color: var(--muted); background: var(--surface);
}
.lang a.on { background: var(--accent); color: var(--on-accent); }
.themebtn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 28px; padding: 0; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--field); color: var(--soft);
  cursor: pointer;
}
.themebtn:hover { color: var(--ink); }
.bellbtn { position: relative; text-decoration: none; }
.bellbtn .dot {
  position: absolute; top: -5px; right: -6px; min-width: 15px; height: 15px;
  padding: 0 3px; border-radius: 8px; background: var(--warn); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 15px; text-align: center;
}

/* ayarlar açılır menüsü — hover/focus ile açılıyor */
.navdrop { position: relative; }
.navdrop > a { display: inline-flex; align-items: center; }
.navdrop-menu {
  display: none; flex-direction: column; gap: 2px;
  position: absolute; top: 100%; left: 0; margin-top: 2px; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  box-shadow: var(--shadow); padding: 6px; min-width: 175px;
}
.navdrop:hover .navdrop-menu, .navdrop:focus-within .navdrop-menu { display: flex; }
/* v1.0.4 (kullanıcı geri bildirimi 3 Kasım 2026: "alt menülere geçerken alan denk gelmiyor, geçiş sağlayamıyorum"): başlık ile menü
   arasındaki boşluk ve alt grup → açılır panel geçişi görünmez köprüyle kapatılır; ux.js menüyü fare ayrıldıktan sonra kısa süre açık tutar
   (.open). Görünüm aynı. */
.navdrop.open .navdrop-menu { display: flex; }
.navdrop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }

.navdrop-menu a {
  font-size: 13px; color: var(--soft); text-decoration: none;
  padding: 8px 12px; border-radius: 6px; white-space: nowrap;
}
.navdrop-menu a:hover { background: var(--tint); color: var(--ink); }
.navdrop-menu a.on { font-weight: 600; color: var(--ink); background: var(--tint); }

/* --- yerleşim --- */
main { padding: 26px 40px 40px; display: flex; flex-direction: column; gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 18px 20px;
}
.card.flag { border-color: var(--warnln); box-shadow: 0 0 0 3px var(--warnbg); }
.kpis {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.kpi-label {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.kpi-value {
  font-family: 'IBM Plex Sans', system-ui, sans-serif; font-weight: 600;
  font-size: 28px; line-height: 1.15; margin-top: 7px;
}
.kpi-note { font-size: 12px; color: var(--soft); margin-top: 4px; }
.row { display: flex; gap: 20px; align-items: flex-start; }
.grow { flex-grow: 1; min-width: 0; }
.sub { font-size: 12px; color: var(--muted); }
.head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* --- form --- */
.filters {
  display: flex; align-items: flex-end; gap: 16px;
  padding: 20px 40px; background: var(--surface);
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.field { display: flex; flex-direction: column; gap: 6px; }
label.f {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
select, input[type=text], input[type=email], input[type=password],
input[type=date], input[type=number] {
  font: inherit; font-size: 14px; padding: 9px 11px; color: var(--ink);
  border: 1px solid var(--field); border-radius: 7px; background: var(--raised);
}
select[multiple] { padding: 4px; }
input::placeholder { color: var(--muted); }
button, .btn {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--on-accent); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 7px; padding: 10px 20px;
  text-decoration: none; display: inline-block;
}
button.ghost, .btn.ghost {
  color: var(--soft); background: var(--surface); border-color: var(--field);
  font-weight: 500;
}
button:disabled { opacity: .5; cursor: not-allowed; }
/* kaydedilmemiş satır: düğme dolu renge geçiyor ki gözden kaçmasın */
button.dirty { box-shadow: 0 0 0 3px var(--accent-weak, rgba(0,0,0,.08)); }

/* seçenek düğmeleri (rakip sayısı gibi) */
.seg { display: flex; border: 1px solid var(--field); border-radius: 7px; overflow: hidden; }
.seg a {
  font-size: 13px; padding: 9px 13px; text-decoration: none;
  color: var(--soft); background: var(--raised);
  border-right: 1px solid var(--field);
}
.seg a:last-child { border-right: 0; }
.seg a.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
/* v0.9.4: düğmeli segment (grafik görünümü Çizgiler / Aralık) .seg a ile aynı görünsün; genel `button` dolgusu ikisini de seçili gösteriyordu */
.seg button { font-size: 12.5px; padding: 6px 12px; border: 0; border-radius: 0; border-right: 1px solid var(--field);
  color: var(--soft); background: var(--raised); font-weight: 400; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button.on, .seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* Filtre seçenekleri (radyo): seçim ANINDA sonuç değiştirmez, "Analiz et"e
   basılınca forma yazılır. Görünüm .seg a ile aynı. */
.seg label { position: relative; display: block; cursor: pointer; border-right: 1px solid var(--field); }
.seg label:last-child { border-right: 0; }
.seg label input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span {
  display: block; font-size: 13px; padding: 9px 13px;
  color: var(--soft); background: var(--raised);
}
.seg label input:checked + span { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.seg label input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

/* tema düğmesi: güneş/ay tema özniteliğine göre CSS ile seçilir (yenileme yok) */
button.themebtn { cursor: pointer; font: inherit; }
.themebtn .ic-sun { display: none; }
html[data-theme="dark"] .themebtn .ic-sun { display: inline; }
html[data-theme="dark"] .themebtn .ic-moon { display: none; }

/* v0.5.4 Travel On ortak dil: küçük satır düğmesi, katlanır bölüm kartı (Fırsatlar) */
.btn.sm { padding: 3px 10px; font-size: 12px; }
a.an-chip { text-decoration: none; display: inline-block; }
.an-tbl td a { color: inherit; text-decoration: none; } .an-tbl td a:hover { text-decoration: underline; }
details.to-sec { margin: 12px 0 0; }
details.to-sec > summary { list-style: none; cursor: pointer; align-items: center; gap: 10px; }
details.to-sec > summary::-webkit-details-marker { display: none; }
details.to-sec:not([open]) > summary { margin-bottom: 0 !important; }
details.to-sec[open] > summary .car { transform: rotate(180deg); display: inline-block; }

/* v0.5.4 Tedarikçi kıyası: hücrede kişi başı / toplam (fiyat-haritasi.js tutar seçici) */
table.fh-amt .v-tot { display: none; }
table.fh-amt.show-tot .v-tot { display: inline; }
table.fh-amt.show-tot .v-pp { display: none; }

/* v0.5.3 ortak şerit (_filtre.html): onay kutusu alanı ve "Daha fazla filtre" ikinci satırı */
.filters .fchk { display: flex; align-items: center; gap: 8px; font-size: 13px; padding-bottom: 10px; }
.filters .fchk input { width: 16px; height: 16px; accent-color: var(--accent); }
.filters .fmore-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.filters .fmore-row[hidden] { display: none; }
.filters .fmore-btn .car { display: inline-block; transition: transform .15s; }
.filters .fmore-btn[aria-expanded="true"] .car { transform: rotate(180deg); }
@media (max-width: 720px) { .filters .fmore-row { flex-basis: auto; flex-direction: column; align-items: stretch; gap: 14px; } }

/* --- katlanabilir filtre çubuğu --- */
.filterwrap { background: var(--surface); border-bottom: 1px solid var(--line); }
.filterwrap .filters { border-bottom: 0; }
.filterwrap[data-open=""] #filterbody { display: none; }
.filtertoggle {
  display: flex; align-items: center; gap: 7px;
  margin: 0; padding: 7px 40px; width: 100%;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--raised); border: 0; border-radius: 0;
  border-bottom: 1px solid var(--rule); cursor: pointer; text-align: left;
}
.filtertoggle:hover { color: var(--ink); }
.filtertoggle svg { transition: transform .15s; }
.filterwrap[data-open=""] .filtertoggle svg { transform: rotate(-90deg); }

/* --- tablo --- */
table { border-collapse: collapse; width: 100%; }
th {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted); text-align: right;
  padding: 0 10px 8px; border-bottom: 1px solid var(--field); white-space: nowrap;
}
th.l, td.l { text-align: left; }
td {
  font-size: 13px; padding: 9px 10px; text-align: right;
  border-bottom: 1px solid var(--rule); white-space: nowrap;
}
tr.base td { background: var(--tint); }
tr.flagrow td { background: var(--warnbg); }
.tag {
  font-size: 11px; font-weight: 500; border-radius: 5px;
  padding: 2px 8px; white-space: nowrap;
}
.head .tag { white-space: normal; }   /* başlıktaki uyarı etiketleri uzun cümle: dar ekranda taşmasın */
.tag.base { background: var(--accent); color: var(--on-accent); }
.tag.soft { background: var(--tint); color: var(--accent); }
.tag.warn { background: var(--warnbg); color: var(--warn); }
.tag.bad { background: var(--warnbg); color: var(--bad); }
.raw {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  background: var(--chipbg); border-radius: 5px; padding: 2px 7px;
}
.raw-en { display: block; font-family: inherit; font-size: 11.5px; color: var(--accent); margin-top: 2px; }
.bar { height: 8px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 8px; border-radius: 4px; background: var(--bad); }
.bar > i.ok { background: var(--good); }
details summary { cursor: pointer; font-size: 12px; color: var(--accent); }
.empty { padding: 60px 40px; text-align: center; color: var(--muted); }
.log {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  background: var(--chipbg); border-radius: 7px; padding: 10px 12px;
  white-space: pre-wrap; max-height: 160px; overflow: auto;
}

/* --- analiz tablosu ---
   Tablo pencerenin altına kadar iniyor ve kendi içinde kayıyor; başlık ve
   otel sütunu sabit kalıyor. Kart yüksekliği içeriğe bırakılırsa uzun otel
   listesinde sayfa kayıyor ve hafta başlıkları görüş alanından çıkıyor. */
.tablewrap {
  overflow: auto;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface);
}

/* Analiz ekranı pencereyi dolduruyor: tablo kutusu kalan yüksekliğin
   tamamını alıyor ve kaydırma sayfada değil kutunun içinde oluyor. Sabit
   bir max-height, filtre çubuğu üç satıra taştığında tabloyu ekranın
   altından taşırıyordu. */
body.fullheight { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
body.fullheight header.top, body.fullheight .filterwrap { flex: none; }
body.fullheight main {
  flex: 1 1 auto; min-height: 0; gap: 12px; padding-bottom: 16px;
}
body.fullheight .tablewrap { flex: 1 1 auto; min-height: 140px; }
body.fullheight main > .sub, body.fullheight main > .head { flex: none; }
table.analiz { border-collapse: separate; border-spacing: 0; }
table.analiz th, table.analiz td { border-bottom: 1px solid var(--rule); }
table.analiz td { padding: 7px 8px; }
table.analiz thead th {
  position: sticky; z-index: 3; background: var(--surface);
  padding: 8px 8px; border-bottom: 1px solid var(--field);
}
table.analiz thead tr:first-child th { top: 0; color: var(--ink); }
table.analiz thead tr:nth-child(2) th { top: 33px; }
table.analiz th.hotelcol, table.analiz td.hotelcol {
  position: sticky; left: 0; z-index: 2; background: var(--surface);
  border-right: 1px solid var(--line);
}
table.analiz thead th.hotelcol { z-index: 5; }
table.analiz tbody tr:hover td { background: var(--raised); }
table.analiz th.grp, table.analiz td.grp { border-left: 2px solid var(--field); }
table.analiz td.basecol, table.analiz th.basecol { background: var(--tint); }
/* Taranmamış hafta: sütun duruyor ama başlık söner — aralıkta olduğu
   görünsün, dolu haftalarla karışmasın. */
table.analiz thead th.emptywk { color: var(--muted); font-weight: 400; }

/* Hücre ipucu: overflow'lu kutunun içinde absolute konumlandırma kırpılıyor,
   bu yüzden gövdeye taşınıp fixed konumlanıyor. */
.cell { position: relative; cursor: default; }
.cell.win { color: var(--good); font-weight: 600; }
#tip {
  position: fixed; z-index: 999; width: 250px; text-align: left;
  white-space: normal; background: var(--tipbg); color: var(--tipink);
  border-radius: 9px; padding: 11px 13px; font-size: 12px; line-height: 1.55;
  font-family: 'IBM Plex Sans', system-ui, sans-serif; font-weight: 400;
  box-shadow: var(--shadow); pointer-events: none;
}
#tip[hidden] { display: none; }
#tip b { display: block; font-size: 14px; margin-bottom: 6px; }
#tip i { display: block; color: var(--tipdim); font-style: normal; margin-top: 5px; }
#tip em { font-style: normal; }
#tip em.warn { color: var(--warn); }

/* --- giriş / üyelik ---
   Giriş ekranı temadan bağımsız olarak hep açık: sayfa <html data-theme=
   "light"> ile geliyor.
   Sol panel koyu yeşil: harita animasyonu orada oynar (yazı/logo yok, Navi okları
   animasyonda oluşur). Sağ taraf düz krem; form beyaz bir kartta. */
.authwrap { display: flex; min-height: 100vh; }
.authpanel {
  width: 460px; flex-shrink: 0; position: relative;
  background: var(--panel); color: var(--panel-ink);
  padding: 44px 30px 40px; display: flex; flex-direction: column;
}
.authmapbox { flex-grow: 1; display: flex; align-items: center; justify-content: center; }
.authpanel .worldmap {
  width: 100%; height: auto; max-height: 100%;
  --wm-land: #BFD4D0; --wm-grid: #7FB8AE; --wm-trail: #7FB8AE; --wm-arrow: #F2EFE9;
}
.authpanel .brand { color: var(--panel-line); }
.authpanel .brand .name { color: var(--panel-ink); font-size: 25px; }
.authpanel h1 { color: var(--panel-ink); font-size: 38px; line-height: 1.22; }
.authpanel .lang { border-color: rgba(255, 255, 255, .22); }
.authpanel .lang a { background: rgba(255, 255, 255, .07); color: var(--panel-dim); }
.authpanel .lang a.on { background: var(--panel-line); color: var(--panel); }

.authform {
  flex-grow: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 40px; background: var(--bg);
}
.authform > div {
  position: relative; z-index: 1;
  width: 400px; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 34px 32px;
  box-shadow: 0 20px 55px -30px rgba(22, 48, 46, .45);
}
.autherr {
  background: var(--warnbg); border: 1px solid var(--warnln); color: var(--bad);
  border-radius: 8px; padding: 11px 13px; font-size: 13px; margin: 0 0 16px;
}
.authnote {
  margin: 22px 0 0; font-size: 12px; color: var(--muted);
  background: var(--chipbg); border-radius: 8px; padding: 11px 13px; line-height: 1.6;
}
.authswap { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* Harita canlandırması _authmap.html içinde (JS ile, tek seferlik ~9 sn). */

/* --- arama yapılabilir açılır liste ---
   Yerli <select multiple> bir açılır liste değil, yer kaplayan bir kutu; 162
   otel arasından klavyeyle arama da yapılamıyor. Bileşen yerli select'in
   ÜSTÜNE kuruluyor: select DOM'da kalıyor, seçimler ona yazılıyor, form
   gönderimi değişmiyor. JS çalışmazsa yerli liste görünür kalıyor. */
.ms { position: relative; }
.ms-native { display: none; }
/* multiselect.js "defer" ile geç yükleniyor; o ana kadar ham <select multiple>
   tarayıcı varsayılanıyla açık bir kutu gibi görünüyordu (kısa bir "açık
   dropdown" yanılsaması). JS kesin çalışacaksa (html.js) baştan gizle — JS
   hiç çalışmazsa bu sınıf hiç eklenmez, yerli liste kullanılabilir kalır. */
html.js select[data-ms] { display: none; }
.ms-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  font: inherit; font-size: 14px; font-weight: 400; text-align: left;
  padding: 9px 11px; color: var(--ink); background: var(--raised);
  border: 1px solid var(--field); border-radius: 7px; cursor: pointer;
}
.ms-toggle .ms-text {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ms-toggle .ms-count {
  flex: none; font-size: 11px; font-weight: 600; border-radius: 99px;
  padding: 1px 7px; background: var(--accent); color: var(--on-accent);
}
.ms-toggle svg { flex: none; color: var(--muted); transition: transform .15s; }
.ms[data-open="1"] .ms-toggle svg { transform: rotate(180deg); }
.ms[data-open="1"] .ms-toggle { border-color: var(--accent); }

.ms-panel {
  position: absolute; z-index: 60; top: calc(100% + 5px); left: 0;
  min-width: 100%; width: max-content; max-width: 380px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; box-shadow: var(--shadow); overflow: hidden;
}
.ms-panel[hidden] { display: none; }
.ms-search {
  display: block; width: 100%; font: inherit; font-size: 13px;
  padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line);
  background: var(--surface); color: var(--ink); border-radius: 0;
}
.ms-search:focus { outline: none; border-bottom-color: var(--accent); }
.ms-tools {
  display: flex; gap: 12px; padding: 7px 12px;
  border-bottom: 1px solid var(--rule); background: var(--raised);
}
.ms-tools button {
  font: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .03em;
  padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer;
}
.ms-list { list-style: none; margin: 0; padding: 4px; max-height: 260px; overflow-y: auto; }
.ms-list li {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: 6px; font-size: 13px; cursor: pointer;
  white-space: nowrap;
}
.ms-list li[hidden] { display: none; }
.ms-list li.active { background: var(--tint); }
.ms-list li[aria-selected="true"] { font-weight: 600; }
.ms-box {
  flex: none; width: 15px; height: 15px; border-radius: 4px;
  border: 1.5px solid var(--field); background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--on-accent);
}
.ms-list li[aria-selected="true"] .ms-box {
  background: var(--accent); border-color: var(--accent);
}
.ms-box svg { display: none; }
.ms-list li[aria-selected="true"] .ms-box svg { display: block; }
.ms-empty { padding: 14px 12px; font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .authwrap { flex-direction: column; }
  .authpanel { width: 100%; padding: 24px 16px; }
  .authform { padding: 32px 16px; min-height: 60vh; }
  header.top { padding: 0 16px; gap: 16px; flex-wrap: wrap; height: auto; padding-block: 10px; }
  main, .filters { padding-left: 16px; padding-right: 16px; }
  .filtertoggle { padding-left: 16px; padding-right: 16px; }
  .tablewrap { max-height: calc(100vh - 320px); }
}

/* düşük güvenli uçuş tahmininden türetilmiş hücre: kesin fiyat gibi görünmesin */
.cell.lowconf { font-style: italic; opacity: .75; text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }

/* --- onay kuyruğu: oteller altında gruplu oda kararları ---
   Mockup: docs/mockup/oda-eslestirme-mockup.html. Sınıf adı `qgrp`: `grp` Analiz tablosunun hücre sınıfı
   (th.grp / td.grp), çakışınca tablo bozuluyordu. `overflow: clip` (hidden değil):
   toplu onay çubuğunun sticky kalabilmesi için kaydırma kapsayıcısı oluşturmamalı. */
.dbar { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.dbar select { min-width: min(100%, 340px); }
.dcard-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dcard-pick { display: flex; align-items: center; gap: 10px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.dcard-sel { min-width: min(100%, 380px); }
.dcard-acts { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.same { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--soft); cursor: pointer; }
.qgrp {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 11px; overflow: clip;
  background: var(--surface);
}
.qgrp-h {
  display: flex; align-items: baseline; gap: 8px 14px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--tint);
}
.qgrp-h h2 { margin: 0; font-size: 16px; }
.qgrp-n { margin-left: auto; font-size: 12px; color: var(--muted); }
.qgrp > .card { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.qgrp-more { padding: 10px 20px; border-top: 1px solid var(--line); }
.bulk {
  position: sticky; bottom: 0; display: flex; gap: 10px 12px; align-items: center; flex-wrap: wrap;
  padding: 10px 20px; background: var(--surface); border-top: 2px solid var(--accent);
}
.bulk[hidden] { display: none; }
.bulk select { min-width: min(100%, 300px); }

/* --- Sadece Otel raporu (docs/SADECE-OTEL-TASARIM.md, taslak: docs/mockup/sadece-otel-mockup.html) ---
   Tablo gövdesi Analiz'in `table.analiz` iskeletini kullanıyor; burada yalnız ısı rengi ve
   hücre/satır ayrıntıları var. */
table.ho td.v { text-align: center; padding: 6px 8px; font-variant-numeric: tabular-nums; min-width: 52px; }
table.ho td.v.nodata { color: var(--muted); opacity: .6; }
.ho-r2 { background: var(--heat-r2); color: var(--heat-rt); }
.ho-r1 { background: var(--heat-r1); color: var(--heat-rt); }
.ho-n  { background: var(--heat-n);  color: var(--muted); }
.ho-b1 { background: var(--heat-b1); color: var(--heat-bt); }
.ho-b2 { background: var(--heat-b2); color: var(--heat-bt); }
table.ho td.hotelcol a { color: inherit; text-decoration: none; }
table.ho td.hotelcol a:hover { color: var(--accent); text-decoration: underline; }
table.ho tr.sel td.hotelcol { background: var(--tint); color: var(--accent); font-weight: 600; }
table.ho tbody tr:hover td.hotelcol { background: var(--tint); }
.hokpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.hokpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.hokpi .kl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hokpi .kv { font-size: 21px; font-weight: 600; margin: 2px 0 1px; font-variant-numeric: tabular-nums; }
.hokpi .kn { font-size: 11.5px; color: var(--muted); }
.holegend { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--soft); margin: 8px 0 0; }
.holegend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; border: 1px solid var(--rule); }
/* v0.9.4: Sadece Otel günlük ayrıntı — grafik (tam genişlik) → stop takvimi → tablo (docs/SADECE-OTEL-GRAFIK-TASARIM.md) */
.hodetail { margin-top: 14px; min-width: 0; }
.hosec { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 14px; }
.hochart { margin-top: 6px; min-width: 0; }
.hoctrl { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 6px; }
.hoeyebrow { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.hoctrl select { padding: 6px 10px; font-size: 13px; line-height: 1.35; max-width: 100%; min-width: 0; }   /* v0.9.5: 32px sabit yükseklik yazının altını kesiyordu */
.hochart svg text { fill: var(--muted); font-size: 11px; }
.ho-chip { display: inline-flex; align-items: center; gap: 6px; }
.ho-chip i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; }
.ho-chip[aria-pressed="false"] { opacity: .5; }
.ho-chip[aria-pressed="false"] i { background: var(--muted) !important; }
.hodetail tr.ho-hl td { background: var(--warnbg, #FDF8EF); }
@media (max-width: 720px) { .hoctrl select { flex: 1 1 100%; } }
.hodetail table { border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hodetail th, .hodetail td { padding: 4px 7px; border-bottom: 1px solid var(--rule); white-space: nowrap; text-align: right; }
.hodetail th { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hodetail th.l, .hodetail td.l { text-align: left; }
.hodetail svg text { fill: var(--muted); font-size: 10.5px; }

/* --- Rapor: stop pop-up'ları (docs/STOP-TABLOSU-TASARIM.md, taslak: docs/mockup/stop-tablosu-mockup.html) --- */
button.stp-lnk { all: unset; cursor: pointer; color: var(--accent); text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 3px; }
button.stp-lnk:focus-visible, button.stp-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.stp-dot { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; text-align: center; margin-left: 6px; }
.stp-dot.c { background: var(--stp-closed); color: var(--bad); }
.stp-dot.o { background: var(--stp-open); color: var(--good); }
.stp-scrim { position: fixed; inset: 0; background: var(--stp-scrim); display: none; align-items: flex-start;
  justify-content: center; padding: 6vh 16px; overflow: auto; z-index: 60; }
.stp-scrim.on { display: flex; }
.stp-modal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; max-width: 900px;
  width: 100%; padding: 18px 20px; box-shadow: var(--shadow); }
.stp-mh { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; }
.stp-mh .grow { flex: 1; min-width: 0; }
.stp-mh h2 { margin: 0; font-size: 17px; }
button.stp-x { all: unset; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; padding: 2px 8px; }
.stp-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 12px; align-items: center; }
.stp-tag { font-size: 12px; padding: 2px 9px; border-radius: 9px; }
.stp-tag.o { background: var(--stp-open); color: var(--good); }
.stp-tag.c { background: var(--stp-closed); color: var(--bad); }
.stp-tag.u { background: var(--stp-unk); color: var(--muted); }
.stp-grid { display: grid; gap: 3px; align-items: center; font-size: 11.5px; font-variant-numeric: tabular-nums; min-width: max-content; }
.stp-grid .opn { padding-right: 10px; white-space: nowrap; font-size: 12.5px; }
.stp-grid .opn.stale { color: var(--muted); }
.stp-grid .dh { color: var(--muted); text-align: center; font-size: 10.5px; }
.stp-grid .cell { height: 22px; border-radius: 4px; }
.stp-grid .cell.o { background: var(--stp-open); } .stp-grid .cell.c { background: var(--stp-closed); }
.stp-grid .cell.u { background: var(--stp-unk); }
.stp-legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 12px; color: var(--soft); margin: 10px 0 0; }
.stp-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.stp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 700px) { .stp-two { grid-template-columns: 1fr; } }
.stp-two h3 { margin: 0 0 6px; font-size: 14px; }
.stp-rl { list-style: none; margin: 0; padding: 0; }
.stp-rl li { padding: 7px 0; border-bottom: 1px solid var(--rule); }
.stp-rl .n { font-weight: 600; font-variant-numeric: tabular-nums; }
.stp-rl .n.bad { color: var(--bad); } .stp-rl .n.good { color: var(--good); }
.stp-rl .d { color: var(--muted); font-size: 12px; }
.stp-foot { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-top: 10px; }

/* --- oda öğrenmesi: kuyruk kartı önerisi ve Öğrenme sekmesi (docs/ODA-OGRENEN-ESLESTIRME-TASARIM.md) --- */
.learnhint {
  display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap;
  background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px;
}
.lsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 14px 0 24px; }
.lsum > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.lsum b { display: block; font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.lsum span { font-size: 12px; color: var(--muted); }
.lsec { margin: 0 0 28px; }
.lsec > h2 { margin: 0 0 4px; font-size: 16px; }
.lsec > .sub { display: block; margin-bottom: 10px; max-width: 72ch; }
.lwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.lwrap table { min-width: 640px; }
.lwrap td, .lwrap th { text-align: left; vertical-align: top; }
.lwrap td.n, .lwrap th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lwrap code, .lsec code { font: 12.5px ui-monospace, Consolas, monospace; background: var(--chip, var(--tint)); padding: 1px 6px; border-radius: 5px; }
.lwrap form { display: inline; }
.lauto { display: flex; gap: 8px 22px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; }
.lauto label { display: flex; gap: 6px; align-items: center; cursor: pointer; font-size: 13px; }

/* --- mobil (≤ 720 px) ---
   Tasarım: docs/MOBIL-TASARIM.md · mockup: docs/mockup/mobil-mockup.html. Masaüstü görünümü değişmez: yeni bileşenler
   varsayılan olarak gizli, yalnız bu genişlikte açılıyor. */
.mtabs, .msheet, .mdim, .fdim, .fchips { display: none; }
.mdim[hidden], .fdim[hidden], .msheet[hidden] { display: none !important; }

@media (max-width: 720px) {
  html { -webkit-text-size-adjust: 100%; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  html.fsheet-open, html.fsheet-open body { overflow: hidden; }
  /* açılır liste paneli alan genişliğinde: max-content (≤380 px) telefonda taşıp filtre sayfasını yana kaydırıyordu */
  .ms-panel { width: 100%; min-width: 0; max-width: 100%; }
  .ms-list li { white-space: normal; }

  /* üst çubuk: yalnız logo; menü, dil/tema ve durum "Daha fazla" sayfasına taşındı */
  header.top {
    position: sticky; top: 0; z-index: 40; height: 52px; padding: 0 14px;
    padding-top: env(safe-area-inset-top, 0px); gap: 10px; flex-wrap: nowrap;
  }
  header.top nav, header.top .chrome, header.top .status { display: none; }
  .brand .name { font-size: 22px; }
  main { padding: 14px 14px 24px; gap: 14px; }
  .card { padding: 14px; }
  .kpis { gap: 10px; grid-template-columns: 1fr 1fr; }
  .kpi-value { font-size: 22px; }
  .row { flex-wrap: wrap; gap: 12px; }

  /* alt gezinme çubuğu (mobil v2: Material 3 navigation bar — etkin sekmede ikon arkasında hap; Ionic tab-bar ölçüleri) */
  .mtabs {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .mtabs a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; min-width: 0; padding: 0 2px; font-size: 11px; line-height: 1.15; color: var(--muted);
    text-decoration: none; text-align: center;
  }
  .mtabs .ind { position: relative; width: 52px; height: 30px; border-radius: 15px; display: grid; place-items: center; }
  .mtabs svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
  .mtabs a.on { color: var(--ink); font-weight: 600; }
  .mtabs a.on .ind { background: var(--tint); color: var(--accent); }
  .mbadge { position: absolute; top: 0; right: 4px; min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
    background: var(--bad); color: #fff; font: 600 10px/16px 'IBM Plex Sans', system-ui, sans-serif; text-align: center; }
  .mbadge[hidden] { display: none; }

  /* "Daha fazla" sayfası */
  .mdim, .fdim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .38); z-index: 50; }
  .fdim { z-index: 58; }                                     /* açık filtre sayfasının (60) altında, alt çubuğun (45) üstünde */
  .msheet {
    display: block; position: fixed; left: 0; right: 0; z-index: 55;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .22); padding: 10px 14px 16px;
  }
  .mgrab { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
  .mcard {
    display: flex; align-items: center; gap: 10px; background: var(--bg);
    border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
  }
  .mcard .minfo { min-width: 0; flex: 1; overflow-wrap: anywhere; }
  .mcard.mrow { justify-content: space-between; padding: 8px 12px; }
  .mcard .chrome { gap: 8px; }
  .mcard .lang a { min-height: 0; padding: 6px 10px; }
  .mcard .themebtn { width: 34px; height: 30px; }
  .mlogout {
    display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 4px;
    border: 1px solid var(--line); border-radius: 12px; color: var(--bad); text-decoration: none; font-size: 14px;
  }

  /* filtreler: üstte tek satır özet, dokununca alttan açılan sayfa */
  .filterwrap { position: sticky; top: 52px; z-index: 35; }
  /* Açıkken sticky kalkar: sticky bir üst öğenin içindeki fixed sayfa hem perdenin altında kalıyor hem de bazı
     tarayıcılarda boyanmıyordu. Sticky yer kapladığı için konum değişimi sayfayı kaydırmaz. */
  .filterwrap[data-open="1"] { position: static; }
  .filtertoggle {
    width: 100%; min-height: 46px; padding: 8px 14px; display: flex; align-items: center; gap: 8px;
    text-align: left; font-size: 13px;
  }
  .fchips { display: block; flex: 1; min-width: 0; color: var(--ink); font-weight: 400; overflow: hidden;
            text-overflow: ellipsis; white-space: nowrap; }
  .filterwrap[data-open="1"] #filterbody {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 88vh; overflow: auto;
    background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 28px rgba(0, 0, 0, .28);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .filterwrap .filters { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px 20px; }
  .filterwrap .field { width: 100% !important; }             /* satır içi genişlikleri (190/340 px) ez */
  .filterwrap .field select, .filterwrap .field input[type=text], .filterwrap .field input[type=date],
  .filterwrap .field input[type=number] { width: 100%; }
  select, input[type=text], input[type=email], input[type=password], input[type=date], input[type=number] {
    font-size: 16px; min-height: 44px;                      /* iOS yakınlaştırmasın, parmakla rahat */
  }
  button, .btn { min-height: 44px; }
}

/* Kıyas: tablo → kartlar (docs/MOBIL-TASARIM.md §4.3). Aynı HTML; hücre sınıfları ve data-label ile.
   Kart ızgarası (2 sütun): oda adı / pansiyon | durum / Melino | en ucuz rakip / PP | PP / fark | sıra / kim / tüm rakipler. */
@media (max-width: 720px) {
  main .card { overflow-x: auto; }                       /* geniş tablolar sayfayı genişletmesin (tarayıcı küçültüyor) */
  table.kcmp, .kcmp tbody { display: block; width: 100%; }
  .kcmp thead { display: none; }
  .kcmp tr {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6px 14px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; margin-bottom: 10px;
  }
  .kcmp tr.flagrow { border-color: var(--warnln); background: var(--warnbg); }
  .kcmp td { display: block; border: 0; padding: 0; background: none !important; text-align: left; white-space: normal; min-width: 0; }
  .kcmp .kroom { grid-column: 1 / -1; order: 1; font-weight: 600; overflow-wrap: anywhere; }
  .kcmp .kboard { order: 2; justify-self: start; font-size: 11px; padding: 1px 8px; border-radius: 9px; background: var(--tint); color: var(--soft); }
  .kcmp .kstate { order: 3; justify-self: start; }
  .kcmp .kmine { order: 4; }
  .kcmp .kcheap { order: 5; }
  .kcmp .kmine, .kcmp .kcheap { font-size: 21px; font-weight: 600; margin-top: 4px; }
  .kcmp .kminepp { order: 6; font-size: 12px; margin-top: -4px; }
  .kcmp .kcheappp { order: 7; font-size: 12px; margin-top: -4px; }
  .kcmp .kmine::before, .kcmp .kcheap::before {
    content: attr(data-label); display: block; font: 600 10.5px/1.4 'IBM Plex Sans', system-ui, sans-serif;
    letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px;
  }
  .kcmp .kminepp::before, .kcmp .kcheappp::before { content: attr(data-label); margin-right: 6px; font-size: 10.5px; color: var(--muted); }
  .kcmp .kgap { order: 8; justify-self: start; font-weight: 600; font-size: 13px; padding: 2px 10px; border-radius: 10px; background: var(--tint) !important; }
  .kcmp .krank { order: 9; justify-self: end; font-size: 13px; }
  .kcmp .krank::before { content: attr(data-label) " "; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .kcmp .kwho { order: 10; grid-column: 1 / -1; font-size: 13px; }
  .kcmp .kwho::before { content: attr(data-label) ": "; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
  .kcmp .kall { order: 11; grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 2px; }
  .kcmp .kall summary { min-height: 40px; display: flex; align-items: center; }
}

/* Analiz: mobil özet liste + tablo görünümü anahtarı (masaüstünde gizli) */
.aseg, .asum { display: none; }
@media (max-width: 720px) {
  .aseg { display: flex; gap: 6px; margin-bottom: 10px; }
  .aseg button { flex: 1; min-height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--soft); border-radius: 10px; font-size: 13px; }
  .aseg button.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
  #aviews[data-view="sum"] .asum { display: block; }
  #aviews[data-view="sum"] .tablewrap { display: none; }
  #aviews[data-view="tab"] .tablewrap { display: block; max-height: none; }
  .arow { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
  .arow summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 56px; cursor: pointer; }
  .arow summary::-webkit-details-marker { display: none; }
  .arow .an { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
  .arow .gap, .aline .gap { font-weight: 600; font-size: 13px; padding: 2px 10px; border-radius: 10px; background: var(--tint); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .arow .gap.bad, .aline .gap.bad { color: var(--bad); }
  .arow .gap.good, .aline .gap.good { color: var(--good); }
  .arow[open] summary { border-bottom: 1px solid var(--rule); }
  .aline { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr auto; align-items: center; gap: 6px; padding: 8px 12px; font-size: 13px; border-top: 1px solid var(--rule); }
  .aline:first-of-type { border-top: 0; }
  .aline .wk { color: var(--soft); }
  .aline i { font-style: normal; font-size: 11px; color: var(--muted); }
}

/* Rapor: filtre formu telefonda iki sütunlu ızgara (otel seçimi tam genişlik, Göster düğmesi altta) */
@media (max-width: 720px) {
  form.rp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
  form.rp-form select, form.rp-form input[type=date] { width: 100%; min-width: 0 !important; }
  form.rp-form select[name=otel] { grid-column: 1 / -1; }
  form.rp-form label.sub { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 4px !important; }
  form.rp-form label.sub:has(select[name=sa]) { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center !important; }
  form.rp-form button[type=submit] { grid-column: 1 / -1; min-height: 46px; }
  form.rp-form > .sub:last-child { grid-column: 1 / -1; }
  .rp-tabs { overflow-x: auto; white-space: nowrap; }
}
@media (max-width: 720px) {
  form.rp-form label.sub:has(select[name=sa]) select { width: auto; min-width: 64px !important; }
}

/* mobil v3: başlıkta Filtreler düğmesi (sağ üst), özet satırı düz çip, "Daha fazla" pop-up'ı yukarıda, Sadece Otel yalnız otel görünümü */
.hfilter { display: none; }
@media (max-width: 720px) {
  .hfilter {
    display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 36px; padding: 0 12px;
    border: 1px solid var(--field); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 13px;
  }
  .hfilter[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
  header.top .brand { margin-right: auto; }
  header.top .hfilter { margin-left: 0; }
  /* özet satırı: yapışkan düğme değil, başlığın altında düz çip satırı (dokunulabilir) */
  /* z-index de sıfırlanır: `body.fullheight` (Analiz, Sadece Otel) flex kapsayıcı; flex öğesinde z-index, static olsa bile yığın bağlamı
     açar ve içindeki filtre sayfasını perdenin (58) altına sokup dokunmaları engelliyordu. */
  .filterwrap, .filterwrap[data-open="1"] { position: static; z-index: auto; }
  .filtertoggle { min-height: 40px; padding: 6px 14px; border-bottom: 0; color: var(--soft); }
  .filtertoggle svg, .filtertoggle > span:first-of-type { display: none; }
  .fchips { font-size: 12.5px; }
  .fchips:empty { display: none; }

  /* "Daha fazla": yukarıdan açılan pop-up */
  .msheet {
    top: calc(52px + env(safe-area-inset-top, 0px)); bottom: auto; border-top: 0;
    border-radius: 0 0 18px 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); padding: 12px 14px 14px;
    max-height: calc(100vh - 52px - 62px); overflow: auto;
  }
  .mgrab { display: none; }

  /* Sadece Otel: telefonda yalnız "Otele göre" */
  .hoseg { display: none; }
  html { overscroll-behavior-y: contain; }
  body { -webkit-tap-highlight-color: transparent; }
}

/* filtre sayfası: eylem düğmesi altta yapışık (uzun formlarda kaydırmadan ulaşılır); iOS adres çubuğu için dvh */
@media (max-width: 720px) {
  .filterwrap[data-open="1"] #filterbody { max-height: 88vh; max-height: 88dvh; }
  .msheet { max-height: calc(100vh - 52px - 62px); max-height: calc(100dvh - 52px - 62px); }
  .filterwrap .filters > .field:has(> button[type=submit]) {
    position: sticky; bottom: 0; z-index: 2; margin: 6px -16px -20px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--surface); border-top: 1px solid var(--line);
  }
  .filterwrap .filters > .field:has(> button[type=submit]) > label.f { display: none; }
  .filterwrap .filters > .field > button[type=submit] { width: 100%; min-height: 48px; }
  /* v0.5.3: "Daha fazla filtre" satırı yapışık düğmenin üstünde kalsın (DOM'da düğmeden sonra) */
  .filterwrap .filters > .field:has(> button[type=submit]) { order: 2; }
  .filterwrap .filters .fmore-row { order: 1; }
}

/* sayfa geçişi ilerleme çubuğu (base.html betiği `html.navigating` ekler) */
.nbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 100; opacity: 0; pointer-events: none; }
html.navigating .nbar { opacity: 1; animation: nbar 14s cubic-bezier(.1, .6, .2, 1) forwards; }
@keyframes nbar { from { width: 0; } to { width: 92%; } }
@media (prefers-reduced-motion: reduce) { html.navigating .nbar { animation: none; width: 60%; } }

/* Kalite: sağ panel sabit genişlik, uzun notlar sarılır (yeni kuyruk kaynağı çok uzun "yanıt vermeyen operatör" listesi üretiyor) */
.side420 { flex: 0 0 420px; width: 420px; max-width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.side420 .card { overflow-x: auto; }
td.wrapcell { white-space: normal; overflow-wrap: anywhere; word-break: break-word; max-width: 0; width: 100%; line-height: 1.45; }
@media (max-width: 1100px) { .side420 { flex: 1 1 100%; width: 100%; } }

/* Analiz / Sadece Otel tablosu: otel sütunu telefonda dar ve sarılır (410 px'ti ve yapışıktı: operatör sütunları ekran dışında kalıyordu) */
@media (max-width: 720px) {
  table.analiz th.hotelcol, table.analiz td.hotelcol {
    width: 124px !important; min-width: 124px !important; max-width: 124px !important;
    white-space: normal; overflow-wrap: anywhere; line-height: 1.3; font-size: 12.5px; padding-left: 10px; padding-right: 8px;
  }
  table.analiz td, table.analiz th { font-size: 12px; }
  table.analiz th[style*="min-width:78px"], table.analiz th[style*="min-width: 78px"] { min-width: 64px !important; }
  /* sağa kaydırılabildiği belli olsun: sağ kenarda silik gölge */
  .tablewrap { position: relative; -webkit-overflow-scrolling: touch; }
}

/* Telefonda "pencereyi dolduran" düzen (body.fullheight) kapalı: sayfa normal akışta aşağı kayar.
   Aksi hâlde Analiz özet listesi ve Sadece Otel sabit yükseklikli gövdenin içinde kırpılıyordu. */
@media (max-width: 720px) {
  body.fullheight { height: auto; min-height: 100vh; overflow: visible; display: block; }
  body.fullheight main { display: flex; flex-direction: column; }
  body.fullheight .tablewrap { flex: none; min-height: 0; }
  html.fsheet-open body.fullheight { overflow: hidden; height: 100vh; }
}

/* Analiz: #aviews (mobil özet/tablo sarmalayıcısı) masaüstünde de tabloyu saran kutu; tablo kutusunun kalan yüksekliği
   doldurup kendi içinde kayması için sarmalayıcı da flex çocuğu olmalı (yoksa tablo içerik boyunda kalıp gövdede kırpılıyordu). */
body.fullheight #aviews { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
body.fullheight #aviews .tablewrap { flex: 1 1 auto; min-height: 140px; }
@media (max-width: 720px) {
  body.fullheight #aviews { flex: none; display: block; }
  body.fullheight #aviews .tablewrap { flex: none; min-height: 0; }
}

/* ------------------------------------------------------------------ Fiyat Haritası v0.2: anomali (docs/ANOMALI-STOP-HAMVERI-TASARIM.md) */
:root { --badbg: #FBE9E4; --goodbg: #E3F2EA; --band: rgba(27, 94, 90, .12); }
:root[data-theme="dark"] { --badbg: #3A211B; --goodbg: #1B2E25; --band: rgba(111, 191, 175, .16); }
.an-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0; }
.an-alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.an-cards > .card, .an-alerts > .card { min-width: 0; margin: 0; }
@media (max-width: 1000px) { .an-cards, .an-alerts { grid-template-columns: 1fr; } }
.an-donut { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.an-donut .ring { position: relative; width: 120px; height: 120px; flex: none; }
.an-donut .ring svg { display: block; }
.an-donut .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.an-donut .mid b { font-size: 24px; font-weight: 600; }
.an-legend { display: grid; gap: 3px; flex: 1; min-width: 150px; }
.an-legend button, .an-legend a { text-decoration: none; display: flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; border-radius: 6px; padding: 3px 6px; cursor: pointer; text-align: left; width: 100%; color: inherit; font: inherit; }
.an-legend button:hover, .an-legend a:hover, .an-legend button[aria-pressed="true"] { background: var(--tint); border-color: var(--field); }
.an-legend .n { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.an-legend .p { color: var(--muted); width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.an-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.an-mv { display: grid; gap: 7px; }
.an-mv .r { display: grid; grid-template-columns: 128px 1fr 78px; gap: 8px; align-items: center; font-size: 13px; }
.an-track { height: 9px; background: var(--rule); border-radius: 5px; overflow: hidden; }
.an-track i { display: block; height: 100%; border-radius: 5px; }
.an-mv .v { text-align: right; color: var(--soft); font-variant-numeric: tabular-nums; }
.an-lead { font-size: 13.5px; margin: 0 0 12px; }
.an-tools { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.an-chip { border: 1px solid var(--line); background: var(--surface); color: var(--soft); border-radius: 14px; padding: 3px 11px; font-size: 12.5px; cursor: pointer; }
.an-chip[aria-pressed="true"] { background: var(--tint); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.an-chip .c { color: var(--muted); font-weight: 400; margin-left: 3px; }
.an-thr { display: inline-flex; gap: 6px; align-items: center; padding: 3px 8px; border: 1px solid var(--warnln); background: var(--warnbg); border-radius: 8px; font-size: 12.5px; color: var(--warn); }
.an-thr select { border: 1px solid var(--field); background: var(--surface); color: var(--ink); border-radius: 6px; padding: 2px 6px; font: inherit; width: auto; }
.an-thr .seg a { padding: 2px 9px; font-size: 12px; }
.an-pill { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 9px; font-weight: 600; white-space: nowrap; }
.an-pill.bad { background: var(--badbg); color: var(--bad); }
.an-pill.warn { background: var(--warnbg); color: var(--warn); border: 1px solid var(--warnln); }
.an-pill.good { background: var(--goodbg); color: var(--good); }
.an-pill.norm { background: var(--chipbg); color: var(--soft); }
.an-pill.nobase { background: transparent; color: var(--muted); border: 1px dashed var(--line); }
.an-stop { display: inline-block; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; border-radius: 3px; padding: 0 5px; }
.an-lvl { width: 86px; }
.an-lvl .t { position: relative; height: 6px; background: linear-gradient(90deg, var(--goodbg), var(--chipbg) 50%, var(--badbg)); border: 1px solid var(--rule); border-radius: 3px; }
.an-lvl .m { position: absolute; top: -4px; width: 3px; height: 12px; border-radius: 2px; background: var(--ink); }
.an-lvl .n { font-size: 11px; font-weight: 600; }
.an-note { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.an-tbl { width: 100%; font-size: 12.5px; }
.an-tbl th, .an-tbl td { padding: 6px 8px; white-space: nowrap; }
@media (max-width: 720px) { .an-gapcol, .an-lvlcol, .an-statcol { display: none; } }

/* Fiyat Haritası v0.2: otel + durum + rakiplere göre sütunları yapışkan (yatay kaydırırken görünür kalır) */
.an-tw { overflow: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
table.analiz th.hotelcol, table.analiz td.hotelcol { width: 230px; min-width: 230px; max-width: 230px; white-space: normal; }
table.analiz th.an-statcol, table.analiz td.an-statcol {
  position: sticky; left: 230px; z-index: 2; background: var(--surface); width: 84px; min-width: 84px; max-width: 84px; text-align: center;
}
table.analiz th.an-gapcol, table.analiz td.an-gapcol {
  position: sticky; left: 314px; z-index: 2; background: var(--surface); width: 88px; min-width: 88px; max-width: 88px;
  border-right: 1px solid var(--line);
}
table.analiz thead th.an-statcol, table.analiz thead th.an-gapcol { z-index: 5; }
table.analiz th.an-lvlcol, table.analiz td.an-lvlcol {
  position: sticky; left: 402px; z-index: 2; background: var(--surface); width: 104px; min-width: 104px; max-width: 104px;
  border-right: 1px solid var(--line);
}
table.analiz thead th.an-lvlcol { z-index: 5; }
table.analiz th.an-gapcol, table.analiz td.an-gapcol { border-right: 0; }

/* ------------------------------------------------------------------ Oda Kıyası v0.2 (docs/mockup/oda-kiyasi-v2-mockup.html) */
.an-newbox { border-color: var(--warnln); background: var(--warnbg); }
.an-rtag { font-size: 10.5px; color: var(--bad); background: var(--badbg); border-radius: 8px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }
.an-gapbar { display: inline-flex; align-items: center; gap: 6px; }
.an-gapbar .ax { position: relative; width: 62px; height: 8px; background: var(--rule); border-radius: 4px; }
.an-gapbar .ax::after { content: ""; position: absolute; left: 50%; top: -2px; width: 1px; height: 12px; background: var(--field); }
.an-gapbar .ax i { position: absolute; top: 0; height: 8px; border-radius: 3px; }
.kstrip { position: relative; width: 170px; height: 20px; }
.kstrip .ln { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--rule); border-radius: 1px; display: block; }
.kstrip i.d { position: absolute; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); transform: translateX(-5px); opacity: .75; }
.kstrip i.d.ch { background: var(--warn); opacity: 1; }
.kstrip i.m { position: absolute; top: 3px; width: 13px; height: 13px; transform: translateX(-6px) rotate(45deg); background: var(--accent); border-radius: 2px; box-shadow: 0 0 0 2px var(--surface); }
.kcmp .kmob { display: none; }
.kcmp tr.krow { cursor: pointer; }
.kcmp tr.krow:hover td { background: var(--tint); }
.kcmp tr.krow.open td { background: var(--tint); }
.kcmp tr.kstoprow td.kroom { box-shadow: inset 3px 0 0 var(--bad); }
.kcmp tr.kdet > td { padding: 0; background: var(--bg); white-space: normal; }
.kdbox { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; padding: 12px 14px; }
@media (max-width: 1000px) { .kdbox { grid-template-columns: 1fr; } }
.kdbox h3 { font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.kleg { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--soft); }
.kleg i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.kev { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--soft); }
.kev li { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--rule); }
.kev li:last-child { border-bottom: 0; }
.kev .w { color: var(--muted); width: 44px; flex: none; }
.kev .r { margin-left: auto; font-variant-numeric: tabular-nums; }
.kc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 12px; }
.kc-tabs button { padding: 8px 14px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font: inherit; }
.kc-tabs button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.kdm tr.kdrow { cursor: pointer; }
.kdm tr.kdrow:hover td, .kdm tr.kdrow.open td { background: var(--tint); }
.kdm tr.kdrooms > td { padding: 8px 10px; background: var(--bg); }
.an-cell { padding: 1px 6px; border-radius: 4px; }
.an-cell.win { background: var(--heat-b1, var(--goodbg)); color: var(--heat-bt, var(--good)); font-weight: 600; }
@media (max-width: 720px) {
  .ktabs, .kstrip, .kdet, .ktab[data-tabbody="date"], .kcmp .an-gapbar .ax { display: none !important; }
  .kcmp .kmob { display: block; }
  .kcmp tr.krow { cursor: default; }
}

/* ------------------------------------------------------------------ Sadece Otel v0.2 */
.rr-col { display: none; }
.xlmenu { position: relative; display: inline-block; }
.xlmenu > summary { list-style: none; cursor: pointer; }
.xlmenu > summary::-webkit-details-marker { display: none; }
.xlmenu .xlpanel { position: absolute; right: 0; top: 100%; margin-top: 4px; z-index: 20; min-width: 300px; max-width: 360px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 8px; display: grid; gap: 4px; }
.xlmenu .xlpanel a { padding: 6px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.xlmenu .xlpanel a:hover { background: var(--tint); }
.xlmenu .xlpanel p { margin: 4px 8px 2px; font-size: 12px; }

.appver { max-width: 1280px; margin: 6px auto 14px; text-align: center; font-size: 11.5px; color: var(--muted); }
@media print { .appver { display: none; } }

.kdm tr.ksel td { background: var(--tint); font-weight: 600; }

/* Fiyat Haritası v0.2.1: eğilim grafiği ve oda detayı */
#an-trend { margin: 0 0 14px; }
.an-tchips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
/* v0.10.29 Fiyat eğilimi: açılır seçiciler (.ms görünümü) ve gösterge */
.an-tpick { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.an-tms { min-width: 220px; max-width: 420px; flex: 0 1 auto; }
.an-tms .ms-toggle { padding: 6px 10px; font-size: 13px; }
.an-tms .an-tml { flex: none; color: var(--muted); }
.an-tms .ms-panel { width: 360px; max-width: calc(100vw - 32px); }
.an-tms .ms-tools { justify-content: space-between; align-items: center; }
.an-tmeta { font-size: 11.5px; color: var(--muted); }
.an-tms .ms-list li[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.an-tms .an-tn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.an-tms .an-tk { flex: none; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.an-tsw { flex: none; width: 10px; height: 10px; border-radius: 2px; }
.an-tleg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; margin: 2px 0 4px; }
.an-tleg span { display: inline-flex; align-items: center; gap: 6px; }
.an-tleg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
#an-tview button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 640px) {
  .an-tms { min-width: 0; width: 100%; max-width: none; }
  .an-tms .ms-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 14px 14px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); }
  .an-tms .ms-list { max-height: 50vh; }
}
.an-tbox { position: relative; }
.an-tbox svg { width: 100%; height: auto; display: block; }
.an-ttip { position: absolute; pointer-events: none; background: var(--tipbg); color: var(--tipink); border-radius: 6px; padding: 6px 9px; font-size: 12px;
  box-shadow: var(--shadow); display: none; z-index: 6; white-space: nowrap; }
#an-tview button { background: var(--surface); border: 0; padding: 4px 11px; color: var(--soft); cursor: pointer; font: inherit; }
#an-tview button.on { background: var(--accent); color: var(--on-accent); }
tr.an-hrow { cursor: pointer; }
tr.an-hrow.open td { background: var(--tint); }
@media (max-width: 720px) { #an-trend { display: none; } }

#an-hotel-panel { margin: 14px 0; }
#an-hotel-panel[hidden] { display: none; }

/* ---- v0.3 Fiyat Haritası: kompakt sütunlar ---- */
.an-cbar { display: flex; gap: 8px; align-items: center; margin: 4px 0 6px; }
.seg-s { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.seg-s button { background: var(--surface); border: 0; border-right: 1px solid var(--line); padding: 3px 11px; font-size: 12.5px; color: var(--soft); cursor: pointer; border-radius: 0; }
.seg-s button:last-child { border-right: 0; }
.seg-s button[aria-pressed=true] { background: var(--accent); color: var(--on-accent); }
.an-sgap { display: none; font-size: 11.5px; font-weight: 600; margin-left: 4px; }
table.analiz.an-compact .an-gapcol, table.analiz.an-compact .an-lvlcol { display: none; }
table.analiz.an-compact .an-sgap { display: inline; }
table.analiz.an-compact th.an-statcol, table.analiz.an-compact td.an-statcol { width: 130px; min-width: 130px; max-width: 130px; border-right: 1px solid var(--line); }

/* ---- v0.3 Otomasyonlar ---- */
.au-rule { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; border-top: 1px solid var(--rule); padding: 12px 0; align-items: start; }
.au-rule:first-of-type { border-top: 0; }
.au-meta { display: flex; gap: 2px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.au-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.au-lbl { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 0 4px; }
.au-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.au-type { position: relative; display: block; cursor: pointer; }
.au-type input { position: absolute; opacity: 0; pointer-events: none; }
.au-type > span { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; background: var(--surface); }
.au-type > span small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 400; }
.au-type input:checked + span { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }
.au-type input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.au-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 6px; }
.au-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.au-chip { position: relative; cursor: pointer; }
.au-chip input { position: absolute; opacity: 0; pointer-events: none; }
.au-chip span { display: inline-block; border: 1px solid var(--line); border-radius: 14px; padding: 3px 11px; font-size: 12.5px; color: var(--soft); background: var(--surface); }
.au-chip input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.au-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.au-prev { background: var(--tint); border: 1px dashed var(--field); border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-top: 14px; min-height: 38px; }
.au-opt[hidden] { display: none; }
@media (max-width: 640px) { .au-rule { grid-template-columns: 1fr; } }

/* ---- v0.3 UX: uygulanan filtre çipleri, kayıtlı görünümler, baz yedek şeridi ---- */
.fbar2 { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 6px 40px; border-bottom: 1px solid var(--rule); font-size: 12.5px; }
.fbar2:not(:has(.fchip)):not(:has(.viewsbox)) { display: none; }
.fchiprow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fchiprow[hidden] { display: none; }
.fchip { border: 1px solid var(--line); background: var(--tint); color: var(--soft); border-radius: 14px; padding: 2px 10px; font-size: 12.5px; cursor: pointer; line-height: 1.5; }
.fchip:hover { border-color: var(--accent); color: var(--ink); }
.fchip.clear { background: none; text-decoration: underline; border-color: transparent; }
.viewsbox { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.vchip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.vchip a { padding: 2px 4px 2px 10px; color: var(--soft); text-decoration: none; }
.vchip a:hover { color: var(--ink); }
.vchip .vx { all: unset; cursor: pointer; padding: 0 8px 1px 4px; color: var(--muted); font-size: 14px; line-height: 1; }
.vchip .vx:hover { color: var(--bad); }
button.vsave { padding: 2px 10px; font-size: 12.5px; border-radius: 14px; }
.vform { display: inline-flex; gap: 6px; align-items: center; }
.vform[hidden] { display: none; }
.vform input[type=text] { width: 150px; padding: 3px 8px; font-size: 12.5px; }
.vform button { padding: 3px 10px; font-size: 12.5px; }
.banner-fb { padding: 8px 40px; background: var(--warnbg); border-bottom: 1px solid var(--warnln); font-size: 12.5px; }
@media (max-width: 720px) { .fbar2, .banner-fb { padding-left: 16px; padding-right: 16px; } .viewsbox { margin-left: 0; } }
main .fbar2 { padding: 4px 0 10px; border-bottom: 0; }

/* ---- v0.3 Kıyas: sıkı KPI şeridi, süzgeç, neden pahalıyız ---- */
.kcompact { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.kcompact > .card { padding: 8px 12px; margin: 0; }
.kcompact .kpi-value { font-size: 19px; margin-top: 2px; }
.kcompact .kpi-note { display: none; }
.kfilt { cursor: pointer; }
.kfilt:hover { border-color: var(--accent); }
.kfilt[aria-pressed=true] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--tint); }
table.kcmp.f-stop tr.krow:not(.kstoprow), table.kcmp.f-stop tr.kdet,
table.kcmp.f-best tr.krow:not([data-best="1"]), table.kcmp.f-best tr.kdet { display: none; }
.kwhy { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 1px; display: none; }
@media (max-width: 720px) { .kwhy { display: block; } }
.kflash { animation: kflash 1.4s ease; }
@keyframes kflash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: none; } }
tr[tabindex]:focus-visible, .kfilt:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.an-rlink { margin-left: 6px; color: var(--accent); text-decoration: none; font-size: 12px; }

/* ---- v0.3 Sadece Otel: satır tıklama, bizde stop takvimi ---- */
tr.holink { cursor: pointer; }
tr.holink:hover td.hotelcol { background: var(--tint); }
.scgrid { display: grid; grid-template-columns: 62px 1fr; gap: 2px 8px; align-items: center; font-size: 10.5px; }
.scm { color: var(--muted); font-variant-numeric: tabular-nums; }
.scrow { display: grid; grid-template-columns: repeat(31, minmax(9px, 1fr)); gap: 2px; }
.scrow i { font-style: normal; font-size: 8.5px; line-height: 14px; text-align: center; border-radius: 2px; background: var(--rule); color: var(--muted); }
.scrow i.out { opacity: .35; }
.scrow i.cl { background: var(--bad); color: #fff; opacity: 1; }
.scrow i.nx { background: none; }

.combo-q { width: 120px; padding: 6px 8px; font-size: 13px; }
.fchiprow.recent { margin: -6px 0 12px; }

/* ---- v0.3 Kaynaklar: bütçe / kota çubukları ---- */
.srbar { position: relative; height: 8px; border-radius: 4px; background: var(--rule); margin-top: 8px; overflow: visible; }
.srbar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.srbar > i.warn { background: var(--warn); }
.srbar > i.bad { background: var(--bad); }
.srbar > b { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink); opacity: .5; }
.srbar.sm { height: 6px; margin: 0 0 3px; }

/* ---- v0.3 Komisyon: değişen satır, tarife uyuşmazlığı ---- */
tr.dirty td { background: var(--tint); }
input.mismatch { border-color: var(--warn); box-shadow: 0 0 0 2px var(--warnbg); }

/* ---- v0.3 Kullanıcılar: ikincil eylem menüsü ---- */
details.usmore { display: inline-block; position: relative; vertical-align: middle; }
details.usmore > summary { list-style: none; cursor: pointer; padding: 5px 10px; border: 1px solid var(--field); border-radius: 7px; font-size: 14px; line-height: 1; }
details.usmore > summary::-webkit-details-marker { display: none; }
.usmenu { position: absolute; right: 0; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px; box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.18)); white-space: nowrap; }

/* ---- v0.3 giriş: parolayı göster ---- */
button.pwshow { position: absolute; right: 8px; bottom: 7px; background: none; border: 0; color: var(--accent); font-size: 12px; cursor: pointer; padding: 2px 6px; }
.authform input[type=password] { padding-right: 70px; }

/* ---- v0.3 mobil: dokunma hedefleri >= 40 px ---- */
@media (max-width: 720px) {
  button, .btn, .an-chip, .fchip, .au-chip span, .seg label span, .seg-s button, .rp-seg button { min-height: 40px; }
  .an-chip, .fchip, .au-chip span { display: inline-flex; align-items: center; }
  .vchip a { padding: 9px 4px 9px 12px; }
  .vchip .vx { padding: 9px 12px 9px 6px; }
  select, input[type=text], input[type=number], input[type=date], input[type=time], input[type=search] { min-height: 40px; }
}
/* ---- v0.3 yazdırma: gezinme ve filtre çubukları gizli ---- */
@media print {
  header.top, .filterwrap, .mtabs, .nbar, .fbar2, .banner-fb, .fdim { display: none !important; }
  body { background: #fff; }
}

/* ===== Travel On dalı (v0.4): sade, yönlendirici ekranlar — docs/TEDARIKCI-ANALIZ-TASARIM.md ===== */
:root { --s1:#1B5E5A; --s2:#C0662B; --s3:#3B6EA8; --s4:#8A5A9E; --s5:#7A7F86; --red:#D7263D; --badbg:#FBE9E4; --goodbg:#E3F2EA; --base-row:#E6EFEE; }
:root[data-theme="dark"] { --s1:#6FBFAF; --s2:#E0905A; --s3:#7FA8DC; --s4:#B993CC; --s5:#9AA3A9; --badbg:#3A211B; --goodbg:#1B2E25; --base-row:#1F3330; }
.navdrop-menu .navgrp { position: relative; }
.navdrop-menu .navgrp > a.ng-h { display: flex; justify-content: space-between; gap: 14px; }
.navdrop-menu .navfly { display: none; position: absolute; top: -6px; left: 100%; flex-direction: column; gap: 2px; min-width: 210px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); padding: 6px; }
html:not(.js) .navdrop-menu .navgrp:hover > .navfly, .navdrop-menu .navgrp:focus-within > .navfly { display: flex; }
.navdrop-menu .navgrp.open > .navfly { display: flex; }
.navdrop-menu .navgrp.open > a.ng-h { background: var(--tint); color: var(--ink); }
.navdrop-menu .navfly::before { content: ""; position: absolute; top: 0; bottom: 0; left: -14px; width: 14px; }

.to-focus { border: 1px solid var(--warnln); background: var(--warnbg); border-radius: 8px; padding: 12px 14px; }
.to-focus h2 { font-size: 15px; margin: 0 0 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.to-focus h2 small { font-weight: 400; color: var(--muted); font-size: 12px; }
.to-go { border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 6px; padding: 2px 10px; font-size: 12.5px; text-decoration: none; white-space: nowrap; }
table.to td.c, table.to th.c { text-align: right; border-left: 1px solid var(--rule); }
table.to td.win { background: var(--heat-b1); font-weight: 600; } table.to td.me { box-shadow: inset 0 0 0 1px var(--accent); } table.to td.none { color: var(--muted); }
table.to tr.hl td:first-child { box-shadow: inset 3px 0 0 var(--bad); } table.to tr.hl.g td:first-child { box-shadow: inset 3px 0 0 var(--good); }
table.to tr.base td { background: var(--base-row); }
.to-pick { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface); text-decoration: none; color: var(--ink); display: block; }
.to-pick.on { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); } .to-pick b { display: block; } .to-pick span { font-size: 12px; color: var(--muted); }
.to-empty { text-align: center; padding: 40px 20px; }

/* ===== Travel On v0.5 (tasarım v4): Hotel Assistant düzeni — başlık şeridi, filtre paneli + Çalıştır, Önce buna bakın ===== */
.navdrop-menu .navfly a .navhint { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.to-card { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; }
.to-hb { display: flex; gap: 6px 12px; align-items: center; flex-wrap: wrap; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.to-hb:last-child { border-bottom: 0; }
.to-fi { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; padding: 6px 0; border-top: 1px solid var(--warnln); align-items: center; font-size: 13px; }
.to-fi.first { border-top: 0; } .to-fi .why { grid-column: 2; color: var(--muted); font-size: 12px; }
.to-xl { font-family: Consolas, "Courier New", monospace; font-size: 11.5px; } .to-xl th { background: var(--n0, var(--chipbg)); color: var(--ink); }
.to-sheets { display: flex; gap: 2px; padding: 6px 14px 10px; flex-wrap: wrap; } .to-sheets span { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 4px 4px; padding: 2px 10px; font-size: 11.5px; color: var(--soft); }
.to-sheets span.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.to-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; padding: 12px 14px; }
.to-card [hidden] { display: none !important; }

/* ---------------------------------------------------------------- takvim seçici (v0.7.0, static/takvim.js) */
.tk-hide { display: none !important; }
.tk { position: relative; }
.tk-btn { height: 38px; min-width: 150px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--field);
  border-radius: 7px; background: var(--surface); color: var(--ink); font: 14px 'IBM Plex Sans', system-ui, sans-serif;
  cursor: pointer; text-align: left; white-space: nowrap; }
.tk-btn:hover { border-color: var(--accent); }
.tk-btn svg { flex: none; color: var(--accent); }
.tk-dim { color: var(--muted); font-size: 12.5px; }
.tk-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; background: var(--raised); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 12px; }
.tk-h { display: flex; align-items: center; gap: 8px; }
.tk-ttl { flex: 1; font: 600 13px 'IBM Plex Sans', system-ui, sans-serif; color: var(--ink); text-align: center; }
.tk-nav { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink);
  cursor: pointer; font: 16px/1 'IBM Plex Sans', system-ui, sans-serif; }
.tk-nav:hover { border-color: var(--accent); }
.tk-months { display: flex; gap: 22px; }
.tk-cal { display: grid; gap: 4px; }
.tk-mname { font: 400 19px/1 'Instrument Serif', Georgia, serif; text-align: center; padding-bottom: 6px; color: var(--ink);
  text-transform: capitalize; }
.tk-grid { display: grid; grid-template-columns: repeat(7, 38px); gap: 2px; }
.tk-dow { font: 500 10.5px/1 'IBM Plex Sans', system-ui, sans-serif; color: var(--muted); text-align: center; padding: 4px 0;
  text-transform: capitalize; }
.tk-d { height: 36px; border: 0; background: transparent; color: var(--ink); font: 13px 'IBM Plex Mono', monospace;
  border-radius: 7px; cursor: pointer; position: relative; font-variant-numeric: tabular-nums; }
.tk-d.tk-season { background: var(--chipbg); }
.tk-d:hover:not(:disabled) { background: var(--tint); }
.tk-d:disabled { color: var(--muted); opacity: .4; cursor: default; background: transparent; }
.tk-d.tk-rival { color: var(--muted); }
.tk-d.tk-has::after, .tk-dot { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent); }
.tk-d.tk-today { box-shadow: inset 0 0 0 1px var(--field); }
.tk-d.tk-in { background: var(--tint); border-radius: 0; }
.tk-d.tk-sel, .tk-d.tk-edge { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.tk-d.tk-sel::after { background: var(--on-accent); }
.tk-d:focus-visible, .tk-chip:focus-visible, .tk-nav:focus-visible, .tk-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-chip { border: 1px solid var(--line); background: var(--chipbg); color: var(--soft); font: 12.5px 'IBM Plex Sans', system-ui, sans-serif;
  padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.tk-chip:hover { border-color: var(--accent); color: var(--accent); }
.tk-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.tk-legend .tk-dot { position: static; display: inline-block; margin: 0 6px 1px 0; vertical-align: middle; }
.tk-legend .tk-rv { font: 12px 'IBM Plex Mono', monospace; color: var(--muted); margin-right: 5px; }
.tk-scrim { position: fixed; inset: 0; background: var(--stp-scrim); z-index: 95; }
@media (max-width: 640px) {
  .tk-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; border-radius: 14px 14px 0 0; z-index: 96;
    padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .tk-months, .tk-cal { width: 100%; }
  .tk-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tk-d { height: 42px; }
}
@media (prefers-reduced-motion: no-preference) { .tk-pop { animation: tk-up .14s ease-out; } @keyframes tk-up { from { transform: translateY(6px); } } }


/* ---------------------------------------------------------------- mobil v2 sayfaları (/m: Bugün · Oteller · otel · Tümü)
   docs/MOBIL-V2-TASARIM.md. Sayfalar masaüstünde de açılır; bileşenler genişliğe göre akar. */
.mhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mhead h1 { font: 400 28px/1.1 'Instrument Serif', Georgia, serif; margin: 0; }
.mhead.mback h1 { font-size: 22px; }
.mhead .icb { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.mhead .icb:hover { background: var(--chipbg); }
.mstrip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.mstrip::-webkit-scrollbar { display: none; }
.mstat { flex: 1 0 auto; min-width: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
  display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.mstat .l { font: 500 10.5px 'IBM Plex Sans', system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mstat .v { font: 500 21px/1.25 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.mstat .v.sm { font: 500 14px/1.6 'IBM Plex Sans', system-ui, sans-serif; }
.msec { display: flex; align-items: baseline; font: 500 11px 'IBM Plex Sans', system-ui, sans-serif; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 4px 2px -4px; }
.msec a { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--accent); }
.mpri { position: relative; display: grid; gap: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 80px 12px 16px; color: var(--ink); text-decoration: none; }
.mpri::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 3px 3px 0; background: var(--muted); }
.mpri.s-bad::before { background: var(--bad); }
.mpri.s-stop::before, .mpri.s-warn::before { background: var(--warn); }
.mpri.s-good::before { background: var(--good); }
.mpri .k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.mpri .t { font-weight: 600; font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.mpri .d { font-size: 12.5px; color: var(--soft); }
.mpri .n { position: absolute; right: 14px; top: 12px; font: 500 16px 'IBM Plex Mono', monospace; }
.msrc { font: 600 10px/1 'IBM Plex Sans', system-ui, sans-serif; padding: 3px 6px; border-radius: 5px; background: var(--chipbg); color: var(--soft); }
.msrc.to { background: var(--tint); color: var(--accent); }
.mtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.mtile { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 76px; padding: 10px 6px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--soft); text-decoration: none; font-size: 12.5px; }
.mtile svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; }
.mtile:hover { border-color: var(--accent); }
.msearch { display: flex; align-items: center; gap: 8px; height: 46px; border-radius: 23px; background: var(--chipbg); padding: 0 16px; color: var(--muted); }
.msearch input { flex: 1; border: 0; background: transparent; color: var(--ink); font: 15px 'IBM Plex Sans', system-ui, sans-serif; height: 44px; outline: none; }
.mchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.mchips button { flex: none; height: 34px; border: 1px solid var(--field); background: var(--surface); color: var(--soft); border-radius: 8px;
  padding: 0 12px; font-size: 13px; cursor: pointer; }
.mchips button[aria-pressed="true"] { background: var(--tint); border-color: transparent; color: var(--accent); font-weight: 600; }
.mlist { display: grid; }
.mli { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 4px;
  border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.mli[hidden] { display: none; }
.mli .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; grid-row: span 2;
  background: var(--chipbg); color: var(--soft); }
.mli .av.bad { background: var(--heat-r1); color: var(--bad); }
.mli .av.good { background: var(--heat-b1); color: var(--good); }
.mli .av.warn { background: var(--warnbg); color: var(--warn); }
.mli .nm { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mli .meta { font-size: 12px; color: var(--muted); }
.mli .sides { grid-row: span 2; display: grid; gap: 2px; text-align: right; font-size: 11px; color: var(--muted); }
.mli .sides b { font: 500 13.5px 'IBM Plex Mono', monospace; }
.mtabs2 { display: flex; border-bottom: 1px solid var(--line); }
.mtabs2 button { flex: 1; height: 44px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted);
  font: 500 14px 'IBM Plex Sans', system-ui, sans-serif; cursor: pointer; }
.mtabs2 button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.mpane { display: grid; gap: 12px; }
.mpane[hidden] { display: none; }
/* Framework7 data-table-collapsible deseni: satır = blok, sütun başlığı solda etiket */
.mct { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mct .tr { border-top: 1px solid var(--rule); padding: 6px 12px; }
.mct .tr:first-child { border-top: 0; }
.mct .td { display: flex; align-items: baseline; gap: 12px; min-height: 28px; font-size: 13.5px; }
.mct .td::before { content: attr(data-l); width: 40%; flex: none; font: 500 10.5px 'IBM Plex Sans', system-ui, sans-serif; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); }
.mct .td.h { font-weight: 600; }
.mct .td.num { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }
.mct .gap { font-weight: 600; font-size: 13px; padding: 2px 10px; border-radius: 10px; background: var(--tint); }
.mct .gap.bad { color: var(--bad); }
.mct .gap.good { color: var(--good); }
.mbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.mbtns .btn { min-height: 42px; display: inline-flex; align-items: center; }
.mpri:focus-visible, .mli:focus-visible, .mtile:focus-visible, .mstat:focus-visible, .mtabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  /* Travel On tabloları (class="mcards"): satır kart olur, hücre başlığı satırda etiket (ux.js data-l doldurur) */
  table.mcards, table.mcards tbody, table.mcards tr, table.mcards td { display: block; width: 100%; }
  table.mcards thead { display: none; }
  table.mcards tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
  table.mcards td { display: flex; align-items: baseline; gap: 12px; border: 0 !important; padding: 3px 0 !important; text-align: left !important;
    white-space: normal !important; min-width: 0 !important; max-width: none !important; background: none !important; position: static !important; }
  table.mcards td::before { content: attr(data-l); width: 36%; flex: none; font: 600 10.5px/1.5 'IBM Plex Sans', system-ui, sans-serif;
    letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  table.mcards td[data-l=""]::before { display: none; }
  table.mcards td:empty { display: none; }
  .an-tw:has(> table.mcards), .card:has(table.mcards) { overflow: visible; }
  .an-tw:has(> table.mcards) { max-height: none; }
  .tablewrap:has(> table.mcards) { max-height: none !important; overflow: visible; border: 0; }
  /* Excel / PDF telefonda yok (kullanıcı kararı 17 Ekim 2026) */
  a[href*=".xlsx"], a[href*=".pdf"], a[href*="/disaktar/"], a[href*="/ham."], .rp-dl, .rp-pdf, .mx-hide { display: none !important; }
}

.asum.mlist { display: none; }     /* özet liste yalnız telefonda (#aviews) */
/* mobil v2 liste öğesi: açık yerleşim (ad ve açıklama ortada, durum harfi solda, farklar sağda) */
.mli .av { grid-column: 1; grid-row: 1 / span 2; }
.mli .nm { grid-column: 2; grid-row: 1; }
.mli .meta { grid-column: 2; grid-row: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mli .sides { grid-column: 3; grid-row: 1 / span 2; }
@media (max-width: 720px) {
  /* Uyarılar (Travel On): kısa olay kartı — otel başlık, olay + değişim, eski → yeni fiyat, tedarikçi · zaman, giriş, bize etkisi */
  table.mcards.mev tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; }
  table.mcards.mev td { display: block; }
  table.mcards.mev td::before { display: none; }
  table.mcards.mev td:nth-child(3) { grid-column: 1 / -1; order: 1; font-size: 15px; }
  table.mcards.mev td:nth-child(4) { order: 2; }
  table.mcards.mev td:nth-child(6) { order: 3; text-align: right !important; font-weight: 600; }
  table.mcards.mev td:nth-child(5) { order: 4; grid-column: 1 / -1; }
  table.mcards.mev td:nth-child(2) { order: 5; font-size: 12.5px; color: var(--soft); }
  table.mcards.mev td:nth-child(1) { order: 6; font-size: 12.5px; color: var(--muted); text-align: right !important; }
  table.mcards.mev td:nth-child(7) { order: 7; font-size: 12.5px; color: var(--soft); }
  table.mcards.mev td:nth-child(9) { order: 8; text-align: right !important; }
  table.mcards.mev td:nth-child(8) { order: 9; grid-column: 1 / -1; font-size: 12px; }
  table.mcards.mev td:nth-child(10) { order: 10; grid-column: 1 / -1; }
  table.mcards.mev td:nth-child(10) .btn { min-height: 36px; padding: 4px 12px; }
}

/* mobil v2.1: 1-1 eşleşme satırları ilgili ekranı o gün açar */
.mct a.tr.mtrl { display: block; color: inherit; text-decoration: none; }
.mct a.tr.mtrl:hover, .mct a.tr.mtrl:focus-visible { background: var(--tint); }
.mct .go { color: var(--accent); margin-left: auto; }

/* v0.9.6: tarih aralığı — iki kutu + altında hazır aralık bağlantıları (static/takvim.js, docs/TARIH-ARALIGI-TASARIM.md) */
.tk-presets { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; font-size: 12px; }
.tk-presets button { background: none; border: 0; padding: 0; min-height: 22px; color: var(--accent); font: inherit; font-weight: 500;
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px; border-radius: 3px; }
.tk-presets button:hover { color: var(--ink); }
/* iki tarih kutusu dar ekranda alanı paylaşır, taşmaz */
[data-takvim="aralik"] { min-width: 0; max-width: 100%; flex-wrap: wrap; row-gap: 6px; }
[data-takvim="aralik"] input[type="date"] { flex: 1 1 140px; min-width: 140px; width: auto; }
/* geniş ekranda hazır aralıklar kutuların altında ama alan yüksekliğine katılmaz: süzgeç satırı alttan hizalı, yan kutular kaymasın */
@media (min-width: 721px) {
  .filters .field:has(> .tk-presets), .filters .field:has(.tk-presets) { position: relative; }
  .filters .tk-presets { position: absolute; top: 100%; left: 0; margin-top: 4px; flex-wrap: nowrap; white-space: nowrap; }
  .filters:has(.tk-presets), .filters .fmore-row:has(.tk-presets) { row-gap: 30px; }
}

/* ---------- v0.10.30 Yenilikler + Talepler (docs/DEGISIKLIK-TALEP-TASARIM.md) ve Kullanım (docs/KULLANIM-ANALITIGI-TASARIM.md) ---------- */
.muted { color: var(--muted); }
.notice { background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; font-size: 13px; cursor: pointer; min-height: 0; }
.dk { max-width: 1240px; margin: 0 auto; padding-block: 18px 80px; }
.dk-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.dk-head h1 { font-size: 22px; margin: 0; }
.dk-head .btn { padding: 6px 12px; font-size: 13px; }
.dk-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dk-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dk-feed { display: grid; gap: 12px; }
.dk-item { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.dk-item.unread { border-left: 3px solid var(--accent); }
.dk-item h2 { font-size: 15px; margin: 0; }
.dk-item p { margin: 6px 0 8px; color: var(--soft); max-width: 75ch; white-space: pre-line; }
.dk-when { font-size: 12px; color: var(--muted); }
.dk-when b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.dk-main { min-width: 0; display: grid; gap: 4px; }
.dk-new { background: var(--warnbg); color: var(--warn); border: 1px solid var(--warnln); border-radius: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; padding: 0 6px; }
.dk-tag { border: 1px solid var(--line); background: var(--chipbg); color: var(--soft); border-radius: 12px; padding: 0 9px; font-size: 12px; }
.dk-tag.soft { color: var(--muted); }
.dk-tw { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.dk-t { border-collapse: collapse; width: 100%; font-size: 13px; }
.dk-t th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 10px; white-space: nowrap; }
.dk-t td { border-bottom: 1px solid var(--rule); padding: 8px 10px; vertical-align: top; text-align: left; }
.dk-t td.nw { white-space: nowrap; }
.dk-t td.wrap { min-width: 220px; white-space: pre-line; }
.dk-t td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dk-t td.slow { color: var(--warn); font-weight: 600; }
.dk-t.sel tbody tr { cursor: pointer; }
.dk-t tr.on td { background: var(--tint); }
.dk-st { display: inline-block; border-radius: 10px; padding: 1px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--chipbg); color: var(--soft); }
.dk-st.new { background: var(--tint); color: var(--accent); }
.dk-st.review { background: var(--warnbg); color: var(--warn); }
.dk-st.done { color: var(--good); }
.dk-st.rejected { color: var(--bad); }
.dk-reply { margin-top: 6px; padding: 6px 9px; border-radius: 7px; background: var(--chipbg); color: var(--soft); }
.dk-reply.fresh { background: var(--tint); }
.dk-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dk-side { display: grid; gap: 14px; min-width: 0; }
.dk .card h2 { font-size: 15px; margin: 0 0 8px; }
.dk-bars { display: grid; gap: 6px; }
.dk-bar { display: grid; grid-template-columns: 130px 1fr 28px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink); text-decoration: none; }
.dk-bar i, .ku-bar i, .ku-flow i { display: block; height: 8px; border-radius: 4px; background: var(--accent); min-width: 2px; }
.dk-bar b, .ku-bar b, .ku-flow b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.dk-body { white-space: pre-line; margin: 0 0 8px; }
.dk-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 10px; font-size: 13px; margin: 0 0 10px; }
.dk-kv dt { color: var(--muted); }
.dk-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.dk-ctx { font-size: 12px; color: var(--soft); }
.dk-form { display: grid; gap: 10px; }
.dk-form label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.dk-form .dk-row label { display: inline-flex; align-items: center; gap: 6px; }
.dk-form input, .dk-form textarea, .dk-form select, .dk-head select { font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: 7px; padding: 7px 9px; }
.dk-scr { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.dk-scr legend { font-size: 12.5px; color: var(--muted); padding: 0 4px; }
.dk .dk-ck { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; }
.dk-list { display: grid; gap: 4px; }
.dk-li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px; border-radius: 7px; color: var(--ink); text-decoration: none; }
.dk-li:hover { background: var(--tint); }
.dk-li .muted { grid-column: 2; font-size: 12px; }
.newsbtn { position: relative; font-size: 12.5px; color: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 2px 10px; text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.newsbtn.on { color: var(--accent); border-color: var(--accent); }
.newsbtn .dot { position: static; }
.newsstrip { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 7px max(16px, env(safe-area-inset-left, 0px)); background: var(--warnbg); border-bottom: 1px solid var(--warnln); font-size: 13px; }
.newsstrip form { margin: 0; }
.reqfab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  border-radius: 22px; padding: 8px 16px; font-size: 13px; box-shadow: var(--shadow); }
.reqpanel { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 71;
  width: min(380px, calc(100vw - 36px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px; display: grid; gap: 8px; }
.reqpanel[hidden] { display: none; }
.reqpanel h3 { margin: 0; font-size: 15px; }
.reqpanel label { font-size: 12.5px; color: var(--muted); }
.reqpanel textarea, .reqpanel input[type=file] { font: inherit; font-size: 13px; color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: 7px; padding: 7px 9px; width: 100%; }
.reqpanel .seg button { padding: 5px 12px; font-size: 13px; min-height: 0; }
.reqctx { font-size: 11.5px; color: var(--muted); background: var(--chipbg); border-radius: 6px; padding: 6px 8px; }
.reqmsg { margin: 0; font-size: 13px; border-radius: 6px; padding: 7px 9px; }
.reqmsg.ok { background: var(--tint); color: var(--good); }
.reqmsg.bad { background: var(--warnbg); color: var(--bad); }
.reqpanel #reqsend { padding: 7px 16px; font-size: 13px; }
@media (max-width: 720px) {
  .dk-grid { grid-template-columns: 1fr; }
  .dk-item { grid-template-columns: 1fr; gap: 6px; }
  .reqfab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .reqpanel { left: 0; right: 0; bottom: 0; width: auto; border-radius: 14px 14px 0 0;
    padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
}
/* Kullanım */
.ku-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.ku-stats > div { padding: 11px 16px; border-right: 1px solid var(--rule); display: grid; gap: 1px; min-width: 0; }
.ku-stats > div:last-child { border-right: 0; }
.ku-stats span { font-size: 12px; color: var(--muted); }
.ku-stats b { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ku-stats b.txt { font-size: 16px; }
.ku-stats small { font-size: 12px; color: var(--muted); }
.ku-stats em { font-style: normal; } .ku-stats em.up { color: var(--good); } .ku-stats em.down { color: var(--bad); }
.ku-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; align-items: start; }
.ku-hm { overflow-x: auto; margin-top: 8px; }
.ku-hm table { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.ku-hm th { font-size: 11px; font-weight: 500; color: var(--muted); padding: 0 3px 4px; text-align: center; vertical-align: bottom; max-width: 74px;
  text-transform: none; letter-spacing: 0; white-space: normal; overflow-wrap: break-word; word-break: normal; hyphens: auto; min-width: 58px; line-height: 1.25; background: none; position: static; }
.ku-hm th.r { text-align: left; color: var(--ink); font-size: 12.5px; white-space: nowrap; padding-right: 10px; cursor: pointer;
  max-width: none; vertical-align: middle; position: sticky; left: 0; z-index: 1; background: var(--surface); }   /* v1.0.5: ad sütunu genişler, yatay kaydırmada sabit kalır */
/* v1.1.8: kaydırınca üst üste binme — köşe başlığı da sabit (sayfa adları adların üstünden geçmesin), ad sütununun sağındaki
   3 px hücre aralığı gölgeyle örtülür (hücre şeridi görünmesin). */
.ku-hm th.r, .ku-hm thead th:first-child { box-shadow: 0 0 0 3px var(--surface); }
.ku-hm thead th:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); }
.ku-hm tr.on th.r { color: var(--accent); }
.ku-hm td { min-width: 52px; height: 28px; border-radius: 5px; text-align: center; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink); }
.ku-hm td.dark { color: var(--on-accent); }
.ku-hm td.sel { box-shadow: 0 0 0 1px var(--surface), 0 0 0 3px var(--ink); }   /* outline sabit ad sütununun üstüne çiziliyordu */
.ku .h0 { background: var(--chipbg); } .ku .h1 { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.ku .h2 { background: color-mix(in srgb, var(--accent) 34%, var(--surface)); } .ku .h3 { background: color-mix(in srgb, var(--accent) 55%, var(--surface)); }
.ku .h4 { background: color-mix(in srgb, var(--accent) 78%, var(--surface)); } .ku .h5 { background: var(--accent); }
.ku-leg { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.ku-leg i { width: 18px; height: 10px; border-radius: 3px; display: inline-block; }
.ku-h { font-size: 12px; color: var(--muted); margin: 12px 0 4px; }
.ku-bar { display: grid; grid-template-columns: 130px 1fr 46px; gap: 8px; align-items: center; font-size: 12.5px; margin-bottom: 5px; }
.ku-bar span, .ku-flow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ku-wk { display: grid; grid-template-columns: 34px repeat(13, minmax(0, 1fr)); gap: 2px; font-size: 10.5px; color: var(--muted); }
.ku-wk i { height: 13px; border-radius: 3px; display: block; }
.ku-fl { font-size: 12.5px; color: var(--soft); display: grid; gap: 2px; }
.ku-flows { display: grid; gap: 6px; }
.ku-flow { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) 80px 34px; gap: 8px; align-items: center; font-size: 12.5px; }
.ku-unused { display: grid; gap: 5px; margin-top: 6px; }
.ku-unused div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-bottom: 1px dashed var(--rule); padding-bottom: 4px; }
.ku-unused .zero { color: var(--warn); font-weight: 600; }
.ku-unused span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ku .seg a { padding: 6px 12px; font-size: 13px; color: var(--ink); text-decoration: none; display: inline-block; }
.ku .seg a.on, .ku .seg button.on { background: var(--accent); color: var(--on-accent); }
@media (max-width: 900px) { .ku-grid { grid-template-columns: 1fr; } .ku-stats > div { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* v1.4.0 "Hazırlanıyor" (docs/HAZIRLANIYOR-TASARIM.md): ağır görünümün durum kartı + iskelet; bayat veri satırı (her sayfada) */
.hz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.hz-chip { border: 1px solid var(--field); border-radius: 8px; padding: 4px 10px; font-size: 12.5px; background: var(--surface); color: var(--soft); }
.hz-card { border-color: var(--accent); background: var(--tint); display: grid; gap: 10px; margin-bottom: 14px; }
.hz-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.hz-pill { font: 600 11px/1.6 var(--sans, inherit); letter-spacing: .03em; padding: 2px 10px; border-radius: 999px; background: var(--chipbg); color: var(--soft); }
.hz-pill.run { background: var(--accent); color: var(--on-accent); }
.hz-pill.done { background: var(--surface); color: var(--good); border: 1px solid var(--good); }
.hz-pill.bad { background: var(--surface); color: var(--bad); border: 1px solid var(--bad); }
.hz-what { font-weight: 600; }
.hz-bar { height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; position: relative; }
.hz-bar > i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: 3px; transition: width .6s ease; }
.hz-bar.indet > i { width: 30% !important; animation: hz-slide 1.4s ease-in-out infinite; }
@keyframes hz-slide { 0% { left: -30%; } 100% { left: 100%; } }
.hz-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hz-acts .btn { text-decoration: none; }
.hz-months { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.hz-notify { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--soft); }
.hz-card .note { font-size: 12px; color: var(--muted); margin: 0; }
.hz-skel .sk, .sk { display: inline-block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--rule) 25%, var(--chipbg) 50%, var(--rule) 75%);
  background-size: 200% 100%; animation: hz-pulse 1.6s ease-in-out infinite; }
@keyframes hz-pulse { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.stalenote { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); padding: 6px 0 2px; }
.stalespin { width: 10px; height: 10px; border: 2px solid var(--field); border-top-color: var(--accent); border-radius: 50%; animation: hz-rot 1s linear infinite; flex: none; }
@keyframes hz-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sk, .hz-bar.indet > i, .stalespin { animation: none; } }
@media (max-width: 720px) { .hz-acts { flex-direction: column; align-items: stretch; } .hz-months { width: 100%; } .hz-months select { flex: 1; } }
.hz-card [hidden] { display: none !important; }
/* v1.8.0 büyük Excel arka planda (docs/BUYUK-EXCEL-TASARIM.md): aynı kart, hazır / hata tonları */
.dx-wrap { display: grid; gap: 10px; margin: 12px 0 0; }
.dx-wrap:empty { display: none; }
.dx-wrap .hz-card { margin-bottom: 0; }
.hz-card.dx-ok { border-color: var(--good); }
.hz-card.dx-bad { border-color: var(--bad); }
.dx-meta { font-size: 12.5px; color: var(--soft); font-variant-numeric: tabular-nums; }

/* v1.5.0 "Şu an içeride" (docs/AKTIF-KULLANICI-TASARIM.md): bildirim tarafında düğme + açılır pencere; mobilde alttan yarım panel */
.pv { position: relative; display: flex; align-items: center; }
.pvbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 9px 0 4px; border: 1px solid var(--field); border-radius: 999px;
  background: var(--surface); color: var(--ink); cursor: pointer; font: 600 12px/1 inherit; }
.pvbtn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.pvstack { display: flex; }
.pvstack:empty { display: none; }
.pvav { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 10px/1 inherit; color: #fff;
  border: 2px solid var(--surface); position: relative; flex: none; }
.pvstack .pvav + .pvav { margin-left: -8px; }
.pv-c0 { background: #1B5E5A; } .pv-c1 { background: #2F6F8F; } .pv-c2 { background: #7A4E9C; } .pv-c3 { background: #9C5B2E; }
.pv-c4 { background: #5D6B2F; } .pv-c5 { background: #8F3A4F; } .pv-c6 { background: #3B5B9A; } .pv-c7 { background: #6B5B3A; }
.pvst { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--surface); }
.pvst.live, .pvdot.live { background: var(--good); } .pvst.idle, .pvdot.idle { background: var(--warn); } .pvst.off { background: var(--field); }
.pvcnt { display: inline-flex; align-items: center; gap: 5px; }
.pvcnt::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.pvpop { position: absolute; top: 38px; right: 0; width: 360px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); z-index: 60; overflow: hidden; color: var(--ink); text-align: left; }
.pvpop[hidden] { display: none !important; }
.pvpop header { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px 8px; }
.pvpop header h3 { margin: 0; font-size: 14px; font-weight: 600; }
.pvpop header a { margin-left: auto; font-size: 12px; color: var(--accent); text-decoration: none; }
.pvsec { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 4px;
  display: flex; gap: 6px; align-items: center; cursor: default; }
.pvdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pvpop ul { list-style: none; margin: 0; padding: 0 6px 6px; max-height: 46vh; overflow-y: auto; }
.pvpop li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; }
.pvpop li:hover { background: var(--chipbg); }
.pvpop li .pvav { width: 30px; height: 30px; font-size: 11px; }
.pvnm { font-weight: 600; font-size: 13px; line-height: 1.25; }
.pvnm small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.pvwhere { font-size: 12px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvdev { color: var(--muted); font-size: 11px; }
.pvwhen { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pvpop details summary { cursor: pointer; list-style: none; }
.pvpop details summary::-webkit-details-marker { display: none; }
.pvempty { margin: 4px 14px 8px; font-size: 12.5px; color: var(--muted); }
.pvpop footer { border-top: 1px solid var(--rule); padding: 8px 14px; font-size: 11.5px; color: var(--muted); }
@media (max-width: 720px) {
  header.top .pv { margin-left: auto; }
  .pvpop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px); max-height: 75vh; overflow-y: auto; }
  .pvpop::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--field); margin: 8px auto 2px; }
}

/* v1.6.0 sade üst menü (docs/UST-MENU-SADE-TASARIM.md): tarama noktası + saat · Şu an içeride · Yenilikler · Bildirimler · hesap menüsü */
.hdr-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hscan { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hscan-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.hscan.live .hscan-dot { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 18%, transparent); }
.hscan.old .hscan-dot { background: var(--warn); }
.hscan.run .hscan-dot { background: var(--accent); animation: hscan-p 1.4s ease-in-out infinite; }
@keyframes hscan-p { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
@media (prefers-reduced-motion: reduce) { .hscan.run .hscan-dot { animation: none; } }
.newsicon { position: relative; text-decoration: none; }
.newsicon.on { color: var(--accent); border-color: var(--accent); }
.newsicon .dot { position: absolute; top: -5px; right: -6px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
.acct { position: relative; }
.acctbtn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 7px 0 3px; border: 1px solid var(--field); border-radius: 999px;
  background: var(--surface); color: var(--soft); cursor: pointer; font: inherit; font-size: 11px; }
.acctbtn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.acct-me { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 600; flex: none; }
.acct-me.lg { width: 36px; height: 36px; font-size: 13px; }
.acctpop { position: absolute; top: 40px; right: 0; width: 290px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); z-index: 60; overflow: hidden; color: var(--ink); }
.acctpop[hidden] { display: none !important; }
.acct-who { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.acct-who b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who small { color: var(--muted); font-size: 12px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.acct-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; font-size: 13px; color: var(--ink); text-decoration: none; }
.acct-row + .acct-row { border-top: 1px solid var(--rule); }
a.acct-row:hover { background: var(--chipbg); }
.acct-row.out { color: var(--warn); }
.seg2 { display: inline-flex; border: 1px solid var(--field); border-radius: 7px; overflow: hidden; }
.seg2 a, .seg2 button { font: inherit; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border: 0; background: none; color: var(--soft); cursor: pointer; text-decoration: none; }
.seg2 a + a, .seg2 button + button { border-left: 1px solid var(--field); }
.seg2 .on { background: var(--accent); color: var(--on-accent); }
@media (max-width: 720px) {
  header.top .hdr-r > :not(.pv) { display: none; }
}

/* ---- v1.6.1 Kullanıcılar: rol açıklamaları, yapışık işlem sütunu, kaydedilmemiş değişiklik çubuğu ---- */
details.usroles > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; list-style: none; }
details.usroles > summary::-webkit-details-marker { display: none; }
details.usroles > summary::before { content: "▸ "; color: var(--muted); }
details.usroles[open] > summary::before { content: "▾ "; }
.usroles-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; padding: 0 14px 10px; }
.usroles-g > div { background: var(--chipbg); border-radius: 8px; padding: 9px 11px; }
.usroles-g b { display: block; margin-bottom: 3px; }
.usroles-g span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.usrdesc { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; margin-top: 4px; white-space: normal; }
table.ustable td { vertical-align: top; }
table.ustable .usact { position: sticky; right: 0; z-index: 1; background: var(--surface); white-space: nowrap;
  box-shadow: -10px 0 10px -10px rgba(0,0,0,.35); }
table.ustable tr.dirty td.usact { background: var(--tint); }
table.ustable tr.dirty td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.usbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.12);
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.usbar > b { color: var(--warn); }
.usbar button { padding: 7px 14px; font-size: 13px; }
.usbar[hidden] { display: none; }
body.usbar-on .reqfab { bottom: 76px; }
body.usbar-on main { padding-bottom: 72px; }
table.ustable select.usrole { min-width: 180px; }
table.ustable .usrdesc { min-width: 180px; max-width: 220px; }
