/* Red Holiday Rentals — yönetim ve misafir arayüzü.
   Marka: logodaki kırmızı (#c00901) ve mürekkep siyahı. Tek imza öğe: logodaki el çizimi çizgi (başlık altı). */
:root {
  color-scheme: light;
  --bg: #f5f3f2;
  --surface: #ffffff;
  --ink: #1a1415;
  --ink-2: #3c3235;
  --muted: #6b6164;
  --line: #e6e0de;
  --line-strong: #d3c9c7;
  --accent: #c00901;
  --accent-dark: #8f0701;
  --accent-ink: #ffffff;
  --accent-soft: #fbeceb;
  --ok: #17703f; --ok-soft: #e1f3e8;
  --wait: #8a5200; --wait-soft: #fff0d1;
  --off: #766a6d; --off-soft: #efe9ea;
  --bad: #b3261e;
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 9.5C30 3 70 10.5 118 2.5' fill='none' stroke='%231a1415' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-body); font-variant-numeric: lining-nums; }
body.guest { padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.012em; }
h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
a { color: var(--accent-dark); }
.wrap { max-width: 920px; margin: 0 auto; display: grid; gap: 18px; }
.guest .wrap { max-width: 560px; }
.brand-top { display: block; width: min(230px, 62%); height: auto; margin: 4px auto 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.row { display: flex; gap: 10px 12px; flex-wrap: wrap; align-items: center; }
.row > * { min-width: 0; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 14px; }
.grid.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.login { max-width: 400px; width: calc(100% - 32px); margin: 9vh auto 0; padding: 26px 24px; }
.login .brand-top { margin-bottom: 4px; }

label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 11px; width: 100%; min-height: 42px; }
textarea { line-height: 1.4; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--accent); }
input[type=color] { padding: 2px; min-height: 42px; width: 64px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192, 9, 1, .16); }
button:focus-visible, a:focus-visible, .cal-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button { font: inherit; font-weight: 600; cursor: pointer; min-height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); transition: background-color .12s, border-color .12s, color .12s; }
button:hover:not(:disabled) { border-color: var(--ink); background: #faf8f8; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
button.danger { color: var(--bad); }
button.danger:hover:not(:disabled) { border-color: var(--bad); background: #fdf1f0; }
button.small { min-height: 34px; padding: 0 11px; font-size: .85rem; }
button.ghost { border-color: transparent; background: transparent; }
button.ghost:hover:not(:disabled) { background: #f1ecea; border-color: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.small { min-height: 34px; padding: 0 11px; font-size: .85rem; }
a.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
a.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.big-btn { min-height: 54px; font-size: 1.05rem; }

/* ---- yönetim iskeleti ---- */
body.admin { padding: 0; }
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 12px 14px; display: flex; flex-direction: column; gap: 14px; }
.brand { padding: 2px 8px 10px; border-bottom: 1px solid var(--line); }
.brand img { display: block; width: 100%; max-width: 190px; height: auto; }
.nav { display: grid; gap: 2px; }
.nav-title { font-size: .76rem; font-weight: 600; color: var(--muted); padding: 12px 12px 4px; }
.nav button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 11px; text-align: left; border: 0; border-radius: 8px; padding: 0 12px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.nav button .ic { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.nav button:hover:not(:disabled) { background: #f4efee; border: 0; }
.nav button[aria-current="page"], .nav button[aria-current="page"]:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent-dark); }
.nav button[aria-current="page"] .ic { opacity: 1; stroke: var(--accent); }
.side-foot { margin-top: auto; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.me { padding: 0 8px 6px; display: grid; gap: 0; font-size: .85rem; }
.me strong { font-weight: 700; }
.me span { color: var(--muted); font-size: .78rem; }
.side-foot button { width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink-2); min-height: 36px; font-size: .88rem; }
.side-foot button:hover:not(:disabled) { background: #f4efee; border: 0; }
.main { min-width: 0; padding: 30px max(28px, env(safe-area-inset-right)) 64px max(32px, env(safe-area-inset-left)); display: grid; gap: 22px; align-content: start; max-width: 1240px; width: 100%; }
.topbar { display: none; }
.scrim { display: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.page-head h1::after { content: ''; display: block; width: 104px; height: 11px; margin-top: 6px; background: var(--swoosh) no-repeat left center / contain; }
.page-head .muted { font-size: .9rem; padding-bottom: 4px; }

@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-102%); transition: transform .18s ease; padding-top: max(20px, env(safe-area-inset-top)); box-shadow: none; }
  .shell.open .side { transform: translateX(0); box-shadow: 8px 0 30px rgba(0, 0, 0, .18); }
  .shell.open .scrim { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(26, 20, 21, .45); }
  .topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); padding: max(8px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left)); }
  .topbar img { height: 30px; width: auto; }
  .topbar strong { font-family: var(--font-display); margin-left: auto; font-size: 1rem; }
  .main { padding: 20px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); }
  h1 { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } button { transition: none; } }

/* ---- ortak parçalar ---- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.slot { min-height: 60px; border-radius: 10px; border: 1.5px solid var(--accent); background: #fff; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 1.08rem; display: grid; gap: 1px; align-content: center; justify-items: center; line-height: 1.15; padding: 4px 6px; }
.slot small { font-size: .72rem; font-weight: 600; opacity: .85; }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.slot:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }
.slot:disabled { border-color: var(--line); background: var(--off-soft); color: #9a8e91; text-decoration: line-through; opacity: 1; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill.wait { background: var(--wait-soft); color: var(--wait); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.off { background: var(--off-soft); color: var(--off); }
.pill.red { background: var(--accent-soft); color: var(--accent-dark); }
.notice { padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); margin: 0; }
.notice.bad { background: var(--wait-soft); color: var(--wait); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.score { font-family: var(--font-display); font-size: 2.4rem; font-variant-numeric: tabular-nums; line-height: 1; margin: 0; }
.linkbox { word-break: break-all; font-size: .85rem; background: var(--bg); border: 1px dashed var(--line-strong); border-radius: 8px; padding: 8px 10px; }
.info-block { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; border-top: 0; white-space: nowrap; background: #faf8f7; }
th:first-child { border-top-left-radius: 8px; } th:last-child { border-top-right-radius: 8px; }
tr.clickrow { cursor: pointer; }
tr.clickrow:hover td, tr.clickrow:focus-visible td { background: #faf6f5; }
tr.clickrow:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); display: grid; gap: 8px; justify-items: center; }

/* ---- paneller: bölüm başlığı, istatistik şeridi, ajanda, villa tahtası ---- */
.sect { display: grid; gap: 4px; align-content: start; }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
.sect-head h2 { font-size: 1.08rem; }
.sect-head span { font-size: .82rem; color: var(--muted); }
.statband { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.stat { padding: 16px 20px; display: grid; gap: 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { font-family: var(--font-display); font-size: 2rem; line-height: 1.05; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.stat span { font-size: .85rem; color: var(--muted); }
.stat.hot b { color: var(--accent); }
@media (max-width: 760px) { .statband { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 1040px) { .cols2 { grid-template-columns: minmax(0, 1fr); } }
.ag { display: grid; }
.ag-row { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 11px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 6px; }
.ag-row:hover { background: #fff; }
.ag-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.ag-time { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.ag-time.none { color: var(--muted); font-weight: 600; font-size: .82rem; font-family: var(--font-body); }
.ag-main { display: grid; gap: 1px; min-width: 0; }
.ag-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-main small { color: var(--muted); font-size: .82rem; }
.ag-end { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #888); margin-right: 5px; vertical-align: baseline; }
.vboard { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; }
.vt { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 10px; display: grid; gap: 1px; min-height: 58px; align-content: center; text-align: left; font-weight: 400; }
.vt b { font-family: var(--font-display); font-size: .95rem; }
.vt small { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt.occ { background: var(--accent-soft); border-color: #efc6c3; }
.vt.occ small { color: var(--accent-dark); }
.vt.in { border: 2px solid var(--accent); }
.vt.out { border-style: dashed; border-color: var(--ink); }
.vt.closed { background: repeating-linear-gradient(-45deg, #f0ebec 0 6px, #fff 6px 12px); }
.vlegend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.vlegend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line-strong); vertical-align: -2px; margin-right: 5px; background: #fff; }
.vlegend i.occ { background: var(--accent-soft); border-color: #efc6c3; } .vlegend i.in { border: 2px solid var(--accent); } .vlegend i.out { border: 1px dashed var(--ink); }
.attn { display: grid; gap: 0; }
.attn-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.attn-row:hover { background: #fff; }
.attn-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attn-row small { color: var(--muted); grid-column: 1; }
.attn-row .amt { font-weight: 700; color: var(--accent-dark); font-variant-numeric: tabular-nums; grid-row: 1 / span 2; grid-column: 2; }
.ag-row { }
@media (max-width: 640px) {
  .ag-row { grid-template-columns: 58px minmax(0, 1fr); }
  .ag-row .ag-end { grid-column: 2; justify-content: flex-start; }
  .rail::before { left: 64px; }
  .rail-row { grid-template-columns: 52px 24px minmax(0, 1fr); }
}
.filters { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(150px, 1.1fr) repeat(2, minmax(130px, 1fr)) auto; gap: 10px; align-items: end; }
button, .btn { white-space: nowrap; }
.pill.ink { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } .filters .grow { grid-column: 1 / -1; } }

/* ---- giriş saatleri: zaman çizgisi ---- */
.rail { position: relative; display: grid; gap: 0; }
.rail::before { content: ''; position: absolute; left: 76px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.rail-row { position: relative; display: grid; grid-template-columns: 64px 24px minmax(0, 1fr); gap: 0 8px; align-items: center; padding: 5px 0; }
.rail-time { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.rail-time small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .68rem; color: var(--accent-dark); line-height: 1.1; }
.rail-dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); justify-self: center; z-index: 1; }
.rail-row.taken .rail-dot { background: var(--accent); border-color: var(--accent); }
.rail-row.past { opacity: .5; }
.rail-free { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .9rem; min-height: 38px; }
.rail-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--accent)); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.rail-card:hover { border-color: var(--line-strong); border-left-color: var(--c, var(--accent)); }
.rail-card .who { display: grid; gap: 0; min-width: 0; }
.rail-card .who small { color: var(--muted); }
.rail-wait { background: #fff; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---- yapılacaklar listesi ---- */
.datebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.datebar label { min-width: 150px; }
.progress { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); }
.quick { display: grid; grid-template-columns: 110px minmax(160px, 2fr) repeat(3, minmax(120px, 1fr)) auto; gap: 8px; align-items: end; }
@media (max-width: 900px) { .quick { grid-template-columns: 1fr 1fr; } .quick .grow { grid-column: 1 / -1; } }
.todo { display: grid; grid-template-columns: 34px 64px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.todo:first-of-type { border-top: 0; }
.todo > * { min-width: 0; }
.todo .when { font-variant-numeric: tabular-nums; font-weight: 700; font-family: var(--font-display); color: var(--ink); }
.todo .when.none { color: var(--muted); font-weight: 400; }
.todo .what { display: grid; gap: 2px; }
.todo .what strong { overflow-wrap: anywhere; }
.todo.done .what strong { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.todo .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .todo { grid-template-columns: 34px 52px minmax(0, 1fr); } .todo .acts { grid-column: 2 / -1; justify-content: flex-start; } }
.check { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #cdbfc2; background: #fff; position: relative; }
.check:hover:not(:disabled) { border-color: var(--accent); background: #fff; }
.check[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.check[aria-pressed="true"]::after { content: ''; position: absolute; left: 9px; top: 4px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.todo.edit { grid-template-columns: 1fr; }
.slot-row { display: grid; grid-template-columns: 120px minmax(140px, 1fr) auto auto auto; gap: 8px; align-items: end; padding: 10px 0; border-top: 1px solid var(--line); }
.slot-row:first-of-type { border-top: 0; }
.slot-row .chk { display: flex; align-items: center; gap: 6px; min-height: 42px; color: var(--ink); }
@media (max-width: 640px) { .slot-row { grid-template-columns: 1fr 1fr; } .slot-row .grow { grid-column: 1 / -1; } }
.task { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.task:first-of-type { border-top: 0; }
.task > * { min-width: 0; }
@media (max-width: 560px) { .task { grid-template-columns: 1fr; } }

/* ---------- CRM: pencere ---------- */
body.modal-open { overflow: hidden; }
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(35, 26, 28, .55); display: grid; place-items: start center; padding: 24px 12px; overflow: auto; }
.modal { width: min(880px, 100%); background: var(--surface); border-radius: 12px; padding: 18px; display: grid; gap: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; position: sticky; top: -18px; background: var(--surface); padding: 4px 0; z-index: 3; }
.modal-foot { position: sticky; bottom: -18px; background: var(--surface); padding: 10px 0 4px; border-top: 1px solid var(--line); z-index: 3; }
.sec { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 12px; margin: 0; min-width: 0; }
.sec legend { font-family: var(--font-display); font-weight: 700; padding: 0 6px; color: var(--accent-dark); }
.lbl { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.big-num { font-size: 1.4rem; font-weight: 700; font-family: var(--font-display); }
.gresults { display: grid; gap: 6px; }
.gres { text-align: left; }
.sumtab th { text-align: left; font-weight: 600; padding-right: 14px; }
.sumtab tr.owe td { color: var(--accent-dark); font-weight: 700; }
.sumtab tr.okrow td { color: var(--ok); font-weight: 700; }
tr.voided td { text-decoration: line-through; color: var(--muted); }
tr.voided td:nth-child(5), tr.voided td:last-child { text-decoration: none; }
@media (max-width: 640px) {
  .modal-back { padding: 0; }
  .modal { border-radius: 0; min-height: 100%; }
}
.modal .grid.cols { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }

/* ---------- Bugün: giriş/çıkış kartları ---------- */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; padding: 2px; background: #fff; }
.seg button { min-height: 34px; border: 0; border-radius: 7px; padding: 0 14px; background: transparent; font-size: .9rem; }
.seg button:hover:not(:disabled) { border: 0; background: #f4efee; }
.seg button[aria-pressed="true"], .seg button[aria-pressed="true"]:hover:not(:disabled) { background: var(--ink); color: #fff; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-top: 8px; }
.dcard { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--accent)); border-radius: 12px; padding: 14px 14px 12px; display: grid; gap: 10px; align-content: start; }
.dcard.done { background: #fbfaf9; }
.dcard.done .dcard-name strong { color: var(--muted); }
.dcard-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.dcard-time { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1; }
.dcard-time.none, .dcard-time.out { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--wait); background: var(--wait-soft); border-radius: 6px; padding: 4px 7px; }
.dcard-time.out { color: var(--off); background: var(--off-soft); }
.dcard-name { display: grid; gap: 1px; text-align: left; border: 0; background: transparent; padding: 0; min-height: 0; font-weight: 400; white-space: normal; }
.dcard-name:hover:not(:disabled) { background: transparent; border: 0; }
.dcard-name:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.dcard-name strong { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard-name small { color: var(--muted); font-size: .84rem; }
.dcard-tags { grid-column: 1 / -1; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.dcard-note { margin: 0; font-size: .84rem; color: var(--wait); background: var(--wait-soft); border-radius: 8px; padding: 6px 10px; }
.dcard-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- genel arama (Ctrl+K) ---------- */
.ic { width: 18px; height: 18px; flex: 0 0 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
kbd { font: 600 .72rem/1 var(--font-body); color: var(--muted); background: var(--bg); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 3px 5px; white-space: nowrap; }
.searchbtn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--muted); font-weight: 500; text-align: left; }
.searchbtn span { flex: 1; }
.searchbtn:hover:not(:disabled) { background: #fff; color: var(--ink); }
.topsearch { margin-left: 4px; padding: 0 9px; }
.topbar strong + .topsearch { margin-left: 8px; }
.cmdk-back { position: fixed; inset: 0; z-index: 60; background: rgba(35, 26, 28, .5); display: grid; justify-items: center; align-items: start; padding: 10vh 12px 12px; }
.cmdk { width: min(640px, 100%); max-height: min(560px, 80vh); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--surface); border-radius: 14px; box-shadow: 0 18px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.cmdk-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-head .ic { width: 20px; height: 20px; flex-basis: 20px; }
.cmdk-input { border: 0; min-height: 48px; padding: 0; font-size: 1.08rem; box-shadow: none; }
.cmdk-input:focus { box-shadow: none; }
.cmdk-input::-webkit-search-cancel-button { display: none; }
.cmdk-list { overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.cmdk-group { font-size: .74rem; font-weight: 700; color: var(--muted); padding: 10px 10px 4px; text-transform: uppercase; letter-spacing: .04em; }
.cmdk-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; text-align: left; font-weight: 400; white-space: normal; }
.cmdk-item:hover:not(:disabled) { border: 0; background: transparent; }
.cmdk-item[aria-selected="true"], .cmdk-item[aria-selected="true"]:hover:not(:disabled) { background: var(--accent-soft); }
.cmdk-item .ic { color: var(--muted); }
.cmdk-item .dot { margin: 0 4px 0 4px; flex: 0 0 10px; width: 10px; height: 10px; }
.cmdk-main { display: grid; gap: 0; min-width: 0; flex: 1; }
.cmdk-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-main small { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-empty { color: var(--muted); padding: 18px 10px; margin: 0; }
.cmdk-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); background: #faf8f7; }
.cmdk-foot kbd { margin-right: 2px; }
@media (max-width: 640px) { .cmdk-back { padding: 0; } .cmdk { border-radius: 0; max-height: 100%; height: 100%; width: 100%; } .cmdk-foot { display: none; } }

/* ---------- hızlı rezervasyon formu ---------- */
.quick-res { display: grid; gap: 14px; }
.modal .grid.qcols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.quick-res input, .quick-res select { min-height: 46px; font-size: 1.02rem; }
.quick-res input[name=total] { font-weight: 700; }
details.more { border: 1px solid var(--line); border-radius: 10px; background: #fcfbfa; }
details.more > summary { cursor: pointer; list-style: none; padding: 12px 14px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '+'; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: .95rem; line-height: 1; }
details.more[open] > summary::before { content: '−'; }
details.more > summary small { font-weight: 400; color: var(--muted); font-size: .82rem; }
details.more > .grid { padding: 0 12px 12px; }
details.more .sec { background: var(--surface); }
.gresults:empty, .modal > [role=status]:empty, .quick-res > p:empty { display: none; }
.quick-res > p { margin: 0; }
.modal { align-content: start; }

/* ---------- rezervasyon penceresi: sabit özet çubuğu + sekmeler ---------- */
.modal-head.rich { align-items: flex-start; padding: 2px 0 0; border-bottom: 1px solid var(--line); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.rsum { display: grid; gap: 6px; min-width: 0; flex: 1; }
.rsum-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rsum-top h2 { font-size: 1.35rem; }
.rsum-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.rsum-facts { margin: 0; color: var(--ink-2); font-size: .9rem; }
.rsum-facts .dot { margin-left: 2px; }
.rsum-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.rtabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-top: 4px; }
.rtabs::-webkit-scrollbar { display: none; }
.rtabs [role=tab] { position: relative; min-height: 42px; padding: 0 14px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.rtabs [role=tab]:hover:not(:disabled) { background: transparent; border: 0; border-bottom: 3px solid var(--line-strong); color: var(--ink); }
.rtabs [role=tab][aria-selected="true"], .rtabs [role=tab][aria-selected="true"]:hover:not(:disabled) { color: var(--accent-dark); border-bottom: 3px solid var(--accent); }
.rtabs [role=tab].due::after { content: ''; position: absolute; top: 9px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.rtabs [role=tab]:focus-visible { outline-offset: -3px; }
.rpanel { display: grid; gap: 12px; }
@media (max-width: 640px) {
  .rsum-top h2 { font-size: 1.15rem; }
  .rsum-facts { font-size: .84rem; }
  .rtabs [role=tab] { padding: 0 11px; }
}
/* hidden özniteliği, display tanımlayan sınıflara karşı da geçerli olsun */
[hidden] { display: none !important; }
/* sabit başlık/alt çubuk, kaydırırken pencere kenarına tam otursun (dış boşluk 24px) */
.modal-head { top: -24px; }
.modal-head.rich { padding-top: 6px; }
.modal-foot { bottom: -24px; padding-bottom: 12px; }
.rtabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); padding-right: 24px; }
@media (max-width: 640px) {
  .modal-head { top: 0; }
  .modal-foot { bottom: 0; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .rtabs [role=tab] { padding: 0 10px; font-size: .9rem; }
  .modal-foot button { padding: 0 12px; }
  .modal-foot .danger { font-size: .84rem; padding: 0 10px; }
}
@media (max-width: 640px) { .modal .grid.cols { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 12px 10px; } }

/* ---------- mobil alt sekme çubuğu ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(26, 20, 21, .07); padding: 2px max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left)); }
  .tabbar button { position: relative; min-height: 58px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: var(--muted); display: grid; justify-items: center; align-content: center; gap: 3px; font-size: .72rem; font-weight: 600; }
  .tabbar button .ic { width: 23px; height: 23px; flex-basis: 23px; }
  .tabbar button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .tabbar button:hover:not(:disabled) { background: transparent; border: 0; color: var(--ink); }
  .tabbar button[aria-current="page"], .tabbar button.on, .tabbar button[aria-current="page"]:hover:not(:disabled), .tabbar button.on:hover:not(:disabled) { color: var(--accent); }
  .tabbar button[aria-current="page"]::before, .tabbar button.on::before { content: ''; position: absolute; top: -2px; width: 30px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .tabbar button:focus-visible { outline-offset: -4px; }
  .main { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .side { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 52px; }
}

/* ---------- bildirimler ---------- */
.toasts { position: fixed; z-index: 70; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; gap: 8px; width: min(400px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 4px 10px; padding: 10px 8px 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .92rem; font-weight: 500; box-shadow: 0 10px 30px rgba(26, 20, 21, .28); animation: toast-in .22s ease-out; }
.toast::before { content: ''; flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; }
.toast.bad { background: var(--accent-dark); }
.toast.bad::before { background: #fff; }
.toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast button { min-height: 34px; border: 0; background: transparent; color: #fff; padding: 0 10px; }
.toast button:hover:not(:disabled) { background: rgba(255, 255, 255, .14); border: 0; }
.toast .toast-act { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.toast .toast-x { font-size: 1.25rem; line-height: 1; padding: 0 9px; opacity: .8; }
.toast button:focus-visible { outline-color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .toasts { left: 16px; right: 16px; width: auto; bottom: calc(72px + env(safe-area-inset-bottom)); } }

/* ---------- yüklenme iskeleti ---------- */
.sk { display: block; border-radius: 6px; max-width: 100%; background: linear-gradient(90deg, #ebe5e3 25%, #f6f2f1 40%, #ebe5e3 60%); background-size: 300% 100%; animation: sk-shine 1.3s ease-in-out infinite; }
.skel .side .sk { margin: 0; }
.sk-card { border-left-color: var(--line-strong); gap: 12px; }
.sk-card .row { flex-wrap: nowrap; }
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .sk, .toast { animation: none; } }

/* ---------- Takvim (7.8): zaman çizelgesi. Renk = durum, sol şerit = kaynak ---------- */
:root {
  --st-paid: #1e6b3f; --st-paid-ink: #fff;
  --st-due: #f2b33d; --st-due-ink: #3a2500;
  --st-late: #b42318; --st-late-ink: #fff;
  --st-opt: #dce8fb; --st-opt-ink: #173a73; --st-opt-line: #3b6fd1;
  --st-noprice: #e4dfdd; --st-noprice-ink: #3c3235;
  --cal-we: #f3f2f0;
}
.cal-view { gap: 16px; }
.cal-bar { display: grid; gap: 12px; }
.cal-nav, .cal-filters { gap: 8px; }
.cal-nav .grow, .cal-filters .grow { flex: 1 1 160px; }
.cal-bar select, .cal-bar input { width: auto; min-height: 38px; padding: 6px 10px; }
.cal-filters input[type=search] { min-width: 160px; }
.cal-bar .chk { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: .88rem; }
.cal-bar .seg button { min-height: 32px; }
.cal-sum .stat { padding: 12px 16px; }
.cal-sum .stat b { font-size: 1.6rem; }
.cal-scroll { overflow: auto; max-height: 70vh; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cal-inner { position: relative; }
.cal-head, .cal-rowline { display: flex; }
.cal-head { position: sticky; top: 0; z-index: 6; background: var(--surface); }
.cal-head2 { top: 24px; }
.cal-name { position: sticky; left: 0; z-index: 7; flex: 0 0 148px; width: 148px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 12px; display: grid; align-content: center; gap: 0; min-width: 0; font-weight: 600; font-size: .9rem; }
.cal-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.cal-name small { color: var(--muted); font-size: .74rem; font-weight: 500; }
.cal-track { position: relative; flex: 0 0 auto; }
.cal-mtrack { height: 24px; border-bottom: 1px solid var(--line); }
.cal-month { position: absolute; top: 0; height: 24px; padding: 0 8px; line-height: 24px; font-size: .78rem; font-weight: 700; color: var(--ink-2); border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.cal-dtrack { display: flex; height: 44px; border-bottom: 1px solid var(--line-strong); }
.cal-day { flex: 0 0 auto; display: grid; place-content: center; text-align: center; line-height: 1.1; border-left: 1px solid var(--line); font-size: .86rem; }
.cal-day b { font-variant-numeric: tabular-nums; }
.cal-day small { color: var(--muted); font-size: .66rem; }
.cal-day.we { background: var(--cal-we); }
.cal-day.today { box-shadow: inset 0 -3px 0 var(--accent); color: var(--accent); }
.cal-day.today small { color: var(--accent); }
.cal-day.first { border-left: 2px solid var(--ink-2); }
.cal-bg { position: absolute; bottom: 0; pointer-events: none; z-index: 0; }
.cal-we { position: absolute; top: 0; bottom: 0; background: var(--cal-we); }
.cal-now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); z-index: 3; }
.cal-body { position: relative; z-index: 1; height: 48px; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--w) - 1px), var(--line) calc(var(--w) - 1px), var(--line) var(--w)); cursor: cell; }
.cal-rowline:hover .cal-name { background: #faf8f7; }

.cal-bk { position: absolute; top: 7px; height: 34px; min-height: 0; padding: 0 8px 0 6px; display: flex; align-items: center; gap: 5px; border: 0; border-left: 4px solid var(--src, #8a7f82); border-radius: 8px; font: 600 .8rem/1 var(--font-body); text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; z-index: 2; box-shadow: 0 1px 2px rgba(26, 20, 21, .18); }
.cal-bk:hover:not(:disabled) { border-color: var(--src, #8a7f82); filter: brightness(.94); box-shadow: 0 2px 6px rgba(26, 20, 21, .25); }
.cal-bk:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; z-index: 4; }
.cal-bk.cut-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-bk.cut-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-lab { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cal-ic { flex: 0 0 auto; font-size: .82rem; width: 14px; text-align: center; }
.cal-src { flex: 0 0 16px; width: 16px; height: 16px; border-radius: 4px; display: inline-grid; place-items: center; background: var(--src, #8a7f82); color: #fff; font: 800 .62rem/1 var(--font-body); }
.st-paid { --bk-bg: var(--st-paid); --bk-ink: var(--st-paid-ink); }
.st-due { --bk-bg: var(--st-due); --bk-ink: var(--st-due-ink); }
.st-late { --bk-bg: var(--st-late); --bk-ink: var(--st-late-ink); }
.st-opt { --bk-bg: var(--st-opt); --bk-ink: var(--st-opt-ink); }
.cal-bk.st-opt { outline: 1.5px dashed var(--st-opt-line); outline-offset: -2px; box-shadow: none; }
.st-noprice { --bk-bg: var(--st-noprice); --bk-ink: var(--st-noprice-ink); }
.st-cancel { --bk-bg: repeating-linear-gradient(-45deg, #e4dfdd 0 5px, #f5f2f1 5px 10px); --bk-ink: #6b6164; }
.st-paid, .st-due, .st-late, .st-opt, .st-noprice, .st-cancel { background: var(--bk-bg); color: var(--bk-ink); }
.cal-bk:hover:not(:disabled) { background: var(--bk-bg); color: var(--bk-ink); }
.cal-bk.st-cancel { top: auto; bottom: 3px; height: 12px; padding: 0 4px; font-size: .62rem; box-shadow: none; z-index: 1; opacity: .9; }
.cal-bk.st-cancel .cal-src, .cal-bk.st-cancel .cal-ic { display: none; }
.cal-bk.past:not(:hover) { opacity: .72; }
.cal-bk.dim { opacity: .22; }
.cal-bk.hit { box-shadow: 0 0 0 2px var(--ink), 0 2px 8px rgba(26, 20, 21, .3); z-index: 3; }
.cal-prog { position: absolute; left: 0; top: 0; height: 3px; background: currentColor; opacity: .75; border-radius: 0 2px 2px 0; }
.cal-bk.cal-closed, .cal-bk.cal-closed:hover:not(:disabled) { top: 4px; height: 40px; border-left: 0; padding: 0 8px; background: repeating-linear-gradient(-45deg, #d9d2d3 0 6px, #eeeaea 6px 12px); color: #4a3f42; box-shadow: none; cursor: pointer; z-index: 1; }
.cal-sel { position: absolute; top: 4px; bottom: 4px; z-index: 4; border: 2px dashed var(--accent); border-radius: 8px; background: rgba(192, 9, 1, .1); color: var(--accent-dark); font: 700 .75rem/40px var(--font-body); text-align: center; pointer-events: none; overflow: hidden; white-space: nowrap; }

.cal-tip { position: fixed; z-index: 80; display: grid; gap: 2px; max-width: 300px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .82rem; line-height: 1.35; box-shadow: 0 10px 30px rgba(26, 20, 21, .3); pointer-events: none; }
.cal-tip strong { font-size: .92rem; }
.cal-tip .tip-st { margin-top: 4px; justify-self: start; padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: .76rem; }

.cal-legend { position: sticky; bottom: 0; z-index: 8; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 -4px 14px rgba(26, 20, 21, .05); font-size: .78rem; color: var(--ink-2); }
.lg-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.lg-group strong { color: var(--muted); font-weight: 700; }
.lg { display: inline-flex; align-items: center; gap: 5px; }
.lg-sw { display: inline-grid; place-items: center; width: 22px; height: 16px; border-radius: 4px; font-style: normal; font-size: .7rem; font-weight: 700; }
.lg-sw.st-opt { outline: 1.5px dashed var(--st-opt-line); outline-offset: -1.5px; }
.lg-closed { background: repeating-linear-gradient(-45deg, #d9d2d3 0 3px, #eeeaea 3px 6px); }
.lg .cal-src { font-style: normal; }

.cal-list { display: grid; gap: 4px; padding: 8px 12px; }
.cal-lday { display: grid; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cal-lday:last-child { border-bottom: 0; }
.cal-lday h3 { font-size: .95rem; padding: 4px 0 6px; }
.cal-lday.today h3 { color: var(--accent); }
.cal-litem { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 4px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-weight: 400; white-space: normal; }
.cal-litem:hover:not(:disabled) { background: #faf6f5; border: 0; }
.cal-lkind { flex: 0 0 52px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.cal-lkind.in { color: var(--ok); }
.cal-lkind.out { color: var(--off); }
.cal-lmain { display: grid; flex: 1; min-width: 0; }
.cal-lmain strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-lmain small { color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) { .cal-legend { bottom: calc(62px + env(safe-area-inset-bottom)); } }
@media (max-width: 640px) {
  .cal-name { flex-basis: 108px; width: 108px; padding: 0 8px; }
  .cal-scroll { max-height: 62vh; }
  .cal-legend { font-size: .72rem; gap: 4px 12px; }
}
.cal-acts { display: inline-flex; gap: 8px; margin-left: auto; }
.cal-lmain strong { white-space: normal; }
.cal-lwarn { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 640px) {
  .cal-bar { padding: 12px; gap: 10px; }
  .cal-bar input[type=date], .cal-help { display: none; }
  .cal-bar .seg button { padding: 0 10px; font-size: .84rem; }
  .cal-filters input[type=search] { flex: 1 1 100%; }
  .cal-filters select { flex: 1 1 40%; }
  .cal-acts { margin-left: 0; width: 100%; }
  .cal-acts button { flex: 1; }
  .cal-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cal-sum .stat { padding: 8px 10px; border-top: 0 !important; border-left: 1px solid var(--line) !important; }
  .cal-sum .stat:first-child { border-left: 0 !important; }
  .cal-sum .stat b { font-size: 1.15rem; }
  .cal-sum .stat span { font-size: .7rem; line-height: 1.2; }
  .cal-legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; padding: 6px 10px; }
  .cal-legend::-webkit-scrollbar { display: none; }
  .lg-group { flex-wrap: nowrap; }
}

/* ---------- misafir istekleri (7.9) ---------- */
.navbadge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; display: inline-grid; place-items: center; }
.reqbadge { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #efc6c3; background: var(--accent-soft); color: var(--accent-dark); font-size: .86rem; }
.reqbadge:hover:not(:disabled) { background: #f8dcd9; border-color: var(--accent); }
.req { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.req.new { border-left: 4px solid var(--accent); }
.req:not(.open) { background: #fbfaf9; }
.req:not(.open) .req-main strong { color: var(--muted); }
.req-ic { font-size: 1.6rem; line-height: 1; text-align: center; }
.req-main { display: grid; gap: 2px; min-width: 0; }
.req-main small { color: var(--muted); font-size: .84rem; }
.req-note { margin: 4px 0 0; font-size: .92rem; color: var(--ink-2); overflow-wrap: anywhere; }
.req-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .req { grid-template-columns: 36px minmax(0, 1fr); } .req-acts { grid-column: 2; justify-content: flex-start; } }

/* misafir sayfası */
.reqgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.reqbtn { min-height: 72px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: .95rem; white-space: normal; }
.reqbtn span { font-size: 1.6rem; line-height: 1; }
.reqbtn[aria-pressed="true"], .reqbtn[aria-pressed="true"]:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.myreqs { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.myreqs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.myreqs li:first-child { border-top: 0; }
.myreqs small { display: block; color: var(--muted); }
