:root {
  --accent: #0f9d76;
  --accent-dark: #0b7d5e;
  --accent-soft: #e6f7f2;
  --teal: #14b8a6;
  --danger: #e11d48;
  --warn: #d97706;
  --ok: #16a34a;
  --mute: #94a3b8;
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e8edf2;
  --sidebar: #ffffff;
  --sidebar-text: #334155;
  --sidebar-active: #e7f6f1;
  --shadow: 0 8px 24px rgba(15, 40, 32, .05);
  --radius: 16px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #101918;
  --card: #182420;
  --text: #e8f3ee;
  --muted: #9bb0a8;
  --line: #2a3d37;
  --sidebar: #0d1815;
  --sidebar-text: #cfe6dd;
  --sidebar-active: #16332b;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
[data-theme="dark"] .brand { color: #fff; }
[data-theme="dark"] .sidebar-project select,
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .user-card,
[data-theme="dark"] .logout-link {
  background: #15231f; color: #e8f3ee; border-color: #2a3d37;
}
[data-theme="dark"] .sidebar { background: #07111f; border-bottom-color: #1c2b45; }
[data-theme="dark"] .nav a:hover { background: #122033; color: #e8eef7; }
[data-theme="dark"] .nav a.is-active { background: #1d4ed8; color: #fff; box-shadow: none; }
[data-theme="dark"] .logout-link:hover { background: #3a1b1b; color: #fda4af; }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
a { color: var(--accent-dark); text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.app { display: flex; flex-direction: column; min-height: 100vh; }
.sidebar {
  width: 100%;
  background: var(--sidebar);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  display: flex; gap: 10px; align-items: center;
  color: var(--text); margin: 0; padding: 0;
  flex-shrink: 0;
}
.brand img { border-radius: 12px; flex-shrink: 0; }
.brand-copy { min-width: 0; }
.brand strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.sb-label { display: none; }
.sidebar-project { margin: 0 0 0 auto; flex-shrink: 0; order: 3; }
.nav { order: 2; }
.sidebar-foot { order: 4; }
.sidebar-project select {
  width: auto;
  min-width: 148px;
  max-width: 200px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  color: var(--text);
  font-weight: 650;
}
.nav { display: flex; flex-direction: row; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.nav a {
  display: flex; align-items: center; gap: 8px;
  color: var(--sidebar-text);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 550;
  white-space: nowrap;
}
.nav a svg {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.nav a:hover { background: #f8fafc; color: var(--text); }
.nav a.is-active {
  background: #ecfdf5;
  color: #0f9d76;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #d1fae5;
}
.sidebar-foot { margin: 0; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-label { display: none; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px; font-weight: 650;
}
.theme-toggle svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .ico-moon { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
.user-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #f8fafc; border: 1px solid var(--line); border-radius: 16px;
  padding: 8px 8px 8px 10px;
}
.user-chip { display: flex; gap: 8px; align-items: center; min-width: 0; }
.avatar {
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.user-copy { min-width: 0; }
.user-copy strong, .user-chip strong { display: block; font-size: 13px; line-height: 1.2; }
.user-copy span, .user-chip span { display: block; font-size: 11px; color: var(--muted); }
.logout-link {
  width: 32px; height: 32px; border: 0; border-radius: 10px;
  background: #fff; color: #64748b; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.logout-link svg {
  width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.logout-link:hover { color: #e11d48; background: #fff1f2; }

.main { flex: 1; min-width: 0; overflow-x: hidden; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px 4px; gap: 16px;
}
.topbar h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.topbar-meta { margin: 0; color: var(--muted); font-size: 14px; }
.content { padding: 8px 28px 40px; display: grid; gap: 16px; min-width: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.card h2, .card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 650; }

.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.stat-grid.mini { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.stat-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat-card strong { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat-card.ok strong { color: var(--ok); }
.stat-card.teal strong { color: var(--teal); }
.stat-card.mute strong { color: var(--mute); }
.stat-card.danger strong { color: var(--danger); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }

.stack-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #e5e7eb; }
.stack-bar i { display: block; height: 100%; }
.stack-bar .ok, .legend .ok { background: #16a34a; }
.stack-bar .teal, .legend .teal { background: #14b8a6; }
.stack-bar .mute, .legend .mute { background: #94a3b8; }
.stack-bar .danger, .legend .danger { background: #e11d48; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 16px; list-style: none; padding: 14px 0 0; margin: 0; color: var(--muted); font-size: 13px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.chart-range { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.mini-bar { height: 8px; background: #e8edf2; border-radius: 99px; overflow: hidden; display: inline-block; width: 88px; margin-right: 10px; vertical-align: middle; }
.mini-bar span { display: block; height: 100%; background: var(--accent); }
.progress-cell { white-space: nowrap; }
.progress-cell em { font-style: normal; color: var(--muted); font-size: 13px; }
.progress-table th { color: #94a3b8; }
.progress-table td, .progress-table th { padding: 12px 8px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .04em; }
td, th { padding: 8px 6px; border-bottom: 1px solid var(--line); }
tr.is-late { background: #fef2f2; }
[data-theme="dark"] tr.is-late { background: #3a1b1b; }
tr.is-selected { background: var(--accent-soft); }
.table-wrap { overflow: auto; }

.btn, button.btn {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text);
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.2); color: inherit; }
.btn-block { width: 100%; }
.btn-sm { padding: 4px 8px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }

.stack-form, .form-grid { display: grid; gap: 10px; }
.form-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--card);
  color: var(--text);
}
.inline { display: inline-flex; align-items: center; gap: 6px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.inline-grid { display: grid; grid-template-columns: 70px 1fr 80px 90px auto; gap: 6px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); font-size: 13px; }
.note-fixed { margin: 0; }

.alert { padding: 10px 12px; border-radius: 10px; }
.alert-ok { background: #ecfdf5; color: #065f46; }
.alert-err { background: #fef2f2; color: #991b1b; }
.danger-zone { border-color: #fecaca; }
.help-box { background: var(--accent-soft); border-radius: 10px; padding: 12px; font-size: 13px; color: #14532d; }
[data-theme="dark"] .help-box { background: #16332b; color: #d1fae5; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); }
.tabs a.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.yonetim-head { display: grid; gap: 8px; }

.badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.badge.tamamlandi { background: #dcfce7; color: #16a34a; }
.badge.devam { background: #ccfbf1; color: #0f766e; }
.badge.baslamadi { background: #ffe4e6; color: #e11d48; }
.badge.planlandi { background: #e8f4fb; color: #3b82f6; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.topbar-chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe1e8;
  color: #0f172a;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.topbar-chip:hover { background: #f8fafc; }

.is-saha .content { background: var(--bg); margin: 0; padding: 18px 28px 40px; }
.is-saha .topbar { display: none; }
.saha-page { display: grid; gap: 16px; }
.st-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.st-head h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.st-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.st-head-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.st-date-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px 14px 8px 10px;
  box-shadow: var(--shadow);
}
.st-date-chip strong { display: block; font-size: 13px; }
.st-date-chip small { display: block; color: var(--muted); font-size: 11px; }
.st-date-ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: #e0f2fe;
}
.st-cta { border-radius: 12px; padding: 10px 16px; white-space: nowrap; }
.st-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.saha-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.saha-head h1 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.saha-tabs { display: flex; gap: 8px; }
.saha-tabs a {
  padding: 8px 18px;
  border-radius: 999px;
  background: #eceff3;
  color: #334155;
  border: 1px solid transparent;
  font-size: 14px;
}
.saha-tabs a.is-active {
  background: #fff;
  border-color: #dbe1e8;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  color: #0f172a;
  font-weight: 600;
}

.saha-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.saha-stage.card { padding: 10px; overflow: hidden; }
.saha-page.is-track .saha-stage.card { padding: 0; border: 0; }
.saha-photo-wrap { position: relative; background: #f8fafc; min-height: 360px; border-radius: 16px; overflow: hidden; }
.saha-page.is-track .saha-photo-wrap { min-height: 420px; border-radius: 18px; }
.saha-photo-wrap img { display: block; width: 100%; height: auto; max-height: 68vh; object-fit: contain; margin: 0 auto; }
.saha-page.is-track .saha-photo-wrap img { max-height: 62vh; }
#sahaOverlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
#sahaDrawCanvas { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 4; }
#sahaDrawCanvas.is-on { display: block; pointer-events: auto; cursor: crosshair; }
.calib-go {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  font-weight: 650;
  text-align: center !important;
}
.calib-danger {
  border-color: #fecaca !important;
  color: #e11d48 !important;
  text-align: center !important;
}
.draw-idle {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  pointer-events: none;
  white-space: nowrap;
}
.empty-photo { min-height: 360px; display: grid; place-items: center; color: #9bb0a8; }
.draw-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 23, 42, .88);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
}
.draw-bar[hidden] { display: none !important; }
.draw-bar-actions { display: flex; gap: 8px; }
.draw-bar .btn { min-height: 36px; }
.draw-bar .btn[disabled] { opacity: .45; cursor: not-allowed; }

.saha-legend {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  list-style: none; margin: 10px 4px 0; padding: 0;
  font-size: 12px; color: #475569;
}
.saha-legend .dot { width: 8px; height: 8px; }
.delay-ring { box-shadow: 0 0 0 2px #dc2626; background: transparent !important; }
.saha-help { margin: 8px 4px 0; font-size: 12.5px; line-height: 1.45; color: #64748b; }

.jobs-panel { padding: 16px 16px 12px; }
.jobs-panel h2 { margin: 0 0 6px; }
.jobs-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.jobs-head h2 { margin: 0; }
.jobs-filter {
  border: 0; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.jobs-search { display: block; margin-bottom: 12px; }
.jobs-search input {
  width: 100%; border: 1px solid var(--line); background: #f8fafc;
  border-radius: 12px; padding: 10px 12px; color: var(--text);
}
.jobs-intro { margin: 0 0 14px; font-size: 12.5px; line-height: 1.4; color: #64748b; }
.jobs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.jobs-panel.is-rich { padding: 16px 14px 10px; position: sticky; top: 16px; }
.jobs-panel.is-rich .jobs-list { gap: 4px; max-height: 58vh; overflow: auto; }
.jobs-panel.is-rich .jobs-list li { border-radius: 12px; padding: 8px 8px 8px 6px; }
.jobs-panel.is-rich .jobs-list li.is-on { background: #f0fdf4; }
.jobs-panel.is-rich .job-btn { align-items: flex-start; gap: 8px; }
.job-idx { font-size: 11px; font-weight: 700; color: #94a3b8; min-width: 18px; padding-top: 2px; }
.job-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.job-pct { font-size: 12px; font-weight: 700; color: #94a3b8; }
.job-late {
  flex-basis: 100%; margin-left: 42px;
  color: #d97706; font-size: 11px; font-weight: 650;
}
.job-btn { width: 100%; text-align: left; background: transparent; border: 0; color: inherit; cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; }
.job-name { flex: 1; font-size: 13px; }
.jobs-list li { border: 0; border-radius: 0; padding: 0; }
.jobs-list li.is-on .job-name { font-weight: 700; }
.jobs-list small { color: #94a3b8; font-size: 11px; }
.job-meter { height: 4px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin: 5px 0 3px; }
.job-meter span { display: block; height: 100%; border-radius: 99px; }
.warn { color: #f59e0b; font-size: 12px; }

.saha-full-btn {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
  border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 650;
  cursor: pointer; color: #0f172a; box-shadow: 0 4px 14px rgba(15,23,42,.12);
}
.saha-status-legend {
  position: absolute; left: 12px; bottom: 12px; z-index: 5;
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  list-style: none; margin: 0; padding: 8px 12px;
  background: rgba(15,23,42,.72); color: #fff;
  border-radius: 999px; font-size: 12px;
  pointer-events: none;
}
.saha-status-legend i {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px;
}
.saha-status-legend .ok { background: #22c55e; }
.saha-status-legend .run { background: #38bdf8; }
.saha-status-legend .wait { background: #94a3b8; }
.saha-status-legend .late { background: #f43f5e; }
.saha-block-chip {
  position: absolute; z-index: 6; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.96);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 7px 12px 7px 7px;
  box-shadow: 0 8px 20px rgba(15,23,42,.18);
  pointer-events: none;
  white-space: nowrap;
  min-width: 112px;
}
.saha-block-chip span { display: grid; gap: 2px; min-width: 0; }
.saha-block-chip strong { display: block; font-size: 12px; line-height: 1.2; }
.saha-block-chip b { font-size: 12px; font-weight: 700; color: #64748b; }
.saha-block-chip-bar {
  display: block; height: 4px; width: 72px; background: #e8edf2;
  border-radius: 99px; overflow: hidden; margin-top: 2px;
}
.saha-block-chip-bar i {
  display: block; height: 100%; border-radius: 99px; background: currentColor;
  font-style: normal;
}
.saha-block-chip[data-tone="0"] { color: #16a34a; }
.saha-block-chip[data-tone="1"] { color: #2563eb; }
.saha-block-chip[data-tone="2"] { color: #64748b; }
.saha-block-chip[data-tone="3"] { color: #ea580c; }
.saha-block-chip[data-tone="4"] { color: #7c3aed; }
.saha-block-chip[data-tone="5"] { color: #0891b2; }
.saha-block-chip-ico {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: #dcfce7;
}
.saha-block-chip[data-tone="1"] .saha-block-chip-ico { background: #dbeafe; }
.saha-block-chip[data-tone="2"] .saha-block-chip-ico { background: #e2e8f0; }
.saha-block-chip[data-tone="3"] .saha-block-chip-ico { background: #ffedd5; }
.saha-block-chip[data-tone="4"] .saha-block-chip-ico { background: #ede9fe; }
.saha-block-chip[data-tone="5"] .saha-block-chip-ico { background: #cffafe; }
.saha-photo-wrap:fullscreen,
.saha-photo-wrap:-webkit-full-screen { background: #0b1220; width: 100%; height: 100%; border-radius: 0; }
.saha-photo-wrap:fullscreen img,
.saha-photo-wrap:-webkit-full-screen img { max-height: 100vh; }

.st-bottom { display: grid; grid-template-columns: 1.05fr 1.05fr .9fr; gap: 12px; }
.st-card h2 { margin: 0 0 12px; font-size: 15px; }
.st-side-col { display: grid; gap: 12px; }
.st-block-prog { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-block-prog li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; }
.st-block-mark { width: 10px; height: 36px; border-radius: 4px; }
.st-block-copy strong { display: block; font-size: 13px; }
.st-block-copy .mini-bar { display: block; width: 100%; height: 8px; background: #eef2f6; border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.st-block-copy .mini-bar span { display: block; height: 100%; border-radius: 99px; }
.st-block-copy small { color: var(--muted); font-size: 12px; }
.st-block-prog em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--muted); }
.st-feed { gap: 10px; }
.st-project ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.st-project li {
  background: #f8fafc; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
}
.st-project strong { display: block; font-size: 16px; letter-spacing: -.02em; }
.st-project span { color: var(--muted); font-size: 11px; }
[data-theme="dark"] .st-date-chip,
[data-theme="dark"] .saha-full-btn,
[data-theme="dark"] .saha-block-chip,
[data-theme="dark"] .jobs-search input,
[data-theme="dark"] .st-project li {
  background: #15231f; border-color: #2a3d37; color: #e8f3ee;
}

.calib-panel { display: grid; gap: 12px; }
.calib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.calib-ctl, .calib-upload .calib-ctl {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dbe1e8;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
}
.calib-help {
  font-size: 12.5px;
  line-height: 1.5;
  color: #854d0e;
  background: #fefce8;
  border-radius: 12px;
  padding: 12px 14px;
}
.calib-help p { margin: 0 0 8px; }
.calib-help p:last-child { margin: 0; }
.calib-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.calib-draw-hint { margin: 0; flex: 1 1 100%; color: #334155; font-size: 13px; line-height: 1.45; }
.calib-actions.is-drawing .calib-draw-hint { color: #0f766e; font-weight: 600; }
[data-theme="dark"] .calib-draw-hint { color: #e8f3ee; }
[data-theme="dark"] .calib-actions.is-drawing .calib-draw-hint { color: #a7f3d0; }
[data-theme="dark"] .calib-help {
  background: #2a2410;
  color: #fde68a;
}
[data-theme="dark"] .calib-help p { color: #fde68a; }
[data-theme="dark"] .saha-help { color: #cfe6dd; }
[data-theme="dark"] #drawStatus { color: #fff; }
.row-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; }

.saha-open-card h2 { margin: 0; }
.saha-open-table th { font-size: 11px; letter-spacing: .06em; color: #94a3b8; }
.saha-open-table td.delay-cell { color: #dc2626; font-weight: 700; }
.saha-open-table tr.is-late { background: #fff1f2; }
.saha-pop {
  position: absolute;
  z-index: 6;
  min-width: 220px;
  max-width: 280px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
  padding: 10px 12px;
  font-size: 12.5px;
  color: #0f172a;
}
.saha-pop h3 { margin: 0 0 6px; font-size: 13px; }
.saha-pop button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 4px 0; cursor: pointer; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.check-grid label { border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.check-grid label.is-locked { opacity: .45; background: #f1f5f9; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper input { width: 72px; text-align: center; }
.entry-cards { display: grid; gap: 10px; }
.entry-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.entry-card.is-late { border-color: var(--danger); }
.color-row { display: flex; gap: 8px; align-items: center; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(15, 157, 118, .28), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(34, 197, 94, .12), transparent 45%),
    #0d1815;
}
.login-card {
  width: min(420px, 92vw);
  background: #182420;
  border: 1px solid #2a3d37;
  color: #e8f3ee;
  padding: 28px;
  border-radius: 18px;
  display: grid;
  gap: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
}
.login-brand { display: flex; gap: 12px; align-items: center; }
.login-brand strong { display: block; font-size: 20px; letter-spacing: -.02em; color: #fff; }
.login-brand span { display: block; color: #9bb0a8; font-size: 13px; }
.login-card label { color: #cfe6dd; }
.login-card input {
  background: #12201c;
  border: 1px solid #2a3d37;
  color: #e8f3ee;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
}
.login-card input:focus {
  outline: none;
  border-color: #0f9d76;
  box-shadow: 0 0 0 3px rgba(15, 157, 118, .25);
}
.login-card .btn-primary {
  background: #0f9d76;
  border-color: #0f9d76;
  color: #fff;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 650;
  margin-top: 4px;
}
.login-card .btn-primary:hover { background: #0b7d5e; }
.login-hint { margin: 0; color: #9bb0a8; font-size: 12.5px; }
.login-hint code {
  background: #12201c;
  border: 1px solid #2a3d37;
  color: #a7f3d0;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
}
.login-card .alert-err {
  background: #3a1b1b;
  color: #fda4af;
  border: 1px solid #7f1d1d;
}

.saha-tooltip {
  position: absolute;
  background: rgba(248, 250, 252, .96);
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.35;
  pointer-events: none;
  z-index: 6;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
[data-theme="dark"] .saha-tooltip {
  background: rgba(21, 35, 31, .96);
  color: #e8f3ee;
  border-color: #2a3d37;
}
.jobs-panel.is-floor { position: sticky; top: 16px; max-height: calc(100vh - 40px); overflow: auto; }
.floor-detail-back {
  border: 0; background: none; color: var(--accent); font-weight: 650;
  cursor: pointer; padding: 0; margin: 0 0 10px; font-size: 13px;
}
.floor-detail h2 { margin: 0 0 14px; font-size: 16px; }
.floor-sec-title { margin: 18px 0 8px; font-size: 13px; color: var(--muted); font-weight: 650; }
.floor-work-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff1f2;
}
.floor-work-card:not(.is-late) { background: color-mix(in srgb, var(--card) 88%, #e2e8f0); }
[data-theme="dark"] .floor-work-card.is-late { background: #2a181c; border-color: #5c2a35; }
[data-theme="dark"] .floor-work-card:not(.is-late) { background: #15231f; }
.floor-work-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.floor-work-top strong { font-size: 14px; }
.floor-work-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.floor-late { color: #e11d48; font-size: 13px; }
.floor-work-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  font-size: 13px;
}
.floor-work-meta em { display: block; font-style: normal; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.floor-mini-list, .floor-break-list {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
}
.floor-mini-list li, .floor-break-list li {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px;
}
.floor-mini-list em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }
.floor-break-list li {
  flex-direction: column; align-items: stretch;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  background: var(--card);
}
.floor-break-top { display: flex; align-items: center; gap: 8px; }
.floor-break-top .badge { margin-left: auto; }
.floor-break-list small { color: var(--muted); font-size: 12px; }

.is-ig .topbar { display: none; }
.is-ig .content { background: var(--bg); margin: 0; padding: 18px 28px 40px; }
.ig-page { display: grid; gap: 16px; }
.ig-head h1 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.03em; }
.ig-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.ig-crumb { margin: 0; font-size: 13px; color: var(--muted); }
.ig-crumb span { margin: 0 6px; color: #cbd5e1; }
.ig-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.ig-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ig-steps li.is-on, .ig-steps li.is-done { color: var(--text); }
.ig-steps b {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px;
  background: #eef2f6; color: #64748b;
}
.ig-steps li.is-on b, .ig-steps li.is-done b { background: #dcfce7; color: #15803d; }
.ig-steps small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.ig-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ig-form { display: grid; gap: 14px; }
.ig-section { padding: 18px 18px 16px; }
.ig-section h2 { margin: 0 0 14px; font-size: 16px; }
.ig-sec-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.ig-sec-head h2 { margin: 0; }
.ig-search input {
  min-width: 200px; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; background: var(--card); color: var(--text);
}
.ig-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ig-cat {
  border: 1px solid transparent; background: #f1f5f9; color: #475569;
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.ig-cat.is-on { background: #dcfce7; color: #166534; font-weight: 650; }
.ig-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ig-item {
  display: grid; gap: 8px; justify-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 8px 12px; cursor: pointer; color: var(--text); min-height: 108px;
}
.ig-item strong { font-size: 12px; font-weight: 650; line-height: 1.3; }
.ig-item.is-on { border-color: #86efac; background: #f0fdf4; box-shadow: 0 0 0 3px #dcfce7; }
.ig-item.is-disabled { opacity: .38; cursor: not-allowed; pointer-events: none; }
.ig-item-ico { width: 36px; height: 36px; border-radius: 12px; background: color-mix(in srgb, var(--c, #94a3b8) 22%, #fff); }
.ig-hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.ig-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.ig-section select, .ig-section input[type="date"], .ig-section input[type="text"], .ig-section input[type="number"], .ig-section input[type="search"], .ig-section textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--card);
  color: var(--text);
  color-scheme: light dark;
}
.ig-section select:disabled,
.ig-section input:disabled {
  background: color-mix(in srgb, var(--card) 70%, var(--bg));
  color: var(--muted);
  opacity: 1;
}
.ig-section select option {
  background: var(--card);
  color: var(--text);
}
.ig-section ::placeholder {
  color: var(--muted);
  opacity: .85;
}
.ig-section textarea { min-height: 72px; resize: vertical; }
.ig-section label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.ig-loc { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; align-items: start; }
.ig-floors { margin: 16px 0 0; }
.ig-floors-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 10px;
}
.ig-floors-head > span { font-size: 14px; font-weight: 650; color: var(--text); }
.ig-floors-actions { display: flex; gap: 12px; }
.ig-floors-link {
  border: 0; background: none; color: var(--accent); font-weight: 650;
  font-size: 13px; cursor: pointer; padding: 0;
}
.ig-floor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.ig-floor-card {
  display: grid; gap: 4px; align-content: start;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 12px 10px;
  cursor: pointer;
  min-height: 72px;
}
.ig-floor-card input { display: none; }
.ig-floor-card strong { font-size: 14px; letter-spacing: -.01em; }
.ig-floor-empty { color: var(--muted); font-size: 12px; }
.ig-floor-work {
  display: flex; gap: 6px; align-items: flex-start;
  color: #9a3412; font-size: 11.5px; line-height: 1.35; font-weight: 550;
}
.ig-floor-work i {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
  background: #f59e0b;
}
.ig-floor-work em { font-style: normal; font-weight: 700; }
.ig-floor-card.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.ig-floor-card.is-locked {
  cursor: not-allowed;
  background: #fff7ed;
  border: 1px dashed #fb923c;
  opacity: 1;
}
.ig-floor-hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.4; }
[data-theme="dark"] .ig-floor-card {
  background: #15231f; border-color: #2a3d37; color: #e8f3ee;
}
[data-theme="dark"] .ig-floor-card.is-on {
  border-color: #0f9d76;
  box-shadow: 0 0 0 2px rgba(15,157,118,.25);
}
[data-theme="dark"] .ig-floor-card.is-locked {
  background: #2a2018;
  border-color: #b45309;
  color: #e8f3ee;
}
[data-theme="dark"] .ig-floor-work { color: #fdba74; }
[data-theme="dark"] .ig-floor-empty { color: #9bb0a8; }

.ig-chip {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 8px 12px; font-size: 13px; cursor: pointer;
}
.ig-chip input { display: none; }
.ig-chip.is-on { background: #16a34a; border-color: #16a34a; color: #fff; }
.ig-chip.is-locked { opacity: .4; cursor: not-allowed; background: #f1f5f9; }
.ig-preview {
  background: #f8fafc; border: 1px solid var(--line); border-radius: 16px; padding: 12px;
}
.ig-preview p { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.ig-preview img, .ig-preview-empty {
  width: 100%; height: 110px; object-fit: cover; border-radius: 12px; background: #e2e8f0;
}
.ig-preview-empty { display: grid; place-items: center; font-size: 12px; color: #94a3b8; }
.ig-preview-meta { margin-top: 10px; display: grid; gap: 2px; }
.ig-preview-meta strong { font-size: 14px; color: var(--text); }
.ig-preview-meta span, .ig-preview-meta small { color: var(--muted); font-size: 12px; }
.ig-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ig-note { display: grid; gap: 6px; }
.ig-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ig-save { border-radius: 12px; padding: 10px 18px; }
.ig-side { display: grid; gap: 12px; }
.ig-list-card { display: grid; gap: 10px; }
.ig-list-card h2 { margin: 0; }
.ig-mini-cta { border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.ig-side-tabs { display: flex; gap: 4px; background: #f1f5f9; border-radius: 12px; padding: 4px; }
.ig-side-tabs button {
  flex: 1; border: 0; background: transparent; border-radius: 10px;
  padding: 8px 6px; font-size: 12px; color: #64748b; cursor: pointer;
}
.ig-side-tabs button.is-on { background: #fff; color: var(--text); font-weight: 650; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.ig-side-tabs em { font-style: normal; color: var(--muted); }
.ig-all-link { text-align: center; font-size: 13px; font-weight: 650; padding: 6px 0 2px; }
.ig-sum h2, .ig-today h2 { margin: 0 0 12px; font-size: 15px; }
.ig-sum ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ig-sum li {
  display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto;
  column-gap: 8px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 10px;
}
.ig-sum i { grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 10px; }
.ig-sum strong { font-size: 18px; }
.ig-sum span { font-size: 11px; color: var(--muted); }
.ig-sum-ico.tot { background: #e0f2fe; }
.ig-sum-ico.run { background: #dcfce7; }
.ig-sum-ico.ok { background: #d1fae5; }
.ig-sum-ico.late { background: #ffe4e6; }
.ig-today ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ig-today li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.ig-today strong { display: block; }
.ig-today span { color: var(--muted); font-size: 12px; }
.topbar-link { color: var(--muted); font-size: 14px; }
.topbar-link.is-on { color: var(--accent); font-weight: 600; }
.entry-cards { display: grid; gap: 10px; max-height: 52vh; overflow: auto; }
.entry-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--card);
  color: var(--text);
}
.entry-card.is-late { border-color: #fecaca; }
.entry-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.entry-top strong { font-size: 13px; }
.badge.plan { background: #f1f5f9; color: #64748b; font-size: 11px; }
.badge.is-run { background: #e0f2fe; color: #0369a1; font-size: 11px; }
.badge.is-late { background: #ffe4e6; color: #e11d48; font-size: 11px; }
.entry-where { color: var(--muted); font-size: 12px; margin: 4px 0 2px; }
.entry-meta { font-size: 12px; color: #94a3b8; }
.entry-bar { height: 6px; background: #eef2f6; border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.entry-bar span { display: block; height: 100%; border-radius: 99px; }
.entry-foot { display: flex; gap: 8px; align-items: center; margin-top: 4px; font-size: 12px; color: #94a3b8; }
.entry-foot em { font-style: normal; font-weight: 700; color: var(--muted); }
.delay-pill { background: #ffe4e6; color: #e11d48; border-radius: 999px; padding: 2px 8px; font-weight: 600; }
.entry-done { margin-left: auto; background: none; border: 0; color: var(--accent); cursor: pointer; font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px; background: var(--card); }
.stepper input { width: 64px; text-align: center; border: 0 !important; min-height: 32px !important; background: transparent !important; color: var(--text); }
.stepper button { border: 0; background: none; cursor: pointer; font-size: 18px; width: 28px; color: var(--text); }
[data-theme="dark"] .ig-steps,
[data-theme="dark"] .ig-item,
[data-theme="dark"] .ig-chip,
[data-theme="dark"] .ig-preview,
[data-theme="dark"] .ig-search input,
[data-theme="dark"] .ig-sum li,
[data-theme="dark"] .ig-side-tabs { background: #15231f; border-color: #2a3d37; }
[data-theme="dark"] .ig-side-tabs button.is-on,
[data-theme="dark"] .ig-cat { background: #1c332c; }
[data-theme="dark"] .ig-item.is-on { background: #16332b; }

.is-rapor .topbar { display: none; }
.is-rapor .content { background: var(--bg); margin: 0; padding: 18px 28px 40px; gap: 16px; }
.rp-page { display: grid; gap: 16px; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rp-head h1 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.03em; }
.rp-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.rp-head-actions { display: flex; gap: 8px; align-items: center; }
.rp-menu { position: relative; }
.rp-menu summary { list-style: none; cursor: pointer; }
.rp-menu summary::-webkit-details-marker { display: none; }
.rp-menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 8;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  min-width: 160px; padding: 6px; box-shadow: var(--shadow);
}
.rp-menu-list a, .rp-menu-list button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); font-size: 13px;
}
.rp-export { border-radius: 12px; padding: 8px 14px; white-space: nowrap; }
.rp-filters {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) auto;
  gap: 10px; align-items: end; padding: 14px 16px;
}
.rp-filters label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.rp-filters select, .rp-filters input[type="date"] {
  width: 100%; min-height: 40px; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 10px; background: var(--card); color: var(--text);
}
.rp-filter-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 2px; }
.rp-clear { font-size: 13px; color: var(--muted); font-weight: 650; }
.rp-mid { display: grid; grid-template-columns: minmax(0, 1.5fr) 340px; gap: 12px; align-items: start; }
.rp-table-card h2, .rp-side h2 { margin: 0 0 12px; font-size: 15px; }
.rp-table { font-size: 13px; }
.rp-table th {
  font-size: 11px; letter-spacing: .06em; color: #94a3b8; font-weight: 650;
  padding: 8px 10px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.rp-table td {
  padding: 12px 10px 12px 0; border-bottom: 1px solid #f1f5f9;
  vertical-align: middle; white-space: nowrap;
}
.rp-table tr.is-late { background: #fff1f2; }
.rapor-job { font-weight: 650; }
.rapor-job .dot { width: 8px; height: 8px; margin-right: 8px; }
.rp-prog { white-space: nowrap; }
.rp-prog .mini-bar { width: 72px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.rp-prog em { font-style: normal; color: var(--muted); font-size: 12px; }
.badge.gecikti { background: #ffe4e6; color: #e11d48; }
.badge.plan { background: #f1f5f9; color: #64748b; }
.rp-pager {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap;
}
.rp-pager nav { display: flex; gap: 4px; align-items: center; }
.rp-pager a, .rp-pager b {
  min-width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; padding: 0 6px;
}
.rp-pager b { background: var(--accent); color: #fff; }
.rp-pager a { background: #f1f5f9; color: #334155; }
.rp-per select { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: #fff; }
.rp-side { display: grid; gap: 12px; }
.rp-donut { align-items: center; }
.rp-blocks { gap: 14px; }
.rp-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rp-list-card h2 { margin: 0; font-size: 15px; }
.rp-count { font-size: 12px; font-weight: 650; color: var(--muted); }
.rp-count.is-bad { color: #e11d48; }
.rp-feed { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.rp-feed li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.rp-feed strong { display: block; }
.rp-feed span { color: var(--muted); font-size: 12px; }
.rp-feed b { color: #e11d48; font-size: 12px; white-space: nowrap; }
.rp-feed em { font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
[data-theme="dark"] .rp-filters select,
[data-theme="dark"] .rp-filters input[type="date"],
[data-theme="dark"] .rp-menu-list,
[data-theme="dark"] .rp-per select {
  background: #15231f; border-color: #2a3d37; color: #e8f3ee;
}
[data-theme="dark"] .rp-table tr.is-late { background: #3a1b1b; }

.topbar-note { margin: 0; color: var(--muted); font-size: 13px; max-width: 420px; text-align: right; line-height: 1.4; }
.is-yon .content { gap: 16px; background: var(--bg); }
.is-yon-home .topbar { display: none; }
.is-yon-home .content { background: var(--bg); margin: 0; padding: 18px 28px 40px; }
.yon-page { display: grid; gap: 16px; }
.yon-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.yon-head h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.yon-head p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.yon-search input {
  min-width: 220px; min-height: 40px; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 12px; background: var(--card); color: var(--text);
}
.yon-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.yon-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.yon-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.yon-tabs a {
  padding: 8px 16px;
  border-radius: 999px;
  background: #eceff3;
  border: 1px solid transparent;
  color: #334155;
  font-size: 14px;
}
.yon-tabs a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.yon-mid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.yon-bottom { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 12px; align-items: start; }
.is-yon .card h2 { margin: 0 0 16px; }
.yon-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.yon-form-3 { grid-template-columns: 1.2fr 1fr .8fr; }
.yon-form-actions { justify-content: flex-end; }
.is-yon label { color: var(--muted); font-size: 13px; }
.is-yon input, .is-yon select, .is-yon textarea {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--card);
  color: var(--text);
}
.is-yon input[type="checkbox"] { min-height: 16px; width: 16px; height: 16px; padding: 0; }
.is-yon input[type="color"] { min-height: 36px; width: 52px; padding: 4px; }
.yon-hint { margin: 12px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.yon-card .btn-row { margin-top: 16px; }
.yon-save { border-radius: 12px; padding: 10px 18px; }
.yon-ghost {
  border-radius: 12px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
}
.yon-quick { display: grid; gap: 8px; align-content: start; }
.yon-quick-btn {
  display: block; width: 100%; text-align: left; border: 1px solid var(--line);
  background: #f8fafc; border-radius: 12px; padding: 12px 14px;
  font-weight: 650; color: var(--text); cursor: pointer; font-size: 14px;
}
.yon-quick-btn.is-add { background: var(--accent); border-color: var(--accent); color: #fff; }
.yon-quick-btn.is-danger { color: #e11d48; background: #fff1f2; border-color: #fecaca; }
.yon-list-card { padding: 16px 18px 12px; }
.yon-proj-name { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.yon-proj-name img, .yon-thumb, .yon-recent img {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #e2e8f0; flex-shrink: 0;
}
.yon-thumb { display: inline-block; }
.badge.aktif { background: #dcfce7; color: #15803d; }
.badge.pasif { background: #f1f5f9; color: #64748b; }
.badge.arsiv { background: #e2e8f0; color: #475569; }
.yon-table th {
  font-size: 11px;
  letter-spacing: .06em;
  color: #94a3b8;
  font-weight: 650;
  padding: 12px 10px 10px 0;
}
.yon-table td {
  padding: 14px 10px 14px 0;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.yon-table tr[data-select] { cursor: pointer; }
.yon-table tr.is-selected { background: #eef8f4; }
.yon-table tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.yon-strong { font-weight: 650; }
.yon-action { text-align: right; white-space: nowrap; }
.yon-action .inline-form, .yon-action form { display: inline-flex; margin-left: 6px; }
.yon-secili { color: var(--accent); font-weight: 650; font-size: 13px; }
.yon-sec {
  background: none;
  border: 0;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  padding: 0;
}
.yon-overview { overflow: hidden; padding: 0; }
.yon-overview img, .yon-overview-empty { width: 100%; height: 140px; object-fit: cover; background: #e2e8f0; }
.yon-overview-empty { display: grid; place-items: center; color: #94a3b8; font-size: 13px; }
.yon-overview-copy { padding: 14px 16px 16px; display: grid; gap: 8px; }
.yon-overview-copy h3 { margin: 0; }
.yon-overview-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.yon-overview-copy ul {
  list-style: none; margin: 8px 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.yon-overview-copy li {
  background: color-mix(in srgb, var(--bg) 65%, var(--card));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--text);
}
.yon-overview-copy strong { display: block; font-size: 16px; color: var(--text); }
.yon-overview-copy span { color: var(--muted); font-size: 11px; }
.yon-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.yon-recent li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; }
.yon-recent strong { display: block; font-size: 13px; }
.yon-recent span { color: var(--muted); font-size: 12px; }
.yon-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.yon-stats-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yon-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--card);
  color: var(--text);
}
.yon-stat strong { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.yon-stat span { color: var(--muted); font-size: 13px; }
.yon-sub { margin: 18px 0 12px; font-size: 15px; font-weight: 650; }
.yon-shortcuts { display: flex; flex-wrap: wrap; gap: 10px; }
.yon-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}
.yon-shortcuts em { font-style: normal; color: var(--muted); font-size: 13px; }
.is-yon .danger-zone {
  background: #fff5f5;
  border-color: #fecaca;
  padding: 20px 22px 18px;
}
.is-yon .danger-zone h2 { color: #e11d48; margin-bottom: 10px; }
.yon-wipe-copy { margin: 0 0 16px; font-size: 13.5px; line-height: 1.5; color: #3f3f46; }
.yon-wipe-btn { width: 100%; border-radius: 12px; padding: 12px; }
.wipe-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  color: var(--text);
}
.wipe-check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--accent); }
.wipe-check small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; font-weight: 400; }
.wipe-confirm { margin-bottom: 14px; }
.wipe-confirm input { width: 100%; }

[data-theme="dark"] .yon-tabs a { background: #16332b; color: #cfe6dd; }
[data-theme="dark"] .yon-tabs a.is-active { background: var(--accent); color: #fff; }
[data-theme="dark"] .yon-table tr.is-selected { background: #16332b; }
[data-theme="dark"] .yon-overview-copy li {
  background: #12201c;
  border-color: #2a3d37;
  color: #e8f3ee;
}
[data-theme="dark"] .yon-overview-copy strong { color: #e8f3ee; }
[data-theme="dark"] .yon-overview-copy span { color: #9bb0a8; }
[data-theme="dark"] .yon-overview-empty { background: #12201c; color: #9bb0a8; }
[data-theme="dark"] .yon-stat {
  background: #15231f;
  border-color: #2a3d37;
  color: #e8f3ee;
}
[data-theme="dark"] .is-yon .danger-zone { background: #3a1b1b; }
[data-theme="dark"] .yon-wipe-copy { color: #e8f3ee; }

.is-dash .topbar { display: none; }
.is-dash .content { padding: 18px 24px 40px; background: var(--bg); }
.dash-page { display: grid; gap: 16px; min-width: 0; }
.dash-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 148px;
  padding: 22px 24px;
  border-radius: 20px;
  background:
    linear-gradient(100deg, rgba(248,250,252,.97) 38%, rgba(248,250,252,.55) 58%, rgba(15,23,42,.12) 100%),
    var(--hero-img, none) right center / 52% auto no-repeat,
    linear-gradient(120deg, #eef6f3, #dbeafe);
  border: 1px solid var(--line);
  overflow: hidden;
}
.dash-hero-copy { min-width: 0; flex: 1; }
.dash-hero h1 { margin: 6px 0 8px; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.03em; }
.dash-kicker { margin: 0; font: italic 600 13px/1.2 Georgia, serif; color: #0f9d76; }
.dash-hero-sub { margin: 0; color: var(--muted); font-size: 13.5px; }
.dash-hero-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.dash-user-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.86);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px 6px 6px;
  max-width: 220px;
}
.dash-user-pill span:last-child { min-width: 0; overflow: hidden; }
.dash-user-pill strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-pill small { display: block; color: var(--muted); font-size: 11px; }
.dash-hero-btn { border-radius: 12px; padding: 10px 16px; white-space: nowrap; }
.dash-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dash-kpi {
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 10px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.dash-kpi > div { min-width: 0; }
.dash-kpi strong { display: block; font-size: clamp(18px, 1.5vw, 26px); letter-spacing: -.03em; line-height: 1.1; }
.dash-kpi span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-delta { display: block; margin-top: 3px; font-size: 10.5px; color: #94a3b8; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-delta.is-up { color: #16a34a; }
.dash-delta.is-down, .dash-delta.is-bad { color: #e11d48; }
.dash-kpi.is-play { background: #f0fdf4; border-color: #dcfce7; }
.dash-kpi.is-ok { background: #ecfdf5; border-color: #d1fae5; }
.dash-kpi.is-late { background: #fff1f2; border-color: #fecdd3; }
.dash-kpi.is-wait { background: #f8fafc; }
.dash-ico { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; }
.dash-ico.clip { background: #e0f2fe; }
.dash-ico.play { background: #dcfce7; }
.dash-ico.check { background: #d1fae5; }
.dash-ico.clock { background: #ffe4e6; }
.dash-ico.people { background: #e0f2fe; }
.dash-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dash-card {
  min-width: 0;
  overflow: hidden;
}
.dash-card h2 { margin: 0 0 12px; font-size: 15px; }
.dash-card .row-between { gap: 8px; flex-wrap: wrap; }
.dash-mini-select, .dash-chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; color: var(--muted);
  max-width: 100%;
}
.dash-progress-row {
  display: flex; gap: 12px; align-items: center;
  min-width: 0; flex-wrap: wrap;
}
.dash-donut-wrap {
  position: relative;
  width: min(132px, 100%);
  aspect-ratio: 1;
  flex: 0 0 auto;
  max-width: 100%;
}
.dash-donut-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.dash-donut-label {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none;
  padding: 8px;
}
.dash-donut-label strong { font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -.03em; }
.dash-donut-label span { color: var(--muted); font-size: 10.5px; line-height: 1.25; }
.dash-legend {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 7px;
  font-size: 12.5px; color: var(--muted);
  flex: 1 1 110px; min-width: 0;
}
.dash-legend li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-legend b { color: var(--text); margin-left: 6px; }
.dash-legend .dot { width: 8px; height: 8px; }
.dash-legend .ok { background: #22c55e; }
.dash-legend .teal { background: #38bdf8; }
.dash-legend .mute { background: #94a3b8; }
.dash-legend .danger { background: #f43f5e; }
.dash-mid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 12px; }
.dash-block-table th { font-size: 11px; letter-spacing: .06em; color: #94a3b8; }
.dash-block-name { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.dash-block-mark { width: 10px; height: 28px; border-radius: 4px; display: inline-block; }
.dash-go { color: #94a3b8; font-size: 18px; }
.dash-more { font-size: 13px; color: var(--accent); font-weight: 600; }
.dash-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dash-feed li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.dash-feed strong { display: block; font-size: 13px; }
.dash-feed span, .dash-feed em { color: var(--muted); font-size: 12px; font-style: normal; }
.dash-feed-ico { width: 36px; height: 36px; border-radius: 10px; background: #ecfdf5; }
.dash-feed-ico.tamamlandi { background: #dcfce7; }
.dash-feed-ico.devam { background: #e0f2fe; }
.dash-feed-ico.photo { background: #dbeafe; }
.dash-feed-ico.baslamadi { background: #f1f5f9; }
.dash-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#trendChart {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 180px !important;
  margin-top: 4px;
}
.dash-mini-table { font-size: 13px; }
.dash-late-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dash-late-list li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; }
.dash-late-list b { color: #e11d48; }
.dash-late-dot { width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; }
.dash-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-quick a {
  display: flex; flex-direction: column; gap: 8px;
  border-radius: 14px; padding: 14px 12px;
  font-size: 13px; font-weight: 650; color: var(--text);
  background: #f8fafc; border: 1px solid var(--line);
}
.dash-quick i { width: 32px; height: 32px; border-radius: 10px; display: block; }
.q-green { background: #dcfce7; }
.q-blue { background: #dbeafe; }
.q-purple { background: #ede9fe; }
.q-orange { background: #ffedd5; }
[data-theme="dark"] .dash-hero {
  background:
    linear-gradient(100deg, rgba(16,25,24,.96) 40%, rgba(16,25,24,.5) 70%),
    var(--hero-img, none) right center / 50% auto no-repeat,
    #16332b;
}
[data-theme="dark"] .dash-user-pill,
[data-theme="dark"] .dash-mini-select,
[data-theme="dark"] .dash-chip,
[data-theme="dark"] .dash-quick a {
  background: #15231f; border-color: #2a3d37; color: #e8f3ee;
}

/* —— Koyu tema: başlıklar + tüm kartlar —— */
[data-theme="dark"] .st-head h1,
[data-theme="dark"] .ig-head h1,
[data-theme="dark"] .rp-head h1,
[data-theme="dark"] .yon-head h1,
[data-theme="dark"] .saha-head h1,
[data-theme="dark"] .topbar h1,
[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3 {
  color: #e8f3ee;
}
[data-theme="dark"] .st-head p,
[data-theme="dark"] .ig-head p,
[data-theme="dark"] .rp-head p,
[data-theme="dark"] .yon-head p,
[data-theme="dark"] .ig-crumb {
  color: var(--muted);
}
[data-theme="dark"] .saha-tabs a {
  background: #15231f;
  color: #cfe6dd;
  border-color: transparent;
}
[data-theme="dark"] .saha-tabs a.is-active {
  background: #1c332c;
  border-color: #2a3d37;
  color: #e8f3ee;
  box-shadow: none;
}
[data-theme="dark"] .dash-kpi {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}
[data-theme="dark"] .dash-kpi strong { color: #e8f3ee; }
[data-theme="dark"] .dash-kpi span { color: var(--muted); }
[data-theme="dark"] .dash-kpi.is-play {
  background: #143028;
  border-color: #1d4d3e;
}
[data-theme="dark"] .dash-kpi.is-ok {
  background: #132a24;
  border-color: #1a4538;
}
[data-theme="dark"] .dash-kpi.is-late {
  background: #2a181c;
  border-color: #5c2a35;
}
[data-theme="dark"] .dash-kpi.is-wait {
  background: #15231f;
  border-color: #2a3d37;
}
[data-theme="dark"] .dash-ico.clip { background: #1e3a4a; }
[data-theme="dark"] .dash-ico.play { background: #1a3d30; }
[data-theme="dark"] .dash-ico.check { background: #1a4538; }
[data-theme="dark"] .dash-ico.clock { background: #4a2030; }
[data-theme="dark"] .dash-ico.people { background: #1e3a4a; }
[data-theme="dark"] .dash-delta.is-up { color: #4ade80; }
[data-theme="dark"] .dash-delta.is-down,
[data-theme="dark"] .dash-delta.is-bad { color: #fb7185; }
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .dash-card {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}
[data-theme="dark"] .st-date-chip,
[data-theme="dark"] .saha-full-btn,
[data-theme="dark"] .saha-block-chip,
[data-theme="dark"] .jobs-search input,
[data-theme="dark"] .st-project li,
[data-theme="dark"] .ig-steps,
[data-theme="dark"] .ig-item,
[data-theme="dark"] .ig-chip,
[data-theme="dark"] .ig-preview,
[data-theme="dark"] .ig-search input,
[data-theme="dark"] .ig-sum li,
[data-theme="dark"] .ig-side-tabs,
[data-theme="dark"] .ig-cat,
[data-theme="dark"] .rp-filters,
[data-theme="dark"] .rp-filters select,
[data-theme="dark"] .rp-filters input[type="date"],
[data-theme="dark"] .rp-menu-list,
[data-theme="dark"] .rp-per select,
[data-theme="dark"] .rp-pager a,
[data-theme="dark"] .yon-ghost,
[data-theme="dark"] .yon-quick-btn,
[data-theme="dark"] .yon-search input,
[data-theme="dark"] .yon-stat,
[data-theme="dark"] .yon-shortcuts a,
[data-theme="dark"] .wipe-check,
[data-theme="dark"] .calib-ctl,
[data-theme="dark"] .calib-upload .calib-ctl,
[data-theme="dark"] .topbar-chip,
[data-theme="dark"] .entry-card,
[data-theme="dark"] .stepper {
  background: #15231f;
  border-color: #2a3d37;
  color: #e8f3ee;
}
[data-theme="dark"] .ig-section select,
[data-theme="dark"] .ig-section input[type="date"],
[data-theme="dark"] .ig-section input[type="text"],
[data-theme="dark"] .ig-section input[type="number"],
[data-theme="dark"] .ig-section input[type="search"],
[data-theme="dark"] .ig-section textarea,
[data-theme="dark"] .ig-search input,
[data-theme="dark"] .ig-hidden-filters select,
[data-theme="dark"] .is-ig select,
[data-theme="dark"] .is-ig input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
[data-theme="dark"] .is-ig textarea {
  background: #15231f !important;
  border-color: #2a3d37 !important;
  color: #e8f3ee !important;
  color-scheme: dark;
}
[data-theme="dark"] .ig-section select:disabled,
[data-theme="dark"] .is-ig select:disabled,
[data-theme="dark"] .is-ig input:disabled {
  background: #12201c !important;
  color: #7a9188 !important;
}
[data-theme="dark"] .ig-section select option,
[data-theme="dark"] .is-ig select option {
  background: #15231f;
  color: #e8f3ee;
}
[data-theme="dark"] .ig-section ::placeholder,
[data-theme="dark"] .is-ig ::placeholder {
  color: #9bb0a8 !important;
  opacity: 1;
}
[data-theme="dark"] .ig-section input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1); opacity: .75;
}
[data-theme="dark"] .stepper {
  background: #15231f;
  border-color: #2a3d37;
}
[data-theme="dark"] .stepper input {
  background: transparent !important;
  color: #e8f3ee !important;
}
[data-theme="dark"] .stepper button { color: #e8f3ee; }
[data-theme="dark"] .ig-chip.is-locked { background: #1c2c28; color: #7a9188; }
[data-theme="dark"] .entry-card {
  background: #15231f;
  border-color: #2a3d37;
  color: #e8f3ee;
}
[data-theme="dark"] .entry-bar { background: #1c2c28; }
[data-theme="dark"] .ig-cat {
  background: #1c2c28;
  color: #cfe6dd;
}
[data-theme="dark"] .ig-cat.is-on {
  background: #16332b;
  color: #6ee7b7;
}
[data-theme="dark"] .ig-item {
  background: #15231f;
  border-color: #2a3d37;
  color: #e8f3ee;
}
[data-theme="dark"] .ig-preview {
  background: #12201c;
  border-color: #2a3d37;
}
[data-theme="dark"] .ig-preview-empty {
  background: #1c2c28;
  color: #9bb0a8;
}
[data-theme="dark"] .is-ig .btn:not(.btn-primary):not(.btn-danger) {
  background: #15231f;
  border-color: #2a3d37;
  color: #e8f3ee;
}
[data-theme="dark"] .ig-side-tabs button.is-on,
[data-theme="dark"] .ig-item.is-on,
[data-theme="dark"] .ig-cat.is-on {
  background: #16332b;
  border-color: #1d4d3e;
  color: #e8f3ee;
  box-shadow: none;
}
[data-theme="dark"] .ig-chip.is-on {
  background: #16332b;
  border-color: var(--accent);
  color: #6ee7b7;
}
[data-theme="dark"] .saha-photo-wrap,
[data-theme="dark"] .check-grid label,
[data-theme="dark"] .jobs-panel.is-rich .jobs-list li,
[data-theme="dark"] .ig-preview-empty {
  background: #12201c;
  border-color: #2a3d37;
  color: var(--muted);
}
[data-theme="dark"] .jobs-panel.is-rich .jobs-list li.is-on {
  background: #16332b;
}
[data-theme="dark"] .yon-quick-btn.is-danger {
  background: #3a1b1b;
  border-color: #7f1d1d;
  color: #fda4af;
}
[data-theme="dark"] .yon-tabs a {
  background: #16332b;
  color: #cfe6dd;
}
[data-theme="dark"] .yon-tabs a.is-active {
  background: var(--accent);
  color: #fff;
}
[data-theme="dark"] .yon-table tr.is-selected,
[data-theme="dark"] tr.is-late,
[data-theme="dark"] .rp-table tr.is-late,
[data-theme="dark"] .saha-open-table tr.is-late {
  background: #3a1b1b;
}
[data-theme="dark"] .is-yon .danger-zone { background: #3a1b1b; }
[data-theme="dark"] .yon-wipe-copy { color: #e8f3ee; }
[data-theme="dark"] .badge.baslamadi,
[data-theme="dark"] .badge.gecikti,
[data-theme="dark"] .badge.is-late,
[data-theme="dark"] .delay-pill {
  background: #4a2030;
  color: #fda4af;
}
[data-theme="dark"] .badge.plan,
[data-theme="dark"] .badge.pasif {
  background: #1c2c28;
  color: #9bb0a8;
}
[data-theme="dark"] .badge.devam,
[data-theme="dark"] .badge.tamamlandi {
  background: #16332b;
  color: #6ee7b7;
}
[data-theme="dark"] .q-green { background: #1a3d30; }
[data-theme="dark"] .q-blue { background: #1e3a4a; }
[data-theme="dark"] .q-purple { background: #2a2540; }
[data-theme="dark"] .q-orange { background: #3a2a18; }
[data-theme="dark"] .dash-feed-ico { background: #16332b; }
[data-theme="dark"] .dash-feed-ico.tamamlandi { background: #1a3d30; }
[data-theme="dark"] .dash-feed-ico.devam { background: #1e3a4a; }
[data-theme="dark"] .dash-feed-ico.photo { background: #1e3a4a; }
[data-theme="dark"] .dash-feed-ico.baslamadi { background: #1c2c28; }
[data-theme="dark"] .help-box { background: #16332b; color: #d1fae5; }
[data-theme="dark"] table th { color: #9bb0a8; }
[data-theme="dark"] table td { border-color: #2a3d37; color: #e8f3ee; }
[data-theme="dark"] .muted { color: var(--muted); }
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .btn-secondary {
  background: #15231f;
  border-color: #2a3d37;
  color: #e8f3ee;
}
[data-theme="dark"] a:not(.btn):not(.nav a):not(.saha-tabs a):not(.yon-tabs a):not(.logout-link) {
  color: #6ee7b7;
}


@media (max-width: 1600px) {
  .dash-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .dash-kpi { padding: 10px 8px; gap: 6px; }
  .dash-kpi strong { font-size: clamp(16px, 1.35vw, 22px); }
  .dash-kpi span { font-size: 11px; }
  .dash-delta { font-size: 10px; }
  .dash-ico { width: 28px; height: 28px; border-radius: 8px; }
  .is-dash .content { padding-left: 16px; padding-right: 16px; }
  .dash-charts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .dash-charts > :last-child { grid-column: auto; }
  .dash-card { padding: 14px 12px; }
  .dash-card h2 { font-size: 13.5px; margin-bottom: 10px; }
  .dash-progress-row { gap: 8px; flex-wrap: nowrap; }
  .dash-donut-wrap { width: min(100px, 38%); }
  .dash-donut-label strong { font-size: clamp(14px, 1.2vw, 17px); }
  .dash-donut-label span { font-size: 9.5px; }
  .dash-legend { font-size: 11.5px; gap: 5px; flex: 1 1 90px; }
  .dash-mini-select, .dash-chip { padding: 4px 10px; font-size: 11px; }
  #trendChart { height: 150px !important; }
  .dash-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-bottom > :last-child { grid-column: 1 / -1; }
  .saha-layout, .ig-layout, .rp-mid, .yon-mid { grid-template-columns: minmax(0, 1fr) minmax(240px, 280px); }
  .st-bottom, .rp-bottom, .yon-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yon-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rp-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .stat-grid, .grid-2, .split, .saha-layout, .calib-grid, .ig-layout, .ig-grid3, .ig-row-note, .ig-loc, .ig-plan, .ig-steps, .yon-form-grid, .yon-stats, .yon-stats-wide, .dash-charts, .dash-mid, .dash-bottom, .st-bottom, .rp-mid, .rp-bottom, .rp-filters, .yon-mid, .yon-bottom, .yon-kpis, .yon-form-3 { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-charts > :last-child,
  .dash-bottom > :last-child { grid-column: auto; }
  .sidebar { gap: 8px; padding: 8px 12px; }
  .nav a { font-size: 12.5px; padding: 7px 8px; gap: 6px; }
  .brand span, .user-copy span { display: none; }
  .saha-head, .st-head, .rp-head, .yon-head, .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-hero-side { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .st-head-side { width: 100%; flex-wrap: wrap; }
  .dash-donut-wrap { width: min(140px, 48%); }
  .is-dash .content, .is-saha .content, .is-ig .content, .is-rapor .content, .is-yon-home .content { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 720px) {
  .dash-kpis { grid-template-columns: 1fr; }
  .app { flex-direction: column; }
  .sidebar { flex-wrap: wrap; }
  .nav { overflow: auto; flex: 1 1 100%; }
  .nav a span, .brand-copy, .user-copy { display: initial; }
  .nav a { font-size: 13px; padding: 8px 12px; }
  .brand { margin-bottom: 0; }
  .topbar { flex-direction: column; align-items: stretch; }
}

/* Dashboard — lacivert düzen */
.is-dash .content { background: #07111f; }
.dash-page.dx { color: #e8eef7; gap: 14px; }
.dash-page.dx .card,
.dx-card, .dx-progress, .dx-kpi {
  background: #101a2e;
  border: 1px solid #1c2b45;
  color: #e8eef7;
  box-shadow: none;
}
.dash-page.dx h2 { color: #f8fafc; font-size: 15px; margin: 0; }
.dx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr);
  gap: 16px;
  min-height: 220px;
  padding: 28px 28px 24px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(7,17,31,.92) 0%, rgba(7,17,31,.55) 48%, rgba(7,17,31,.25) 100%),
    var(--hero-img, none) right center / cover no-repeat,
    linear-gradient(120deg, #0b1b33, #12304f);
  border: 1px solid #1c2b45;
}
.dx-kicker { margin: 0 0 8px; letter-spacing: .14em; font-size: 11px; font-weight: 700; color: #7dd3fc; text-transform: uppercase; }
.dx-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; color: #fff; }
.dx-pills { display: flex; gap: 14px; margin: 0 0 12px; color: #93c5fd; font-size: 13px; }
.dx-pills span::before { content: "• "; }
.dx-date { margin: 0 0 6px; color: #e2e8f0; font-size: 14px; }
.dx-sub { margin: 0; max-width: 520px; color: #cbd5e1; font-size: 13.5px; line-height: 1.45; }
.dx-progress { align-self: end; padding: 14px 16px; border-radius: 18px; }
.dx-progress-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.dx-donut { width: 118px; }
.dx-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: #cbd5e1; }
.dx-legend b { color: #fff; margin-left: 6px; }
.dash-page.dx .dash-donut-label strong { color: #fff; font-size: 22px; }
.dash-page.dx .dash-mini-select, .dash-page.dx .dash-chip {
  background: #0c1526; color: #cbd5e1; border-color: #243656;
}
.dx-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dx-kpi {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center;
  border-radius: 16px; padding: 14px 12px;
}
.dx-kpi strong { display: block; font-size: 26px; line-height: 1; color: #fff; }
.dx-kpi span { color: #94a3b8; font-size: 12px; }
.dx-kpi em { font-style: normal; color: #93c5fd; font-size: 12px; font-weight: 700; }
.dx-ico { width: 36px; height: 36px; border-radius: 12px; display: block; }
.dx-ico.blue { background: #1d4ed8; }
.dx-ico.green { background: #15803d; }
.dx-ico.orange { background: #c2410c; }
.dx-ico.red { background: #be123c; }
.dx-ico.slate { background: #334155; }
.dx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(240px, .85fr);
  gap: 12px;
  align-items: start;
}
.dx-blocks { grid-column: 1; grid-row: 1; }
.dx-grid > .dx-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.dx-feed-card { grid-column: 3; grid-row: 1; }
.dx-grid > .dx-card:nth-child(4) { grid-column: 1; }
.dx-grid > .dx-card:nth-child(5) { grid-column: 2; }
.dx-stack { grid-column: 3; display: grid; gap: 12px; }
.dx-block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.dx-block { background: #0c1526; border: 1px solid #1c2b45; border-radius: 14px; overflow: hidden; }
.dx-block img, .dx-block-ph { width: 100%; height: 72px; object-fit: cover; display: block; background: #12304f; }
.dx-block-body { display: grid; grid-template-columns: 1fr 54px; gap: 6px 8px; padding: 10px; }
.dx-block-body strong { grid-column: 1 / -1; font-size: 13px; }
.dx-block-body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 11.5px; color: #cbd5e1; }
.dx-ring {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
}
.dx-ring span {
  width: 36px; height: 36px; border-radius: 50%;
  background: #101a2e; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.dx-feed { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.dx-feed li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.dx-feed img { width: 42px; height: 42px; object-fit: cover; border-radius: 10px; }
.dx-feed strong { display: block; font-size: 12.5px; }
.dx-feed em { color: #94a3b8; font-style: normal; font-size: 11px; }
.dash-page.dx .dash-mini-table, .dash-page.dx .dash-late-list { margin-top: 10px; }
.dash-page.dx th, .dash-page.dx td { color: #e2e8f0; border-color: #1c2b45; }
.dash-page.dx .muted, .dash-page.dx .dash-more { color: #93c5fd; }
.dx-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.dx-quick a {
  display: flex; align-items: center; gap: 8px;
  background: #0c1526; border: 1px solid #1c2b45; border-radius: 12px;
  padding: 12px 10px; color: #e8eef7; font-size: 13px; font-weight: 650;
}
.dx-project-row { display: flex; gap: 10px; align-items: center; margin: 12px 0; }
.dx-project-row img { width: 72px; height: 52px; object-fit: cover; border-radius: 10px; }
.dx-project-row strong { display: block; }
.dx-counts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.dx-counts b { display: block; font-size: 16px; color: #fff; }
.dx-counts span { color: #94a3b8; font-size: 11px; }
.dash-page.dx .badge.baslamadi, .dash-page.dx .badge.plan { background: #1e293b; color: #cbd5e1; }
.dash-page.dx .badge.tamamlandi { background: #14532d; color: #86efac; }
.dash-page.dx .badge.devam { background: #1e3a5f; color: #93c5fd; }
.dash-page.dx .badge.aktif { background: #14532d; color: #86efac; }
@media (max-width: 1200px) {
  .dx-hero, .dx-kpis, .dx-grid { grid-template-columns: 1fr; }
  .dx-blocks, .dx-feed-card, .dx-stack, .dx-grid > .dx-card { grid-column: auto; grid-row: auto; }
}

/* İş Girişi — lacivert düzen */
.is-ig .content { background: #07111f; color: #e8eef7; }
.is-ig .ig-page { color: #e8eef7; gap: 14px; }
.is-ig .ig-head {
  position: relative;
  padding: 8px 8px 4px;
  border-radius: 18px;
  background:
    linear-gradient(100deg, rgba(7,17,31,.94) 0%, rgba(7,17,31,.72) 55%, rgba(7,17,31,.35) 100%),
    var(--ig-hero, none) right center / cover no-repeat;
}
.is-ig .ig-head h1 { color: #fff; font-size: clamp(26px, 2.4vw, 34px); }
.is-ig .ig-head p, .is-ig .ig-crumb { color: #cbd5e1; }
.is-ig .ig-crumb span { color: #64748b; }
.is-ig .card,
.is-ig .ig-steps,
.is-ig .ig-preview,
.is-ig .entry-card,
.is-ig .ig-sum li,
.is-ig .ig-item,
.is-ig .ig-search input {
  background: #101a2e;
  border-color: #1c2b45;
  color: #e8eef7;
  box-shadow: none;
}
.is-ig .ig-section h2,
.is-ig .ig-list-card h2,
.is-ig .ig-sum h2,
.is-ig .ig-today h2 { color: #f8fafc; }
.is-ig .ig-sec-head { align-items: flex-start; margin-bottom: 14px; }
.is-ig .ig-sec-head p,
.is-ig .ig-flow-head p { margin: 4px 0 0; color: #94a3b8; font-size: 13px; }
.is-ig .ig-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 16px 8px;
}
.is-ig .ig-steps li { position: relative; padding: 0 16px; color: #94a3b8; }
.is-ig .ig-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 118px; right: 8px; top: 15px;
  border-top: 2px dashed #243656;
}
.is-ig .ig-steps li.is-on::after,
.is-ig .ig-steps li.is-done::after { border-top: 2px solid #3b82f6; }
.is-ig .ig-steps b {
  width: 32px; height: 32px; border-radius: 999px;
  background: #172033; color: #94a3b8; font-size: 12px;
}
.is-ig .ig-steps li.is-on,
.is-ig .ig-steps li.is-done { color: #fff; }
.is-ig .ig-steps li.is-on b { background: #2563eb; color: #fff; }
.is-ig .ig-steps li.is-done b { background: #1d4ed8; color: #fff; }
.is-ig .ig-steps small { color: #64748b; }
.is-ig .ig-steps li.is-on small { color: #93c5fd; }
.is-ig .ig-search input {
  min-width: 180px;
  background: #0c1526 !important;
  border: 1px solid #243656 !important;
  color: #e8eef7 !important;
  border-radius: 999px;
}
.is-ig .ig-cat {
  background: #0c1526;
  border: 1px solid #243656;
  color: #cbd5e1;
}
.is-ig .ig-cat.is-on {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.is-ig .ig-items { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.is-ig .ig-item {
  background: #0c1526;
  border: 1px solid #1c2b45;
  min-height: 118px;
}
.is-ig .ig-item em {
  font-style: normal;
  font-size: 11px;
  color: #64748b;
}
.is-ig .ig-item-ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: color-mix(in srgb, var(--c, #3b82f6) 28%, #0c1526);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #3b82f6) 55%, transparent);
}
.is-ig .ig-item.is-on {
  background: #13284a;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(37,99,235,.35);
}
.is-ig .ig-item.is-disabled { opacity: .35; }
.is-ig .ig-hint, .is-ig .ig-floor-hint, .is-ig .muted { color: #94a3b8; }
.is-ig .ig-section select,
.is-ig .ig-section input[type="date"],
.is-ig .ig-section input[type="text"],
.is-ig .ig-section input[type="number"],
.is-ig .ig-section input[type="search"],
.is-ig .ig-section textarea,
.is-ig .ig-search input {
  background: #0c1526 !important;
  border-color: #243656 !important;
  color: #e8eef7 !important;
}
.is-ig .ig-section select:disabled,
.is-ig .ig-section input:disabled {
  background: #0a1220 !important;
  color: #64748b !important;
}
.is-ig .ig-section select option { background: #0c1526; color: #e8eef7; }
.is-ig .ig-section label { color: #94a3b8; }
.is-ig .ig-loc { grid-template-columns: minmax(0, 1fr) 220px; }
.is-ig .ig-preview { background: #0c1526; border-radius: 16px; padding: 12px; }
.is-ig .ig-preview img, .is-ig .ig-preview-empty {
  height: 120px; border-radius: 12px; object-fit: cover; width: 100%;
}
.is-ig .ig-preview-meta strong { color: #fff; }
.is-ig .ig-preview-link {
  display: inline-block; margin-top: 8px;
  color: #93c5fd; font-size: 12.5px; font-weight: 650;
}
.is-ig .ig-floor-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.is-ig .ig-floor-card {
  width: auto; min-width: 72px; min-height: 0;
  background: #0c1526; border: 1px solid #243656; color: #e8eef7;
  border-radius: 12px; padding: 8px 12px;
}
.is-ig .ig-floor-card.is-on {
  background: #2563eb; border-color: #2563eb; color: #fff; box-shadow: none;
}
.is-ig .ig-floor-card.is-on .ig-floor-empty { color: #dbeafe; }
.is-ig .ig-floor-card.is-locked {
  background: #2a2018; border: 1px dashed #c2410c; color: #fdba74;
}
.is-ig .ig-floor-empty { color: #94a3b8; }
.is-ig .ig-floor-work { color: #fdba74; }
.is-ig .ig-floors-link { color: #93c5fd; }
.is-ig .stepper { background: #0c1526; border-color: #243656; }
.is-ig .stepper button { color: #e8eef7; }
.is-ig .btn-primary, .is-ig .ig-save, .is-ig .ig-mini-cta {
  background: #2563eb; border-color: #2563eb; color: #fff;
}
.is-ig .btn:not(.btn-primary):not(.btn-danger) {
  background: #0c1526; border-color: #243656; color: #e8eef7;
}
.is-ig .ig-side-tabs { background: #0c1526; border: 1px solid #1c2b45; }
.is-ig .ig-side-tabs button { color: #94a3b8; }
.is-ig .ig-side-tabs button.is-on {
  background: #172033; color: #fff; box-shadow: none;
}
.is-ig .ig-side-tabs em { color: #64748b; }
.is-ig .ig-side-tabs button.is-on em { color: #93c5fd; }
.is-ig .entry-card { background: #0c1526; }
.is-ig .entry-card.is-late { border-color: #7f1d1d; }
.is-ig .entry-where, .is-ig .entry-meta, .is-ig .entry-foot { color: #94a3b8; }
.is-ig .entry-bar { background: #172033; }
.is-ig .entry-done { color: #93c5fd; }
.is-ig .badge.plan { background: #1e293b; color: #cbd5e1; }
.is-ig .badge.is-run { background: #1e3a5f; color: #93c5fd; }
.is-ig .badge.is-late { background: #3f1d2a; color: #fda4af; }
.is-ig .ig-sum li { background: #0c1526; }
.is-ig .ig-sum-ico.tot { background: #1e3a5f; }
.is-ig .ig-sum-ico.run { background: #14532d; }
.is-ig .ig-sum-ico.ok { background: #14532d; }
.is-ig .ig-sum-ico.late { background: #3f1d2a; }
.is-ig .ig-all-link { color: #93c5fd; }
@media (min-width: 1101px) {
  .is-ig .ig-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
}
.is-ig .ig-today li strong { color: #fff; }
.is-ig .alert-err { background: #3f1d2a; color: #fecdd3; border-color: #7f1d1d; }
.is-ig .alert-ok { background: #14532d; color: #bbf7d0; border-color: #166534; }
@media (max-width: 1100px) {
  .is-ig .ig-steps li:not(:last-child)::after { display: none; }
  .is-ig .ig-plan, .is-ig .ig-loc { grid-template-columns: 1fr; }
}
