:root {
  --ground: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #14181F;
  --muted: #5B6472;
  --line: #E3E6EB;
  --line-soft: #EEF0F3;
  --blue: #1F4FBF;
  --blue-soft: #EAF0FD;
  --blue-head: #F1F4FA;
  --orange: #B54708;
  --orange-ink: #7A3206;
  --orange-soft: #FEF0E6;
  --orange-line: #F3C9A8;
  --orange-row: #F6E1D2;
  --ink2: var(--ink2);
  --fill: #F1F3F6;
  /* punctuality (Akın, 2026-11-10): normal yeşil, erken sarı, geç turuncu, gelmedi kırmızı */
  --ok: #1E8E5A; --ok-ink: #146C43; --ok-soft: #E7F5EE;
  --early: #E5B000; --early-ink: #7A5C00; --early-soft: #FFF5D1;
  --late: #E07A2E; --late-ink: #9A3F05; --late-soft: #FEF0E6;
  --miss: #B42318; --miss-ink: #8A1F11; --miss-soft: #FDECEA; --miss-line: #F3C0BA; --miss-row: #F6E2DF;
  --risk-row: #FDF1F0;
}
/* Dark mode (grey tones, Akın 15:45): the phone's setting, unless the person picked one with the header button (Akın, 15:01):
   data-theme="light" / "dark" on <html> (theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #2A2D32; --surface: #34383E; --ink: #EEF0F3; --muted: #B4BAC4; --line: #474C54; --line-soft: #3E434A;
    --blue: #9DB4F7; --blue-soft: #3A4766; --blue-head: #393D44;
    --orange: #FDBA74; --orange-ink: #FDC794; --orange-soft: #4D3A2B; --orange-line: #6E5038; --orange-row: #433629;
    --ink2: #D0D5DD; --fill: #2A2D32;
    --ok: #5BE08F; --ok-ink: #95F0B5; --ok-soft: #2B4535;
    --early: #FACC15; --early-ink: #FDE68A; --early-soft: #4A4025;
    --late: #FB923C; --late-ink: #FDC794; --late-soft: #4D3A2B;
    --miss: #F98B8B; --miss-ink: #FDB4B4; --miss-soft: #4D3233; --miss-line: #6E4041; --miss-row: #433233;
    --risk-row: #433233;
  }
  :root:not([data-theme="light"]) .logo { background: #FFFFFF; border-radius: 6px; padding: 3px 6px; box-sizing: content-box; height: 18px; }
  :root:not([data-theme="light"]) .chip[aria-pressed="true"] { color: var(--ground); }
}
:root[data-theme="dark"] {
    --ground: #2A2D32; --surface: #34383E; --ink: #EEF0F3; --muted: #B4BAC4; --line: #474C54; --line-soft: #3E434A;
    --blue: #9DB4F7; --blue-soft: #3A4766; --blue-head: #393D44;
    --orange: #FDBA74; --orange-ink: #FDC794; --orange-soft: #4D3A2B; --orange-line: #6E5038; --orange-row: #433629;
    --ink2: #D0D5DD; --fill: #2A2D32;
    --ok: #5BE08F; --ok-ink: #95F0B5; --ok-soft: #2B4535;
    --early: #FACC15; --early-ink: #FDE68A; --early-soft: #4A4025;
    --late: #FB923C; --late-ink: #FDC794; --late-soft: #4D3A2B;
    --miss: #F98B8B; --miss-ink: #FDB4B4; --miss-soft: #4D3233; --miss-line: #6E4041; --miss-row: #433233;
    --risk-row: #433233;
  }
:root[data-theme="dark"] .logo { background: #FFFFFF; border-radius: 6px; padding: 3px 6px; box-sizing: content-box; height: 18px; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { color: var(--ground); }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-text-size-adjust: 100%; }
button, input { font-family: inherit; }
button { cursor: pointer; }

.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

.top { background: var(--surface); padding: calc(16px + env(safe-area-inset-top)) 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { height: 26px; width: auto; display: block; }
.divider { width: 1px; height: 24px; background: var(--line); }
.brand h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.daybar { display: flex; align-items: center; gap: 8px; }
.iconbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; }
.iconbtn:disabled { opacity: 0.35; cursor: default; }
.daylabel { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.day { font-size: 17px; font-weight: 600; }
.rel { font-size: 13px; color: var(--muted); }

.chips { display: flex; gap: 8px; align-items: center; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.datepick { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.datepick select { height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 0 8px; font-size: 14px; color: var(--ink); background: var(--surface); }

.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 8px; position: sticky; top: 0; z-index: 2; }
.cat { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; background: none; border: none; border-bottom: 3px solid transparent; color: var(--ink); }
.cat[aria-pressed="true"] { border-bottom-color: var(--blue); }
.cat:disabled { opacity: 0.55; cursor: default; }
.cat .label { font-size: 15px; font-weight: 600; }
.badge { font-size: 12px; font-weight: 600; color: var(--muted); }
.badge.miss { color: var(--miss); }
.badge.ok { color: var(--ok-ink); }
.badge.late { color: var(--late-ink); }

.subs { display: flex; gap: 8px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.subs[hidden] { display: none; }
.sub { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.sub[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }

.main { flex: 1; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cardtitle { font-size: 14px; font-weight: 600; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--line-soft); color: var(--ink2); }
.pill.active { background: var(--orange-soft); color: var(--orange-ink); }
.pill.upcoming, .pill.pending { color: var(--muted); }
.numbers { display: flex; align-items: flex-end; gap: 20px; }
.numbers .col { display: flex; flex-direction: column; }
.bignum { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--blue); }
.bignum.miss { color: var(--miss); }
.bignum.ok { color: var(--ok); }
.ratio { font-size: 20px; font-weight: 600; padding-bottom: 4px; }
.small { font-size: 13px; color: var(--muted); }
.note { margin: 0; font-size: 14px; color: var(--muted); }

.breakdown { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; background: none; border: none; border-bottom: 1px solid var(--line-soft); text-align: left; color: var(--ink); font-size: 14px; }
.brow .name { font-weight: 500; }
.brow .r { min-width: 56px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.section { display: flex; flex-direction: column; gap: 8px; }
.section h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.section.missing h2 { color: var(--miss); }
.section.arrived h2 { color: var(--blue); }
.empty { margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; color: var(--muted); }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
th { text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--ink2); background: var(--blue-head); }
th.r, td.r { text-align: right; }
td { padding: 11px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }
td .route { font-weight: 500; }
td .sub2 { font-size: 13px; color: var(--muted); margin-top: 2px; }
td.time { font-variant-numeric: tabular-nums; font-weight: 500; }
.section.missing table { border-color: var(--miss-line); }
.section.missing th { background: var(--miss-soft); color: var(--miss-ink); }
.section.missing td { border-top-color: var(--miss-row); }
.section.missing td .route { font-weight: 600; }

.more { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--blue); font-size: 14px; font-weight: 600; }
.foot { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.error { margin: 0; padding: 14px 16px; background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 14px; font-size: 14px; color: var(--orange-ink); }

/* ---- views / tab bar ---- */
.app { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.daycontrols { display: flex; flex-direction: column; gap: 14px; }
.daycontrols[hidden], #dayNav[hidden] { display: none; }
.sidebrand { display: none; }
/* Home tiles are desktop-only (Orkun: "mobili bozma"): no tab for it on the phone's bottom bar. */
@media (max-width: 959px) { .tab.hometab { display: none; } }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-pressed="true"] { color: var(--blue); }

/* ---- day extras ---- */
.actions { display: flex; gap: 8px; }
.actions .btn { flex: 1; }
.btn { height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; background: var(--late-soft); color: var(--late-ink); vertical-align: 1px; }
td.time.late { color: var(--late-ink); }

/* ---- analysis ---- */
.form { display: flex; flex-direction: column; gap: 10px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--line-soft); border-radius: 12px; padding: 3px; }
.seg button { height: 38px; border: none; border-radius: 10px; background: none; font-size: 14px; white-space: nowrap; padding: 0 6px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 24, 31, 0.08); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.field input, .field select { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 16px; color: var(--ink); background: var(--surface); font-weight: 400; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 22px; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.ok b { color: var(--ok); }
.stat.late b { color: var(--late-ink); }
.stat.miss b { color: var(--miss); }
.st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st.normal { background: var(--ok-soft); color: var(--ok-ink); }
.st.erken { background: var(--early-soft); color: var(--early-ink); }
.stat.early b { color: var(--early-ink); }
.tag.early { background: var(--early-soft); color: var(--early-ink); }
.st.gec { background: var(--late-soft); color: var(--late-ink); }
.st.gelmedi { background: var(--miss-soft); color: var(--miss-ink); }
.tablewrap { overflow-x: auto; border-radius: 14px; }

/* ---- changes ---- */
.chg { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.chg .head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chg .route { font-weight: 600; }
.chg .when { font-size: 12px; color: var(--muted); white-space: nowrap; }
.chg .diff { font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chg .before { color: var(--muted); text-decoration: line-through; }
.chg .detail { font-size: 12px; color: var(--muted); }
.kind { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line-soft); color: var(--ink2); }
.kind.plaka { background: var(--orange-soft); color: var(--orange-ink); }
.kind.vardiya { background: var(--blue-soft); color: var(--blue); }

/* ---- learning ---- */
.rules { margin: 0; padding-left: 18px; font-size: 13px; color: var(--ink2); display: flex; flex-direction: column; gap: 4px; }
.lr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.lr .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.lr .name { font-weight: 600; }
.lr .plates { font-size: 12px; color: var(--muted); }
.lr .exp { font-size: 13px; }
.lr .exp b { font-weight: 600; }
.lr table { font-size: 13px; }
.lr td, .lr th { padding: 6px 10px; }
.cell { font-variant-numeric: tabular-nums; }
.cell.on { color: var(--blue); font-weight: 700; }
.cell.off { color: var(--muted); }
.mark { display: inline-block; width: 16px; text-align: center; }
.pin { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--line-soft); color: var(--ink2); }
.search { height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-size: 16px; width: 100%; background: var(--surface); color: var(--ink); }

/* ---- editable learning / settings ---- */
.cellbtn { min-height: 36px; min-width: 76px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font: inherit; font-variant-numeric: tabular-nums; padding: 4px 8px; }
.cellbtn.on { color: var(--blue); font-weight: 700; background: var(--blue-soft); border-color: #C5D4F5; }
.cellbtn.off { color: var(--muted); }
.cellbtn:disabled { opacity: 0.6; }
.pinrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.linkbtn { background: none; border: none; color: var(--blue); font: 600 13px Inter, sans-serif; padding: 8px 0; min-height: 36px; }
.days { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.days legend { font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; padding: 0; }
.daychk { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; }
.okmsg { margin: 0; padding: 12px 14px; background: var(--blue-soft); border-radius: 12px; color: var(--blue); font-size: 14px; }

/* ---- punctuality mini line ---- */
.mini { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.mini b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: -4px; }
.dot.early { background: var(--early); }
.dot.ok { background: var(--ok); }
.dot.late { background: var(--late); }
.dot.miss { background: var(--miss); }
.brow .name { display: flex; flex-direction: column; gap: 2px; }
.bsub { font-size: 11px; font-weight: 400; color: var(--muted); }

/* ---- fleet status ---- */
.fleetlist { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); padding-top: 8px; gap: 2px; }
.fleethead { font-size: 12px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.fleetrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; }
.fleetrow > span:first-child { display: flex; flex-direction: column; }
.tag.gps { background: var(--miss-soft); color: var(--miss-ink); }

.keydlg { background: var(--surface); color: var(--ink); border: none; border-radius: 16px; padding: 0; width: min(360px, calc(100% - 32px)); }
.keydlg::backdrop { background: rgba(20, 24, 31, 0.45); }
.keydlg form { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.keydlg h2 { margin: 0; font-size: 18px; }
.keydlg p { margin: 0; font-size: 14px; color: var(--muted); }
.keydlg label { font-size: 13px; font-weight: 600; }
.keydlg input { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 16px; }
.primary { height: 44px; border: none; border-radius: 12px; background: var(--blue); color: var(--surface); font-size: 15px; font-weight: 600; }

/* ---- redesign 2026-11-10 ---- */
.brand { min-width: 0; }
.titles { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.brand h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.live { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.live.stale::before { background: var(--late); }
.live.off { color: var(--miss); }
.live.off::before { background: var(--miss); }
.live[hidden] { display: none; }
.export { position: relative; }
.export[hidden] { display: none; }
.export summary { list-style: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.export summary::-webkit-details-marker { display: none; }
.export svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.export .menu { position: absolute; right: 0; top: 46px; z-index: 6; min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); padding: 6px; display: flex; flex-direction: column; }
.export .menu button, .export .menu a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: none; background: none; border-radius: 8px; font: 600 14px Inter, sans-serif; color: var(--ink); text-decoration: none; text-align: left; }
.export .menu button:hover, .export .menu a:hover { background: var(--fill); }
.searchbar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--fill); border: 1px solid var(--line-soft); }
.searchbar svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 16px Inter, sans-serif; color: var(--ink); outline: none; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.small.strong { font-weight: 600; }
.bar { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--fill); }
.bar span { display: block; min-width: 4px; }
.b-early { background: var(--early); }
.b-ok { background: var(--ok); }
.b-late { background: var(--late); }
.b-miss { background: var(--miss); }
.b-way { background: #8FA9F5; }
.mini .missn, .missn { color: var(--miss); white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile.next { background: var(--fill); border-style: dashed; color: var(--muted); }
.tilehead { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.tileline { font: 600 13px Inter, sans-serif; color: inherit; background: none; border: none; padding: 2px 0; text-align: left; }
button.tileline { color: var(--ink); cursor: pointer; }
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rows.miss { border-color: var(--miss-line); }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.row:first-child { border-top: none; }
.rows.miss .row { border-top-color: var(--miss-row); }
.row .grow { flex: 1; min-width: 0; }
.row .route { font-weight: 600; }
.row .r { text-align: right; flex: none; }
.row .time { font-weight: 700; font-variant-numeric: tabular-nums; }
.row.risk { background: var(--risk-row); }
.riskt { color: var(--miss) !important; font-weight: 600; }
.row .sub2 { font-size: 13px; color: var(--muted); margin-top: 2px; }
.coll { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.coll > summary { list-style: none; min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.coll > summary::-webkit-details-marker { display: none; }
.coll .chev { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; transition: transform 0.15s; }
.coll[open] .chev { transform: rotate(180deg); }
.coll .collbody { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.coll .rows { border-radius: 10px; }
.muted { color: var(--muted); font-weight: 500; }
.pill.okp { background: var(--ok-soft); color: var(--ok-ink); }
.h2sub { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.card.dark { background: #14181F; border-color: #14181F; color: #FFFFFF; }
.light { color: #B9C6E8 !important; }
.bignum.light, .ratio.light { color: #FFFFFF !important; }
.numbers.spread { justify-content: space-between; }
.numbers .col.r { text-align: right; align-items: flex-end; }
.bar.dark { background: #2A303B; }
.bar.dark .b-ok { background: #4ADE80; }
.bar.dark .b-miss { background: #F87171; }
.mini.light b { color: #FFFFFF; }
.mini.light .riskn { color: #FCA5A5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card.dark { background: #25282C; border-color: var(--line); } }
:root[data-theme="dark"] .card.dark { background: #25282C; border-color: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend b { color: var(--ink); font-weight: 700; }
.legend .dot { margin-right: 0; }
.legend.light b { color: #FFFFFF; }
.legend.light .riskn { color: #FCA5A5; }

/* ---- detail ---- */
.row.tap { cursor: pointer; }
.row.tap:hover { background: var(--fill); }
.row.tap:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.chevr { width: 14px; height: 14px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; }
.dethead { display: flex; align-items: center; gap: 12px; }
.dethead .grow { flex: 1; min-width: 0; }
.dettitle { font-size: 18px; font-weight: 700; }
.eyebrow.muted2 { color: var(--muted); }
.loc { display: flex; gap: 12px; align-items: flex-start; }
.pinico { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; }
.pinico svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 2; }
.strongline { font-size: 15px; font-weight: 600; }
.strong { font-weight: 700; }
.linkbtnfull { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.kv { display: flex; flex-direction: column; }
.kvrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.kvrow:first-child { border-top: none; }
.kvrow.dim { color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 11px; color: var(--muted); }
.wd { display: flex; flex-direction: column; gap: 4px; }
.chip7 { height: 30px; border-radius: 8px; display: block; }
.c-normal { background: var(--ok); }
.c-erken { background: var(--early); }
.c-gec { background: var(--late); }
.c-gelmedi { background: var(--surface); border: 2px solid var(--miss); box-sizing: border-box; }
.c-none { background: var(--fill); }
.seg.wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.seg.wrap button { flex: 1 1 auto; padding: 0 10px; }

/* ---- layout: day grid (phone: stacked; wide: two columns) ---- */
.daygrid, .colL, .colR, .colF { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.colL:empty, .colR:empty, .colF:empty { display: none; }
@media (min-width: 960px) {
  .app { max-width: none; margin: 0 0 0 220px; }
  .top, #dayNav { max-width: 1240px; }
  .main { max-width: 1240px; padding-left: 28px; padding-right: 28px; }
  .top { padding-left: 28px; padding-right: 28px; }
  .daycontrols { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .daybar { flex: 0 0 auto; }
  .daylabel { min-width: 150px; padding: 0 6px; }
  .titles { flex-direction: row; align-items: center; gap: 14px; }
  .chips { flex: 0 0 auto; }
  .searchbar { flex: 1 1 260px; }
  .daygrid { display: grid; grid-template-columns: minmax(320px, 2fr) minmax(0, 3fr); grid-template-areas: "l r" "f r"; grid-template-rows: auto 1fr; align-items: start; gap: 18px; }
  .colL { grid-area: l; } .colR { grid-area: r; } .colF { grid-area: f; }
  .app { padding-bottom: 24px; }
  .tabbar { top: 0; bottom: 0; right: auto; width: 220px; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 20px 12px 16px; border-top: none; border-right: 1px solid var(--line); }
  /* Branding lives at the top of the sidebar on desktop; the header keeps only the page title. */
  .sidebrand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 12px 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
  :root .tabbar .sidebrand .logo { height: 30px; }
  .sidebrand span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .top .brand > .logo, .top .brand > .divider { display: none; }
  .top .brand h1 { font-size: 22px; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
  .tab[aria-pressed="true"] { background: var(--blue-soft); }
  /* Wide screens: the 1240 px column sits in the middle of the space right of the sidebar
     (it used to hug the sidebar, leaving the right third empty); the header bar runs full width. */
  .top { max-width: none; padding-left: max(28px, calc((100% - 1240px) / 2 + 28px)); padding-right: max(28px, calc((100% - 1240px) / 2 + 28px)); }
  .main { width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
  #dayNav { max-width: none; }
  .cats, .subs { padding-left: max(28px, calc((100% - 1240px) / 2 + 28px)); padding-right: max(28px, calc((100% - 1240px) / 2 + 28px)); }
}
.detail { display: flex; flex-direction: column; gap: 16px; max-width: 720px; width: 100%; }

/* ---- analysis rankings ---- */
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.eyebrow.c-late { color: var(--late-ink); }
.eyebrow.c-early { color: var(--early-ink); }
.eyebrow.c-blue { color: var(--blue); }
.rlist { display: flex; flex-direction: column; }
.rrow { display: grid; grid-template-columns: 18px minmax(0, 1fr) 64px 26px 52px; align-items: center; gap: 8px; min-height: 40px; border: none; background: none; padding: 0; text-align: left; font: 500 13px Inter, sans-serif; color: var(--ink); cursor: pointer; border-top: 1px solid var(--line-soft); }
.rrow:first-child { border-top: none; }
.rrow:hover { background: var(--fill); }
.rn { color: var(--muted); }
.rname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbar { height: 6px; border-radius: 999px; background: var(--fill); display: flex; overflow: hidden; }
.rbar span { border-radius: 999px; }
.rbar .c-late { background: var(--late); }
.rbar .c-early { background: var(--early); }
.rbar .c-blue { background: var(--blue); }
.rc { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ra { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- biography ---- */
.btn.wide { width: 100%; justify-content: center; }
.btn.danger { color: var(--miss); border-color: var(--miss-line); }
.pill.missp { background: var(--miss-soft); color: var(--miss-ink); }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tri > div { display: flex; flex-direction: column; gap: 2px; }
.tri b { font-size: 22px; font-weight: 800; }
.tl { display: flex; flex-direction: column; }
.tli { display: flex; gap: 12px; padding-bottom: 12px; position: relative; }
.tli:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tld { width: 12px; height: 12px; border-radius: 50%; background: #9FB4EA; margin-top: 4px; flex: none; }
.tld.now { background: var(--blue); }
.linkcard { background: var(--early-soft); border-color: #F0D98A; }
.linkcard.ok { background: var(--ok-soft); border-color: transparent; }
.btnrow { display: flex; gap: 8px; }
.btnrow .btn { flex: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .linkcard { border-color: #5A4A10; } }
:root[data-theme="dark"] .linkcard { border-color: #5A4A10; }
.st.cikis { background: var(--fill); color: var(--muted); }
.c-cikis { background: #9FB4EA; }
.numbers .col.push { margin-left: auto; }
.lateink { color: var(--late-ink); }
.month { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 3px; }
.month .sq { aspect-ratio: 1; border-radius: 3px; display: block; }

/* ---- mesai servisleri ---- */
.otbox > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.otbox > summary::-webkit-details-marker { display: none; }
.otbox > summary::after { content: "›"; transform: rotate(90deg); color: var(--muted); font-size: 18px; transition: transform .15s; }
.otbox[open] > summary::after { transform: rotate(-90deg); }
.otbox:not([open]) { gap: 0; }
.otday { display: flex; flex-direction: column; gap: 8px; }
.otline { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.otline > span:first-child { min-width: 0; }
.otline .st { white-space: nowrap; }
@media (max-width: 420px) { .seg button { font-size: 13px; } }
.timepick { display: flex; align-items: center; gap: 4px; }
.timepick select { flex: 1; min-width: 0; }
.otright { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.otpeople { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.otpeople input, .peoplein { width: 52px; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; font-size: 14px; color: var(--ink); background: var(--surface); text-align: right; }
.peoplein { width: 52px; height: 30px; }
.otacts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.linkbtn.danger { color: var(--miss); font-weight: 700; }
.ottable th, .ottable td { padding-left: 6px; padding-right: 6px; }
.ottable th:first-child, .ottable td:first-child { padding-left: 12px; }
.ottable .peoplein { width: 44px; }

/* ---- home (desktop design approved 11 Kas) ---- */
.hhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.hhead h2 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.hpill { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.hhead { display: grid; grid-template-columns: 1fr auto 1fr; }
.hhead > :last-child { justify-self: end; }
.htasks { max-width: 520px; min-width: 0; color: var(--orange-ink); text-decoration: none; background: var(--orange-soft); border-color: var(--orange-line); }
.htasks span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htasks.none { background: var(--surface); border-color: var(--line); color: var(--muted); }
@media (max-width: 720px) { .hhead { grid-template-columns: 1fr; } .hhead > :last-child { justify-self: start; } .htasks { max-width: 100%; } }
.hsec { display: flex; flex-direction: column; gap: 12px; }
.hsec h2 { margin: 0; }
.hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
@media (max-width: 559px) { .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.htile { display: flex; flex-direction: column; gap: 14px; min-height: 132px; box-sizing: border-box; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.htile:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(20, 24, 31, 0.06); transform: translateY(-1px); }
.htile:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.hrow { display: flex; align-items: center; justify-content: space-between; }
.hicon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.hicon.plain { background: var(--fill); color: var(--ink); }
.hicon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hgo { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.htag { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--fill); border-radius: 999px; padding: 3px 8px; }
.htxt { display: flex; flex-direction: column; gap: 4px; }
.htxt b { font-size: 16px; }
.hsub { font-size: 13px; color: var(--muted); }
.hsub.miss { color: var(--miss); font-weight: 700; }
.hsub.ok { color: var(--ok-ink); font-weight: 700; }
.hbar { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; display: flex; margin-top: auto; }
.hbar span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }

/* Light / dark switch in the header (Akın, 15:01). */
.themebtn { flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.themebtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Kalkış on the web (Akın, 16:44): yolda left, hazır + GPS yok right. Phones: one column as before. */
.depgrid { display: flex; flex-direction: column; gap: 16px; }
.depcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 960px) { .depgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; } }

/* ---- phone day (Akın, 2026-11-11 21:12: approved mockup). Desktop keeps its own layout. ---- */
.phonly[hidden] { display: none; }
.prow { display: flex; gap: 8px; align-items: center; }
.prow .searchbar { flex: 1; min-width: 0; }
.datep { flex: none; height: 42px; max-width: 132px; padding: 0 28px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px; color: var(--ink); font: 600 15px Inter, sans-serif; -webkit-appearance: none; appearance: none; }
@media (max-width: 959px) {
  #dayNav { display: none; }
  .daycontrols .daybar, .daycontrols .chips { display: none; }
}
@media (min-width: 960px) { .phonly { display: none !important; } .prow { display: contents; } }
.pday { display: flex; flex-direction: column; gap: 14px; }
.seccards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seccard { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 12px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; font: inherit; }
.seccard.bad { border-color: var(--orange); }
.seccard[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.seccard.VARDIYA[aria-pressed="true"] { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.seccard.off { opacity: .7; }
.secpill { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--surface); background: var(--blue); }
.seccard.VARDIYA .secpill { background: var(--orange); }
.secsub { font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.3; }
.secbig { font-size: 22px; font-weight: 800; line-height: 1.15; }
.secbig.ok { color: var(--ok-ink); } .secbig.miss { color: var(--miss); }
.secratio { font-size: 13px; color: var(--muted); }
.secbar { display: flex; gap: 2px; width: 100%; height: 6px; border-radius: 99px; overflow: hidden; background: var(--fill); }
.secbar i { display: block; height: 100%; }
.secnext { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.phead { margin: 4px 2px -4px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wchips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.wchips::-webkit-scrollbar { display: none; }
.wchip { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; }
.wchip[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); }
.wchip.MEMUR[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.wname { font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: var(--orange-ink); white-space: nowrap; }
.wchip.MEMUR .wname { color: var(--blue); }
.wmeta { font-size: 14px; white-space: nowrap; }
.wmeta .miss { color: var(--miss); font-weight: 700; } .wmeta .ok { color: var(--ok-ink); font-weight: 700; } .wmeta .late { color: var(--late-ink); font-weight: 700; }
.sectag { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: var(--surface); background: var(--orange); vertical-align: 1px; }
.pday .section.missing h2 { margin-top: 2px; }
/* Akın (23:39): the jump to Personel Servis stands out in orange. */
.tab.tabswitch { color: var(--orange); }
/* Note on a missing service (Akın 12-11). */
.mnote { font-size: 12px; color: var(--ink); background: var(--line-soft); border-radius: 8px; padding: 4px 8px; margin-top: 4px; white-space: pre-wrap; }
.notearea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); resize: vertical; margin-top: 8px; }
.noteact { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.noteact .primary { height: 38px; padding: 0 16px; }
/* Swipe-to-note on missing rows (Akın 11:13): phone = swipe left, desktop = always-visible button. */
.mswipe { position: relative; display: flex; align-items: stretch; border-top: 1px solid var(--miss-row); overflow: hidden; }
.rows.miss > .mswipe:first-child { border-top: 0; }
.mswipe > .row { flex: 1; min-width: 0; border-top: 0; transition: transform .18s ease; }
.mnotebtn { flex: none; border: 0; background: none; color: var(--blue); font: 600 13px Inter, sans-serif; padding: 0 14px; cursor: pointer; white-space: nowrap; }
.mnoteedit { padding: 10px 14px 12px; border-top: 1px solid var(--miss-row); background: var(--line-soft); }
.mnoteedit .notearea { margin-top: 0; }
.mnoteedit .noteact .btn { height: 38px; padding: 0 14px; }
@media (hover: none) {
  .mnotebtn { position: absolute; right: 0; top: 0; bottom: 0; width: 108px; background: var(--blue); color: var(--surface); transform: translateX(100%); transition: transform .18s ease; white-space: normal; text-align: center; }
  .mswipe.swiped > .row { transform: translateX(-108px); }
  .mswipe.swiped > .mnotebtn { transform: none; }
}
/* Akın (12-11 20:31): the green dot in a collapsible's title kept off its text. */
.coll summary .dot { margin-right: 6px; }
/* Kalkış istatistiği (Akın 12-11 21:14): per vehicle late (orange) / missing (red) bars. */
.dsbars { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dsrow { display: grid; grid-template-columns: minmax(150px, 1.2fr) 2fr minmax(120px, 1.2fr); gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.dsrow:first-child { border-top: 0; }
.dsname, .dsnum { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
.dsnum { font-weight: 600; }
.dsbar { display: flex; gap: 2px; height: 12px; background: var(--line-soft); border-radius: 6px; overflow: hidden; }
.dsbar > span { display: block; height: 100%; }
.dsbar > span:first-child { border-radius: 6px 0 0 6px; }
.stat.late b { color: var(--late-ink, var(--late)); }
@media (max-width: 600px) { .dsrow { grid-template-columns: 1fr; gap: 6px; } }

/* Araç ataması: one card per güzergâh, its slots side by side (stacked on a phone). */
.asglist { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); margin: 10px 0; }
.asgrow { padding: 12px 14px; }
.asgslots { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-top: 8px; }
.asgslots .field { margin: 0; font-size: 12px; }
.asgslots select { width: 100%; min-width: 0; font-size: 14px; }

/* "En çok araç değişen": a route's changes, opened under its row (Akın, 14 Kas 22:02). */
.vcev { padding: 6px 10px 10px 34px; display: grid; gap: 4px; }
.vcrow { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted, #5b6b84); flex-wrap: wrap; }
.vcrow b { color: var(--ink, inherit); }
.asgrelief { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; }
.asgwk { padding: 8px; border-radius: 10px; background: var(--surface-2, rgba(31,79,191,.06)); }
/* Kalkış notları (Akın 17 Kas 16:42) */
.dnote { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 0 12px 8px; }
.dnote .mnote { margin-top: 0; }
.dnote .linkbtn { min-height: 28px; padding: 2px 0; }

/* Sol menü bölümleri (Akın 17 Kas 22:32–22:53): turuncu başlıklar; yalnız bilgisayarda */
.navhead { font: 700 11px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); padding: 14px 12px 4px; }
.tabbar a.tab { text-decoration: none; }
@media (max-width: 959px) { .deskonly { display: none !important; } }
@media (min-width: 960px) { .phonly2 { display: none !important; } }
.eyebrow.c-orange { color: var(--orange); }
@media (min-width: 960px) { .hgrid.h3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- Ana sayfa v2 (Akın 18 Kas 09:24, örnek görsel) ---- */
.hhero { position: relative; overflow: hidden; border-radius: 18px; min-height: 172px; display: flex; align-items: stretch; justify-content: space-between; gap: 16px; padding: 24px 28px; color: #fff; background: #0B2A5B; box-shadow: 0 10px 30px rgba(11, 42, 91, .18); }
.hheroart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; opacity: .78; }
.hherofade { position: absolute; inset: 0; background: linear-gradient(90deg, #0B2A5B 0%, rgba(11, 42, 91, .92) 30%, rgba(11, 42, 91, .55) 58%, rgba(11, 42, 91, .15) 100%); }
.hherotxt, .hherort { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hherotxt h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.hherosub { font-size: 15px; opacity: .85; padding-bottom: 10px; border-bottom: 2px solid rgba(255, 255, 255, .25); width: max-content; }
.hherochips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.hherort { align-items: flex-end; justify-content: space-between; }
.hglass { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; max-width: 100%; }
.hglass svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hglass.hclock { background: rgba(255, 255, 255, .92); color: #0B2A5B; }
.hherochips .hglass:first-child svg { stroke: #FCD34D; }
.hglass.htasks { background: rgba(253, 186, 116, .25); border-color: rgba(253, 186, 116, .6); color: #fff; max-width: 460px; }
.hglass.htasks.none { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .85); }
.hsech { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0B2A5B; }
.hsech::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: #1F6FEB; }
.hsec .htile { border-color: transparent; box-shadow: 0 2px 10px rgba(11, 42, 91, .07); }
.hsec .htile:hover { border-color: #BFD4F6; box-shadow: 0 8px 22px rgba(11, 42, 91, .12); }
.hicon { border-radius: 50%; background: #E6EFFD; color: #1F6FEB; }
.hicon svg { stroke-width: 2; }
.hicon.t-red { background: #FDE8E7; color: #D92D20; }
.hicon.t-orange { background: #FEF0E1; color: #E8730C; }
.hbadge { font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.hgo { stroke: #1F6FEB; opacity: .8; }
.hwave { display: none; }
@media (min-width: 960px) { .hwave { display: block; position: fixed; left: 220px; bottom: 0; width: calc(100vw - 220px); height: 90px; z-index: 0; pointer-events: none; } .main:has(.hhero) > :not(.hwave) { position: relative; z-index: 1; } }
.hwave path:first-child { fill: #E3EDFC; } .hwave path:last-child { fill: #D4E3FA; opacity: .7; }
@media (max-width: 720px) { .hhero { flex-direction: column; padding: 20px; } .hherort { align-items: flex-start; flex-direction: row; flex-wrap: wrap; } .hherotxt h2 { font-size: 24px; } }
@media (min-width: 960px) {
  /* Lacivert sol menü (örnek görsel). */
  .tabbar { background: linear-gradient(180deg, #0B2A5B 0%, #0A2350 60%, #081B3F 100%); border-right: none; color: rgba(255, 255, 255, .82); overflow: hidden; }
  .tabbar .tab { color: rgba(255, 255, 255, .82); }
  .tabbar .tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .tabbar .tab[aria-pressed="true"] { background: linear-gradient(90deg, #2F80ED, #3B8CF5); color: #fff; box-shadow: 0 4px 14px rgba(47, 128, 237, .35); }
  .tabbar .navhead { color: #8DB5F5; }
  .sidebrand { border-bottom-color: rgba(255, 255, 255, .12); }
  :root .tabbar .sidebrand .logo, :root[data-theme="dark"] .tabbar .sidebrand .logo, :root:not([data-theme="light"]) .tabbar .sidebrand .logo { filter: brightness(0) invert(1); background: none; padding: 0; height: 30px; }
  .sidebrand span { color: rgba(255, 255, 255, .7); }
  .sidefoot { margin-top: auto; padding: 18px 12px 4px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .85); position: relative; }
  .sidefoot i { display: block; } .sidefoot i::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: #2F80ED; margin-top: 10px; }
  /* The light glow sits at the very bottom of the menu, behind the credit (Akın 18 Kas 12:05). */
  .sidefoot::before { content: ""; position: absolute; left: -12px; right: -12px; bottom: -16px; height: 110px; background: radial-gradient(120% 70% at 30% 100%, rgba(47, 128, 237, .28), transparent 72%); pointer-events: none; }
}
.sidefoot { display: none; }
@media (min-width: 960px) { .sidefoot { display: block; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hsech { color: #C9DAF8; } :root:not([data-theme="light"]) .hicon { background: #26406B; color: #9DC0FA; } :root:not([data-theme="light"]) .hicon.t-red { background: #4A2B2B; color: #F59E97; } :root:not([data-theme="light"]) .hicon.t-orange { background: #4D3A2B; color: #FDBA74; } :root:not([data-theme="light"]) .hwave path { fill: #30353D; } :root:not([data-theme="light"]) .hgo { stroke: #9DC0FA; } }
:root[data-theme="dark"] .hsech { color: #C9DAF8; } :root[data-theme="dark"] .hicon { background: #26406B; color: #9DC0FA; } :root[data-theme="dark"] .hicon.t-red { background: #4A2B2B; color: #F59E97; } :root[data-theme="dark"] .hicon.t-orange { background: #4D3A2B; color: #FDBA74; } :root[data-theme="dark"] .hwave path { fill: #30353D; } :root[data-theme="dark"] .hgo { stroke: #9DC0FA; }

/* ---- İstanbul trafiği, küçük halka (Akın 18 Kas 09:42) ---- */
.htraffic { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; }
.htraffic svg { width: 52px; height: 52px; flex: none; }
.htraffic .trtrack { fill: rgba(11, 42, 91, .35); stroke: rgba(255, 255, 255, .25); stroke-width: 5; }
.htraffic .trarc { fill: none; stroke-width: 5; stroke-linecap: round; }
.trarc.l-ok { stroke: #4ADE80; } .trarc.l-mid { stroke: #FACC15; } .trarc.l-high { stroke: #FB923C; } .trarc.l-max { stroke: #F87171; }
.htraffic .trpct { position: absolute; left: 6px; width: 52px; text-align: center; font-size: 13px; font-weight: 800; }
.htraffic .trtxt { display: flex; flex-direction: column; line-height: 1.2; font-size: 12px; opacity: .9; }
.htraffic .trtxt b { font-size: 14px; opacity: 1; }
.sidecredit { display: block; margin-top: 14px; font-size: 10px; font-style: normal; line-height: 1.35; letter-spacing: .02em; color: rgba(255, 255, 255, .5); }

/* ---- Servisler nerede? v2 (Akın 18 Kas 10:17, örnek görsel) — masaüstü ---- */
@media (min-width: 960px) {
  body[data-page="day"] .app { background: linear-gradient(180deg, #F3F7FD 0%, #EEF3FB 100%); }
  body[data-page="day"] .top { background: transparent; border-bottom: none; }
  body[data-page="day"] .live { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; box-shadow: 0 1px 4px rgba(11, 42, 91, .06); }
  body[data-page="day"] .daybar { background: var(--surface); border-radius: 12px; padding: 4px; box-shadow: 0 2px 8px rgba(11, 42, 91, .07); }
  body[data-page="day"] .daybar .iconbtn { border: none; background: #EEF3FB; }
  body[data-page="day"] .chip { height: 38px; border: none; box-shadow: 0 2px 8px rgba(11, 42, 91, .07); }
  body[data-page="day"] .chip[aria-pressed="true"], :root body[data-page="day"] .chip[aria-pressed="true"] { background: #1F4FBF; border-color: #1F4FBF; color: #fff; }
  body[data-page="day"] .datepick select { border-radius: 999px; border: none; box-shadow: 0 2px 8px rgba(11, 42, 91, .07); height: 38px; }
  body[data-page="day"] .searchbar { background: var(--surface); border: none; border-radius: 999px; height: 44px; box-shadow: 0 2px 10px rgba(11, 42, 91, .08); }
  body[data-page="day"] #dayNav { padding-top: 4px; background: transparent; }
  /* Vardiya / Memur saat seçimi (Akın 18 Kas 11:08: köşelerde beyaz şerit): no white band, pills on the soft background. */
  body[data-page="day"] .subs { background: transparent; border-bottom: none; padding-top: 12px; padding-bottom: 2px; }
  body[data-page="day"] .sub { border: none; box-shadow: 0 2px 8px rgba(11, 42, 91, .07); }
  body[data-page="day"] .sub[aria-pressed="true"] { background: #1F4FBF; color: #fff; }
  body[data-page="day"] .tile { border: none; box-shadow: 0 2px 10px rgba(11, 42, 91, .07); border-radius: 14px; padding: 12px 14px; }
  body[data-page="day"] .tile .tilehead { color: #1F6FEB; }
  body[data-page="day"] .tile.next { background: var(--surface); color: var(--ink); border-left: 4px solid #8DB5F5; }
  body[data-page="day"] .tile.next .tilehead { color: var(--muted); }
  body[data-page="day"] .cats { position: static; margin: 0 max(28px, calc((100% - 1240px) / 2 + 28px)); max-width: none; background: var(--surface); border: none; border-radius: 16px; padding: 6px; gap: 6px; box-shadow: 0 2px 12px rgba(11, 42, 91, .08); }
  body[data-page="day"] .cat { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 64px; padding: 8px 16px; border-radius: 12px; border-bottom: 3px solid transparent; text-align: left; }
  body[data-page="day"] .cat:hover:not(:disabled) { background: #F3F7FD; }
  body[data-page="day"] .cat[aria-pressed="true"] { background: #EEF4FE; border-bottom-color: #1F6FEB; }
  body[data-page="day"] .cattxt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  body[data-page="day"] .caticon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #EEF3FB; color: #0B2A5B; }
  body[data-page="day"] .cat[aria-pressed="true"] .caticon { background: #1F6FEB; color: #fff; }
  body[data-page="day"] .caticon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  body[data-page="day"] .main .card { border: none; box-shadow: 0 2px 12px rgba(11, 42, 91, .08); }
  body[data-page="day"] .main .card.now { border-top: 4px solid #1F6FEB; }
  body[data-page="day"] .bignum { font-size: 64px; letter-spacing: -0.04em; }
  /* One panel: no gap between the red header and its list (Akın 18 Kas 11:54). */
  body[data-page="day"] .section.missing { gap: 0; }
  body[data-page="day"] .section.missing .rows.miss { border-top: none; }
  body[data-page="day"] .section.missing h2 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; border-radius: 14px 14px 0 0; background: var(--miss-soft); color: var(--miss-ink); border: 1px solid var(--miss-line); border-bottom: none; }
  body[data-page="day"] .section.missing h2::before { content: "!"; width: 18px; height: 18px; border-radius: 50%; background: var(--miss); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
  body[data-page="day"] .section.missing .rows.miss { border-radius: 0 0 14px 14px; background: var(--miss-soft); padding: 8px; display: flex; flex-direction: column; gap: 8px; border-color: var(--miss-line); }
  /* Each missing service is one card: the row and its "Not ekle" button together. */
  body[data-page="day"] .section.missing .mswipe, body[data-page="day"] .section.missing .rows.miss > .row { border: 1px solid var(--miss-line); border-radius: 12px; background: var(--surface); overflow: hidden; }
  body[data-page="day"] .section.missing .mswipe .row { border: none; background: transparent; }
  body[data-page="day"] .section.missing .mswipe:hover, body[data-page="day"] .section.missing .rows.miss > .row:hover { box-shadow: 0 4px 12px rgba(180, 35, 24, .1); }
  body[data-page="day"] .section.missing .row.tap:hover { background: transparent; }
  body[data-page="day"] .mnotebtn { color: #1F6FEB; font-weight: 700; }
  body[data-page="day"] .main .rows:not(.miss) { border: none; box-shadow: 0 2px 12px rgba(11, 42, 91, .08); }
}
@media (min-width: 960px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body[data-page="day"] .app { background: var(--ground); } :root:not([data-theme="light"]) body[data-page="day"] .caticon { background: #26406B; color: #C9DAF8; } :root:not([data-theme="light"]) body[data-page="day"] .cat[aria-pressed="true"], :root:not([data-theme="light"]) body[data-page="day"] .cat:hover:not(:disabled) { background: #2F3A4E; } :root:not([data-theme="light"]) body[data-page="day"] .daybar .iconbtn { background: #2F3A4E; } }
@media (min-width: 960px) { :root[data-theme="dark"] body[data-page="day"] .app { background: var(--ground); } :root[data-theme="dark"] body[data-page="day"] .caticon { background: #26406B; color: #C9DAF8; } :root[data-theme="dark"] body[data-page="day"] .cat[aria-pressed="true"], :root[data-theme="dark"] body[data-page="day"] .cat:hover:not(:disabled) { background: #2F3A4E; } :root[data-theme="dark"] body[data-page="day"] .daybar .iconbtn { background: #2F3A4E; } }
