/* ==========================================================================
   TONICEFFECTS — arayüz stilleri
   ========================================================================== */

:root {
  --bg: #0c0f16;
  --bg-elev: #131824;
  --surface: #171d2b;
  --surface-2: #1e2637;
  --surface-3: #263049;
  --border: #2a3348;
  --border-soft: #212a3c;

  --text: #e8edf6;
  --text-dim: #a3aec2;
  --text-mute: #6f7d95;

  --accent: #5b8cff;
  --accent-soft: #5b8cff22;
  --ok: #35c98a;
  --ok-soft: #35c98a22;
  --warn: #f0a03c;
  --warn-soft: #f0a03c22;
  --danger: #e8635c;
  --danger-soft: #e8635c22;
  --purple: #a879f0;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px #0008;

  --nav-h: calc(58px + env(safe-area-inset-bottom));
  --head-h: 56px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f4f9;
    --bg-elev: #ffffff;
    --surface: #ffffff;
    --surface-2: #f4f6fb;
    --surface-3: #e8ecf5;
    --border: #dde3ee;
    --border-soft: #e8ecf4;
    --text: #131a26;
    --text-dim: #4d5a70;
    --text-mute: #7b8798;
    --shadow: 0 8px 24px #1a2c5510;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior-y: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--accent); text-decoration: none; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

/* ------------------------------------------------------------------ düzen */

#app { min-height: 100%; }

.shell {
  padding-bottom: calc(var(--nav-h) + 8px);
  max-width: 1240px;
  margin: 0 auto;
}

header.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--head-h);
  padding: 0 14px;
  padding-top: env(safe-area-inset-top);
  height: calc(var(--head-h) + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

header.top h1 {
  font-size: 17px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.2px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
header.top .sub { font-size: 12px; color: var(--text-mute); font-weight: 500; }

main { padding: 14px; display: grid; gap: 14px; }

/* --------------------------------------------------------------- bileşenler */

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.card > .card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.card > .card-head h2 { margin: 0; font-size: 14px; font-weight: 640; letter-spacing: -0.1px; }
.card > .card-body { padding: 14px; }

.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 560;
  transition: filter .12s, transform .08s;
  white-space: nowrap;
}
/* Satır içi SVG'lerin öz boyutu yoktur; kısıtlanmazsa 200px+ çizilirler. */
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.sm svg { width: 15px; height: 15px; }
.btn.icon svg { width: 18px; height: 18px; }
.btn.icon.sm svg { width: 15px; height: 15px; }

.btn:active { transform: scale(.975); }
.btn:hover { filter: brightness(1.12); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #06251a; }
.btn.danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn.sm { height: 31px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 38px; padding: 0; }
.btn.icon.sm { width: 31px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.field { display: grid; gap: 5px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--text-mute); letter-spacing: .2px; }
.input, select.input, textarea.input {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea.input { height: auto; padding: 10px 11px; resize: vertical; min-height: 72px; line-height: 1.45; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%), linear-gradient(135deg, var(--text-mute) 50%, transparent 50%); background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* dar ekranda filtre açılırları taşmasın */
.filters select.input { font-size: 12.5px; padding: 0 24px 0 9px; background-position: calc(100% - 13px) 17px, calc(100% - 8px) 17px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 620;
  background: var(--surface-3);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip.planned { background: var(--surface-3); color: var(--text-dim); }
.chip.active  { background: var(--accent-soft); color: var(--accent); }
.chip.done    { background: var(--ok-soft); color: var(--ok); }
.chip.blocked { background: var(--warn-soft); color: var(--warn); }
.chip.cancelled { background: var(--danger-soft); color: var(--danger); text-decoration: line-through; }
.chip.high { background: var(--danger-soft); color: var(--danger); }

.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.bar-dot { width: 4px; border-radius: 3px; align-self: stretch; flex: none; }

.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex: none; letter-spacing: -.3px;
}
.avatar.lg { width: 40px; height: 40px; font-size: 15px; }
.avatar.sm { width: 20px; height: 20px; font-size: 9.5px; }

/* ilerleme çubuğu */
.pbar { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; flex: 1; min-width: 40px; }
.pbar > i { display: block; height: 100%; border-radius: 4px; background: var(--accent); transition: width .3s ease; }
.pbar.done > i { background: var(--ok); }
.pbar.zero > i { background: var(--text-mute); }

/* halka ilerleme */
.ring { --p: 0; --size: 44px; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--ring-c, var(--accent)) calc(var(--p) * 1%), var(--surface-3) 0); }
.ring::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring > span { position: relative; z-index: 1; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ring.big { --size: 92px; }
.ring.big::after { inset: 8px; background: var(--surface); }
.ring.big > span { font-size: 22px; }

/* ------------------------------------------------------------- tarih şeridi */

.datestrip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 14px 4px;
  scrollbar-width: none;
}
.datestrip::-webkit-scrollbar { display: none; }
.dcell {
  flex: none;
  width: 52px;
  padding: 7px 0 8px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  text-align: center;
  transition: background .12s;
}
.dcell .dw { font-size: 10.5px; color: var(--text-mute); font-weight: 650; text-transform: uppercase; letter-spacing: .3px; }
.dcell .dd { font-size: 17px; font-weight: 680; margin-top: 1px; font-variant-numeric: tabular-nums; }
.dcell .dm { font-size: 9.5px; color: var(--text-mute); }
.dcell.sel { background: var(--accent); border-color: var(--accent); color: #fff; }
.dcell.sel .dw, .dcell.sel .dm { color: #ffffffcc; }
.dcell.today:not(.sel) { border-color: var(--accent); }
.dcell.weekend:not(.sel) .dd { color: var(--text-mute); }
.dcell i.pip { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); margin: 3px auto 0; }
.dcell.sel i.pip { background: #fff; }

/* --------------------------------------------------------------- iş kartları */

.roomgroup { display: grid; gap: 8px; }
.roomgroup > .rg-head {
  display: flex; align-items: center; gap: 9px;
  padding: 0 2px;
}
.rg-head .rname { font-size: 13.5px; font-weight: 660; }
.rg-head .rmeta { font-size: 11.5px; color: var(--text-mute); }

.job {
  display: flex;
  gap: 11px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color .12s, transform .08s;
  text-align: left;
  width: 100%;
}
.job:active { transform: scale(.99); }
.job:hover { border-color: var(--border); }
.job.is-done { opacity: .72; }
.job.is-cancelled { opacity: .5; }
.job .jtime {
  flex: none; width: 46px; text-align: right;
  font-size: 13px; font-weight: 680; font-variant-numeric: tabular-nums; line-height: 1.25;
}
.job .jtime small { display: block; font-size: 11px; font-weight: 500; color: var(--text-mute); }
.job .jbody { flex: 1; min-width: 0; display: grid; gap: 6px; }
.job .jtitle { font-size: 14.5px; font-weight: 620; letter-spacing: -.15px; line-height: 1.3; }
.job .jsub { font-size: 12px; color: var(--text-mute); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.job .jprog { display: flex; align-items: center; gap: 8px; }
.job .jprog .pct { font-size: 11.5px; font-weight: 700; min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-dim); }

.empty { padding: 34px 18px; text-align: center; color: var(--text-mute); }
.empty .big { font-size: 34px; margin-bottom: 8px; opacity: .55; }

/* ---------------------------------------------------------- oda zaman çizgisi */

.tlwrap { overflow-x: auto; padding-bottom: 4px; }
.timeline { min-width: 760px; }
.tl-hours { display: flex; padding-left: 104px; border-bottom: 1px solid var(--border-soft); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.tl-hours > div { flex: 1; font-size: 10.5px; color: var(--text-mute); padding: 5px 0 5px 4px; border-left: 1px solid var(--border-soft); font-variant-numeric: tabular-nums; }
.tl-row { display: flex; border-bottom: 1px solid var(--border-soft); min-height: 48px; }
.tl-row:last-child { border-bottom: none; }
.tl-label { width: 104px; flex: none; padding: 8px 10px; display: flex; align-items: center; gap: 7px; border-right: 1px solid var(--border-soft); position: sticky; left: 0; background: var(--surface); z-index: 1; }
.tl-label .n { font-size: 12px; font-weight: 620; line-height: 1.15; }
.tl-track { flex: 1; position: relative; padding: 6px 0; }
.tl-track .gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border-soft); }
.tl-block {
  position: absolute;
  height: 36px;
  border-radius: 8px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid #ffffff22;
  color: #fff;
  font-size: 11px;
  line-height: 1.15;
  text-align: left;
  box-shadow: 0 2px 6px #0004;
}
.tl-block .t { font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block .p { opacity: .85; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-block .pb { position: absolute; left: 0; bottom: 0; height: 3px; background: #ffffffdd; }
.tl-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 3; }
.tl-now::before { content: ''; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

/* ------------------------------------------------------------------- panel */

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 13px 14px; }
.stat .k { font-size: 11.5px; color: var(--text-mute); font-weight: 620; letter-spacing: .2px; }
.stat .v { font-size: 25px; font-weight: 700; letter-spacing: -.6px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 13px; font-weight: 600; color: var(--text-mute); }

.breakdown { display: grid; gap: 11px; }
.bd-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.bd-row .name { font-size: 13px; font-weight: 580; display: flex; align-items: center; gap: 7px; min-width: 0; }
.bd-row .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-row .val { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.bd-row .track { grid-column: 1 / -1; }

.statusbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-3); }
.statusbar > i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.legend > div { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-dim); }

/* -------------------------------------------------------------------- akış */

.feed { display: grid; gap: 0; }
.fitem { display: flex; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--border-soft); }
.fitem:last-child { border-bottom: none; }
.fitem .ftext { flex: 1; min-width: 0; }
.fitem .fmain { font-size: 13.5px; line-height: 1.4; }
.fitem .fdet { font-size: 12px; color: var(--text-dim); margin-top: 3px; word-break: break-word; }
.fitem .fmeta { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }

/* ------------------------------------------------------------------- sheet */

.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: #000a; backdrop-filter: blur(2px);
  animation: fade .16s ease;
}
@keyframes fade { from { opacity: 0 } }

.sheet {
  position: fixed; z-index: 91;
  left: 0; right: 0; bottom: 0;
  max-height: 92vh;
  background: var(--bg-elev);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  animation: slideup .22s cubic-bezier(.2,.8,.3,1);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes slideup { from { transform: translateY(30px); opacity: .4 } }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 50%); width: 640px; border-radius: 18px; border: 1px solid var(--border); max-height: 86vh; }
  @keyframes slideup { from { transform: translate(-50%, calc(50% + 20px)); opacity: .4 } }
}
.sheet .grip { width: 38px; height: 4px; border-radius: 3px; background: var(--surface-3); margin: 9px auto 2px; flex: none; }
.sheet .sh-head { display: flex; align-items: flex-start; gap: 10px; padding: 8px 16px 12px; border-bottom: 1px solid var(--border-soft); flex: none; }
.sheet .sh-head h2 { margin: 0; font-size: 17px; font-weight: 660; letter-spacing: -.3px; line-height: 1.25; }
.sheet .sh-body { overflow-y: auto; padding: 14px 16px 18px; display: grid; gap: 15px; -webkit-overflow-scrolling: touch; }
.sheet .sh-foot { flex: none; padding: 11px 16px; border-top: 1px solid var(--border-soft); display: flex; gap: 9px; }

.section-title { font-size: 11.5px; font-weight: 700; color: var(--text-mute); letter-spacing: .5px; text-transform: uppercase; }

/* görev listesi */
.tasks { display: grid; gap: 2px; }
.tsk {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid transparent;
  width: 100%; text-align: left; transition: background .12s;
}
.tsk:hover { background: var(--surface-2); }
.tsk .box {
  width: 22px; height: 22px; border-radius: 7px; flex: none; margin-top: 1px;
  border: 2px solid var(--border); display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.tsk.on .box { background: var(--ok); border-color: var(--ok); }
.tsk .box svg { opacity: 0; transition: opacity .15s; }
.tsk.on .box svg { opacity: 1; }
.tsk .tbody { flex: 1; min-width: 0; }
.tsk .ttitle { font-size: 14px; line-height: 1.35; }
.tsk.on .ttitle { color: var(--text-mute); text-decoration: line-through; }
.tsk .tmeta { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* --------------------------------------------------------------- alt menü */

nav.tabs {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  height: var(--nav-h);
  padding-bottom: env(safe-area-inset-bottom);
  display: flex;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-soft);
}
nav.tabs button {
  flex: 1; display: grid; place-items: center; gap: 2px;
  color: var(--text-mute); font-size: 10.5px; font-weight: 600;
  padding-top: 7px;
}
nav.tabs button.on { color: var(--accent); }
nav.tabs button svg { width: 21px; height: 21px; }

/* ---------------------------------------------------------------- giriş */

.login {
  min-height: 100vh; display: grid; place-items: center; padding: 22px;
}
.login .box { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.login .brand { text-align: center; display: grid; gap: 6px; justify-items: center; }
.login .brand .logo { width: 62px; height: 62px; border-radius: 17px; background: linear-gradient(150deg, var(--accent), var(--purple)); display: grid; place-items: center; box-shadow: 0 10px 26px #5b8cff33; }
.login .brand h1 { margin: 6px 0 0; font-size: 23px; letter-spacing: -.6px; }
.login .people { display: grid; gap: 7px; max-height: 42vh; overflow-y: auto; }
.person { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border-soft); width: 100%; text-align: left; }
.person.sel { border-color: var(--accent); background: var(--accent-soft); }
.person .nm { font-size: 14.5px; font-weight: 600; }
.person .rl { font-size: 11.5px; color: var(--text-mute); }
.pinrow { display: flex; gap: 8px; }
.pinrow .input { text-align: center; letter-spacing: 8px; font-size: 19px; font-weight: 700; height: 48px; }

/* --------------------------------------------------------------- bildirim */

.toast-wrap { position: fixed; z-index: 200; left: 0; right: 0; bottom: calc(var(--nav-h) + 12px); display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 14px; }
.toast { background: var(--surface-3); color: var(--text); border: 1px solid var(--border); padding: 10px 15px; border-radius: 11px; font-size: 13.5px; font-weight: 560; box-shadow: var(--shadow); animation: pop .2s; max-width: 92vw; }
.toast.err { background: var(--danger); border-color: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); border-color: var(--ok); color: #062418; }
@keyframes pop { from { transform: translateY(8px); opacity: 0 } }

/* ---------------------------------------------------------- uyarı kutusu */

.warnbox {
  background: var(--warn-soft);
  border: 1px solid var(--warn);
  color: var(--warn);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 12.5px;
  line-height: 1.45;
  display: grid;
  gap: 3px;
}

.offbar { border-color: var(--warn); }

sup.plus1 { font-size: 8.5px; font-weight: 800; color: var(--warn); margin-left: 1px; vertical-align: super; }

/* ------------------------------------------------------------- bildirim */

.btn.bell { position: relative; color: var(--text-dim); }
.btn.bell .badge {
  position: absolute; top: 2px; right: 1px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700; font-style: normal;
  display: grid; place-items: center;
  border: 2px solid var(--bg);
  box-sizing: content-box;
}

.fitem.notif { width: 100%; text-align: left; background: none; align-items: flex-start; }
.fitem.notif:hover { background: var(--surface-2); }
.fitem.notif.unread .fmain { font-weight: 640; }
.fitem.notif .nicon { font-size: 17px; line-height: 1.2; flex: none; width: 22px; text-align: center; }
.fitem.notif .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; align-self: center; }

.live { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--text-mute); font-weight: 600; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.live.off i { background: var(--text-mute); }

/* --------------------------------------------------------------- masaüstü */

@media (min-width: 860px) {
  main { grid-template-columns: 1fr; padding: 18px; }
  .split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }
}

.hint { font-size: 12px; color: var(--text-mute); line-height: 1.5; }
hr.sep { border: none; border-top: 1px solid var(--border-soft); margin: 2px 0; }

/* oda yetkisi rozetleri (Ayarlar → Ekip) */
.chip.roomright { cursor: pointer; background: var(--surface-2); border: 1px solid var(--border); }
.chip.roomright:hover { filter: brightness(1.2); }

/* ---------------------------------------------------- haftalık ızgara */

.wkwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wk {
  display: grid;
  grid-template-columns: 96px repeat(var(--gun), minmax(118px, 1fr));
  min-width: 760px;
}

.wk-corner {
  position: sticky; left: 0; z-index: 3;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 10px;
  font-size: 11.5px; font-weight: 700; color: var(--text-mute);
  letter-spacing: .3px; text-transform: uppercase;
}

.wk-day {
  border-bottom: 1px solid var(--border-soft);
  border-left: 1px solid var(--border-soft);
  padding: 6px 8px 7px;
  text-align: center;
  background: var(--surface);
  position: sticky; top: 0; z-index: 2;
  cursor: pointer;
}
.wk-day .d { font-size: 16px; font-weight: 680; font-variant-numeric: tabular-nums; line-height: 1.15; }
.wk-day .w { font-size: 10.5px; color: var(--text-mute); font-weight: 620; text-transform: uppercase; }
.wk-day.today { background: var(--accent-soft); }
.wk-day.today .d { color: var(--accent); }

.wk-off { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; }
.wk-off span {
  font-size: 9px; font-weight: 700; line-height: 1;
  background: var(--surface-3); border-radius: 4px; padding: 2px 3px;
  opacity: .85;
}

.wk-room {
  position: sticky; left: 0; z-index: 1;
  background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border-soft);
  padding: 8px 9px;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 620; line-height: 1.2;
}
.wk-room span:last-child { overflow: hidden; text-overflow: ellipsis; }

.wk-cell {
  border-bottom: 1px solid var(--border-soft);
  border-left: 1px solid var(--border-soft);
  padding: 4px;
  min-height: 46px;
  display: grid; gap: 3px; align-content: start;
}
.wk-cell.weekend { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.wk-cell.today { background: color-mix(in srgb, var(--accent) 6%, transparent); }

.wk-job {
  width: 100%; text-align: left;
  border: none; border-left: 3px solid var(--accent);
  border-radius: 5px;
  padding: 4px 5px;
  display: grid; gap: 1px;
  transition: filter .12s;
}
.wk-job:hover { filter: brightness(1.25); }
.wk-job.is-done { opacity: .55; }
.wk-job.is-cancelled { opacity: .4; }
.wk-job.is-cancelled .wk-t { text-decoration: line-through; }
.wk-t {
  font-size: 11px; font-weight: 620; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.wk-p {
  display: block;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wk-m {
  font-size: 9.5px; color: var(--text-mute);
  display: flex; gap: 4px; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.wk-m b { font-weight: 700; }

/* kopyalama diyaloğundaki oda seçici */
.roompick {
  display: grid; gap: 2px;
  max-height: 232px; overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px;
}
.roompick label {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: 7px; cursor: pointer;
  font-size: 13px; line-height: 1;
}
.roompick label:active { background: var(--surface-2); }
.roompick input[type=checkbox] { width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.roompick .rp-all { border-bottom: 1px solid var(--border); border-radius: 7px 7px 0 0; margin-bottom: 2px; }
.roompick .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
