/* ============================================================================
   MERKEZ PREMIUM — tasarım katmanı (v0.46.0)
   styles.css üzerine yüklenir; temanın DNA'sını (kırmızı/krem/siyah editorial)
   koruyup daha rafine, daha derin, daha premium bir yüzey sistemine taşır.
   Ek: tam "Gece" teması (html[data-theme="gece"]).
   ========================================================================== */

:root {
  /* ——— rafine ışık teması token'ları ——— */
  --ink: #16130f;
  --muted: #6b655b;
  --line: #dcd5c7;
  --line-soft: #eae4d7;
  --control-line: #9a9184;
  --paper: #f4f0e7;
  --paper-deep: #e8e1d3;
  --white: #fffef9;
  --surface: #fffef9;
  --surface-soft: #f6f1e7;
  --surface-muted: #efe9dd;
  --night: #16130f;
  --night-soft: #26211b;
  --red: #a8231d;
  --red-dark: #7d1a15;
  --green: #3b6156;
  --gold: #a5712a;
  --violet: #5f5a80;

  /* premium genişletmeler */
  --red-bright: #c03428;
  --gold-soft: #c59a5b;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-xl: 26px;
  --shadow-1: 0 1px 2px rgb(28 20 12 / 5%), 0 6px 18px rgb(28 20 12 / 6%);
  --shadow-2: 0 2px 4px rgb(28 20 12 / 6%), 0 18px 44px rgb(28 20 12 / 11%);
  --shadow-3: 0 30px 70px rgb(28 20 12 / 18%);
  --shadow: var(--shadow-2);
  --hairline: 1px solid var(--line-soft);
  --ease: cubic-bezier(.22, .8, .28, 1);
  --dur: .18s;

  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, "Times New Roman", serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}

/* ———————————————————————————————— GECE TEMASI ———————————————————————————————— */
html[data-theme="gece"] {
  color-scheme: dark;
  --ink: #ece7dc;
  --muted: #a79d8e;
  --line: #373128;
  --line-soft: #2b2620;
  --control-line: #59524a;
  --paper: #131009;
  --paper-deep: #0d0b08;
  --white: #1e1a14;
  --surface: #1e1a14;
  --surface-soft: #241f18;
  --surface-muted: #29231b;
  --night: #0c0a07;
  --night-soft: #1b1712;
  --red: #d05045;
  --red-dark: #b03a30;
  --red-bright: #e06559;
  --green: #639083;
  --gold: #d2a05c;
  --gold-soft: #8a6f45;
  --violet: #8f8ab0;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 22px rgb(0 0 0 / 35%);
  --shadow-2: 0 2px 6px rgb(0 0 0 / 45%), 0 20px 50px rgb(0 0 0 / 45%);
  --shadow-3: 0 34px 80px rgb(0 0 0 / 60%);
}

/* ———————————————————————————————— TABAN ———————————————————————————————— */
html { background: var(--paper); }

body {
  background:
    radial-gradient(1100px 500px at 85% -8%, color-mix(in srgb, var(--red) 7%, transparent), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, color-mix(in srgb, var(--gold) 5%, transparent), transparent 55%),
    var(--paper);
  background-attachment: fixed;
}

::selection { background: color-mix(in srgb, var(--red) 22%, transparent); }

* { scrollbar-width: thin; scrollbar-color: var(--control-line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--control-line) 55%, transparent);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--control-line); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

button, a, input, textarea, select, [role="button"] {
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

/* ———————————————————————————————— TİPOGRAFİ ———————————————————————————————— */
.eyebrow {
  letter-spacing: .17em;
  font-weight: 600;
  color: var(--red);
}
html[data-theme="gece"] .eyebrow { color: var(--red-bright); }

.main-content h1, .main-content h2, .main-content h3,
.modal-content h1, .modal-content h2, .modal-content h3 {
  letter-spacing: -.015em;
  text-wrap: balance;
}

kbd, .kbd {
  font-family: var(--mono);
  font-size: .72em;
  padding: .18em .5em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--muted);
}

/* ———————————————————————————————— YÜKLEME EKRANI ———————————————————————————————— */
.loading-screen .brand-mark {
  box-shadow: var(--shadow-2);
  animation: pz-pulse 1.6s var(--ease) infinite;
}
@keyframes pz-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.94); opacity: .82; }
}

/* ———————————————————————————————— ÜST BAR ———————————————————————————————— */
.topbar {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--night) 96%, #fff 4%), var(--night));
  border-bottom: 1px solid rgb(255 255 255 / 6%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 3%), 0 12px 32px rgb(20 14 8 / 22%);
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--red) 55%, transparent), transparent);
  opacity: .8;
  pointer-events: none;
}

.wordmark-sign {
  border-radius: 12px;
  background: linear-gradient(145deg, var(--red-bright), var(--red-dark));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--red) 38%, transparent), inset 0 1px 0 rgb(255 255 255 / 22%);
  letter-spacing: .02em;
}
.wordmark { letter-spacing: .14em; }
.wordmark:hover .wordmark-sign { transform: translateY(-1px); box-shadow: 0 9px 20px color-mix(in srgb, var(--red) 45%, transparent), inset 0 1px 0 rgb(255 255 255 / 25%); }

/* masaüstü ana menü — pill aktif durumu */
.main-nav button {
  border-radius: 999px;
  letter-spacing: .01em;
}
.main-nav button:hover { background: rgb(255 255 255 / 8%); }
.main-nav button[aria-current="page"],
.main-nav button.is-active,
.main-nav button.active {
  background: rgb(255 255 255 / 12%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%);
}

/* üst aksiyon düğmeleri */
.top-action {
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 4%);
  backdrop-filter: blur(6px);
}
.top-action:hover {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 20%);
  transform: translateY(-1px);
}
.top-action:active { transform: translateY(0); }
.top-action.primary {
  background: linear-gradient(145deg, var(--red-bright), var(--red-dark));
  border-color: color-mix(in srgb, var(--red) 60%, #fff 10%);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--red) 40%, transparent), inset 0 1px 0 rgb(255 255 255 / 24%);
}
.top-action.primary:hover {
  background: linear-gradient(145deg, var(--red-bright), var(--red));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--red) 48%, transparent), inset 0 1px 0 rgb(255 255 255 / 26%);
}
.notification-badge {
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--night);
}
.user-chip { border-radius: 999px; }
.user-chip:hover { box-shadow: 0 0 0 3px rgb(255 255 255 / 10%); }

/* ———————————————————————————————— ALAN KENAR ÇUBUĞU ———————————————————————————————— */
.area-sidebar {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 88%, var(--surface) 12%), var(--paper));
  border-right: 1px solid var(--line-soft);
}
.sidebar-heading span {
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--muted);
}
.add-area-button {
  border-radius: 999px;
  border: 1px solid var(--line);
}
.add-area-button:hover { border-color: var(--red); color: var(--red); background: color-mix(in srgb, var(--red) 6%, transparent); }
html[data-theme="gece"] .add-area-button:hover { color: var(--red-bright); }

#area-list button {
  border-radius: var(--radius-s);
  border: 1px solid transparent;
}
#area-list button:hover {
  background: var(--surface);
  border-color: var(--line-soft);
  box-shadow: var(--shadow-1);
  transform: translateX(2px);
}
#area-list button[aria-current],
#area-list button.is-active,
#area-list button.active {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-1);
}
.area-dot { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }

.sidebar-bottom {
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}
#release-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  padding: .3em .7em;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-soft);
}

/* ———————————————————————————————— PANEL & KARTLAR ———————————————————————————————— */
.panel,
.notification-preference-card,
.guide-section,
.workspace-switcher,
.starter-kit-grid > *,
.quick-add-group {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
}
.panel:hover { border-color: var(--line); }

.panel-header {
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: .01em;
}

.card-kicker {
  letter-spacing: .15em;
  font-weight: 700;
  color: var(--red);
}
html[data-theme="gece"] .card-kicker { color: var(--red-bright); }

.workspace-section > .panel + .panel { margin-top: 14px; }

/* metrikler — serif rakamlar, zarif ayraçlar */
.metric {
  font-variant-numeric: tabular-nums lining-nums;
}
.metric strong, .metric b, .metric .metric-value {
  font-family: var(--serif);
  letter-spacing: -.02em;
}
.metric-grid { gap: 10px; }

/* ———————————————————————————————— LİSTELER & KAYITLAR ———————————————————————————————— */
.list-row,
.record-line,
.record-button {
  border-radius: var(--radius-m);
}
.list-row:hover,
.list-row-button:hover,
.record-button:hover {
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}
.list-row-title { letter-spacing: -.005em; }

.record-stack > * + * { border-top: 1px solid var(--line-soft); }

/* durum noktaları */
.status-dot { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 16%, transparent); }

/* ———————————————————————————————— DÜĞMELER ———————————————————————————————— */
.button, .button-secondary, .button-ghost, .button-danger {
  border-radius: var(--radius-s);
  letter-spacing: .01em;
  font-weight: 600;
}
.button {
  background: linear-gradient(145deg, var(--red-bright), var(--red-dark));
  border: 1px solid color-mix(in srgb, var(--red-dark) 80%, #fff 8%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--red) 30%, transparent), inset 0 1px 0 rgb(255 255 255 / 20%);
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--red) 38%, transparent), inset 0 1px 0 rgb(255 255 255 / 22%);
}
.button:active { transform: translateY(0); }
.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
}
.button-secondary:hover {
  border-color: var(--control-line);
  box-shadow: var(--shadow-1);
  transform: translateY(-1px);
}
.button-ghost:hover { background: var(--surface-muted); }
.button-danger {
  border: 1px solid color-mix(in srgb, var(--red) 40%, transparent);
  color: var(--red);
}
html[data-theme="gece"] .button-danger { color: var(--red-bright); }
.button-danger:hover { background: color-mix(in srgb, var(--red) 8%, transparent); border-color: var(--red); }

/* ———————————————————————————————— ROZET & ETİKET ———————————————————————————————— */
.badge, .tag, .recurrence-chip {
  border-radius: 999px;
  letter-spacing: .06em;
  font-weight: 600;
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

/* ———————————————————————————————— SEKMELER ———————————————————————————————— */
.tabs { border-bottom: 1px solid var(--line-soft); }
.tabs button { border-radius: 8px 8px 0 0; letter-spacing: .02em; }
.tabs button:hover { color: var(--red); background: color-mix(in srgb, var(--red) 5%, transparent); }
html[data-theme="gece"] .tabs button:hover { color: var(--red-bright); }
.tabs button[aria-selected="true"], .tabs button.is-active, .tabs button.active {
  color: var(--red);
  box-shadow: inset 0 -2px 0 var(--red);
}
html[data-theme="gece"] .tabs button[aria-selected="true"],
html[data-theme="gece"] .tabs button.is-active,
html[data-theme="gece"] .tabs button.active { color: var(--red-bright); box-shadow: inset 0 -2px 0 var(--red-bright); }

/* segmentli kontrol */
.view-switcher, .segmented-actions {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 3px;
}
.view-switch, .segmented-actions button { border-radius: 999px; }
.view-switch[aria-pressed="true"], .view-switch.is-active,
.segmented-actions button[aria-pressed="true"], .segmented-actions button.is-active {
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

/* ———————————————————————————————— FORMLAR ———————————————————————————————— */
.field input, .field textarea, .field select,
.filter-field input, .filter-field select, .filter-search input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}
.field input:hover, .field textarea:hover, .field select:hover,
.filter-field input:hover, .filter-search input:hover { border-color: var(--control-line); }
.field input:focus, .field textarea:focus, .field select:focus,
.filter-field input:focus, .filter-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 12%, transparent);
  outline: none;
}
html[data-theme="gece"] .field input:focus, html[data-theme="gece"] .field textarea:focus,
html[data-theme="gece"] .field select:focus, html[data-theme="gece"] .filter-search input:focus {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--red-bright) 14%, transparent);
}
.field-help, .form-hint { color: var(--muted); }

/* ———————————————————————————————— MODAL ———————————————————————————————— */
.modal::backdrop {
  background: rgb(14 10 6 / 48%);
  backdrop-filter: blur(6px) saturate(.9);
}
.modal-frame {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  background: var(--paper);
  box-shadow: var(--shadow-3);
}
.modal-header { border-bottom: 1px solid var(--line-soft); }
.icon-button { border-radius: 999px; }
.icon-button:hover { background: var(--surface-muted); transform: rotate(90deg); }

/* ———————————————————————————————— TOAST ———————————————————————————————— */
.toast-region > * {
  border-radius: var(--radius-m);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(8px);
}

/* ———————————————————————————————— MOBİL NAV ———————————————————————————————— */
.mobile-nav {
  background: color-mix(in srgb, var(--night) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-top: 1px solid rgb(255 255 255 / 8%);
  box-shadow: 0 -12px 32px rgb(15 10 5 / 28%);
}
.mobile-nav button { border-radius: var(--radius-m); }
.mobile-nav button[aria-current="page"], .mobile-nav button.is-active, .mobile-nav button.active {
  background: rgb(255 255 255 / 12%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
}

/* ———————————————————————————————— GİRİŞ EKRANI ———————————————————————————————— */
.auth-shell {
  background:
    radial-gradient(900px 520px at 88% -10%, color-mix(in srgb, var(--red) 9%, transparent), transparent 60%),
    var(--paper);
}
.auth-editorial .wordmark-sign { width: 54px; height: 54px; }
.auth-copy h1 { letter-spacing: -.02em; }
.edition { font-family: var(--mono); letter-spacing: .14em; color: var(--muted); }
.auth-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-2);
  background: var(--surface);
}

/* ———————————————————————————————— PREMIUM EKLENTİ PARÇALARI (pz-*) ———————————————————————————————— */

/* canlı saat çipi */
.pz-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 10%);
  background: rgb(255 255 255 / 4%);
  color: rgb(255 255 255 / 82%);
  font-size: .78rem;
  letter-spacing: .04em;
  white-space: nowrap;
  user-select: none;
}
.pz-clock strong { font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; }
.pz-clock .pz-clock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 8px var(--red-bright); }

/* tema düğmesi */
.pz-theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 12%);
  background: rgb(255 255 255 / 4%);
  color: rgb(255 255 255 / 85%);
  cursor: pointer;
}
.pz-theme-toggle:hover { background: rgb(255 255 255 / 10%); transform: translateY(-1px); }
.pz-theme-toggle svg { width: 17px; height: 17px; }
.pz-theme-toggle .pz-sun { display: none; }
html[data-theme="gece"] .pz-theme-toggle .pz-sun { display: block; }
html[data-theme="gece"] .pz-theme-toggle .pz-moon { display: none; }

/* kısayol yardım katmanı */
.pz-overlay {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center;
  background: rgb(12 9 5 / 52%);
  backdrop-filter: blur(8px) saturate(.9);
  animation: pz-fade .16s var(--ease);
}
@keyframes pz-fade { from { opacity: 0; } }
.pz-sheet {
  width: min(560px, calc(100vw - 32px));
  max-height: min(74vh, 640px);
  overflow: auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  padding: 26px 28px;
  animation: pz-rise .2s var(--ease);
}
@keyframes pz-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.pz-sheet h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; }
.pz-sheet .pz-sheet-sub { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.pz-sheet dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px 20px;
  margin: 0;
}
.pz-sheet .pz-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; }
.pz-sheet .pz-row:hover { background: var(--surface-soft); }
.pz-sheet .pz-row dt { color: var(--ink); font-size: .9rem; }
.pz-sheet .pz-row dd { margin: 0; display: flex; gap: 4px; }
.pz-sheet .pz-close {
  position: sticky; top: 0; float: right;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: 1.1rem; cursor: pointer;
}
.pz-sheet .pz-close:hover { color: var(--red); border-color: var(--red); }

/* yukarı dön düğmesi */
.pz-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 120;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.pz-to-top.pz-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pz-to-top:hover { color: var(--red); border-color: var(--red); transform: translateY(-2px); }
html[data-theme="gece"] .pz-to-top:hover { color: var(--red-bright); border-color: var(--red-bright); }

/* tema geçişinde yumuşak renk değişimi */
html.pz-theme-anim, html.pz-theme-anim *, html.pz-theme-anim *::before, html.pz-theme-anim *::after {
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease) !important;
}

/* ———————————————————————————————— DUYARLI AYARLAR ———————————————————————————————— */
@media (max-width: 900px) {
  .pz-clock { display: none; }
}
@media (max-width: 640px) {
  .pz-theme-toggle { width: 34px; height: 34px; }
  .pz-to-top { bottom: 86px; right: 16px; }
  .panel, .notification-preference-card, .guide-section { border-radius: var(--radius-m); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ———————————————————————————————— GECE: SABİT RENK YAMALARI ————————————————————————————————
   styles.css içindeki literal (var() kullanmayan) açık zeminleri koyu karşılıklarına çevirir. */

html[data-theme="gece"] .panel-header { background: rgb(36 31 24 / 62%); }

/* dashboard kapsam düğmeleri (Benim işlerim / Ekip) */
html[data-theme="gece"] [data-dashboard-scope] {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
}
html[data-theme="gece"] [data-dashboard-scope]:hover { color: var(--ink); border-color: var(--control-line); }
html[data-theme="gece"] [data-dashboard-scope].active,
html[data-theme="gece"] [data-dashboard-scope][aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--control-line);
  box-shadow: var(--shadow-1);
}

html[data-theme="gece"] .button-secondary:hover { background: var(--surface-muted); }
html[data-theme="gece"] .list-row:hover { background: var(--surface-muted); }

/* günlük plan ailesi */
html[data-theme="gece"] .daily-plan { background: rgb(30 26 20 / 88%); }
html[data-theme="gece"] .daily-plan-pool { background: var(--surface-muted); }
html[data-theme="gece"] .daily-plan-item.focus { background: rgb(168 35 29 / 14%); }
html[data-theme="gece"] .daily-plan-item.done { background: var(--surface-soft); }
html[data-theme="gece"] .daily-plan-summary .warning { background: rgb(165 113 42 / 20%); }

/* proje & görev panelleri */
html[data-theme="gece"] .project-control-panel { background: rgb(30 26 20 / 75%); }
html[data-theme="gece"] .project-stage,
html[data-theme="gece"] .task-column { background: rgb(41 35 27 / 55%); }
html[data-theme="gece"] .meeting-minutes { background: var(--surface); }
html[data-theme="gece"] .file-control-panel,
html[data-theme="gece"] .note-control-panel { background: rgb(30 26 20 / 75%); }
html[data-theme="gece"] .operations-signal-list { background: rgb(30 26 20 / 60%); }

/* etiketler & rozetler */
html[data-theme="gece"] .tag.category { background: rgb(168 35 29 / 16%); color: #e5a49e; }
html[data-theme="gece"] .badge.red { color: #e5a49e; background: rgb(168 35 29 / 24%); }
html[data-theme="gece"] .badge.green { color: #93bdb0; background: rgb(59 97 86 / 32%); }
html[data-theme="gece"] .badge.gold { color: #dcbb84; background: rgb(165 113 42 / 30%); }
html[data-theme="gece"] .badge.violet { color: #b7b2dd; background: rgb(95 90 128 / 34%); }
html[data-theme="gece"] .invite-badge { background: rgb(59 97 86 / 30%); }

/* yüklemeler, araç çubukları, yardımcılar */
html[data-theme="gece"] .upload-progress { background: var(--surface); }
html[data-theme="gece"] .rich-toolbar { background: var(--surface-muted); }
html[data-theme="gece"] .command-action:hover { background: var(--surface-muted); }
html[data-theme="gece"] .area-button:hover { background: var(--surface); }
html[data-theme="gece"] .backup-health-card.is-alert { background: rgb(168 35 29 / 16%); border-color: rgb(208 80 69 / 40%); }
html[data-theme="gece"] .setup-step.done .setup-step-number { background: var(--green); color: #0d0b08; }

/* içerik bağlantıları gece modunda parlak kırmızı */
html[data-theme="gece"] .main-content a:not(.wordmark):not(.button):not(.button-secondary):not([class*="list-row"]) {
  color: var(--red-bright);
}
html[data-theme="gece"] .panel-header a,
html[data-theme="gece"] .panel-header .button-ghost { color: var(--muted); }
html[data-theme="gece"] .panel-header a:hover,
html[data-theme="gece"] .panel-header .button-ghost:hover { color: var(--ink); }


/* ———————————————————————————————— GECE YAMALARI — tur 2 (modül bazlı) ———————————————————————————————— */

/* Dosyalar / dosya gezgini */
html[data-theme="gece"] .file-explorer-strip { background: var(--surface); }
html[data-theme="gece"] .explorer-nav-icon { background: rgb(168 35 29 / 18%); }
html[data-theme="gece"] .file-recent-item { background: var(--surface-muted); }
html[data-theme="gece"] .folder-browser { background: var(--surface-soft); }
html[data-theme="gece"] .folder-card,
html[data-theme="gece"] .file-card { background: var(--surface); }
html[data-theme="gece"] .file-thumb { background: var(--surface-muted); }

/* Görevler */
html[data-theme="gece"] .task-focus-chip { background: rgb(30 26 20 / 75%); }
html[data-theme="gece"] .task-control-panel { background: rgb(30 26 20 / 78%); }

/* Takvim */
html[data-theme="gece"] .calendar-day.outside { background: var(--surface-soft); }
html[data-theme="gece"] .calendar-event.source-calendar.event,
html[data-theme="gece"] .calendar-event.source-calendar.meeting,
html[data-theme="gece"] .calendar-event.source-project.project {
  background: rgb(41 35 27 / 85%);
  color: var(--ink);
}
html[data-theme="gece"] .calendar-event-icon { background: rgb(30 26 20 / 70%); }

/* ana içerikteki genel .active yüzeyleri (üst bar hariç) */
html[data-theme="gece"] .main-content .active { background-color: var(--surface-muted); }
