/* === Tokens ============================================================ */
:root {
  --bg: #F7F8FA;
  --bg-soft: #EEF1F5;
  --paper: #FFFFFF;
  --parchment: #E8ECF2;
  --ink: #0F172A;
  --ink-soft: #334155;
  --mute: #475569;       /* okunabilirlik için koyulaştırıldı (eski: #64748B düşük kontrast) */
  --rule: #E2E8F0;
  --rule-soft: #F1F5F9;
  --sage: #1E3A5F;       /* kurumsal lacivert (legacy isim, palette güncellendi) */
  --sage-soft: #475D7E;
  --amber: #B45309;
  --clay: #B91C1C;
  --gold: #8B7140;
  --navy: #1E3A5F;
  --navy-deep: #0F1F38;

  --serif: "Crimson Pro", "Times New Roman", serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;

  --shadow-1: 0 1px 2px rgba(15,23,42,0.04), 0 4px 12px -4px rgba(15,23,42,0.06);
  --shadow-2: 0 1px 3px rgba(15,23,42,0.08), 0 12px 32px -12px rgba(15,23,42,0.16);
}

/* === Reset ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

/* === Base ============================================================== */
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#app { position: relative; min-height: 100vh; }

.boot {
  display: grid;
  place-items: center;
  height: 100vh;
  gap: 1rem;
  color: var(--mute);
}
.boot-mark {
  font-size: 3rem;
  color: var(--navy);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* === Typography helpers =============================================== */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 1.5rem;
}
.italic { font-style: italic; font-family: var(--serif); }
.num { font-family: var(--mono); font-feature-settings: "tnum"; }

/* === Auth (Login + Register) ========================================== */
.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 800px 600px at 50% 0%, rgba(61,90,64,0.05), transparent 60%),
    radial-gradient(ellipse 600px 400px at 50% 100%, rgba(184,154,94,0.06), transparent 60%),
    var(--bg);
  position: relative;
}

.auth__card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  width: 100%;
  max-width: 440px;
  padding: 3rem 2.75rem 2.5rem;
  box-shadow:
    0 1px 0 rgba(26,22,18,0.04),
    0 24px 60px -28px rgba(26,22,18,0.18);
  position: relative;
  animation: authRise 0.5s ease both;
}
@keyframes authRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth__mark {
  font-size: 1.85rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.auth__eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  margin: 0 0 1.5rem;
}

.auth__title {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.auth__title em {
  font-style: normal;
  color: var(--navy);
}

.auth__sub {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--mute);
  text-align: center;
  margin: 0 0 2rem;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.auth__field > span {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.auth__hint {
  font-family: var(--body);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--mute);
  margin-top: 0.1rem;
}
.auth__roles {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
}
.auth__role {
  display: block;
  text-align: left;
  border: 1.5px solid var(--rule);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: var(--paper);
  transition: border-color .15s, background .15s;
}
.auth__role:hover { border-color: var(--sage-soft); }
.auth__role.is-active {
  border-color: var(--navy);
  background: #EEF2F8;
}
.auth__role strong { display: block; font-size: 0.98rem; color: var(--ink); }
.auth__role small { display: block; font-size: 0.82rem; color: var(--mute); margin-top: 0.15rem; }
.auth__field input {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.7rem 0.85rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth__field input::placeholder {
  color: var(--rule);
  font-family: var(--body);
}
.auth__field input:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(61,90,64,0.1);
}

.auth__primary {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}
.auth__primary:hover { background: var(--sage); }
.auth__primary:active { transform: translateY(1px); }
.auth__arrow {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  letter-spacing: 0;
  transition: transform 0.2s;
}
.auth__primary:hover .auth__arrow { transform: translateX(3px); }

.pw-meter {
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
}
.pw-meter__bar {
  height: 3px;
  background: var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
}
.pw-meter__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--rule);
  transition: width 0.2s ease, background 0.2s ease;
}
.pw-meter__bar span.weak { background: var(--clay); }
.pw-meter__bar span.warn { background: var(--amber); }
.pw-meter__bar span.ok { background: var(--sage); }
.pw-meter__hint {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin: 0.4rem 0 0;
  min-height: 0.9em;
}

.auth__error {
  color: var(--clay);
  font-family: var(--body);
  font-size: 0.85rem;
  margin: 0;
  min-height: 1.1em;
  text-align: center;
}

.auth__sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.75rem 0 1.25rem;
}
.auth__sep::before, .auth__sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.auth__sep span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.auth__alt {
  display: block;
  text-align: center;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 0.5rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.auth__alt em,
.auth__alt span {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  margin-left: 0.35rem;
}
.auth__alt:hover { background: var(--bg-soft); }
.auth__alt:hover em,
.auth__alt:hover span { color: var(--navy-deep); }

.auth__credit {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
  margin: 2rem 0 0;
}

@media (max-width: 520px) {
  .auth__card { padding: 2.25rem 1.5rem 2rem; }
  .auth__title { font-size: 2.1rem; }
}

/* === Buttons ========================================================== */
.btn-primary {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--sage); transform: translateY(-1px); }
.btn-primary .arrow {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  letter-spacing: 0;
  transition: transform 0.2s;
}
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--rule);
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); background: var(--paper); }

.btn-sage {
  background: var(--sage);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.btn-sage:hover { background: #2C4530; }
.btn-sage[disabled] { opacity: 0.4; cursor: not-allowed; }

.btn-clay {
  background: transparent;
  color: var(--clay);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  transition: background 0.2s, color 0.2s;
}
.btn-clay:hover { background: var(--clay); color: var(--bg); }

/* === Shell ============================================================ */
.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.side {
  background: var(--paper);
  border-right: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}
.brand__mark {
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1;
}
.brand__name {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.brand__name small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--mute);
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.nav { display: flex; flex-direction: column; gap: 0.1rem; }
.nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.5rem;
  font-family: var(--body);
  font-size: 1.02rem;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s, background 0.15s, padding-left 0.15s;
}
.nav a .ord {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mute);
  margin-right: 0.7rem;
  letter-spacing: 0.1em;
}
.nav a:hover {
  background: var(--bg-soft);
  color: var(--ink);
  padding-left: 0.8rem;
}
.nav a.active {
  border-left-color: var(--sage);
  color: var(--ink);
  background: var(--bg-soft);
  padding-left: 0.8rem;
}
.nav a.active .ord { color: var(--sage); }
.nav .badge {
  background: var(--clay);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.side__foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.who {
  font-family: var(--body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.3;
}
.who em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  display: block;
}

/* === View ============================================================= */
.view {
  padding: 3rem 4rem;
  max-width: 1400px;
  width: 100%;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
.page-head__left h1 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.95rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 0;
  color: var(--ink);
}
.page-head__left h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}
.page-head__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.page-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--mute);
  text-transform: uppercase;
}

/* === Cards / Stats ==================================================== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
.stat {
  padding: 1.5rem;
  border-right: 1px solid var(--rule);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat__label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 0.5rem;
}
.stat__value {
  font-family: var(--body);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat__value em { font-style: normal; color: var(--navy); }
.stat__note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mute);
  margin-top: 0.4rem;
}

/* === Tables =========================================================== */
.table-wrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: auto;
}
table.t {
  width: 100%;
  border-collapse: collapse;
}
.t th, .t td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.95rem;
  vertical-align: middle;
}
.t th {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
  position: sticky;
  top: 0;
}
.t tr:hover td { background: var(--bg-soft); }
.t td.num, .t th.num { font-family: var(--mono); font-feature-settings: "tnum"; }

.tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.tag.sage { color: var(--sage); border-color: var(--sage-soft); background: rgba(61,90,64,0.05); }
.tag.amber { color: var(--amber); border-color: var(--amber); background: rgba(196,144,78,0.08); }
.tag.clay { color: var(--clay); border-color: var(--clay); background: rgba(161,75,58,0.07); }
.tag.muted { color: var(--mute); }

/* === Forms ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.field > span {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.field input, .field select, .field textarea {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.75rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(61,90,64,0.12);
}

/* === Calendar grid ==================================================== */
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.cal-toolbar__left { display: flex; align-items: baseline; gap: 1rem; }
.cal-toolbar__month {
  font-family: var(--body);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cal-toolbar__year {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--mute);
}
.cal-nav { display: flex; gap: 0.4rem; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cal-dow {
  background: var(--bg-soft);
  padding: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
  text-align: center;
}
.cal-cell {
  background: var(--paper);
  min-height: 80px;
  padding: 0.5rem 0.6rem;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cal-cell:hover { background: var(--bg-soft); }
.cal-cell.weekend { background: var(--parchment); }
.cal-cell.weekend:hover { background: #DDD5C2; }
.cal-cell.dim { background: transparent; cursor: default; }
.cal-cell.dim:hover { background: transparent; }
.cal-cell__num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-feature-settings: "tnum";
}
.cal-cell.today .cal-cell__num {
  color: var(--bg);
  background: var(--sage);
  display: inline-block;
  padding: 0 5px;
  border-radius: 2px;
  width: fit-content;
}
.cal-cell__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: auto;
}
.chip {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 2px;
  text-transform: uppercase;
}
.chip.want { background: rgba(61,90,64,0.12); color: var(--sage); }
.chip.avoid { background: rgba(161,75,58,0.12); color: var(--clay); }
.chip.leave { background: rgba(196,144,78,0.15); color: var(--amber); }
.chip.warn {
  background: var(--amber);
  color: var(--ink);
  font-weight: 500;
}
.cal-cell.has-warning::after {
  content: "!";
  position: absolute;
  top: 6px; right: 8px;
  width: 16px; height: 16px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
}

/* === Schedule grid (big table) ======================================== */
.sch-wrap {
  background: var(--paper);
  border: 1px solid var(--rule);
  overflow: auto;
  max-height: 75vh;
}
.sch {
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--body);
  font-size: 0.85rem;
}
.sch th, .sch td {
  padding: 0.4rem 0.4rem;
  border-bottom: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
  text-align: center;
  vertical-align: middle;
  min-width: 44px;
}
.sch th.name, .sch td.name {
  position: sticky;
  left: 0;
  background: var(--paper);
  text-align: left;
  font-family: var(--body);
  font-size: 0.9rem;
  min-width: 200px;
  padding-left: 0.85rem;
  border-right: 1px solid var(--rule);
  z-index: 2;
}
.sch th {
  position: sticky;
  top: 0;
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  z-index: 3;
  border-bottom: 1px solid var(--rule);
}
.sch th.name { z-index: 4; }
.sch th.weekend, .sch td.weekend { background: var(--parchment); }
.sch td.shift {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--sage);
  background: rgba(61,90,64,0.06);
  cursor: pointer;
}
.sch td.shift.day { color: var(--amber); background: rgba(196,144,78,0.1); }
.sch td.shift.night { color: var(--ink); background: var(--ink); color: var(--bg); }
.sch td.locked::after { content: "·"; color: var(--gold); margin-left: 2px; }
.sch td.empty { color: var(--rule); }
.sch td.leave { background: rgba(196,144,78,0.2); color: var(--amber); font-style: italic; }
.sch td.avoid { background: rgba(161,75,58,0.07); }
.sch td.want { background: rgba(61,90,64,0.04); }
.sch tr.row-admin td.name { color: var(--gold); font-style: italic; }
.sch tr.row-sinem td.name { color: var(--sage); }
.sch tr.row-total td {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  border-color: var(--ink);
}
.sch tr.row-total td.name { background: var(--ink); color: var(--gold); font-style: italic; font-family: var(--serif); }

/* === Modal ============================================================ */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(26,22,18,0.4);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 50;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-2);
  animation: rise 0.25s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.modal h3 {
  font-family: var(--body);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.modal__sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.5rem;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* === Toast ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-2);
  z-index: 60;
  animation: rise 0.25s ease, fadeOut 0.3s ease 2.7s forwards;
}
.toast.error { background: var(--clay); }
.toast.success::before { content: "✓ "; color: var(--gold); }
@keyframes fadeOut { to { opacity: 0; transform: translateY(8px); } }

/* === Misc ============================================================= */
.row { display: flex; gap: 0.75rem; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 2rem; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }

.section-title {
  font-family: var(--body);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 600;
  margin: 2.25rem 0 1rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}
.section-title::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--navy);
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger > * { animation: fadeUp 0.5s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.16s; }
.stagger > *:nth-child(5) { animation-delay: 0.20s; }
.stagger > *:nth-child(6) { animation-delay: 0.24s; }

.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--mute);
  font-style: normal;
  font-family: var(--body);
  font-size: 0.95rem;
}

/* === Day-detail modal lists ============================================ */
.day-detail { max-height: 65vh; overflow-y: auto; }
.day-list { display: flex; flex-direction: column; gap: 0; margin: 0.25rem 0 0; }
.day-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
  font-family: var(--body);
  font-size: 0.95rem;
}
.day-row:last-child { border-bottom: 0; }
.day-row__note {
  color: var(--mute);
  font-size: 0.85rem;
  font-style: italic;
}
.day-row .btn-clay { padding: 0.35rem 0.7rem; font-size: 0.65rem; }

.day-add {
  margin-top: 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.day-add summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  padding: 0.5rem 0;
  list-style: none;
}
.day-add summary::-webkit-details-marker { display: none; }
.day-add summary:hover { color: var(--ink); }
.day-add__body {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-soft);
  border-radius: 4px;
}
.day-add__body .btn-sage { margin-top: 0.5rem; }

/* === Schedule power UI ================================================= */
.sch { user-select: none; }
.sch th.name,
.sch th[data-day] {
  cursor: pointer;
  transition: background 0.12s;
}
.sch th.name:hover,
.sch th[data-day]:hover {
  background: var(--rule);
}
.sch td.cell { cursor: pointer; }
.sch.dragging td.cell { cursor: crosshair; }

.sch-tooltip {
  position: fixed;
  z-index: 70;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 0.85rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  line-height: 1.5;
  pointer-events: none;
  box-shadow: var(--shadow-2);
  max-width: 280px;
  opacity: 0;
  transition: opacity 0.12s;
}
.sch-tooltip.visible { opacity: 1; }
.sch-tooltip strong {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0;
  display: block;
  margin-bottom: 0.2rem;
}
.sch-tooltip .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.15rem;
}
.sch-tooltip .row span:first-child { color: rgba(251,248,243,0.5); }

.sch-ctx {
  position: fixed;
  z-index: 80;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow-2);
  min-width: 200px;
  overflow: hidden;
  animation: rise 0.12s ease;
}
.sch-ctx__head {
  padding: 0.5rem 0.85rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--mute);
  text-transform: uppercase;
}
.sch-ctx__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: background 0.1s, color 0.1s;
}
.sch-ctx__item:hover { background: var(--bg-soft); color: var(--ink); }
.sch-ctx__item.danger:hover { background: var(--clay); color: var(--bg); }
.sch-ctx__kbd {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--mute);
  border: 1px solid var(--rule);
  padding: 1px 5px;
  border-radius: 3px;
}

.sch-help {
  position: sticky;
  top: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.5rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.sch-help kbd {
  font-family: var(--mono);
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--ink);
  font-size: 0.65rem;
}
.sch-help strong {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Selected cells while dragging */
.sch td.cell.drag-preview {
  outline: 2px dashed var(--gold);
  outline-offset: -2px;
}

/* === Rule checkbox list =============================================== */
.rule-chk-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.5rem 0.75rem;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.rule-chk {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.25rem;
  cursor: pointer;
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-radius: 3px;
  transition: background 0.12s;
}
.rule-chk:hover { background: var(--paper); }
.rule-chk input { accent-color: var(--sage); cursor: pointer; }
.rule-chk span { user-select: none; }

/* === Schedule cell selection ========================================== */
.sch td.cell.selected {
  outline: 2px solid var(--sage);
  outline-offset: -2px;
  background: rgba(61,90,64,0.12) !important;
}
.sch td.cell.selected.shift { background: rgba(61,90,64,0.22) !important; }
.bulk-bar {
  position: sticky;
  bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  box-shadow: var(--shadow-2);
  z-index: 10;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: rise 0.2s ease;
}
.bulk-bar__count {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0;
  margin-right: 0.5rem;
}
.bulk-bar__actions { display: flex; gap: 0.4rem; }
.bulk-bar button {
  background: transparent;
  color: var(--bg);
  border: 1px solid rgba(251,248,243,0.2);
  padding: 0.4rem 0.7rem;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
}
.bulk-bar button:hover { background: rgba(184,154,94,0.2); border-color: var(--gold); }
.bulk-bar button.danger:hover { background: var(--clay); border-color: var(--clay); }

/* === Schedule legend ================================================== */
.sch-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  margin: 1rem 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}
.sch-legend strong {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 500;
  margin-right: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.65rem;
}
.sch-legend__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.sch-legend__swatch {
  display: inline-block;
  width: 22px; height: 16px;
  border-radius: 2px;
  text-align: center;
  font-size: 0.65rem;
  line-height: 16px;
  font-weight: 500;
}
.sch-legend__sw-24h { background: rgba(61,90,64,0.06); color: var(--sage); }
.sch-legend__sw-day { background: rgba(196,144,78,0.1); color: var(--amber); }
.sch-legend__sw-night { background: var(--ink); color: var(--bg); }
.sch-legend__sw-want { background: rgba(61,90,64,0.04); color: var(--sage); }
.sch-legend__sw-avoid { background: rgba(161,75,58,0.07); color: var(--clay); }
.sch-legend__sw-leave { background: rgba(196,144,78,0.2); color: var(--amber); font-style: italic; }

/* === Responsive ======================================================= */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: relative; height: auto; }
  .view { padding: 2rem 1.5rem; }
  .page-head__left h1 { font-size: 2.2rem; }
}

/* === Onboarding eğitimi (spotlight turu) ============================== */
.tour { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.tour__spot {
  position: fixed;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.66);
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
  pointer-events: none;
}
.tour__pop {
  position: fixed;
  width: min(360px, calc(100vw - 24px));
  background: var(--paper);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow-2);
  pointer-events: auto;
  animation: tourIn .18s ease;
}
@keyframes tourIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tour__pop--center {
  left: 50% !important; top: 50% !important;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  text-align: center;
}
.tour__pop--center .tour__dots { justify-content: center; }
.tour__pop--center .tour__actions { margin-top: 1.5rem; }
.tour__eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.85rem;
}
.tour__dots { display: flex; gap: 0.35rem; margin-bottom: 0.9rem; }
.tour__dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--rule); transition: background .15s, width .15s; }
.tour__dot.is-active { background: var(--navy); width: 1.3rem; border-radius: 999px; }
.tour__title { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.6rem; color: var(--ink); line-height: 1.25; }
.tour__body { color: var(--ink-soft); line-height: 1.55; margin: 0 0 1.4rem; font-size: 0.96rem; }
.tour__body b { color: var(--navy); }
.tour__actions { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
/* Ok (popover'ı hedefe bağlar) */
.tour__arrow { position: absolute; width: 0; height: 0; }
.tour__arrow--none { display: none; }
.tour__arrow--left  { left: -9px;  border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-right: 9px solid var(--paper); }
.tour__arrow--right { right: -9px; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 9px solid var(--paper); }
.tour__arrow--top   { top: -9px;   border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 9px solid var(--paper); }
.tour__arrow--bottom{ bottom: -9px;border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 9px solid var(--paper); }

/* === Landing (nobetlistem.com) ======================================== */
.lp {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, #EAF0F8 0%, transparent 70%),
    var(--bg);
  color: var(--ink);
}
.lp__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}
.lp__brand { display: flex; align-items: center; gap: 0.6rem; }
.lp__brand-mark { font-size: 1.4rem; color: var(--navy); }
.lp__brand-name { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.lp__nav-links { display: flex; align-items: center; gap: 1.75rem; }
.lp__nav-link { color: var(--ink-soft); font-size: 0.95rem; }
.lp__nav-link:hover { color: var(--navy); }
.lp__nav-cta { padding: 0.55rem 1.1rem; }

.lp__hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 3.5rem;
  text-align: center;
}
.lp__eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.25rem;
}
.lp__title {
  font-family: var(--body);
  font-weight: 600;
  font-size: 2.85rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.lp__title em { font-style: normal; color: var(--navy); }
.lp__lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 auto 2.25rem;
}
.lp__cta-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.lp__cta { padding: 0.85rem 1.6rem; font-size: 1rem; }
.lp__hero-note { margin: 1.5rem 0 0; color: var(--mute); font-size: 0.9rem; }

.lp__section { max-width: 1080px; margin: 0 auto; padding: 3.5rem 2rem; }
.lp__section--alt {
  max-width: none;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.lp__section--alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.lp__h2 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: -0.015em;
  text-align: center;
  margin: 0 0 2.5rem;
}
.lp__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lp__step {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-1);
}
.lp__section--alt .lp__step { background: var(--bg); }
.lp__step-num {
  display: inline-grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.lp__step h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 0.5rem; }
.lp__step p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; margin: 0; }

.lp__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.lp__feature {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem;
}
.lp__feature h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.45rem; color: var(--navy); }
.lp__feature p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; margin: 0; }

.lp__join { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.lp__join-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-1);
}
.lp__join-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--navy);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.lp__join-badge--alt { background: var(--gold); }
.lp__join-card h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 1rem; }
.lp__join-steps { counter-reset: js; display: grid; gap: 0.7rem; margin: 0 0 1.5rem; }
.lp__join-steps li {
  position: relative;
  padding-left: 2.1rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.5;
  counter-increment: js;
}
.lp__join-steps li::before {
  content: counter(js);
  position: absolute; left: 0; top: 0;
  width: 1.5rem; height: 1.5rem;
  display: grid; place-items: center;
  background: var(--bg-soft); color: var(--navy);
  border-radius: 50%;
  font-family: var(--mono); font-size: 0.8rem;
}
.lp__join-cta { display: inline-block; padding: 0.7rem 1.3rem; }

.lp__closing { text-align: center; padding: 4rem 2rem 3rem; }
.lp__closing .lp__lead { margin-bottom: 2rem; }

.lp__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2.5rem 2rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--mute);
  font-size: 0.88rem;
}
.lp__foot-brand { font-weight: 600; color: var(--ink-soft); }
.lp__foot-dot { color: var(--rule); }

@media (max-width: 820px) {
  .lp__steps, .lp__features, .lp__join { grid-template-columns: 1fr; }
  .lp__title { font-size: 2.1rem; }
  .lp__nav-links { gap: 1rem; }
  .lp__nav-link { display: none; }
}
