/* Devir · görsel dil — UI v1 "Sakin kâğıt, net durum" (devir-ui-v1/DESIGN.md)
   Zemin sessiz, renk yalnız durum anlatır. Oda numarası ekranın en büyük şeyidir. Kırmızı yalnız etikette
   ve küçük noktada; asla bütün bir kutuda ya da dolu bir düğmede. Yan şerit yok, kartta gölge yok.
   Dokunma hedefi ≥ 44 px, birincil eylem 60 px. Renkler yalnız var(--x): değerler src/theme.js'te. */

/* ---------------------------------------------------------------- yazı tipleri (projeye gömülü, OFL) */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('./fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('./fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* İlk boyama için açık tema değerleri. Çalışma anında src/theme.js tüm tokenları
     (açık / koyu / otel) kök elemana yazar; aşağıdaki kurallar yalnız var(--x) kullanır. */
  --bg: #FFFEFC; --surface: #FFFFFF; --inset: #F6F3EE; --ink: #17201E; --ink-2: #5B6461; --line: #E6E1D8; --line-2: #D2CBBF;
  --accent: #0F5E56; --accent-soft: #E1EFEC; --accent-ink: #FFFFFF;
  --top: #FFFEFC; --top-ink: #17201E; --top-ink-2: #5B6461; --top-chip: #FFFFFF; --top-chip-line: #E6E1D8;
  --nav: #FFFFFF; --btn-ink: #17201E; --btn-ink-fg: #FFFFFF; --correction-line: #EDE9FD;
  --note-btn: #FFFFFF; --note-meta: #6E4103; --top-live: #116A33;
  --danger: #B42318; --danger-soft: #FDE8E5; --danger-ink: #FFFFFF;
  --dirty: #B7410E; --dirty-soft: #FBE7DC; --dirty-ink: #FFFFFF;
  --cleaning: #8A5205; --cleaning-soft: #FCF0C9;
  --correction: #6D28D9; --correction-soft: #EDE9FE;
  --clean: #1D4ED8; --clean-soft: #DFE8FD;
  --inspected: #116A33; --inspected-soft: #DCF3E3; --ok-ink: #FFFFFF;
  --ooo: #4B5563; --ooo-soft: #E5E7EB; --ooo-stripe: #D6DAE0;
  --warn-ink: #6E4103;
  --note-bg: #FFF8E5; --note-line: #E8C877; --note-ink: #5C3A02;
  --info-bg: #EEF4FF; --info-line: #C7D8F5;
  --badge-bg: #ECEAE3; --dot: #9AA3A0; --pending: #B45309;
  --backdrop: rgba(20, 26, 24, .45); --shadow-c: rgba(0, 0, 0, .06);
  --brand-1: #0F5E56; --brand-2: #0F5E56;
  --fs: 16px;
  --font-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-num: 'Fraunces', Georgia, 'Times New Roman', serif;
  /* hareket: az ve işlevsel — yalnız transform, opacity ve renkler */
  --ease: cubic-bezier(.2, .8, .2, 1); --dur-1: 120ms; --dur-2: 200ms; --dur-3: 260ms;
}
@media (min-width: 900px) { :root { --fs: 15px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-ui); font-size: var(--fs); font-weight: 600; line-height: 1.35; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
small { font-weight: 400; }
.splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100dvh; padding: 24px; text-align: center; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.splash-status { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); min-height: 20px; }
.splash-hint { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); max-width: 30ch; }
.splash-error { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--danger); max-width: 40ch; }

/* ---------------------------------------------------------------- kabuk: üst bar */
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 68px; background: var(--top); color: var(--top-ink); display: flex; align-items: center; gap: 10px; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); }
.topbar.has-mark { min-height: 96px; }
.who { display: flex; flex-direction: column; justify-content: center; gap: 10px; flex: 1; min-width: 0; }
.topbar-mark { line-height: 1; }
.topbar-mark:empty { display: none; }
.who-id { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.who-id b { font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-role { font-size: 13px; font-weight: 400; color: var(--top-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-sub { display: none; }
.grow { flex: 1; }
/* vardiya hapı: nokta = bağlantı durumu; canlı dışındaki hâllerde etiket her genişlikte görünür */
.status-chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--top-chip); border: 1px solid var(--top-chip-line); color: var(--top-ink); font-size: 13px; font-weight: 700; white-space: nowrap; flex: none; }
.status-chip > i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
.status-chip.live > i { background: var(--top-live); }
.status-chip.pending > i { background: var(--pending); }
.status-chip.offline > i { background: var(--danger); }
.status-chip.is-manual { background: var(--cleaning-soft); color: var(--warn-ink); border-color: var(--note-line); }
.shift-chip { border: 0; background: none; padding: 0; margin: -4px 0; min-height: 44px; font-weight: 700; cursor: pointer; color: inherit; white-space: nowrap; }
.shift-chip:disabled { cursor: default; opacity: 1; }
.shift-chip + .net-lb::before { content: '· '; }
.status-chip.live:not(.no-shift) .net-lb { display: none; }
.net { display: inline-flex; align-items: center; gap: 6px; }
.top-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0; border-radius: 999px; border: 1px solid var(--top-chip-line); background: var(--top-chip); color: var(--top-ink); cursor: pointer; transition: transform var(--dur-1) var(--ease), background-color var(--dur-3) var(--ease); -webkit-tap-highlight-color: transparent; }
.top-btn:active { transform: scale(.97); }
.top-btn .lbl { display: none; }
.ti { display: inline-flex; animation: iconIn var(--dur-2) var(--ease); }

/* ---------------------------------------------------------------- sayfa, bölümler */
.main { flex: 1; padding: 4px 16px; max-width: 1280px; width: 100%; margin: 0 auto; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.section { margin: 18px 0; }
.main > .section:first-child, .main > .page-top + .section { margin-top: 6px; }
.section-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.section-h .count { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 0 8px; font-size: 12px; line-height: 20px; letter-spacing: 0; }
.section-h .right { margin-left: auto; font-weight: 500; text-transform: none; letter-spacing: 0; }
/* sekmenin ana bölümü: başlığı sayfa başlığıdır (26/700); sayı yanında meta */
.section.lead > .section-h { font-size: 26px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--ink); margin: 4px 0 14px; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.section.lead > .section-h .count { background: none; color: var(--ink-2); padding: 0; font-size: 14px; font-weight: 400; line-height: 1.2; }
.section.lead > .section-h .right { font-size: 14px; font-weight: 400; color: var(--ink-2); }
/* "Yeni +" sağ üstte: ana bölümün başlığıyla aynı satırda */
/* (z-index YOK: "Yeni +" sheet'i bu kutunun içinde açılır; yığın bağlamı kurulursa sheet menünün altında kalır) */
.page-top { display: flex; justify-content: flex-end; margin: 6px 0 6px; }
.page-top + .section.lead { margin-top: -50px; }
.page-top + .section.lead > .section-h { padding-right: 116px; min-height: 44px; pointer-events: none; }
.page-top + .section.lead > .section-h .right { pointer-events: auto; }
.seg-wrap { margin: 4px 0 14px; }

/* ---------------------------------------------------------------- kartlar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.card + .card { margin-top: 12px; }
.card.is-pending { opacity: .7; }
.task { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.task.compact { gap: 10px; }
.headline { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.num { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.headline .num { font-size: 30px; }
.title { font-weight: 650; }
.task .meta, .meta { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.task .action { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }

/* iş kartı: oda no · başlık + meta · durum hapı; altta tam genişlik birincil eylem */
.tcard > .task, .clist > .task { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.tcard > .task > .num { font-size: 44px; flex: none; }
.tmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tcard .title { font-size: 18px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.tcard .tmain > .badges { margin-top: 6px; }
.tpill { flex: none; align-self: center; }
.tcard.is-compact > .task > .num { font-size: 32px; }
.tcard.is-compact .title { font-size: 16px; }
.badge-inline { margin-left: 6px; vertical-align: 1px; padding: 2px 6px; border-radius: 5px; font-size: 11px; }
.task-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.task-cta > .btn:first-child:not(.btn-sm):not(.btn-link) { flex: 1 1 180px; min-height: 60px; font-size: 19px; }
.task-cta > .btn-sm:first-child { min-height: 44px; }
.task-body { margin-top: 10px; }
.task-more { margin-top: 4px; }
.tnote { margin-top: 8px; }
/* Düzeltme: mor çerçeve + içte "ŞEF · AD" ve not */
.tcard.is-rework { border-color: var(--correction-line); }
.rework-box { margin-top: 12px; background: var(--correction-soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rework-box b { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--correction); }
.rework-box div { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }

/* checklist: başlık + adım sayısı, ince ilerleme çubuğu, 56 px adım satırları */
.clist .title { font-size: 17px; font-weight: 700; }
.clist-tog { width: 44px; padding: 0; flex: none; }
.progress { height: 6px; border-radius: 999px; background: var(--inset); margin-top: 12px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.steps { margin: 12px -16px -16px; display: flex; flex-direction: column; }
.step { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 16px; border-top: 1px solid var(--line); }
.step-btn { width: 44px; height: 44px; margin: -8px; flex: none; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.step-btn::before { content: ''; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.step-btn:active::before { background: var(--accent-soft); border-color: var(--accent); }
.step-mark { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; font-style: normal; flex: none; color: var(--accent-ink); transition: background-color var(--dur-2) var(--ease); }
.step-mark .ic { width: 16px; height: 16px; animation: fadeIn var(--dur-2) var(--ease); }
.step.done .step-mark { background: var(--accent); border-color: var(--accent); }
.step-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.step-title { font-size: 16px; font-weight: 600; }
.step.done .step-title { text-decoration: line-through; color: var(--ink-2); }
.step-t small { font-size: 12px; }
.step-undo { border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 4px; flex: none; }

/* ---------------------------------------------------------------- etiket, durum hapı */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--badge-bg); color: var(--ink-2); white-space: nowrap; line-height: 1.2; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warn { background: var(--cleaning-soft); color: var(--warn-ink); }
.badge-info { background: var(--clean-soft); color: var(--clean); }
.badge-dark { background: var(--ink); color: var(--bg); }
.badge-outline { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.badge-ok { background: var(--inspected-soft); color: var(--inspected); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
/* DND: turuncu kesik = bildirildi (doğrulanmadı), dolu kırmızı = onaylı, açık kırmızı = zamanlı */
.badge-dnd { background: var(--dirty-soft); color: var(--dirty); border: 1px dashed var(--dirty); padding: 3px 7px; }
.badge-dnd-on { background: var(--danger); color: var(--danger-ink); }
.badge-correction { background: var(--correction-soft); color: var(--correction); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 12px 5px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.2; transition: background-color var(--dur-3) var(--ease), color var(--dur-3) var(--ease); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pill-dirty { background: var(--dirty-soft); color: var(--dirty); }
.pill-cleaning { background: var(--cleaning-soft); color: var(--cleaning); }
.pill-correction { background: var(--correction-soft); color: var(--correction); }
.pill-clean { background: var(--clean-soft); color: var(--clean); }
.pill-inspected { background: var(--inspected-soft); color: var(--inspected); }
.pill-ooo { background: var(--ooo-soft); color: var(--ooo); }
.pill-state { background: var(--inset); color: var(--ink-2); }

/* ---------------------------------------------------------------- düğmeler: hepsi hap */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.15; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-3) var(--ease), color var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn .ic { flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ok { background: var(--inspected); color: var(--ok-ink); }
.btn-ink { background: var(--btn-ink); color: var(--btn-ink-fg); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
/* kırmızı dolgu düğme yok: "danger" da danger-soft görünür; yalnız "Emin misin?" anı dolu */
.btn-danger, .btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-danger.is-armed { background: var(--danger); color: var(--danger-ink); }
.btn-warn { background: var(--dirty); color: var(--dirty-ink); }
.btn-link { background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-xl { min-height: 60px; padding: 0 24px; font-size: 19px; }
.btn-wide { width: 100%; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.linkish { background: none; border: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; font-weight: 700; }
.mini { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.demo-badge { font-size: 10px; font-weight: 800; background: var(--cleaning-soft); color: var(--warn-ink); padding: 2px 6px; border-radius: 6px; letter-spacing: .06em; }

/* ---------------------------------------------------------------- oda haritası */
.grid-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; }
.grid-rooms.fo { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
/* kartın tamamı durumun açık tonunda; hazır oda beyaz + çizgi; arızalı 135° gri çizgili */
.tile { --st: var(--ink-2); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 3px; min-height: 76px; padding: 8px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-3) var(--ease); }
.tile:active { transform: scale(.97); }
.tile-wide { min-height: 118px; padding: 11px 12px; border-radius: 16px; justify-content: flex-start; }
.tile-dirty { --st: var(--dirty); background: var(--dirty-soft); }
.tile-cleaning { --st: var(--cleaning); background: var(--cleaning-soft); }
.tile-correction { --st: var(--correction); background: var(--correction-soft); }
.tile-clean { --st: var(--clean); background: var(--clean-soft); }
.tile-inspected { --st: var(--inspected); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tile-ooo { --st: var(--ooo); background: repeating-linear-gradient(135deg, var(--ooo-soft) 0 8px, var(--ooo-stripe) 8px 16px); }
.tile.is-selected { outline: 3px solid var(--accent); outline-offset: 1px; }
.tile.has-attention { outline: 2px solid var(--danger); outline-offset: -2px; }
.tile.is-unassigned:not(.is-selected) { outline: 1px dashed var(--danger); outline-offset: -1px; }
.tile.is-pending { opacity: .7; }
.tile-top { display: flex; align-items: flex-start; gap: 6px; }
.tile-num { font-family: var(--font-num); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1; margin-right: auto; }
.tile-wide .tile-num { font-size: 26px; }
.tile-occ { font-size: 11px; font-weight: 800; color: var(--ink-2); line-height: 1.6; }
.tile-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st); margin-top: 3px; flex: none; }
.tile-guest { font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-guest.is-guest { color: var(--ink); }
.tile-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.tile-badges .badge { font-size: 10px; padding: 2px 6px; border-radius: 5px; letter-spacing: .04em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tile-narrow .tile-badges .badge { font-size: 9px; padding: 1px 4px; white-space: normal; }
.tile-narrow .tile-badges .badge-dnd { padding: 0 3px; }
.tile-note { font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--note-ink); background: var(--note-bg); border-radius: 5px; padding: 2px 5px; max-height: 30px; overflow: hidden; }
.tile-ok { font-size: 12px; font-weight: 600; color: var(--inspected); line-height: 1.2; }
.tile-narrow .tile-ok { font-size: 10px; font-weight: 700; }
.tile-foot { margin-top: auto; min-height: 14px; display: flex; align-items: center; }
/* dar kart (HK, telefonda 5 sütun): baş harf numaranın altına, onay yalnız "✓ Ad", not tek satır */
.tile-narrow { padding: 7px 6px; }
.tile-narrow .tile-top { flex-wrap: wrap; column-gap: 4px; row-gap: 1px; }
.tile-narrow .tile-occ { order: 3; flex-basis: 100%; font-size: 10px; line-height: 1.2; }
.tile-narrow .ok-rest { display: none; }
.tile-narrow .tile-ok ~ .tile-foot .tile-assignee { display: none; }
.tile-narrow .tile-note { white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.tile-narrow .tile-assignee { font-size: 9.5px; letter-spacing: -.01em; }
.tile-assignee { font-size: 11px; font-weight: 800; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.is-unassigned .tile-assignee { color: var(--danger); }
.tile-state { font-size: 13px; font-weight: 800; color: var(--st); }
.tile-state::before { content: '● '; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.fchip { min-height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; }
.fchip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }
.fcount { margin-left: 6px; font-variant-numeric: tabular-nums; }

/* HK durum sayaçları: eşit kutular, durum açık tonu, Fraunces sayı */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 4px 0 14px; }
@media (min-width: 600px) { .kpis { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); } }
.kpi { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: center; }
.kpi b { display: block; font-family: var(--font-num); font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.kpi span { font-size: 11px; font-weight: 700; line-height: 1.2; }
.kpi.k-dirty { background: var(--dirty-soft); color: var(--dirty); box-shadow: none; }
.kpi.k-cleaning { background: var(--cleaning-soft); color: var(--cleaning); box-shadow: none; }
.kpi.k-correction { background: var(--correction-soft); color: var(--correction); box-shadow: none; }
.kpi.k-clean { background: var(--clean-soft); color: var(--clean); box-shadow: none; }
.kpi.k-inspected { background: var(--inspected-soft); color: var(--inspected); box-shadow: none; }
.kpi.k-ooo { background: var(--ooo-soft); color: var(--ooo); box-shadow: none; }
.kpi.k-danger { background: var(--danger-soft); color: var(--danger); box-shadow: none; }

/* ---------------------------------------------------------------- kişi / filtre / ürün çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 650; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-1) var(--ease), background-color var(--dur-3) var(--ease), color var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease); }
.chip:active { transform: scale(.97); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.chip.on-shift i { background: var(--inspected); }
.chip[data-person] i { display: none; }
.chip small { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--inset); color: var(--ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.chip.is-on small { background: rgba(255, 255, 255, .22); color: inherit; }
.chip.is-off { opacity: .5; }
.chip:disabled { opacity: .45; cursor: default; }
.chip-sm { min-height: 40px; padding: 0 14px; font-size: 15px; font-weight: 600; }
.pchip.is-svc:not(.is-on) { border-color: var(--correction); }
.card.dist { padding: 14px; margin-bottom: 14px; }
.dist-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.dist-h b { font-size: 16px; font-weight: 700; }

/* ---------------------------------------------------------------- TEK DİKKAT ALANI: beyaz kart, nokta + etiket */
.attn { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 14px; display: flex; flex-direction: column; }
.alarm-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-size: 18px; font-weight: 700; color: var(--ink); }
.alarm-h .count { margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--danger); color: var(--danger-ink); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.attn > .mini { padding: 0 16px 16px; font-size: 15px; font-weight: 600; }
.alarm-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: none; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.attn-row { flex-wrap: wrap; }
.attn-row::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; align-self: center; background: transparent; }
.attn-row.lv-0::before { background: var(--danger); }
.attn-row.lv-1::before { background: var(--cleaning); }
.alarm-row.is-taken, .alarm-row.is-pending { opacity: .7; }
.alarm-main { flex: 1 1 0; min-width: 0; }
.alarm-title { display: flex; align-items: baseline; gap: 8px; font-size: 16px; font-weight: 700; }
.alarm-num { font-family: var(--font-num); font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.attn-t { min-width: 0; overflow-wrap: anywhere; }
.attn-row .alarm-main > .mini { font-size: 12px; font-weight: 500; color: var(--ink-2); margin-top: 3px; }
.attn-type { font-weight: 800; letter-spacing: .05em; color: var(--ink); text-transform: uppercase; }
.attn-type.t-unowned, .attn-type.t-critical, .attn-type.t-late { color: var(--danger); }
.attn-type.t-dnd { color: var(--warn-ink); }
.attn-row > .btn { flex: none; }
.attn-manage { flex-basis: 100%; padding-left: 20px; }
.alarm-sys { font-size: 12px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.alarm-late { color: var(--danger); }
.attn-more { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; text-decoration: none; color: var(--accent); }
.attn-taken { padding: 10px 16px; border-top: 1px solid var(--line); opacity: .75; }
.countdown { height: 4px; border-radius: 999px; background: var(--inset); overflow: hidden; margin-top: 6px; }
.countdown i { display: block; height: 100%; background: var(--danger); }

/* ---------------------------------------------------------------- notlar */
.notices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.notice-card { background: var(--info-bg); border: 1px solid var(--info-line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.notice-card.is-all { background: var(--note-bg); border-color: var(--note-line); }
.notice-card.is-read { background: var(--surface); border-color: var(--line); }
.notice-body { white-space: pre-wrap; font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--ink); }
.notice-card.is-all .notice-body { color: var(--note-ink); }
.notice-foot { display: flex; align-items: center; gap: 12px; }
.notice-foot .mini { flex: 1; min-width: 0; font-size: 13px; }
.notice-card.is-all .notice-foot .mini { color: var(--note-meta); }
.notice-card .btn { background: var(--surface); color: var(--ink); border-color: transparent; }
.notice-card.is-all .btn { background: var(--note-btn); }
.notice-more { align-self: flex-start; border: 0; background: none; padding: 4px 0; min-height: 32px; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
/* devir notu: beyaz kart, 16/600 */
.hero-note { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 16px; font-weight: 600; line-height: 1.4; white-space: pre-wrap; }
.hero-note.is-loading { min-height: 118px; }
.hero-note .from { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.room-note { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-weight: 600; color: var(--note-ink); }

/* ---------------------------------------------------------------- talep sepeti ve talep kartları */
.basket { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 0 14px; margin: 6px 0 12px; }
.basket.is-empty { border-style: dashed; background: none; padding: 14px; text-align: center; }
.bk-line { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bk-line:last-of-type { border-bottom: 0; }
.bk-line.is-blocked .bk-main b { text-decoration: line-through; opacity: .6; }
.bk-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.bk-main b { font-size: 16px; font-weight: 650; flex-basis: 100%; }
.bk-to { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.bk-to.is-svc { color: var(--correction); }
.bk-defer { min-height: 36px; font-size: 13px; }
.bk-warn { margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--cleaning-soft); color: var(--warn-ink); font-weight: 700; font-size: 13px; }
.bk-split { padding: 8px 0 12px; font-size: 14px; }
/* adet seçici: tek hap grup, − / + 40 px */
.qty { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 0; height: 40px; border: 1px solid var(--line-2); border-radius: 999px; flex: none; }
.qty .chip { width: 40px; min-height: 38px; padding: 0; border: 0; background: none; justify-content: center; font-size: 18px; font-weight: 700; }
.qty b { min-width: 26px; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bk-group { border-bottom: 1px solid var(--line); }
.bk-group-h { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 10px 2px; min-height: 48px; font-weight: 700; font-size: 16px; color: var(--ink); cursor: pointer; text-align: left; }
.bk-group-h span { flex: 1; }
.bk-group-h small { color: var(--ink-2); font-weight: 600; }
.bk-group-b { padding: 0 0 12px; }
/* yapışkan alt: özet + tam genişlik birincil eylem */
.bk-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); background: var(--surface); padding: 12px 0 8px; margin-top: 8px; border-top: 1px solid var(--line); }
.bk-foot .btn { min-height: 56px; font-size: 18px; }
.rq-card .headline { display: flex; align-items: baseline; gap: 10px; }
.rq-card.is-done { opacity: .7; }
.rq-part { padding-top: 8px; margin-top: 8px; border-top: 1px dashed var(--line); }
.rq-card .headline + .rq-part { border-top: 0; margin-top: 4px; }
.rq-part > .row { flex-wrap: nowrap; }
.rq-part > .row > .mini { flex: 1; min-width: 0; }
.rq-lines { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rq-line { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: var(--inset); border: 1px solid var(--line); }
.rq-line i { font-style: normal; font-weight: 800; }
.rq-line.is-edit { cursor: pointer; min-height: 36px; }
.rq-line.s-delivered i { color: var(--inspected); }
.rq-line.s-missing { background: var(--danger-soft); border-color: var(--danger); }
.rq-line.s-missing i { color: var(--danger); }
.rq-line.s-skipped, .rq-line.s-cancelled { opacity: .55; text-decoration: line-through; }
.rq-line small { font-weight: 500; color: var(--ink-2); }
.rq-note { width: 90px; font: inherit; font-size: 13px; border: 1px solid var(--line-2); border-radius: 8px; padding: 2px 6px; background: var(--surface); color: var(--ink); }

/* ---------------------------------------------------------------- onay, kendi onayı, DND */
.tile-ok + .tile-foot { margin-top: auto; }
.approval { font-size: 13px; font-weight: 500; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--inspected-soft); color: var(--ink); }
.approval b { color: var(--inspected); }
.ask { border: 1px solid var(--inspected); background: var(--inspected-soft); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.ask-q { font-weight: 700; font-size: 18px; margin: 4px 0 10px; }
.dnd-card { border: 1px solid var(--dirty); background: var(--dirty-soft); border-radius: 16px; padding: 12px 14px; }
.dnd-card + .dnd-card { margin-top: 8px; }
.shift-lock { font-size: 13px; color: var(--ink-2); padding: 6px 0 2px; }
.shift-lock.is-set { color: var(--ink); font-weight: 700; }
.item-row { padding: 6px 0; border-bottom: 1px solid var(--line); }
.item-row:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- sheet (alt sayfa / sağ panel) */
.sheet-backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn var(--dur-3) var(--ease); }
.sheet { position: relative; background: var(--surface); width: 100%; max-height: 92dvh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: 0 -8px 30px var(--shadow-c); animation: sheetUp var(--dur-3) var(--ease); }
.sheet-grab { display: block; width: 40px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 8px auto 0; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px 8px; }
.sheet-head h2 { flex: 1; min-width: 0; font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sheet-body { padding: 4px 16px 16px; overflow: auto; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.icon-btn { width: 44px; height: 44px; flex: none; border: 0; border-radius: 999px; background: var(--inset); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform var(--dur-1) var(--ease); }
.icon-btn:active { transform: scale(.97); }
.sheet-backdrop.is-full { align-items: stretch; }
.sheet.sheet-full { max-height: 100dvh; height: 100dvh; border-radius: 0; }
.sheet.sheet-full .sheet-grab { display: none; }

/* ---------------------------------------------------------------- form */
.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, textarea.input, select.input { border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; background: var(--surface); color: var(--ink); min-height: 48px; width: 100%; font-size: 16px; font-weight: 500; transition: border-color var(--dur-2) var(--ease); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 .5px var(--accent); }
textarea.input { min-height: 88px; padding: 12px 14px; line-height: 1.4; resize: vertical; }
input[type="search"].input { padding-left: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858D89' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 14px center; background-size: 20px; }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; }
.switch input { width: 22px; height: 22px; accent-color: var(--accent); }
.box { background: var(--inset); border: 0; border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.timepick { display: inline-flex; align-items: center; gap: 4px; }
.timepick select.input { width: auto; min-width: 76px; padding: 0 10px; font-variant-numeric: tabular-nums; font-weight: 700; }
.timepick option:disabled { color: var(--line-2); }
.room-picker { display: flex; flex-wrap: wrap; gap: 6px; max-height: 176px; overflow-y: auto; padding: 2px; }
.pick { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; width: 100%; border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 14px; background: var(--surface); cursor: pointer; min-height: 62px; }
.pick b { font-size: 16px; }
.pick span { font-size: 13px; color: var(--ink-2); }
.pick:active { background: var(--accent-soft); }

/* ---------------------------------------------------------------- geri bildirim, boş durum, kapı */
.toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 16px; z-index: 100; max-width: 92vw; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); animation: toastIn var(--dur-2) var(--ease); }
.toast.error { background: var(--danger); color: var(--danger-ink); }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px 16px; text-align: center; color: var(--ink-2); font-size: 16px; font-weight: 600; }
.gate { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.soon .empty { padding: 48px 18px; }
.soon .empty b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.clock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.clock-date { font-size: 14px; font-weight: 700; color: var(--ink-2); text-transform: capitalize; }
.clock-time { font-family: var(--font-num); font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- iş notları, fotoğraflar */
.notes { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.note { font-size: 14px; background: var(--inset); border-radius: 10px; padding: 8px 10px; }
.note.rework { background: var(--correction-soft); color: var(--correction); font-weight: 600; }
.note small { color: var(--ink-2); margin-left: 6px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }

/* ---------------------------------------------------------------- vardiya planı, tablolar */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.t th, .t td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.t th { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.t tr:last-child td { border-bottom: 0; }
.t td.num, .t th.num { text-align: right; font-family: inherit; letter-spacing: 0; }
table.plan th.is-today { background: var(--accent-soft); }
table.plan td { padding: 4px; }
table.plan td:first-child { padding: 6px 10px; }
.sp-cell { width: 100%; min-height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-weight: 800; cursor: pointer; color: var(--ink-2); transition: background-color var(--dur-3) var(--ease); }
.sp-cell.is-set { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-soft); }
table.plan td .sp-cell.is-today { border-color: var(--accent); }

/* ---------------------------------------------------------------- düzen */
.two-col { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); align-items: start; }
  .two-col > aside { position: sticky; top: 76px; max-height: calc(100dvh - 92px); overflow: auto; padding-right: 2px; }
}

/* ---------------------------------------------------------------- PIN / giriş */
.pin { max-width: 380px; margin: 0 auto; padding: 24px 16px; display: flex; flex-direction: column; gap: 16px; min-height: 100dvh; justify-content: center; }
.pin h1 { text-align: center; font-size: 22px; font-weight: 700; }
.pin .sub { text-align: center; color: var(--ink-2); font-weight: 400; }
.pin .dots { display: flex; justify-content: center; gap: 14px; min-height: 24px; }
.pin .dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-2); display: inline-block; transition: background-color var(--dur-2) var(--ease); }
.pin .dots i.on { background: var(--ink); border-color: var(--ink); }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pad button { min-height: 64px; font-family: var(--font-num); font-size: 28px; font-weight: 600; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform var(--dur-1) var(--ease), background-color var(--dur-2) var(--ease); }
.pad button:active { background: var(--accent-soft); transform: scale(.97); }
.pin .err { color: var(--danger); text-align: center; font-weight: 700; min-height: 22px; }
.pin .foot { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.demo-pins { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.demo-pins-h { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.demo-pin { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); cursor: pointer; text-align: left; transition: transform var(--dur-1) var(--ease); }
.demo-pin:active { background: var(--accent-soft); transform: scale(.97); }
.demo-pin b { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .08em; font-size: 17px; color: var(--accent); }
.demo-pin span { font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* otel yazı-markası: marka rengi YALNIZ burada ve dekoratif (koyu üst barda altın); metin rengi olarak kullanılmaz */
.wordmark { display: inline-flex; align-items: baseline; gap: 1px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 400; letter-spacing: .01em; line-height: 1; color: var(--ink); white-space: nowrap; }
.topbar .wordmark { color: var(--brand-1); }
.wordmark i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); display: inline-block; margin-left: 3px; transform: translateY(-1px); }
.wordmark-img { max-height: 28px; max-width: 160px; }
.devir-mark { font-family: var(--font-num); font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.devir-mark i { font-style: normal; color: var(--accent); }

/* geçiş (segment) ve tema seçici */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--inset); }
.theme-switch button { border: 0; background: transparent; padding: 0 14px; min-height: 40px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.theme-switch button.is-on { background: var(--ink); color: var(--bg); }

/* ---------------------------------------------------------------- personel raporu */
.report-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.spot { border-radius: 18px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); }
.spot h4 { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.spot.good h4 { color: var(--inspected); }
.spot.weak h4 { color: var(--danger); }
.spot .who { font-size: 18px; font-weight: 700; }
.spot .why { font-size: 13px; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.rep { display: grid; gap: 12px; }
.rep-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.rep-card.is-weak { border-color: var(--danger); }
.rep-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rep-top .name { font-weight: 700; font-size: 18px; }
.rep-top .role { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.rep-top .done { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--ink-2); }
.rep-top .done b { font-family: var(--font-num); font-weight: 600; color: var(--ink); font-size: 20px; }
.rep-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 10px; }
.rep-row > span:first-child { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.meter { display: flex; align-items: center; gap: 10px; min-width: 0; }
.meter .track { flex: 1; height: 8px; border-radius: 999px; background: var(--inset); overflow: hidden; min-width: 60px; }
.meter .fill { height: 100%; border-radius: 999px; background: var(--accent); }
.meter.warn .track { background: var(--cleaning-soft); } .meter.warn .fill { background: var(--cleaning); }
.meter.bad .track { background: var(--danger-soft); } .meter.bad .fill { background: var(--danger); }
.meter .val { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.meter .n { font-size: 12px; font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.split { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.split b { font-weight: 800; }
.split .late b { color: var(--warn-ink); } .split .miss b { color: var(--danger); }
.rep-foot { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; font-weight: 400; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rep-foot .flag { color: var(--danger); font-weight: 700; }
@media (max-width: 480px) { .rep-row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------------------------------------------------------------- müdür eylemleri, personel listesi */
.manage { margin-top: 10px; }
.manage .row { flex-wrap: wrap; }
.cancel-line { font-size: 13px; color: var(--danger); font-weight: 600; margin-top: 4px; }
.ro-tag { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }
.pl-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; min-height: 60px; cursor: pointer; transition: transform var(--dur-1) var(--ease); }
.pl-row:active { transform: scale(.99); }
.pl-row .name { font-weight: 700; font-size: 16px; }
.pl-row .sub { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.pl-row .nums { margin-left: auto; display: flex; gap: 6px; flex: none; }
.pl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); flex: none; }
.pl-dot.on { background: var(--inspected); }
.sent-row { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sent-row:last-child { border-bottom: 0; }
.sent-row .when { font-size: 12px; font-weight: 400; color: var(--ink-2); white-space: nowrap; }
.sent-row .unread { color: var(--warn-ink); font-weight: 700; }
.done-row { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.done-row:last-child { border-bottom: 0; }
.done-row time { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 13px; flex: none; min-width: 42px; }
.take-wait { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.take-wait .linkish { font-size: 12px; }

/* ---------------------------------------------------------------- ALT MENÜ (telefon) / SOL MENÜ (≥ 900 px) */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: stretch; min-height: 80px; padding: 8px 4px calc(10px + env(safe-area-inset-bottom)); background: var(--nav); border-top: 1px solid var(--line); }
.bnav-brand { display: none; }
.bnav-item { flex: 1 1 0; min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; padding: 0 2px; background: none; border: 0; color: var(--ink-2); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.bnav-ic { position: relative; width: 56px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: transform var(--dur-1) var(--ease), background-color var(--dur-2) var(--ease); }
.bnav-item:active .bnav-ic { transform: scale(.92); }
.bnav-item.is-on { color: var(--accent); }
.bnav-item.is-on .bnav-ic { background: var(--accent-soft); }
.bnav-lb { font-size: 11px; font-weight: 600; line-height: 1.15; text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.bnav-item.is-on .bnav-lb { font-weight: 800; }
.bnav-badge, .bnav-halo { position: absolute; top: -3px; right: 4px; height: 18px; min-width: 18px; border-radius: 999px; }
.bnav-badge { padding: 0 5px; background: var(--dirty); color: var(--dirty-ink); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--nav); }
/* yeni bildirim halesi: yalnız görülmemiş bildirimi olan sekmede; sekme açılınca durur */
.bnav-halo { width: 18px; background: var(--dirty); filter: blur(1.5px); pointer-events: none; animation: halo 2.2s var(--ease) infinite; }
.shell.has-nav .main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.shell.has-nav .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------- geniş ekran */
@media (min-width: 900px) {
  .topbar { min-height: 68px; padding: 0 32px; gap: 14px; border-bottom: 1px solid var(--line); }
  .topbar.has-mark { min-height: 68px; }
  .topbar-mark { display: none; }
  .who-id { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 1px; }
  .who-role { font-size: 16px; font-weight: 700; color: var(--top-ink); }
  .who-role::before { content: '· '; }
  .who-sub { display: block; flex-basis: 100%; font-size: 13px; font-weight: 400; color: var(--top-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .status-chip { height: 38px; padding: 0 14px; font-size: 14px; }
  .status-chip .net-lb, .status-chip.live:not(.no-shift) .net-lb { display: inline; }
  .theme-btn { width: 40px; height: 40px; }
  .lock-btn { width: auto; height: 40px; padding: 0 16px; font-size: 14px; font-weight: 700; }
  .lock-btn svg { width: 18px; height: 18px; }
  .lock-btn .lbl { display: inline; }
  .main { padding: 22px 32px 32px; }
  .sheet-backdrop { align-items: stretch; justify-content: flex-end; }
  .sheet { width: 480px; max-height: 100dvh; height: 100dvh; border-radius: 0; animation-name: sheetLeft; }
  .sheet-grab { display: none; }
  .sheet-head { padding-top: 16px; }
  .sheet.sheet-full { width: min(760px, 100vw); }
  .bnav { top: 0; right: auto; bottom: 0; width: 96px; min-height: 0; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 18px 8px; border-top: 0; border-right: 1px solid var(--line); z-index: 15; }
  .bnav-brand { display: flex; height: 44px; align-items: center; justify-content: center; margin-bottom: 10px; overflow: hidden; }
  .bnav-brand .wordmark { font-size: 12px; letter-spacing: -.01em; }
  .bnav-brand .wordmark i { width: 5px; height: 5px; margin-left: 2px; }
  .bnav-item { flex: 0 0 auto; min-height: 66px; padding: 10px 0; gap: 4px; border-radius: 14px; justify-content: center; transition: background-color var(--dur-2) var(--ease); }
  .bnav-item.is-on { background: var(--accent-soft); }
  .bnav-item.is-on .bnav-ic { background: none; }
  .bnav-ic { width: 40px; height: 24px; }
  .bnav-lb { font-size: 12px; }
  .bnav-badge, .bnav-halo { top: -6px; right: -6px; }
  .bnav-badge { box-shadow: 0 0 0 2px var(--nav); }
  .bnav-item.is-on .bnav-badge { box-shadow: 0 0 0 2px var(--accent-soft); }
  .shell.has-nav .topbar, .shell.has-nav .main { margin-left: 96px; width: calc(100% - 96px); }
  .shell.has-nav .main { padding-bottom: 32px; }
  .shell.has-nav .toast { bottom: 16px; }
  .notice-card { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; }
  .notice-body { flex: 1; font-size: 15px; }
  .notice-foot { flex: none; }
  .notice-foot .mini { flex: none; }
  .kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  /* masaüstünde birincil eylem kart boyu uzamasın (telefonda tam genişlik) */
  .task-cta > .btn:first-child:not(.btn-sm):not(.btn-link) { flex: 0 1 360px; }
}

/* ---------------------------------------------------------------- hareket */
@keyframes halo { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(2); opacity: 0; } 100% { transform: scale(2); opacity: 0; } }
@keyframes iconIn { from { transform: rotate(-35deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetLeft { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* tema değişimi: zemin, metin, çerçeve renkleri akar (themeFade() kısa süre bu sınıfı ekler) */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color var(--dur-3) var(--ease), color var(--dur-3) var(--ease), border-color var(--dur-3) var(--ease), box-shadow var(--dur-3) var(--ease), fill var(--dur-3) var(--ease), stroke var(--dur-3) var(--ease) !important; }
@media (prefers-reduced-motion: reduce) {
  .bnav-halo { animation: none; opacity: 0; }
  .ti, .step-mark .ic { animation: none; }
  *, *::before, *::after { transition: none !important; }
  .btn:active, .top-btn:active, .icon-btn:active, .chip:active, .tile:active, .pad button:active, .demo-pin:active, .pl-row:active, .bnav-item:active .bnav-ic { transform: none; }
  .sheet { animation: fadeIn var(--dur-3) linear; }
  .toast { animation: fadeIn var(--dur-2) linear; }
}
