/* ARASİS tasarım altyapısı — sade, lacivert ana renk, mobil öncelikli */
:root {
  --navy: #1e3a5f; --navy-dark: #15294a; --navy-light: #e8eef6;
  --bg: #f4f6f9; --surface: #ffffff; --border: #dde3ea; --text: #1f2937; --muted: #6b7280;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --err: #b91c1c; --err-bg: #fee2e2;
  --info: #1d4ed8; --info-bg: #dbeafe; --purple: #6d28d9; --purple-bg: #ede9fe;
  --radius: 10px; --shadow: 0 1px 3px rgba(16,24,40,.08), 0 1px 2px rgba(16,24,40,.04);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--navy); }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; } h2 { font-size: 1.25rem; margin: 1.5rem 0 .75rem; } h3 { font-size: 1.05rem; margin: 1rem 0 .5rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .strong { font-weight: 600; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 20px; padding-bottom: 90px; min-height: 70vh; }
.inline { display: inline; }

/* üst çubuk */
.topbar { background: #fff; color: var(--text); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { font-size: 1.05rem; line-height: 1.15; letter-spacing: .04em; }
.brand-text strong { font-weight: 800; display: block; }
.brand-sub { display: block; font-size: .78rem; letter-spacing: 0; color: var(--muted); }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.login-logo { width: 100%; max-width: 320px; height: auto; margin: 0 auto 8px; display: block; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--navy); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover { background: var(--bg); }
.nav a.active { background: var(--navy); color: #fff; }
.user-box { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.user-name { opacity: .9; }
.bottom-nav { display: none; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px 16px 100px; }

/* kartlar */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-title { font-weight: 600; margin: 0 0 8px; font-size: 1.05rem; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat .label { color: var(--muted); font-size: .85rem; } .stat .value { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.progress { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--navy); border-radius: 999px; transition: width .3s; }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 8px; border: 1px solid transparent; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 46px; background: var(--navy); color: #fff; }
.btn:hover { background: var(--navy-dark); }
.btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--navy); } .btn-secondary:hover { background: var(--navy-light); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); min-height: 36px; padding: 6px 12px; font-size: .9rem; } .btn-ghost:hover { background: var(--bg); }
.btn-danger { background: var(--err); } .btn-danger:hover { background: #991b1b; }
.btn-ok { background: var(--ok); } .btn-ok:hover { background: #166534; }
.btn-sm { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.actions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0; }
.actions .btn { min-height: 60px; font-size: 1.05rem; }

/* formlar */
label { display: block; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #c9d2dd; border-radius: 8px; font-size: 1rem; background: #fff; color: var(--text); min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 160px; }
.validation-summary-errors, .field-validation-error { color: var(--err); font-size: .9rem; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; }
.check.on { border-color: var(--navy); background: var(--navy-light); }

/* uyarılar ve rozetler */
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.alert-err { background: var(--err-bg); color: var(--err); border-color: #fecaca; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #bfdbfe; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); } .badge-info { background: var(--info-bg); color: var(--info); }
.badge-purple { background: var(--purple-bg); color: var(--purple); } .badge-muted { background: #e5e7eb; color: #4b5563; }
.badge-navy { background: var(--navy-light); color: var(--navy); }

/* tablolar */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .95rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { background: #f8fafc; color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .02em; }
tr:hover td { background: #fafbfc; }

/* oturum kartı */
.sim-card { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.sim-date { text-align: center; background: var(--navy-light); border-radius: 8px; padding: 8px 6px; color: var(--navy); }
.sim-date .d { font-size: 1.5rem; font-weight: 700; line-height: 1.1; } .sim-date .m { font-size: .8rem; font-weight: 600; } .sim-date .t { font-size: .95rem; margin-top: 4px; }
.sim-roles { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.role-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: #f1f5f9; font-size: .85rem; }
.role-chip.empty { border: 1px dashed #94a3b8; background: #fff; color: var(--muted); }
.role-chip.mine { background: var(--navy); color: #fff; }
.role-chip b { font-weight: 600; }

/* takvim ızgarası */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: .75rem; color: var(--muted); padding: 4px 0; font-weight: 600; }
.cal .day { border: 1px solid var(--border); border-radius: 8px; min-height: 58px; padding: 6px; background: #fff; font-size: .85rem; position: relative; cursor: pointer; text-decoration: none; color: var(--text); display: block; }
.cal .day.off { background: #f1f3f6; color: #a1a1aa; cursor: default; }
.cal .day.today { outline: 2px solid var(--navy); }
.cal .day.sel { background: var(--navy-light); border-color: var(--navy); }
.cal .day .n { font-weight: 600; } .cal .day .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 3px; }
.cal .day .cnt { font-size: .75rem; color: var(--navy); margin-top: 2px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.slot { padding: 10px 6px; border: 1px solid #c9d2dd; border-radius: 8px; text-align: center; cursor: pointer; background: #fff; font-weight: 600; font-size: .95rem; user-select: none; }
.slot.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.slot.dis { opacity: .4; cursor: default; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; border: 1px dashed var(--border); border-radius: var(--radius); background: #fff; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { min-height: 40px; padding: 6px 10px; width: auto; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: .95rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.login-box { max-width: 440px; margin: 40px auto; }
.login-box .brand-mark { width: 56px; height: 56px; font-size: 1.8rem; margin: 0 auto 12px; }
details > summary { cursor: pointer; font-weight: 600; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }

@media (max-width: 760px) {
  .brand-text { font-size: .95rem; } .brand-sub { font-size: .7rem; } .brand-img { width: 38px; height: 38px; }
  .nav { display: none; }
  .user-box { margin-left: auto; }
  .user-name { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .sim-card { grid-template-columns: 80px 1fr; }
  .sim-card > .sim-actions { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr; }
  .bottom-nav { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); z-index: 10; }
  .bottom-nav a { text-align: center; padding: 8px 4px 10px; font-size: .72rem; color: var(--muted); text-decoration: none; }
  .bottom-nav a .ico { display: block; font-size: 1.2rem; line-height: 1.2; }
  .bottom-nav a.active { color: var(--navy); font-weight: 600; }
  .footer { padding-bottom: 80px; }
}
@media (max-width: 420px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } .stat .value { font-size: 1.3rem; } }

/* yönetici */
a.stat-link { display: block; text-decoration: none; color: inherit; }
a.stat-link:hover { border-color: var(--navy); }
.attn { margin: 0; padding-left: 18px; } .attn li { margin-bottom: 6px; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-inline .field { margin-bottom: 0; flex: 1 1 150px; }
.form-inline .btn { flex: 0 0 auto; }
.cal .day .ev { display: block; font-size: .72rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .day .ev .miss { color: var(--warn); font-weight: 600; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.role-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.role-row:last-child { border-bottom: 0; }
.role-row form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.role-row select { flex: 1 1 200px; width: auto; }
td.nowrap, th.nowrap { white-space: nowrap; }
@media (max-width: 760px) {
  .role-row { grid-template-columns: 1fr; }
  .cal .day .ev { display: none; }
}
@media (max-width: 760px) {
  .nav.nav-admin { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; order: 3; margin: 0 -4px 6px; -webkit-overflow-scrolling: touch; }
  .nav.nav-admin a { white-space: nowrap; padding: 6px 10px; font-size: .88rem; }
}
.linkbtn { background: none; border: 0; color: var(--err); cursor: pointer; font-size: .95rem; padding: 0 2px; line-height: 1; }
.linkbtn:hover { color: #7f1d1d; }
.dot-l { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.cal .day .cal-count-m { display: none; }
@media (max-width: 760px) { .cal .day .cal-count-m { display: block; } }
/* katılımcı ekranları */
.sim-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.sim-actions { display: grid; gap: 8px; min-width: 190px; }
.join-form { margin: 0; }
.role-chip.rec { border-color: var(--navy); color: var(--navy); }
.stat .value small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.done-msg { font-weight: 600; color: var(--ok); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 1.5rem 0 .75rem; }
.section-head h2 { margin: 0; }
.cal-head h2 { margin: 0; font-size: 1.1rem; }
.cal .day.has { border-color: var(--navy); }
.cal .day.blank { border: 0; background: transparent; cursor: default; }
.cal .day .dot.d-ok { background: var(--ok); } .cal .day .dot.d-warn { background: var(--warn); } .cal .day .dot.d-info { background: var(--info); }
.cal .day .dot.d-purple { background: var(--purple); } .cal .day .dot.d-muted { background: #9ca3af; } .cal .day .dot.d-navy { background: var(--navy); }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.slot { position: relative; }
.slot:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.slot:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.slot.dis { pointer-events: none; }
.window-label { font-size: .85rem; color: var(--muted); font-weight: 600; margin: 12px 0 6px; }
.avail-day { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--border); }
.avail-day:last-child { border-bottom: 0; }
.avail-ranges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.avail-ranges form { display: inline-flex; }
.range-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px; border-radius: 8px; background: var(--navy-light); color: var(--navy); font-weight: 600; font-size: .9rem; }
.range-chip button { border: 0; background: transparent; color: var(--err); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 4px 8px; min-height: 32px; }
.sticky-save { position: sticky; bottom: 70px; background: var(--surface); padding: 10px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.role-options { display: grid; gap: 8px; }
.role-options .check.dis { opacity: .55; cursor: default; }
.role-options .check .badge { margin-left: auto; }
.list-plain { list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) {
  .sim-actions { min-width: 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .cal .day { min-height: 46px; padding: 4px; font-size: .8rem; }
  .cal { gap: 3px; }
  .slots { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
}
@media (min-width: 761px) { .sticky-save { bottom: 0; } }

/* Giriş: kişisel veriler bilgi notu */
.kvkk { margin-top: 12px; font-size: .9rem; }
.kvkk summary { cursor: pointer; font-weight: 600; color: var(--navy, #1e3a5f); }
.kvkk p { margin: 8px 0 0; color: #444; }
/* Ayarlar: form bölüm başlıkları */
.form-section { margin: 1.25rem 0 .5rem; padding-top: .75rem; border-top: 1px solid var(--border); color: var(--navy); }
/* Toplu doğrulama */
.verify-row { padding-top: 12px; }
.verify-pick { border-color: var(--navy-light); }
.verify-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.verify-person { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin: 0; }
.verify-person legend { font-weight: 600; padding: 0 4px; }
.radio-inline { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; padding: 6px 0; cursor: pointer; }
.radio-inline input { width: 18px; height: 18px; margin: 0; }
/* Yönetici menüsü orta genişlikte tek satıra sığsın */
@media (min-width: 761px) and (max-width: 1240px) { .nav.nav-admin a { padding: 8px 8px; font-size: .88rem; } .brand-sub { display: none; } }

/* Metin görünümlü küçük düğme (ör. TC "göster") */
.linkish { background: none; border: 0; padding: 0 4px; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; }

/* Yönetici: oturum planı tablosu */
.plan-table th.num, .plan-table td.num { text-align: center; }
.plan-table tfoot th { border-top: 2px solid var(--border); }
.plan-n { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.plan-cell summary { cursor: pointer; list-style: none; }
.plan-cell summary::-webkit-details-marker { display: none; }
.plan-cell summary .plan-n { text-decoration: underline dotted; }
.plan-remove { display: flex; flex-direction: column; gap: 6px; align-items: center; margin-top: 6px; }
.plan-remove input { width: 70px; }

/* Giriş: şifre alanı ve göster/gizle düğmesi */
.pw-wrap { display: flex; align-items: center; gap: 8px; }
.pw-wrap input { flex: 1 1 auto; min-width: 0; }
.login-alt summary { cursor: pointer; color: var(--navy); font-weight: 600; }

/* ---------- Giriş ekranı (iki panel) ---------- */
.page-chromeless { padding: 0; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 5fr) minmax(360px, 6fr); background: var(--bg); }
.login-side { background: linear-gradient(160deg, #16304f 0%, var(--navy) 55%, #27507f 100%); color: #e8eef6; display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.login-side-inner { max-width: 420px; width: 100%; }
.login-plate { background: #fff; border-radius: 14px; padding: 18px 22px; display: inline-block; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.login-plate img { display: block; width: 240px; height: auto; }
.login-side h1 { color: #fff; font-size: 1.6rem; margin: 26px 0 6px; letter-spacing: .01em; }
.login-lead { color: #c9d6e6; margin: 0 0 26px; font-size: 1rem; }
.login-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.login-steps li { display: flex; gap: 12px; align-items: flex-start; }
.login-steps li > span { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; }
.login-steps strong { display: block; color: #fff; font-size: .98rem; }
.login-steps small { display: block; color: #b7c6d9; font-size: .85rem; line-height: 1.4; margin-top: 2px; }
.login-side-link { display: inline-block; margin-top: 26px; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.login-side-link:hover { border-bottom-color: #fff; }
.login-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 28px rgba(16,24,40,.08); padding: 32px 30px 24px; width: 100%; max-width: 440px; }
.login-card h2 { margin: 0 0 4px; font-size: 1.45rem; }
.login-card > .muted { margin-bottom: 20px; }
.login-form .field { margin-bottom: 18px; }
.btn-lg { min-height: 52px; font-size: 1.05rem; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; letter-spacing: .12em; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--bg); color: var(--navy); }
.pw-toggle svg[hidden] { display: none; }
.login-alt { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.login-alt summary { font-size: .92rem; font-weight: 500; color: var(--navy); }
.login-alt-body { margin-top: 12px; }
.login-foot { font-size: .82rem; color: var(--muted); margin: 18px 0 0; }
.login-kvkk { width: 100%; max-width: 440px; margin-top: 14px; font-size: .85rem; }
.login-kvkk summary { font-weight: 500; }
.login-copy { font-size: .78rem; color: var(--muted); text-align: center; margin: 22px 0 0; max-width: 440px; }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; min-height: auto; }
  .login-side { padding: 28px 20px 24px; }
  .login-side-inner { max-width: 440px; }
  .login-plate { padding: 12px 16px; } .login-plate img { width: 180px; }
  .login-side h1 { font-size: 1.3rem; margin-top: 16px; }
  .login-lead { margin-bottom: 14px; font-size: .95rem; }
  .login-steps { display: none; }
  .login-side-link { margin-top: 0; font-size: .9rem; }
  .login-main { padding: 20px 16px 32px; }
  .login-card { padding: 24px 20px 20px; }
}

/* Ana sayfa: oturum saatleri ızgarası (gün × saat) */
.slot-grid-card { padding: 8px 12px 12px; }
.slot-grid { border-collapse: separate; border-spacing: 0; }
.slot-grid th, .slot-grid td { border-bottom: 0; padding: 8px 6px; background: transparent; text-align: center; }
.slot-grid thead th { color: var(--muted); font-size: .85rem; text-transform: none; letter-spacing: 0; font-weight: 600; padding-bottom: 4px; }
.slot-grid thead th:first-child, .slot-grid tbody th { text-align: left; }
.slot-grid tbody th { font-weight: 600; white-space: nowrap; padding-left: 8px; min-width: 120px; }
.slot-grid tbody th { text-transform: none; letter-spacing: 0; }
.slot-grid tbody th .g-day { display: block; font-size: 1rem; color: var(--navy); }
.slot-grid tbody th .g-dow { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; }
.slot-grid tr:hover td { background: transparent; }
.g-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; min-width: 120px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: #fff; text-decoration: none; color: var(--text); transition: box-shadow .15s, transform .15s; }
.g-cell:hover { box-shadow: 0 4px 14px rgba(16,24,40,.12); transform: translateY(-1px); }
.g-status { font-weight: 600; font-size: .95rem; }
.g-count { font-size: .75rem; color: var(--muted); }
.g-arrow { font-size: .8rem; color: var(--navy); font-weight: 600; }
.g-cell.open { border-color: #bbf7d0; background: #f0fdf4; } .g-cell.open .g-status { color: var(--ok); }
.g-cell.partial { border-color: #fde68a; background: #fffbeb; } .g-cell.partial .g-status { color: var(--warn); }
.g-cell.mine { border-color: var(--navy); background: var(--navy); color: #fff; } .g-cell.mine .g-status, .g-cell.mine .g-arrow, .g-cell.mine .g-count { color: #fff; }
.g-cell.full { background: #f1f5f9; color: var(--muted); pointer-events: none; } .g-cell.full .g-status { color: var(--muted); font-weight: 500; }
.g-empty { color: #cbd5e1; }
.g-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 8px 2px; font-size: .82rem; color: var(--muted); }
.g-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; border: 1px solid transparent; }
.g-legend .dot.open { background: #dcfce7; border-color: #86efac; } .g-legend .dot.partial { background: #fef3c7; border-color: #fcd34d; } .g-legend .dot.mine { background: var(--navy); } .g-legend .dot.full { background: #e2e8f0; }
@media (max-width: 600px) {
  .slot-grid-card { padding: 6px 6px 10px; }
  .slot-grid th, .slot-grid td { padding: 5px 3px; }
  .slot-grid tbody th { min-width: 64px; padding-left: 2px; } .slot-grid tbody th .g-day { font-size: .85rem; } .slot-grid tbody th .g-dow { font-size: .7rem; }
  .g-cell { min-width: 70px; min-height: 52px; padding: 5px 4px; border-radius: 8px; } .g-status { font-size: .8rem; } .g-count { font-size: .68rem; } .g-arrow { display: none; }
  .g-legend { gap: 4px 12px; font-size: .76rem; padding-left: 4px; }
}

/* ---------- Oturum detayı ---------- */
.sd-hero { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; align-items: center; }
.sd-date { text-align: center; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 6px; }
.sd-date .d { font-size: 2rem; font-weight: 700; line-height: 1; } .sd-date .m { font-size: .85rem; font-weight: 600; margin-top: 4px; } .sd-date .w { font-size: .75rem; opacity: .85; }
.sd-title { color: var(--muted); font-size: .9rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sd-time { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.15; margin: 2px 0 8px; }
.sd-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-side { align-self: start; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.role-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-height: 118px; }
.role-card.vacant { border-style: dashed; background: #fbfcfd; box-shadow: none; }
.role-card.me { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy-light); }
.role-name { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.role-person { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy-light); color: var(--navy); font-weight: 700; display: grid; place-items: center; font-size: .95rem; flex: 0 0 38px; }
.role-card.me .avatar { background: var(--navy); color: #fff; }
.avatar.empty { background: #eef2f6; color: #9aa6b2; border: 1px dashed #cbd5e1; }
.person-name { font-weight: 600; line-height: 1.25; }
.role-join { margin-top: 12px; }
.sd-next { background: #f8fafc; }
.sd-steps { margin: 0; padding-left: 20px; } .sd-steps li { margin-bottom: 6px; }
.sd-leave { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.sd-leave .hint { margin: 0; flex: 1 1 320px; }
.btn-outline-danger { background: #fff; color: var(--err); border-color: #fca5a5; } .btn-outline-danger:hover { background: var(--err-bg); }
@media (max-width: 640px) {
  .sd-hero { grid-template-columns: 76px 1fr; } .sd-side { grid-column: 1 / -1; }
  .sd-date .d { font-size: 1.6rem; } .sd-time { font-size: 1.6rem; }
  .role-grid { grid-template-columns: 1fr; } .role-card { min-height: 0; }
}

/* Aynı saatteki oturumlar listesi */
.slot-list-link { font-size: .88rem; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid transparent; }
.slot-list-link:hover { border-bottom-color: var(--navy); }
.sess-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sess-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.sess-card:hover { border-color: var(--navy); }
.sess-card.mine { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy-light); }
.sess-card.full { background: #f8fafc; }
.sess-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.sess-no { font-weight: 700; color: var(--navy); }
.sess-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sess-roles li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.sess-roles li:last-child { border-bottom: 0; }
.sess-roles .r { color: var(--muted); flex: 0 0 auto; } .sess-roles .n { font-weight: 600; text-align: right; }
.sess-roles li.vacant .n { color: var(--muted); font-weight: 500; font-style: italic; }
.sess-foot { margin-top: 10px; font-size: .85rem; font-weight: 600; color: var(--navy); }

/* Görev göstergeleri: tamamlanan + planlanan */
.stat-sub { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.progress-2 { display: flex; }
.progress-2 > span { display: block; height: 100%; border-radius: 0; transition: width .3s; }
.progress-2 > span.done { background: var(--navy); border-radius: 999px 0 0 999px; }
.progress-2 > span.planned { background: repeating-linear-gradient(45deg, #93a8c4 0 6px, #c3d0e0 6px 12px); }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.legend .dot.done { background: var(--navy); } .legend .dot.planned { background: repeating-linear-gradient(45deg, #93a8c4 0 3px, #c3d0e0 3px 6px); }

/* Oturum Seç satırları */
.slot-time-box .t { font-size: 1.5rem; font-weight: 700; margin-top: 0; line-height: 1.1; }
.slot-time-box .m { font-size: .78rem; font-weight: 600; margin-top: 4px; opacity: .85; }
.slot-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.role-pill.mine { background: var(--navy); color: #fff; }
.btn-plain { background: transparent; color: var(--navy); border-color: transparent; font-weight: 600; }
.btn-plain:hover { background: var(--navy-light); }
.slot-roles { display: flex; gap: 6px; flex-wrap: wrap; }
.role-pill { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.role-pill.ok { background: var(--ok-bg); color: var(--ok); }
.role-pill.no { background: #e5e7eb; color: #6b7280; }
.role-pill.mine { background: var(--navy); color: #fff; }

/* Görev ilerleme: bölümlü çubuk */
.task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.task-title { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.task-sub { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.task-pct { text-align: right; flex: 0 0 auto; }
.task-pct .n { display: block; font-size: 1.9rem; font-weight: 800; color: var(--navy); line-height: 1; } .task-pct .n small { font-size: 1rem; font-weight: 700; }
.task-pct .l { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.task-track { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg-bar { height: 14px; border-radius: 999px; background: #e5e9ef; position: relative; overflow: hidden; }
.seg.done .seg-bar { background: linear-gradient(90deg, #1e3a5f, #2c5a8c); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.seg.planned .seg-bar { background: repeating-linear-gradient(45deg, #2a9d8f 0 8px, #5fbfb3 8px 16px); }
.seg.open .seg-bar { background: #e5e9ef; border: 1px dashed #c3ccd7; }
.seg-icon { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: .7rem; color: #fff; font-weight: 700; line-height: 1; }
.seg-label { margin-top: 8px; font-weight: 600; font-size: .9rem; }
.seg-state { font-size: .78rem; color: var(--muted); }
.seg.done .seg-state { color: var(--navy); font-weight: 600; }
.seg.planned .seg-state { color: #1f7a6f; font-weight: 600; }
.task-stats { padding-top: 14px; border-top: 1px solid var(--border); }
@media (max-width: 520px) { .task-head { flex-direction: column; } .task-pct { text-align: left; } .task-pct .n { display: inline; margin-right: 6px; } .task-pct .l { display: inline; } .seg-label { font-size: .8rem; } .seg-state { font-size: .72rem; } }

/* Nasıl çalışır sayfası */
.help-toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 24px; }
.help-toc li { margin-bottom: 4px; break-inside: avoid; }
.help-toc a { text-decoration: none; } .help-toc a:hover { text-decoration: underline; }
.help-steps { padding-left: 22px; margin: 0; }
.help-steps li { margin-bottom: 12px; line-height: 1.55; }
.help-steps li strong { display: block; margin-bottom: 2px; }
.card h2 { scroll-margin-top: 80px; }
code { background: var(--navy-light); padding: 1px 6px; border-radius: 4px; font-size: .95em; }
@media (max-width: 600px) { .help-toc ol { columns: 1; } }
.sd-join-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sd-join-actions .join-form { flex: 1 1 200px; max-width: 280px; }
.sd-join-actions .btn { width: 100%; }

/* Ayrılma sayacı */
.sd-leave { align-items: flex-start; }
.leave-info { flex: 1 1 320px; display: grid; gap: 8px; }
.leave-info .hint { margin: 0; }
.leave-timer { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: var(--navy-light); color: var(--navy); font-size: .88rem; font-variant-numeric: tabular-nums; width: fit-content; max-width: 100%; }
.leave-timer strong { font-weight: 700; }
.leave-timer .leave-until { color: var(--muted); font-size: .8rem; }
.leave-timer.soon { background: var(--warn-bg); color: var(--warn); }
/* Ayrılma bölümü ortalanmış */
.sd-leave { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.sd-leave .btn { min-width: 220px; }
.leave-info { justify-items: center; flex: 0 0 auto; max-width: 640px; }
.leave-info .hint { text-align: center; }
.role-pill.warn { background: var(--warn-bg); color: var(--warn); }

/* WhatsApp mesajı (yönetici) */
.wa-status { display: block; }
.wa-sets .check { margin-bottom: 6px; }
.wa-sets .row > .btn { flex: 0 0 auto; }
.wa-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.wa-preview { white-space: pre-wrap; word-break: break-word; background: #e8f5e3; border: 1px solid #cfe8c6; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; min-height: 60px; }
.wa-ok { color: var(--ok); font-weight: 600; }
.wa-err { color: var(--err, #b91c1c); }
#wa-mesaj { width: 100%; font: inherit; }
