/*
 * Horizon koyu tema — OTOMATİK ÜRETİLDİ (tools/horizon_dark_uret.py). Elle düzenlemeyin;
 * token'lar ve üçüncü taraf uyumları tools/horizon-dark.src.css içindedir, ardından betiği yeniden çalıştırın.
 */
/*
 * ── Palet: "Gece Mürekkebi" ──────────────────────────────────────────────────────────────────────────────
 * Saf siyah yok. Zemin lacivert-mürekkep (#0e1021), yüzeyler yükseldikçe hafifçe aydınlanır
 * (canvas → surface → raised). Lila marka rengi koyu zeminde parıltı gibi durur; metinde marka rengi
 * --lila-text ile açılır (kontrast ≥ 4.5:1), düğme/dolgu rengi olarak --lila-primary aynen kalır.
 * Kabartma (neumorfik) dil korunur: karanlıkta "yükselti" = üstte çok ince açık kenar + altta derin gölge.
 */
/* Açık tema: kaydırma çubuğu/form denetimleri işletim sistemi koyu olsa bile açık kalır */
html[data-theme="light"] { color-scheme: light; }

html[data-theme="dark"] {
  color-scheme: dark;

  --canvas: #0e1021;
  --surface: #171a2e;
  --inset: #0f1124;
  --border: #353a58;
  --line: #2a2e48;
  --text: #e7e8f4;
  --muted: #a3a8c1;

  --lila-control-border: #6b7194;
  --lila-text: color-mix(in srgb, var(--lila-primary) 52%, #ffffff);
  --lila-hover: color-mix(in srgb, var(--lila-primary) 86%, #000000);
  --lila-soft: color-mix(in srgb, var(--lila-primary) 20%, #12142a);
  --accent-lite: color-mix(in srgb, var(--lila-primary) 80%, #ffffff);

  --positive: #7be0b0;
  --positive-bg: #0f3327;
  --negative: #ff9aa9;
  --negative-bg: #3b1822;

  --success: #86e3b6;  --success-bg: #0f3327;  --success-border: #1f6a4c;  --success-accent: #34b27b;
  --danger: #ffa59b;   --danger-bg: #3b1714;   --danger-border: #7a2c26;   --danger-accent: #f0584a;
  --warning: #f7c978;  --warning-bg: #3a2810;  --warning-border: #7a5416;  --warning-accent: #e0902b;
  --info: #cbc4ff;     --info-bg: #25205a;     --info-border: #4b4296;     --info-accent: #8b85f0;

  --shadow: 4px 6px 20px #00000059, -2px -2px 10px #ffffff06;
  --lila-inset: inset 2px 2px 6px #00000080, inset -2px -2px 6px #ffffff08;
  --lila-raised: 4px 5px 12px #00000066, -3px -3px 9px #ffffff0a;
  --lila-action: 0 5px 16px color-mix(in srgb, var(--lila-primary) 45%, transparent), inset 0 1px 1px #ffffff40;
}

html[data-theme="dark"] body { background: var(--canvas); color: var(--text); }
html[data-theme="dark"] ::selection { background: color-mix(in srgb, var(--lila-primary) 55%, transparent); color: #fff; }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #7d82a0; opacity: 1; }
html[data-theme="dark"] hr { border-color: var(--line); }
html[data-theme="dark"] img.js-koyu-ters { filter: invert(1) hue-rotate(180deg); }

/* Kaydırma çubukları */
html[data-theme="dark"] * { scrollbar-color: #3a3f60 transparent; }

/* Marka logosu: koyu temada yazısı açık renkli sürüm kullanılır */
.brand-logo-koyu { display: none; }
html[data-theme="dark"] .brand-logo-acik { display: none; }
html[data-theme="dark"] .brand-logo-koyu { display: block; }

.logo-koyu { display: none; }
html[data-theme="dark"] .logo-acik { display: none; }
html[data-theme="dark"] .logo-koyu { display: inline-block; }

/* Görsel/logolar koyu zeminde hafif kısılır (parlama yapmasın) */
html[data-theme="dark"] .avatar img,
html[data-theme="dark"] .brand img { filter: none; }

/* Birincil düğme ve etkin menü: açık temadaki parlak degrade yerine koyuya uygun, beyaz metin 4.5:1 */
html[data-theme="dark"] .button.primary,
html[data-theme="dark"] .nav-item.active { color: #fff; }

/* ── Bootstrap 5.3 (data-bs-theme=dark ile aynı anda yönetilir; Horizon çakışmada üstün) ── */
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu { background: var(--surface); color: var(--text); border-color: var(--border); }
html[data-theme="dark"] .modal-backdrop { --bs-backdrop-bg: #05060f; --bs-backdrop-opacity: .72; }
html[data-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ── DataTables 3 ── */
html[data-theme="dark"] .dt-container { color: var(--text); }
html[data-theme="dark"] table.dataTable { --dt-row-stripe: 255, 255, 255; --dt-row-hover: 255, 255, 255; --dt-column-ordering: 255, 255, 255; }
html[data-theme="dark"] table.dataTable > thead > tr > th,
html[data-theme="dark"] table.dataTable > tfoot > tr > th { color: var(--text); }

html[data-theme="dark"] .dt-container .dt-paging .dt-paging-button.disabled,
html[data-theme="dark"] .dt-container .dt-paging .dt-paging-button.disabled:hover { color: #7a809f !important; opacity: 1; background: transparent !important; }

/* ── FullCalendar 7 ── */
html[data-theme="dark"] .fc { --fc-border-color: var(--line); --fc-page-bg-color: transparent; --fc-neutral-bg-color: var(--inset);
  --fc-today-bg-color: color-mix(in srgb, var(--lila-primary) 14%, transparent); --fc-list-event-hover-bg-color: var(--inset); }

/* ── Quill ── */
html[data-theme="dark"] .ql-toolbar.ql-snow,
html[data-theme="dark"] .ql-container.ql-snow { border-color: var(--border); }
html[data-theme="dark"] .ql-snow .ql-stroke { stroke: var(--text); }
html[data-theme="dark"] .ql-snow .ql-fill { fill: var(--text); }
html[data-theme="dark"] .ql-snow .ql-picker { color: var(--text); }
html[data-theme="dark"] .ql-snow .ql-picker-options { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .ql-editor.ql-blank::before { color: #7d82a0; }

/* ── SweetAlert2 ── */
html[data-theme="dark"] .swal2-popup { background: var(--surface); color: var(--text); }
html[data-theme="dark"] .swal2-title, html[data-theme="dark"] .swal2-html-container { color: var(--text); }
html[data-theme="dark"] .nt-swal-popup:has(.swal2-error) { background: linear-gradient(var(--danger-bg), var(--surface)) !important; }
html[data-theme="dark"] .nt-swal-popup:has(.swal2-warning) { background: linear-gradient(var(--warning-bg), var(--surface)) !important; }
html[data-theme="dark"] .nt-swal-popup:has(.swal2-success) { background: linear-gradient(var(--success-bg), var(--surface)) !important; }

/* ── Dropzone ── */
html[data-theme="dark"] .dropzone { background: var(--inset); border-color: var(--border); color: var(--muted); }

/* ── Tema düğmesi (üstte) ── */
.tema-sabit { position: fixed; top: 14px; right: 14px; z-index: 30; }
.tema-sabit .tema-dugme { background: var(--surface); box-shadow: var(--lila-raised); }
.tema-menu .tema-secenek { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; min-height: 44px; }
.tema-menu .tema-secenek:hover { background: var(--lila-soft); }
.tema-menu .tema-secenek[aria-pressed="true"] { background: var(--lila-soft); font-weight: 600; }
.tema-menu .tema-secenek .fa-check { margin-left: auto; opacity: 0; }
.tema-menu .tema-secenek[aria-pressed="true"] .fa-check { opacity: 1; }
.tema-dugme .tema-ikon-koyu { display: none; }
html[data-theme="dark"] .tema-dugme .tema-ikon-acik { display: none; }
html[data-theme="dark"] .tema-dugme .tema-ikon-koyu { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  body, .panel, .sidebar, .topbar, .button, .field, .data-table { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
}
/* E-posta önizleme kutusu: e-posta her zaman açık zeminde görünür; koyu temada da sabit kalır (üretilen kuraldan yüksek özgüllük için üst sınıfla). */
html[data-theme="dark"] .eposta-cerceve-formu .cerceve-onizleme-kutu, html[data-theme="dark"] .eposta-cerceve-formu .cerceve-onizleme-kutu iframe { background: #F6F7FB; }

/* ===== Üretilen kurallar ===== */
/* ── styles.css ── */
html[data-theme="dark"] body{background:var(--canvas);color:var(--text)}
html[data-theme="dark"] a{color:inherit}
html[data-theme="dark"] button{border:0;color:inherit;background:none}
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] select:focus-visible,
html[data-theme="dark"] textarea:focus-visible,
html[data-theme="dark"] summary:focus-visible{outline:3px solid #5c789a}
html[data-theme="dark"] small{color:var(--muted)}
html[data-theme="dark"] .muted{color:var(--muted)}
html[data-theme="dark"] .skip-link{background:var(--graphite);color:white}
html[data-theme="dark"] .sidebar{background:linear-gradient(160deg,#1d1f2f,#161824);border-right:1px solid #646a90}
html[data-theme="dark"] .brand-symbol{background:linear-gradient(140deg,#3f4462,#30334b);color:#f4f6f8;border:1px solid #141c25;box-shadow:inset 0 1px rgba(255,255,255,0.017),0 3px 5px rgba(0,0,0,0.268)}
html[data-theme="dark"] .brand-edition{color:#a5a9be}
html[data-theme="dark"] .workspace{border:1px solid #646a90;background:rgba(255,255,255,0.049);box-shadow:0 1px 2px rgba(0,0,0,0.035)}
html[data-theme="dark"] .workspace-icon{background:#141621;color:#c2c4d3;border:1px solid #646a90}
html[data-theme="dark"] .nav-label{color:#a5a8be}
html[data-theme="dark"] .nav-item{color:#babdcd;border:1px solid transparent}
html[data-theme="dark"] .nav-item:hover{background:rgba(255,255,255,0.06);color:var(--text)}
html[data-theme="dark"] .nav-item.active{color:#fff;background:linear-gradient(125deg,#3c415e,#30334b);border-color:#8186a7;box-shadow:inset 0 1px rgba(255,255,255,0.011),0 3px 6px rgba(0,0,0,0.162)}
html[data-theme="dark"] .nav-item.active:before{background:#44496a}
html[data-theme="dark"] .nav-count,
html[data-theme="dark"] .nav-tag{background:#13151f;color:#bdc0cf;border:1px solid #646a90}
html[data-theme="dark"] .nav-count.dark{background:#464b6a;color:#fff}
html[data-theme="dark"] .nav-tag{background:rgba(255,255,255,0.068)}
html[data-theme="dark"] .help-card{border:1px solid #646a90;background:linear-gradient(140deg,rgba(30,32,48,0.733),rgba(17,18,28,0.502));box-shadow:inset 0 1px rgba(255,255,255,0.06)}
html[data-theme="dark"] .help-card>span{color:#afb2c5}
html[data-theme="dark"] .help-card p{color:var(--muted)}
html[data-theme="dark"] .help-card button{border-top:1px solid #646a90}
html[data-theme="dark"] .avatar{border:1px solid #646a90;background:linear-gradient(140deg,#141621,#3e425d);color:#d5d7e1;box-shadow:inset 0 1px rgba(255,255,255,0.038)}
html[data-theme="dark"] .topbar{background:rgba(28,31,46,0.722);border-bottom:1px solid var(--border)}
html[data-theme="dark"] .breadcrumb .icon{color:#a5a9be}
html[data-theme="dark"] .breadcrumb-separator{color:#8f94ae}
html[data-theme="dark"] .global-search{color:#a5a9be}
html[data-theme="dark"] .global-search kbd{border:1px solid #3d4057;background:#1d2030}
html[data-theme="dark"] .notification-button i{background:#4d5378;border:1px solid rgba(255,255,255,0.08)}
html[data-theme="dark"] .top-divider{background:var(--border)}
html[data-theme="dark"] .page-head p{color:var(--muted)}
html[data-theme="dark"] .button{border:1px solid #646a90;background:linear-gradient(#1f2233,#1b1d2c);box-shadow:0 1px 2px rgba(0,0,0,0.064)}
html[data-theme="dark"] .button.primary{background:linear-gradient(135deg,#3f4463,#30334b);border-color:#8186a7;color:#fff;box-shadow:inset 0 1px rgba(255,255,255,0.008),0 2px 4px rgba(0,0,0,0.148)}
html[data-theme="dark"] .button.primary .icon{color:#e6ebef}
html[data-theme="dark"] .button.quiet{border-color:var(--line);background:var(--surface);box-shadow:none}
html[data-theme="dark"] .button.danger{color:var(--negative);background:var(--negative-bg);border-color:#ce9ea4}
html[data-theme="dark"] .badge{border:1px solid #646a90;background:#1a1c2b;color:#babdcd}
html[data-theme="dark"] .badge.positive{background:var(--positive-bg);color:var(--positive);border-color:#646a90}
html[data-theme="dark"] .badge.negative{background:var(--negative-bg);color:var(--negative);border-color:#51393d}
html[data-theme="dark"] .badge.warning{background:#27231a;color:#d9c4a3;border-color:#d9c99e}
html[data-theme="dark"] .badge.dark{background:#3e4362;color:white;border-color:#8186a7}
html[data-theme="dark"] .panel{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow)}
html[data-theme="dark"] .panel-header p{color:var(--muted)}
html[data-theme="dark"] .stat{background:linear-gradient(150deg,#1f2233,#1d1f2f)}
html[data-theme="dark"] .stat-top{color:var(--muted)}
html[data-theme="dark"] .stat-icon{background:#1a1c2a;border:1px solid #383c51;color:#a8abc0}
html[data-theme="dark"] .stat-bottom{color:var(--muted)}
html[data-theme="dark"] .stat.primary{background:linear-gradient(125deg,#464b6a 0%,#333751 46%,#30334b 100%);color:white;border-color:#8186a7;box-shadow:inset 0 1px rgba(255,255,255,0.019),0 4px 9px rgba(0,0,0,0.226)}
html[data-theme="dark"] .stat.primary .stat-top,
html[data-theme="dark"] .stat.primary .stat-bottom{color:#dce2e8}
html[data-theme="dark"] .stat.primary .stat-icon{background:rgba(255,255,255,0.008);color:#eef2f6;border-color:rgba(255,255,255,0.017)}
html[data-theme="dark"] .stat.primary .badge{background:rgba(16,17,26,0.071);border-color:rgba(100,106,144,0.251);color:#bcdbc9}
html[data-theme="dark"] .stat.primary:after{border:1px solid rgba(255,255,255,0.003)}
html[data-theme="dark"] .chart-legend{color:var(--muted)}
html[data-theme="dark"] .legend-mark{background:#464a68}
html[data-theme="dark"] .legend-mark.pale{background:#0e0f17}
html[data-theme="dark"] .y-axis{color:#9ea1b9}
html[data-theme="dark"] .chart-grid i{border-top:1px dashed #323548}
html[data-theme="dark"] .bar{background:linear-gradient(#3f435f,#0f1019)}
html[data-theme="dark"] .bar.current{background:linear-gradient(#464b6e,#444966)}
html[data-theme="dark"] .bar-group.featured .bar.current{background:linear-gradient(#1f2d3b,#454a6c)}
html[data-theme="dark"] .bar-group.featured:before{border:1px solid #3c4057;background:#1a1c2b}
html[data-theme="dark"] .bar-label{color:var(--muted)}
html[data-theme="dark"] .chart-bottom{border-top:1px solid var(--line);background:#1d1f2f;color:var(--muted)}
html[data-theme="dark"] .donut{background:conic-gradient(from -90deg,#3b405d 0% 48%,#424662 48% 73%,#0c0d14 73% 91%,#171925 91% 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,0.02)}
html[data-theme="dark"] .donut:before{background:var(--surface);box-shadow:0 0 0 5px var(--surface)}
html[data-theme="dark"] .donut-legend{color:var(--muted)}
html[data-theme="dark"] .donut-legend strong{color:var(--text)}
html[data-theme="dark"] .rail-profile{background:linear-gradient(120deg,#171926,#11131c);border-color:#646a90;box-shadow:inset 0 1px rgba(255,255,255,0.06)}
html[data-theme="dark"] .profile-top .profile-tag{border:1px solid #646a90;background:rgba(32,36,43,0.376)}
html[data-theme="dark"] .profile-meta span{color:#b0b3c6}
html[data-theme="dark"] .profile-bottom{border-top:1px solid #646a90;color:#b6b9ca}
html[data-theme="dark"] .property-row{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .property-row:last-child{border:0}
html[data-theme="dark"] .property-thumb{border:1px solid #646a90}
html[data-theme="dark"] .property-amount small{color:var(--positive)}
html[data-theme="dark"] .panel-link{border-top:1px solid var(--line);background:#1c1f2e}
html[data-theme="dark"] .panel-link:hover{background:#191b29}
html[data-theme="dark"] .activity-symbol{background:#191b29;border:1px solid #383c51;color:#afb2c5}
html[data-theme="dark"] .data-table th{background:#1b1d2b;color:#a5a8bd;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
html[data-theme="dark"] .data-table td{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .data-table tbody tr:hover{background:#1f2529}
html[data-theme="dark"] .data-table tbody tr:last-child td{border-bottom:0}
html[data-theme="dark"] .table-footer{border-top:1px solid var(--line);color:var(--muted)}
html[data-theme="dark"] .table-footer .icon-button{border:1px solid #3b3f55;background:#1f2233}
html[data-theme="dark"] .page-number{background:#191b29;border:1px solid #646a90;color:#ccceda}
html[data-theme="dark"] .app-footer{color:#a1a4bb}
html[data-theme="dark"] .footer-dot{color:#8a8eaa}
html[data-theme="dark"] .segmented{background:#151622;border:1px solid #646a90}
html[data-theme="dark"] .segmented button{color:#afb2c5}
html[data-theme="dark"] .segmented button.active{background:var(--surface);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,0.219);border:1px solid #646a90}
html[data-theme="dark"] .search-field .icon{color:#9fa2b9}
html[data-theme="dark"] .field{border:1px solid #646a90;background:#202a2f;color:var(--text)}
html[data-theme="dark"] .field::placeholder{color:#9fa3ba}
html[data-theme="dark"] .field-help{color:var(--muted)}
html[data-theme="dark"] .field-error{color:var(--negative)}
html[data-theme="dark"] .property-image-wrap{background:#11121b}
html[data-theme="dark"] .property-image-wrap>.badge{background:rgba(255,255,255,0.1);box-shadow:0 2px 5px rgba(0,0,0,0.169)}
html[data-theme="dark"] .property-image-wrap>.icon-button{background:rgba(255,255,255,0.1);border:1px solid #646a90}
html[data-theme="dark"] .property-card .location{color:var(--muted)}
html[data-theme="dark"] .property-features{color:#b2b5c7}
html[data-theme="dark"] .property-card-bottom{border-top:1px solid var(--line)}
html[data-theme="dark"] .empty-state{background:var(--surface);border:1px dashed #646a90}
html[data-theme="dark"] .empty-state .icon{color:#9ea2b9}
html[data-theme="dark"] .empty-state p{color:var(--muted)}
html[data-theme="dark"] .summary-banner{border:1px solid #646a90;background:linear-gradient(115deg,#464b69,#30344b);color:#fff;box-shadow:inset 0 1px rgba(255,255,255,0.016)}
html[data-theme="dark"] .summary-banner p{color:#6c7295}
html[data-theme="dark"] .summary-banner .badge{background:rgba(255,255,255,0.006);color:#d5ecdf;border-color:rgba(100,106,144,0.333)}
html[data-theme="dark"] .banner-detail{border-left:1px solid rgba(100,106,144,0.314)}
html[data-theme="dark"] .color-swatch i{border:1px solid var(--border)}
html[data-theme="dark"] .progress-track{border:1px solid #3a3d53;background:#181a27}
html[data-theme="dark"] .progress-fill{background:linear-gradient(90deg,#414662,#424768)}
html[data-theme="dark"] .alert{border:1px solid #adbfd0;background:#1c242a}
html[data-theme="dark"] .alert .icon{color:#b9bbcc}
html[data-theme="dark"] .alert p{color:#b5b8c9}
html[data-theme="dark"] .alert.success{background:#191b29;border-color:#646a90}
html[data-theme="dark"] .alert.success .icon{color:var(--positive)}
html[data-theme="dark"] .switch{border:1px solid #646a90;background:#13151f}
html[data-theme="dark"] .switch:before{background:#1f2233;box-shadow:0 1px 3px rgba(0,0,0,0.36)}
html[data-theme="dark"] .switch:checked{background:#4b5176;border-color:#8186a7}
html[data-theme="dark"] .switch-row{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .switch-row:last-child{border-bottom:0}
html[data-theme="dark"] .checkbox{accent-color:#bbbece}
html[data-theme="dark"] .accordion details{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .accordion details:last-child{border:0}
html[data-theme="dark"] .accordion p{color:var(--muted)}
html[data-theme="dark"] .tabs{border-bottom:1px solid var(--border)}
html[data-theme="dark"] .tab{color:var(--muted);border-bottom:2px solid transparent}
html[data-theme="dark"] .tab.active{border-color:#8186a7;color:#e2e3ea}
html[data-theme="dark"] .settings-footer{border-top:1px solid var(--line);background:#1c1f2e}
html[data-theme="dark"] .calendar-day-name{border:1px solid var(--line);border-bottom:0;color:var(--muted);background:#1a1d2b}
html[data-theme="dark"] .calendar-cell{border:1px solid var(--line)}
html[data-theme="dark"] .calendar-cell.outside{color:#8f93ae;background:#1c1e2e}
html[data-theme="dark"] .calendar-cell.today .day-number{background:#3d5268;color:white}
html[data-theme="dark"] .calendar-event{border:1px solid #3b3f55;border-left:3px solid #646a90;background:#1c2126}
html[data-theme="dark"] .calendar-event.alt{border-left-color:#646a90;background:#191b29}
html[data-theme="dark"] .conversation-list{border-right:1px solid var(--border);background:#1c1e2d}
html[data-theme="dark"] .conversation-item{border-top:1px solid var(--line)}
html[data-theme="dark"] .conversation-item.selected{background:#1a1f23;border-left:3px solid #646a90}
html[data-theme="dark"] .conversation-item .avatar{background:#141620}
html[data-theme="dark"] .chat-header{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .chat-date{color:var(--muted)}
html[data-theme="dark"] .bubble{border:1px solid #3b3e54;background:#1e2329}
html[data-theme="dark"] .bubble.sent{background:#484d70;color:white;border-color:#8186a7}
html[data-theme="dark"] .bubble small{color:#9fa2b9}
html[data-theme="dark"] .bubble.sent small{color:#c7d5e2}
html[data-theme="dark"] .chat-compose{border-top:1px solid var(--line)}
html[data-theme="dark"] .report-icon{background:#1c2126;border:1px solid #646a90;color:#a5a8bd}
html[data-theme="dark"] .report-card p{color:var(--muted)}
html[data-theme="dark"] .client-initial{background:linear-gradient(140deg,#161825,#3d415c);color:#c7c9d7}
html[data-theme="dark"] .chart-months{color:var(--muted)}
html[data-theme="dark"] .notification-item{border:1px solid var(--line);background:var(--inset)}
html[data-theme="dark"] dialog{border:1px solid #646a90;background:var(--surface);color:var(--text);box-shadow:0 25px 90px rgba(0,0,0,0.544)}
html[data-theme="dark"] dialog::backdrop{background:#1c293b66}
html[data-theme="dark"] .modal-header{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .modal-footer{border-top:1px solid var(--line);background:#1b1e2c}
html[data-theme="dark"] .detail-image{border:1px solid var(--border)}
html[data-theme="dark"] .search-result{background:#1e2328;border:1px solid #393c52}
html[data-theme="dark"] .modal-text{color:var(--muted)}
html[data-theme="dark"] #toast{background:#31354d;color:#fff;border:1px solid #646a90;box-shadow:0 6px 25px rgba(0,0,0,0.339)}
@media(max-width:800px){
html[data-theme="dark"] .menu-open .sidebar-scrim{background:#1c293b66}
}
@media(max-width:580px){
html[data-theme="dark"] .banner-detail{border-left:0;border-top:1px solid rgba(100,106,144,0.314)}
html[data-theme="dark"] .conversation-list{border-right:0;border-bottom:1px solid var(--border)}
html[data-theme="dark"] .conversation-item{border-top:0}
html[data-theme="dark"] .conversation-item.selected{border-left:0;border-bottom:3px solid #646a90}
}
html[data-theme="dark"] .property-image-wrap>.icon-button.is-favorite,
html[data-theme="dark"] .property-image-wrap>.icon-button[aria-pressed="true"]{color:#cda2a9;background:#261c1f;border-color:#bd9099}
html[data-theme="dark"] .property-image-wrap>.icon-button[aria-pressed="true"] .icon{fill:rgba(205,162,169,0.133)}
html[data-theme="dark"] .strong-borders{--border:#646a90;--line:#646a90}
html[data-theme="dark"] .calendar-cell:has(.calendar-event){background:#1c2733}
html[data-theme="dark"] .agenda-event{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .agenda-event:last-child{border:0}
html[data-theme="dark"] .agenda-event>span:first-child{color:var(--muted)}

/* ── pickers.css ── */
html[data-theme="dark"] .picker-source{border:0 !important}
html[data-theme="dark"] .picker-trigger{background:linear-gradient(160deg,#1f2233,#1a1d2b);box-shadow:inset 0 1px rgba(255,255,255,0.051),0 1px 2px rgba(0,0,0,0.056)}
html[data-theme="dark"] .picker-trigger>.icon{color:#a2a6bc}
html[data-theme="dark"] .picker-trigger>.icon:first-child:not(:last-child){color:#a3a6bc}
html[data-theme="dark"] .picker-trigger[aria-expanded="true"]{border-color:#646a90;background:#1f252b;box-shadow:0 0 0 3px rgba(0,0,0,0.198),inset 0 1px rgba(255,255,255,0.06)}
html[data-theme="dark"] .picker-trigger[aria-invalid="true"]{border-color:#a85a64}
html[data-theme="dark"] .picker-empty{color:var(--muted)}
html[data-theme="dark"] .silver-popup{border:1px solid #646a90;background:linear-gradient(135deg,#1d2432,#1e2329);color:var(--text);box-shadow:inset 0 1px 0 rgba(255,255,255,0.06),0 0 0 3px rgba(255,255,255,0.03),0 8px 16px rgba(0,0,0,0.148),0 22px 45px rgba(0,0,0,0.254)}
html[data-theme="dark"] .silver-popup::backdrop{background:transparent}
html[data-theme="dark"] .silver-option{border:1px solid transparent}
html[data-theme="dark"] .silver-option.selected{background:linear-gradient(135deg,#181a27,#171b1e);border-color:#3f425a;color:#b5c6d7;box-shadow:inset 0 1px rgba(255,255,255,0.038)}
html[data-theme="dark"] .silver-option.highlighted,
html[data-theme="dark"] .silver-option:not(.disabled):hover{border-color:#646a90;background:#1b2126}
html[data-theme="dark"] .silver-option.selected .icon{color:#c7c9d7}
html[data-theme="dark"] .picker-calendar-header{border-bottom:1px solid #34374b}
html[data-theme="dark"] .picker-calendar-symbol{background:linear-gradient(135deg,#444967,#424767);color:white;border:1px solid #8186a7;box-shadow:inset 0 1px rgba(255,255,255,0.016)}
html[data-theme="dark"] .picker-calendar-header .icon-button{border:1px solid #3d4057;background:rgba(255,255,255,0.068)}
html[data-theme="dark"] .picker-weekdays{color:#a6a9be}
html[data-theme="dark"] .picker-day{border:1px solid transparent}
html[data-theme="dark"] .picker-day:hover:not(:disabled){background:#1a1e23;border-color:#b1c2d1}
html[data-theme="dark"] .picker-day.outside{color:#9397b1}
html[data-theme="dark"] .picker-day.today{border-color:#b0c1d1;background:#1c2227}
html[data-theme="dark"] .picker-day.today:after{background:#454a68}
html[data-theme="dark"] .picker-day.selected{background:linear-gradient(135deg,#464b69,#30475c);color:white;border-color:#314a61;box-shadow:inset 0 1px rgba(255,255,255,0.012),0 2px 4px rgba(0,0,0,0.212)}
html[data-theme="dark"] .picker-day.selected.today:after{background:#1f2233}
html[data-theme="dark"] .picker-day:disabled{background:transparent;border-color:transparent}
html[data-theme="dark"] .picker-popup-footer{border-top:1px solid #393d53;background:linear-gradient(125deg,#1c2126,#191e22)}
html[data-theme="dark"] .picker-popup-footer>span{color:#a5a9be}
html[data-theme="dark"] .picker-link{border:1px solid #b0c1d1;background:#1e262f;color:#c5c8d5}
html[data-theme="dark"] .picker-time-title{border-bottom:1px solid #373a4f}
html[data-theme="dark"] .picker-time-title>.icon{color:#a9adc1}
html[data-theme="dark"] .picker-time-title>span{color:#a3a6bc;background:#1b2025;border:1px solid #3b3f56}
html[data-theme="dark"] .time-column-label{color:#a7aabf}
html[data-theme="dark"] .time-column{border:1px solid #646a90;background:#1c2126;box-shadow:inset 0 2px 5px rgba(0,0,0,0.078)}
html[data-theme="dark"] .time-choice{border:1px solid transparent;color:#afb2c5}
html[data-theme="dark"] .time-choice:hover{background:#1e262f;border-color:#3f4851}
html[data-theme="dark"] .time-choice.selected{border-color:#3d566d;color:#fff;background:linear-gradient(130deg,#454a67,#3a5269);box-shadow:inset 0 1px rgba(255,255,255,0.013),0 2px 3px rgba(0,0,0,0.148)}
html[data-theme="dark"] .picker-draft{color:#b2c4d5}
html[data-theme="dark"] .picker-time.combined{border-top:1px solid #36394e}
html[data-theme="dark"] .picker-calendar-header button:focus-visible,
html[data-theme="dark"] .picker-day:focus-visible,
html[data-theme="dark"] .time-choice:focus-visible,
html[data-theme="dark"] .picker-link:focus-visible{outline:2px solid #646a90}

/* ── lila.css ── */
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] input:focus-visible,
html[data-theme="dark"] select:focus-visible,
html[data-theme="dark"] textarea:focus-visible,
html[data-theme="dark"] summary:focus-visible{outline:3px solid var(--lila-hover)}
html[data-theme="dark"] .sidebar{background:linear-gradient(150deg,#1d1f2f,#1e2128);border-right-color:#323540}
html[data-theme="dark"] .brand-symbol{background:linear-gradient(145deg,#817ce5,var(--lila-primary));border-color:#a5a0ed;box-shadow:var(--lila-action);color:white}
html[data-theme="dark"] .brand-edition{color:var(--muted)}
html[data-theme="dark"] .workspace{border:1px solid rgba(255,255,255,0.08);background:linear-gradient(150deg,#1f2233,#1e202b);box-shadow:var(--lila-raised)}
html[data-theme="dark"] .workspace-icon{border:0;background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .nav-label{color:var(--muted)}
html[data-theme="dark"] .nav-item{color:var(--muted)}
html[data-theme="dark"] .nav-item:hover{background:rgba(255,255,255,0.084);color:var(--lila-text)}
html[data-theme="dark"] .nav-item.active{background:linear-gradient(145deg,#6a65d0,var(--lila-primary));border-color:transparent;color:white;box-shadow:var(--lila-action)}
html[data-theme="dark"] .nav-count,
html[data-theme="dark"] .nav-tag{border:0;background:#1b1927;color:var(--lila-text)}
html[data-theme="dark"] .nav-count.dark{background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .nav-item.active .nav-count,
html[data-theme="dark"] .nav-item.active .nav-tag{background:rgba(255,255,255,0.023);color:white}
html[data-theme="dark"] .help-card{border-color:rgba(255,255,255,0.08);background:linear-gradient(145deg,#181838,#1b1a29);box-shadow:var(--shadow)}
html[data-theme="dark"] .help-card>span{color:var(--lila-text)}
html[data-theme="dark"] .help-card button{border-color:#363345;color:var(--lila-text)}
html[data-theme="dark"] .avatar,
html[data-theme="dark"] .client-initial,
html[data-theme="dark"] .conversation-item .avatar{border:2px solid rgba(255,255,255,0.08);background:linear-gradient(145deg,#191728,#151320);color:#bfc1d1;box-shadow:0 0 0 1px rgba(0,0,0,0.7)}
html[data-theme="dark"] .client-initial{background:linear-gradient(145deg,#281823,#1b131a);color:#c1c3d2}
html[data-theme="dark"] .topbar{background:var(--canvas);border-bottom-color:#323540}
html[data-theme="dark"] .breadcrumb .icon{color:var(--muted)}
html[data-theme="dark"] .global-search{background:rgba(255,255,255,0.078);border:1px solid rgba(255,255,255,0.08);box-shadow:var(--lila-inset);color:var(--muted)}
html[data-theme="dark"] .global-search kbd{border:1px solid var(--border);background:var(--inset)}
html[data-theme="dark"] .icon-button{color:var(--muted)}
html[data-theme="dark"] .icon-button:hover{background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .notification-button{background:linear-gradient(145deg,#21252d,#1d2027);box-shadow:var(--lila-raised)}
html[data-theme="dark"] .notification-button i{background:var(--lila-primary)}
html[data-theme="dark"] .top-divider{background:var(--border)}
html[data-theme="dark"] .button{border:1px solid rgba(255,255,255,0.08);background:linear-gradient(160deg,#1f2233,#1e202b);box-shadow:var(--lila-raised)}
html[data-theme="dark"] .button:hover:not(:disabled){background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .button.primary{background:linear-gradient(165deg,#6a65d0,var(--lila-primary));border:1px solid transparent;color:white;box-shadow:var(--lila-action)}
html[data-theme="dark"] .button.primary .icon{color:white}
html[data-theme="dark"] .button.primary:hover:not(:disabled){background:var(--lila-hover);color:white;box-shadow:0 6px 18px rgba(0,0,0,0.6)}
html[data-theme="dark"] .button.quiet{border-color:transparent;background:transparent;color:var(--muted);box-shadow:none}
html[data-theme="dark"] .button.quiet:hover:not(:disabled){background:#1d1b27;color:var(--lila-text)}
html[data-theme="dark"] .button.danger{border-color:#503338;background:var(--negative-bg);color:var(--negative);box-shadow:none}
html[data-theme="dark"] .button:disabled{background:#161824;color:#a6a9be;box-shadow:none;border-color:transparent}
html[data-theme="dark"] .button:active:not(:disabled){box-shadow:var(--lila-inset)}
html[data-theme="dark"] .badge{border:0;color:var(--lila-text);background:var(--lila-soft)}
html[data-theme="dark"] .badge.positive{background:var(--positive-bg);color:var(--positive)}
html[data-theme="dark"] .badge.negative{background:var(--negative-bg);color:var(--negative)}
html[data-theme="dark"] .badge.warning{background:#302615;color:#f1cc98}
html[data-theme="dark"] .badge.dark{background:var(--lila-primary);color:white;border:0}
html[data-theme="dark"] .panel{border-color:rgba(255,255,255,0.08);box-shadow:var(--shadow)}
html[data-theme="dark"] .stat{background:#1f2233;border-color:rgba(255,255,255,0.08)}
html[data-theme="dark"] .stat-icon{border:1px solid rgba(255,255,255,0.08);background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .stat.primary{background:linear-gradient(140deg,#181530,#1a1736);color:var(--text);border-color:rgba(255,255,255,0.08);box-shadow:var(--shadow)}
html[data-theme="dark"] .stat.primary .stat-top,
html[data-theme="dark"] .stat.primary .stat-bottom{color:var(--muted)}
html[data-theme="dark"] .stat.primary .stat-icon{background:linear-gradient(145deg,#1f2233,#1c1830);border-color:rgba(255,255,255,0.08);color:var(--lila-text);box-shadow:var(--lila-raised)}
html[data-theme="dark"] .stat.primary .badge{background:var(--positive-bg);color:var(--positive);border:0}
html[data-theme="dark"] .stats-grid>.stat:nth-child(2) .stat-icon{background:#2f2314;color:#f1cc98}
html[data-theme="dark"] .stats-grid>.stat:nth-child(3) .stat-icon{background:#2a1927;color:#cba1c4}
html[data-theme="dark"] .stats-grid>.stat:nth-child(4) .stat-icon{background:var(--positive-bg);color:var(--positive)}
html[data-theme="dark"] .legend-mark{background:var(--lila-primary)}
html[data-theme="dark"] .legend-mark.pale{background:#141221}
html[data-theme="dark"] .y-axis,
html[data-theme="dark"] .bar-label{color:var(--muted)}
html[data-theme="dark"] .chart-grid i{border-color:#2b2d3e}
html[data-theme="dark"] .bar{background:linear-gradient(#191629,#1d1a2d)}
html[data-theme="dark"] .bar.current{background:linear-gradient(#0d0c19,#141223)}
html[data-theme="dark"] .bar-group.featured .bar.current{background:linear-gradient(#827bdc,#0f0e18);box-shadow:0 -3px 12px #a9a2ee36}
html[data-theme="dark"] .bar-group.featured:before{border:0;background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .chart-bottom{background:var(--inset)}
html[data-theme="dark"] .donut{background:conic-gradient(from -90deg,#8d85db 0% 48%,#ffc079 48% 73%,#dea4df 73% 91%,#1a1727 91% 100%);box-shadow:none}
html[data-theme="dark"] .donut:before{box-shadow:0 0 0 5px var(--surface)}
html[data-theme="dark"] .rail-profile{background:linear-gradient(145deg,#1b1737,#1c192e);border-color:rgba(255,255,255,0.08);box-shadow:var(--shadow)}
html[data-theme="dark"] .profile-top .profile-tag{background:#1f2233;border:0;color:var(--lila-text)}
html[data-theme="dark"] .profile-meta span{color:var(--muted)}
html[data-theme="dark"] .profile-bottom{border-color:#322f41;color:var(--positive)}
html[data-theme="dark"] .property-thumb{border-color:#2f2a37}
html[data-theme="dark"] .panel-link{background:var(--inset);color:var(--lila-text)}
html[data-theme="dark"] .panel-link:hover{background:var(--lila-soft)}
html[data-theme="dark"] .activity-symbol{border-color:rgba(255,255,255,0.08);background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .data-table th{background:var(--inset);color:var(--muted);border-color:var(--line)}
html[data-theme="dark"] .data-table tbody tr:hover{background:#1d1a32}
html[data-theme="dark"] .table-footer .icon-button{border-color:var(--border)}
html[data-theme="dark"] .page-number{border:0;color:var(--lila-text);background:var(--lila-soft)}
html[data-theme="dark"] .app-footer{color:var(--muted)}
html[data-theme="dark"] .field{border-color:var(--lila-control-border);background:var(--inset);box-shadow:var(--lila-inset)}
html[data-theme="dark"] .field::placeholder{color:var(--muted)}
html[data-theme="dark"] .field:disabled{background:#191b29;box-shadow:none;color:#a2a5bb}
html[data-theme="dark"] .search-field .icon{color:var(--muted)}
html[data-theme="dark"] .segmented{border:1px solid transparent;background:#1c1d26;box-shadow:var(--lila-inset)}
html[data-theme="dark"] .segmented button{color:var(--muted)}
html[data-theme="dark"] .segmented button.active{background:#1f2233;border-color:rgba(255,255,255,0.08);color:var(--lila-text);box-shadow:0 3px 6px rgba(0,0,0,0.268)}
html[data-theme="dark"] .property-image-wrap{background:#1b1a22}
html[data-theme="dark"] .property-image-wrap>.icon-button{border-color:rgba(255,255,255,0.08)}
html[data-theme="dark"] .property-image-wrap>.icon-button[aria-pressed=true]{color:var(--negative);background:var(--negative-bg);border-color:rgba(255,255,255,0.08)}
html[data-theme="dark"] .property-features{color:var(--muted)}
html[data-theme="dark"] .empty-state{border-color:#3b3e55}
html[data-theme="dark"] .empty-state .icon{color:var(--lila-text)}
html[data-theme="dark"] .summary-banner{border-color:rgba(255,255,255,0.08);background:linear-gradient(125deg,#181530,#1c1736);color:var(--text);box-shadow:var(--shadow)}
html[data-theme="dark"] .summary-banner p{color:var(--muted)}
html[data-theme="dark"] .summary-banner .badge{background:var(--positive-bg);color:var(--positive);border:0}
html[data-theme="dark"] .banner-detail{border-color:#373347}
html[data-theme="dark"] .banner-detail small{color:var(--muted)}
html[data-theme="dark"] .color-swatch i{border:1px solid rgba(129,134,167,0.051)}
html[data-theme="dark"] .progress-track{border:0;background:#191b28;box-shadow:var(--lila-inset)}
html[data-theme="dark"] .progress-fill{background:linear-gradient(90deg,#0d0c19,#7971ce)}
html[data-theme="dark"] .alert{border:1px solid #2e2c3f;background:#1e1a2e}
html[data-theme="dark"] .alert .icon{color:var(--lila-text)}
html[data-theme="dark"] .alert p{color:var(--muted)}
html[data-theme="dark"] .alert.success{background:var(--positive-bg);border-color:#3a4d41}
html[data-theme="dark"] .alert.success p{color:var(--positive)}
html[data-theme="dark"] .switch{border-color:var(--lila-control-border);background:#0f1018;box-shadow:var(--lila-inset)}
html[data-theme="dark"] .switch:checked{background:var(--lila-primary);border-color:var(--lila-primary)}
html[data-theme="dark"] .checkbox,
html[data-theme="dark"] input[type=radio],
html[data-theme="dark"] input[type=range]{accent-color:var(--lila-text)}
html[data-theme="dark"] .tab.active{border-color:var(--lila-primary);color:var(--lila-text)}
html[data-theme="dark"] .settings-footer{background:var(--inset)}
html[data-theme="dark"] .calendar-day-name{background:var(--inset)}
html[data-theme="dark"] .calendar-cell{border-color:var(--line)}
html[data-theme="dark"] .calendar-cell.outside{background:#20202c;color:var(--muted)}
html[data-theme="dark"] .calendar-cell:has(.calendar-event){background:#1e1838}
html[data-theme="dark"] .calendar-cell.today .day-number{background:var(--lila-primary);color:white;box-shadow:var(--lila-action)}
html[data-theme="dark"] .calendar-event{border:0;border-left:3px solid var(--lila-primary);background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .calendar-event.alt{background:var(--positive-bg);color:var(--positive);border-left-color:var(--positive)}
html[data-theme="dark"] .conversation-list{background:var(--inset);border-color:var(--line)}
html[data-theme="dark"] .conversation-item.selected{background:var(--lila-soft);border-left-color:var(--lila-primary)}
html[data-theme="dark"] .bubble{background:#1f1c2b;border:1px solid #302d3c}
html[data-theme="dark"] .bubble.sent{background:linear-gradient(135deg,#6a65d0,var(--lila-primary));color:white;border-color:transparent}
html[data-theme="dark"] .bubble small{color:var(--muted)}
html[data-theme="dark"] .bubble.sent small{color:#fff}
html[data-theme="dark"] .report-icon{background:var(--lila-soft);border:1px solid rgba(255,255,255,0.08);color:var(--lila-text)}
html[data-theme="dark"] .notification-item{border-color:var(--line);background:var(--inset)}
html[data-theme="dark"] dialog#modal{border-color:rgba(255,255,255,0.08);background:#1f2233;box-shadow:0 20px 80px rgba(0,0,0,0.339)}
html[data-theme="dark"] dialog#modal::backdrop{background:rgba(48,51,75,0.333)}
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer{border-color:var(--line)}
html[data-theme="dark"] .modal-footer{background:var(--inset)}
html[data-theme="dark"] .modal-text{color:var(--muted)}
html[data-theme="dark"] .detail-meta{background:var(--inset)}
html[data-theme="dark"] #toast{background:#1f2233;color:var(--text);border:1px solid var(--border);box-shadow:0 8px 35px rgba(0,0,0,0.268)}
html[data-theme="dark"] #toast .icon{color:var(--positive)}
html[data-theme="dark"] .strong-borders{--border:#646a90;--line:#36394e}
html[data-theme="dark"] .strong-borders .panel,
html[data-theme="dark"] .strong-borders .stat,
html[data-theme="dark"] .strong-borders .summary-banner{border-color:var(--border)}
html[data-theme="dark"] .picker-trigger{background:var(--inset);box-shadow:var(--lila-inset);border-color:var(--lila-control-border)}
html[data-theme="dark"] .picker-control.picker-compact .picker-trigger{border-color:rgba(255,255,255,0.08);box-shadow:var(--lila-raised)}
html[data-theme="dark"] .picker-trigger>.icon,
html[data-theme="dark"] .picker-trigger>.icon:first-child:not(:last-child){color:var(--muted)}
html[data-theme="dark"] .picker-trigger[aria-expanded=true]{border-color:var(--lila-primary);background:var(--lila-soft);box-shadow:var(--lila-inset)}
html[data-theme="dark"] .picker-trigger[aria-invalid=true]{border-color:var(--negative)}
html[data-theme="dark"] .silver-popup{border:1px solid rgba(255,255,255,0.08);background:linear-gradient(145deg,#1f2233,#1e202f);box-shadow:0 14px 38px rgba(0,0,0,0.304),0 3px 10px rgba(0,0,0,0.268),inset 0 1px rgba(255,255,255,0.06)}
html[data-theme="dark"] .silver-option{border:1px solid transparent}
html[data-theme="dark"] .silver-option.selected{background:var(--lila-soft);border-color:transparent;color:var(--lila-text);box-shadow:none}
html[data-theme="dark"] .silver-option.highlighted,
html[data-theme="dark"] .silver-option:not(.disabled):hover{background:#1b192b;border-color:transparent;color:var(--lila-text)}
html[data-theme="dark"] .silver-option.selected .icon{color:var(--lila-text)}
html[data-theme="dark"] .picker-calendar-header{border-color:var(--line)}
html[data-theme="dark"] .picker-calendar-symbol{border:1px solid rgba(255,255,255,0.08);background:var(--lila-soft);color:var(--lila-text);box-shadow:none}
html[data-theme="dark"] .picker-calendar-header .icon-button{background:linear-gradient(145deg,#21252d,#1d2027);border-color:rgba(255,255,255,0.08);box-shadow:var(--lila-raised)}
html[data-theme="dark"] .picker-weekdays{color:var(--muted)}
html[data-theme="dark"] .picker-day:hover:not(:disabled){background:var(--lila-soft);border-color:transparent;color:var(--lila-text)}
html[data-theme="dark"] .picker-day.outside{color:var(--muted)}
html[data-theme="dark"] .picker-day.today{background:transparent;border-color:var(--lila-primary)}
html[data-theme="dark"] .picker-day.selected{background:linear-gradient(165deg,#6a65d0,var(--lila-primary));border-color:transparent;color:white;box-shadow:var(--lila-action)}
html[data-theme="dark"] .picker-popup-footer{border-color:var(--line);background:var(--inset)}
html[data-theme="dark"] .picker-popup-footer>span{color:var(--muted)}
html[data-theme="dark"] .picker-link{border:0;background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .picker-time-title{border-color:var(--line)}
html[data-theme="dark"] .picker-time-title>.icon{color:var(--lila-text)}
html[data-theme="dark"] .picker-time-title>span{background:var(--lila-soft);border:0;color:var(--lila-text)}
html[data-theme="dark"] .time-column-label{color:var(--muted)}
html[data-theme="dark"] .time-column{border-color:var(--border);background:var(--canvas);box-shadow:var(--lila-inset)}
html[data-theme="dark"] .time-choice{color:var(--muted)}
html[data-theme="dark"] .time-choice:hover{background:var(--lila-soft);border-color:transparent;color:var(--lila-text)}
html[data-theme="dark"] .time-choice.selected{background:linear-gradient(165deg,#6a65d0,var(--lila-primary));color:white;border-color:transparent;box-shadow:var(--lila-action)}
html[data-theme="dark"] .picker-draft{color:var(--lila-text)}
html[data-theme="dark"] .picker-time.combined{border-color:var(--line)}
html[data-theme="dark"] .picker-calendar-header button:focus-visible,
html[data-theme="dark"] .picker-day:focus-visible,
html[data-theme="dark"] .time-choice:focus-visible,
html[data-theme="dark"] .picker-link:focus-visible{outline:3px solid var(--lila-hover)}
@media(max-width:580px){
html[data-theme="dark"] .banner-detail{border-top-color:#373347}
}
html[data-theme="dark"] .dashboard-stats>.stat{box-shadow:inset 0 1px 0 rgba(255,255,255,0.048),0 10px 25px rgba(0,0,0,0.071)}
html[data-theme="dark"] .dashboard-stats>.stat:nth-child(1){background:linear-gradient(140deg,#1a152d,#1e1634);border-color:#3d3454}
html[data-theme="dark"] .dashboard-stats>.stat:nth-child(2){background:linear-gradient(140deg,#2a1f12,#322615);border-color:#e6c399}
html[data-theme="dark"] .dashboard-stats>.stat:nth-child(3){background:linear-gradient(140deg,#261723,#301a2c);border-color:#564052}
html[data-theme="dark"] .dashboard-stats>.stat:nth-child(4){background:linear-gradient(140deg,#18221f,#1d2b24);border-color:#afcfc0}
html[data-theme="dark"] .dashboard-stats>.stat .stat-icon{background:rgba(255,255,255,0.084);border-color:rgba(255,255,255,0.08);box-shadow:0 3px 10px rgba(0,0,0,0.056)}
html[data-theme="dark"] .dashboard-stats>.stat:nth-child(2) .stat-icon{color:#f1cc98}
html[data-theme="dark"] .dashboard-stats>.stat:nth-child(3) .stat-icon{color:#cba1c4}
html[data-theme="dark"] .dashboard-stats>.stat:nth-child(4) .stat-icon{color:#a8e0ce}
html[data-theme="dark"] .dashboard-stats>.stat .stat-top,
html[data-theme="dark"] .dashboard-stats>.stat .stat-bottom{color:#b2b4c7}

/* ── status.css ── */
html[data-theme="dark"] #toast .nt-toast{background:var(--status-bg);border:1px solid var(--status-border);border-left:6px solid var(--status-accent);box-shadow:0 8px 26px rgba(0,0,0,0.268)}
html[data-theme="dark"] #toast .nt-toast-copy strong,
html[data-theme="dark"] #toast .nt-toast-copy p,
html[data-theme="dark"] #toast .nt-toast-close,
html[data-theme="dark"] #toast .nt-toast-persistent{color:var(--status-fg)}
html[data-theme="dark"] #toast .nt-toast-symbol{background:var(--status-accent);color:white;box-shadow:0 0 0 4px rgba(255,255,255,0.03)}
html[data-theme="dark"] #toast .nt-toast-progress{background:rgba(255,255,255,0.06)}
html[data-theme="dark"] #toast .nt-toast-progress i{background:var(--status-accent)}
html[data-theme="dark"] #toast .nt-toast-close:hover{background:rgba(255,255,255,0.072)}
html[data-theme="dark"] #toast .nt-toast-action{color:var(--status-fg);background:rgba(255,255,255,0.078);border-color:var(--status-border)}
html[data-theme="dark"] .nt-status-button:is(.nt-success,.nt-error,.nt-warning,.nt-info){background:var(--status-bg);color:var(--status-fg);border-color:var(--status-border)}
html[data-theme="dark"] .nt-status-button:is(.nt-success,.nt-error,.nt-warning,.nt-info) small{color:var(--status-fg)}
html[data-theme="dark"] .nt-status-button>span{color:var(--status-accent)}
html[data-theme="dark"] .nt-example[data-status]{background:var(--status-bg);color:var(--status-fg);border-color:var(--status-border)}
html[data-theme="dark"] .nt-example[data-status] small{color:var(--status-fg)}
html[data-theme="dark"] .nt-example[data-status] .sx-tile-icon{background:rgba(255,255,255,0.06);color:var(--status-accent)}
html[data-theme="dark"] .badge[data-status],
html[data-theme="dark"] .badge.positive,
html[data-theme="dark"] .badge.negative,
html[data-theme="dark"] .badge.warning,
html[data-theme="dark"] .badge.danger,
html[data-theme="dark"] .badge.success,
html[data-theme="dark"] .badge.info,
html[data-theme="dark"] .tl-status[data-status]:not([data-status=""]),
html[data-theme="dark"] .tl-status.status-maintenance{color:var(--status-fg);background:var(--status-bg);border:1px solid var(--status-border)}
html[data-theme="dark"] .stat.primary .badge.positive{color:var(--success);background:var(--success-bg);border:1px solid var(--success-border)}
html[data-theme="dark"] .sx-alert:is(.sx-success,.sx-warning,.sx-danger,.sx-info){color:var(--status-fg);background:var(--status-bg);border-color:var(--status-border);border-left:4px solid var(--status-accent)}
html[data-theme="dark"] .sx-alert strong,
html[data-theme="dark"] .sx-alert p{color:inherit}
html[data-theme="dark"] .sx-alert .icon-button{color:inherit}
html[data-theme="dark"] .sx-alert .icon-button:hover{color:inherit;background:rgba(255,255,255,0.06)}
html[data-theme="dark"] .alert{color:var(--status-fg);background:var(--status-bg);border:1px solid var(--status-border);border-left:4px solid var(--status-accent)}
html[data-theme="dark"] .alert .icon,
html[data-theme="dark"] .alert p,
html[data-theme="dark"] .alert strong{color:inherit}
html[data-theme="dark"] .sx-note{background:var(--status-bg,var(--info-bg));color:var(--status-fg,var(--info));border-color:var(--status-border,var(--info-border));border-left:4px solid var(--status-accent,var(--info-accent))}
html[data-theme="dark"] .sx-note>.icon{color:inherit}
html[data-theme="dark"] .button:is(.danger,.warning,.success,.info,.sx-btn-danger,.sx-btn-warning,.sx-btn-success,.sx-btn-info),
html[data-theme="dark"] .nt-deny{color:var(--status-fg,var(--danger)) !important;background:var(--status-bg,var(--danger-bg)) !important;border:1px solid var(--status-border,var(--danger-border)) !important;box-shadow:none}
html[data-theme="dark"] .button:is(.danger,.warning,.success,.info,.sx-btn-danger,.sx-btn-warning,.sx-btn-success,.sx-btn-info):hover:not(:disabled){color:white !important;background:var(--status-accent) !important;border-color:var(--status-accent) !important}
html[data-theme="dark"] .field-error,
html[data-theme="dark"] .sx-field-error,
html[data-theme="dark"] .sx-error,
html[data-theme="dark"] .sx-field>.sx-field-error,
html[data-theme="dark"] .sx-grid .sx-error{color:var(--danger)}
html[data-theme="dark"] .sx-error-summary{color:var(--danger);background:var(--danger-bg);border:1px solid var(--danger-border);border-left:4px solid var(--danger-accent)}
html[data-theme="dark"] :is(.field,.sx-input,.picker-trigger)[aria-invalid=true]{border-color:var(--danger-accent);background:#351d16;box-shadow:0 0 0 2px #d92d201a}
html[data-theme="dark"] .picker-control:has(.picker-source[aria-invalid=true]) .picker-trigger{border-color:var(--danger-accent);background:#351d16;box-shadow:0 0 0 2px #d92d201a}
html[data-theme="dark"] #sx-validation-success{color:var(--success);background:var(--success-bg);border:1px solid var(--success-border);border-left:4px solid var(--success-accent)}
html[data-theme="dark"] #sx-upload-status[data-status]{border:1px solid var(--status-border);background:var(--status-bg);color:var(--status-fg)}
html[data-theme="dark"] .nt-swal-popup:has(.swal2-error){border-color:var(--danger-border);border-top:5px solid var(--danger-accent);background:linear-gradient(#341b16,#1f2233) !important}
html[data-theme="dark"] .nt-swal-popup:has(.swal2-error) .swal2-title{color:var(--danger)}
html[data-theme="dark"] .nt-swal-popup:has(.swal2-warning){border-color:var(--warning-border);border-top:5px solid var(--warning-accent);background:linear-gradient(#302514,#1f2233) !important}
html[data-theme="dark"] .nt-swal-popup:has(.swal2-warning) .swal2-title{color:var(--warning)}
html[data-theme="dark"] .nt-swal-popup:has(.swal2-success){border-color:var(--success-border);border-top:5px solid var(--success-accent);background:linear-gradient(#1b2d22,#1f2233) !important}
html[data-theme="dark"] .nt-swal-popup:has(.swal2-success) .swal2-title{color:var(--success)}
html[data-theme="dark"] .nt-swal-popup .swal2-icon.swal2-error{border-color:var(--danger-accent);color:var(--danger-accent)}
html[data-theme="dark"] .nt-swal-popup .swal2-x-mark-line-left,
html[data-theme="dark"] .nt-swal-popup .swal2-x-mark-line-right{background:var(--danger-accent)}
html[data-theme="dark"] .nt-swal-popup .swal2-icon.swal2-warning{border-color:var(--warning-accent);color:var(--warning-accent)}
html[data-theme="dark"] .nt-swal-popup .swal2-icon.swal2-success{border-color:var(--success-accent);color:var(--success-accent)}
html[data-theme="dark"] .nt-swal-popup .swal2-success-line-tip,
html[data-theme="dark"] .nt-swal-popup .swal2-success-line-long{background:var(--success-accent)}
html[data-theme="dark"] .nt-swal-popup .swal2-success-ring{border-color:var(--success-border)}
html[data-theme="dark"] .nt-swal-popup .swal2-validation-message{color:var(--danger);background:var(--danger-bg)}
html[data-theme="dark"] .nt-swal-popup .swal2-icon.swal2-error [class^=swal2-x-mark-line]{background:var(--danger-accent)}
html[data-theme="dark"] .nt-swal-popup .swal2-icon.swal2-success [class^=swal2-success-line]{background:var(--success-accent)}

/* ── horizon-app.css ── */
html[data-theme="dark"] .nav-group.has-active > summary{color:var(--lila-text);background:var(--lila-soft)}
html[data-theme="dark"] .nav-sub{border-left:2px solid var(--line)}
html[data-theme="dark"] .nav-sub .nav-item.active{background:var(--lila-soft);color:var(--lila-text);box-shadow:none}
html[data-theme="dark"] .nav-item:focus-visible,
html[data-theme="dark"] summary.nav-item:focus-visible{outline:3px solid var(--lila-hover)}
html[data-theme="dark"] .meter{border:1px solid rgba(255,255,255,0.08);background:linear-gradient(145deg, #181838, var(--lila-soft));box-shadow:var(--shadow)}
html[data-theme="dark"] .meter-head{color:var(--muted)}
html[data-theme="dark"] .meter-head strong{color:var(--text)}
html[data-theme="dark"] .icon-button.has-count{background:linear-gradient(145deg, #21252d, #1d2027);box-shadow:var(--lila-raised)}
html[data-theme="dark"] .icon-count{border:2px solid var(--canvas);background:var(--lila-primary);color:#fff}
html[data-theme="dark"] .account-button{border:1px solid rgba(255,255,255,0.08);background:rgba(255,255,255,0.078);box-shadow:var(--lila-inset);color:var(--text)}
html[data-theme="dark"] .account-button:hover{background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .account-button .nav-chevron{color:var(--muted)}
html[data-theme="dark"] .modal-content{border:1px solid rgba(255,255,255,0.08);background:#1f2233;color:var(--text);box-shadow:0 20px 80px rgba(0,0,0,0.339)}
html[data-theme="dark"] .modal-backdrop{background:rgba(48,51,75,0.333)}
html[data-theme="dark"] .dropdown-menu .silver-option{background:transparent}
html[data-theme="dark"] .dropdown-menu .silver-option > i{color:var(--muted)}
html[data-theme="dark"] .dropdown-menu .silver-option.selected > i{color:var(--lila-text)}
html[data-theme="dark"] .dropdown-header-text{color:var(--muted)}
html[data-theme="dark"] .dropdown-rule{border:0;border-top:1px solid var(--line)}
html[data-theme="dark"] .tabs .tab{background:transparent;border:0;border-bottom:2px solid transparent;color:var(--muted)}
html[data-theme="dark"] .tabs .tab:hover{color:var(--lila-text)}
html[data-theme="dark"] .tabs .tab.active{border-bottom-color:var(--lila-primary);color:var(--lila-text)}
html[data-theme="dark"] .dt-container{color:var(--text)}
html[data-theme="dark"] .dt-container .dt-length,
html[data-theme="dark"] .dt-container .dt-search{color:var(--muted)}
html[data-theme="dark"] .dt-container .dt-length select,
html[data-theme="dark"] .dt-container .dt-search input{border:1px solid var(--lila-control-border);background:var(--inset);box-shadow:var(--lila-inset);color:var(--text)}
html[data-theme="dark"] .dt-container .dt-info{color:var(--muted)}
html[data-theme="dark"] .dt-container .dt-paging .dt-paging-button{border:0 !important;background:transparent !important;color:var(--muted) !important;box-shadow:none !important}
html[data-theme="dark"] .dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current){background:var(--lila-soft) !important;color:var(--lila-text) !important}
html[data-theme="dark"] .dt-container .dt-paging .dt-paging-button.current{background:var(--lila-primary) !important;color:#fff !important;box-shadow:var(--lila-action) !important}
html[data-theme="dark"] .dt-container .dt-paging .dt-paging-button:focus-visible{outline:3px solid var(--lila-hover)}
html[data-theme="dark"] table.dataTable.data-table > thead > tr > th,
html[data-theme="dark"] table.dataTable.data-table > thead > tr > td{background:var(--inset);color:var(--muted);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
html[data-theme="dark"] table.dataTable.data-table > tbody > tr > td{border-bottom:1px solid var(--line)}
html[data-theme="dark"] table.dataTable.data-table > tbody > tr:hover > td{background:#1d1a32;box-shadow:none}
html[data-theme="dark"] table.dataTable.data-table > tbody > tr:last-child > td{border-bottom:0}
html[data-theme="dark"] table.dataTable.data-table > thead > tr > th.dt-orderable-asc:hover,
html[data-theme="dark"] table.dataTable.data-table > thead > tr > th.dt-orderable-desc:hover{outline:0;background:#1c1b2a}
html[data-theme="dark"] table.dataTable.data-table .dt-orderable-asc span.dt-column-order::before,
html[data-theme="dark"] table.dataTable.data-table .dt-ordering-asc span.dt-column-order::before,
html[data-theme="dark"] table.dataTable.data-table .dt-orderable-desc span.dt-column-order::after,
html[data-theme="dark"] table.dataTable.data-table .dt-ordering-desc span.dt-column-order::after{color:var(--lila-text)}
html[data-theme="dark"] table.dataTable.data-table td.dt-empty{color:var(--muted)}
html[data-theme="dark"] table.dataTable.data-table td.dtr-control::before{color:var(--lila-text)}
html[data-theme="dark"] .data-table td .icon-button{border:1px solid var(--line);background:#1f2233}
html[data-theme="dark"] .dropzone{border:2px dashed #3b3e55;background:var(--inset);color:var(--muted)}
html[data-theme="dark"] .dropzone:hover{border-color:var(--lila-primary);background:var(--lila-soft)}
html[data-theme="dark"] .ql-toolbar.ql-snow{border:1px solid var(--lila-control-border);background:var(--inset)}
html[data-theme="dark"] .ql-container.ql-snow{border:1px solid var(--lila-control-border);border-top:0}
html[data-theme="dark"] .apexcharts-tooltip,
html[data-theme="dark"] .apexcharts-xaxistooltip{box-shadow:var(--shadow) !important}
html[data-theme="dark"] .apexcharts-legend-text{color:var(--muted) !important}
html[data-theme="dark"] .fc{--fc-button-border-color:rgba(255,255,255,0.08);--fc-button-hover-border-color:rgba(255,255,255,0.08);--fc-button-active-bg-color:var(--lila-text);--fc-event-text-color:var(--lila-text)}
html[data-theme="dark"] .fc .fc-button{box-shadow:var(--lila-raised)}
html[data-theme="dark"] .fc .fc-button-primary:not(:disabled).fc-button-active{color:#fff;box-shadow:var(--lila-action)}
html[data-theme="dark"] .alert > .icon-button{color:inherit}
html[data-theme="dark"] .workspace-logo{background:var(--lila-soft)}
html[data-theme="dark"] .accent-swatch{border:2px solid rgba(255,255,255,0.08);box-shadow:var(--lila-raised)}
html[data-theme="dark"] .accent-swatch.selected{box-shadow:0 0 0 3px var(--lila-primary), var(--lila-raised)}
html[data-theme="dark"] .accent-swatch > i{color:#fff}
html[data-theme="dark"] .accent-swatch:focus-visible{outline:3px solid var(--lila-hover)}
html[data-theme="dark"] .tone-basari{color:var(--success)}
html[data-theme="dark"] .tone-hata{color:var(--danger)}
html[data-theme="dark"] .tone-uyari{color:var(--warning)}
html[data-theme="dark"] .tone-bilgi{color:var(--info)}
html[data-theme="dark"] table.data-table > tbody > tr.randevu-alt-satir > td:first-child::before{border-left:1px solid var(--line);border-bottom:1px solid var(--line)}
html[data-theme="dark"] .surec-dugmesi{background:none;border:0;color:var(--lila-text)}
html[data-theme="dark"] .stat.tint-lilac{background:linear-gradient(140deg, #1a152d, #1e1634);border-color:#3d3454}
html[data-theme="dark"] .stat.tint-peach{background:linear-gradient(140deg, #2a1f12, #322615);border-color:#e6c399}
html[data-theme="dark"] .stat.tint-orchid{background:linear-gradient(140deg, #261723, #301a2c);border-color:#564052}
html[data-theme="dark"] .stat.tint-mint{background:linear-gradient(140deg, #18221f, #1d2b24);border-color:#afcfc0}
html[data-theme="dark"] .stat[class*="tint-"] .stat-top{color:#b2b4c7}
html[data-theme="dark"] .segmented .seg-opt span{color:var(--muted)}
html[data-theme="dark"] .segmented .seg-opt input:checked + span{background:#1f2233;color:var(--lila-text);box-shadow:0 3px 6px rgba(0,0,0,0.268)}
html[data-theme="dark"] .segmented .seg-opt input:focus-visible + span{outline:3px solid var(--lila-hover)}
html[data-theme="dark"] .segmented .seg-opt:hover input:not(:checked) + span{color:var(--lila-text)}
html[data-theme="dark"] .liste-kutu{background:#1f2233;border:1px solid var(--line)}
html[data-theme="dark"] .liste-oge{border-bottom:1px solid var(--line);color:var(--text)}
html[data-theme="dark"] .liste-oge:last-child{border-bottom:0}
html[data-theme="dark"] .liste-oge.tiklanir:hover,
html[data-theme="dark"] .liste-oge.tiklanir:focus-visible{background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .liste-oge.active{background:var(--lila-soft)}
html[data-theme="dark"] .sonuc-listesi{border-color:rgba(255,255,255,0.08);box-shadow:var(--shadow-pop, 0 14px 38px rgba(0,0,0,0.304))}
html[data-theme="dark"] .modal-content:is(.yon-giris, :has(:is(input, option)[data-yon="giris"]:checked)){background:color-mix(in srgb, var(--success-bg) 42%, var(--surface));border-color:var(--success-border);box-shadow:0 0 0 3px color-mix(in srgb, var(--success-border) 50%, transparent), 0 20px 80px rgba(0,0,0,0.339)}
html[data-theme="dark"] .modal-content:is(.yon-cikis, :has(:is(input, option)[data-yon="cikis"]:checked)){background:color-mix(in srgb, var(--danger-bg) 42%, var(--surface));border-color:var(--danger-border);box-shadow:0 0 0 3px color-mix(in srgb, var(--danger-border) 50%, transparent), 0 20px 80px rgba(0,0,0,0.339)}
html[data-theme="dark"] .modal-content:is(.yon-giris, :has(:is(input, option)[data-yon="giris"]:checked)) .modal-footer{background:color-mix(in srgb, var(--success-bg) 70%, var(--surface))}
html[data-theme="dark"] .modal-content:is(.yon-cikis, :has(:is(input, option)[data-yon="cikis"]:checked)) .modal-footer{background:color-mix(in srgb, var(--danger-bg) 70%, var(--surface))}
html[data-theme="dark"] .segmented .seg-opt input[data-yon="giris"]:checked + span{color:var(--success)}
html[data-theme="dark"] .segmented .seg-opt input[data-yon="cikis"]:checked + span{color:var(--danger)}
html[data-theme="dark"] .inset-box{background:var(--inset);color:var(--text)}
html[data-theme="dark"] .auth-body{background:var(--canvas)}
html[data-theme="dark"] .auth-head{background:var(--inset);border-bottom:1px solid var(--line)}
html[data-theme="dark"] .auth-sistem{color:#88c1eb}
html[data-theme="dark"] .mp-sozlesme-card{border:1px solid rgba(255,255,255,0.08);background:linear-gradient(145deg, #1f2233, #1e202f);box-shadow:var(--shadow);color:var(--text)}
html[data-theme="dark"] .mp-sozlesme-card:hover{background:var(--lila-soft);box-shadow:var(--lila-raised);color:var(--text)}
html[data-theme="dark"] dialog.mp-dialog::backdrop{background:rgba(48,51,75,0.333)}
html[data-theme="dark"] .mp-bolum-baslik{color:var(--muted)}
html[data-theme="dark"] .mp-oo-iframe{border:0;background:#1f2233}
html[data-theme="dark"] .bubble-tarih{color:var(--muted)}
html[data-theme="dark"] .bubble.sent .bubble-tarih{color:#fff}
html[data-theme="dark"] .mp-foto-kart{border:1px solid rgba(255,255,255,0.08);background:#1f2233;box-shadow:var(--shadow)}
html[data-theme="dark"] .mp-foto-kart img{background:var(--inset)}
html[data-theme="dark"] .mp-foto-placeholder{background:var(--inset);color:var(--muted)}
html[data-theme="dark"] .mp-foto-kategori{border:1px solid var(--lila-control-border);background:var(--inset);color:var(--text)}
html[data-theme="dark"] .mp-lightbox-img{background:var(--inset)}
html[data-theme="dark"] .hizli-oge{border:1px solid rgba(255,255,255,0.08);background:linear-gradient(160deg, #1f2233, #1e202b);box-shadow:var(--lila-raised);color:var(--text)}
html[data-theme="dark"] .hizli-oge i{background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .hizli-oge:hover{background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .ft-tost{color:var(--text);background:var(--surface);border:1px solid var(--line);border-left:5px solid var(--success-accent);box-shadow:0 12px 34px rgba(0,0,0,0.325)}
html[data-theme="dark"] .ft-tost > i{color:var(--success-accent)}
html[data-theme="dark"] .ft-tost[data-tip="hata"]{border-left-color:var(--danger-accent)}
html[data-theme="dark"] .ft-tost[data-tip="hata"] > i{color:var(--danger-accent)}
html[data-theme="dark"] .ft-tost[data-tip="uyari"]{border-left-color:var(--warning-accent)}
html[data-theme="dark"] .ft-tost[data-tip="uyari"] > i{color:var(--warning-accent)}
html[data-theme="dark"] .ft-tost[data-tip="bilgi"]{border-left-color:var(--info-accent)}
html[data-theme="dark"] .ft-tost[data-tip="bilgi"] > i{color:var(--info-accent)}
html[data-theme="dark"] .ft-tost-baglanti{color:var(--lila-text)}
html[data-theme="dark"] .ft-tost-kapat{border:0;background:transparent;color:var(--muted)}
html[data-theme="dark"] .ft-tost-kapat:hover{background:var(--lila-soft);color:var(--text)}
html[data-theme="dark"] .stat-bottom a{color:var(--lila-text)}
html[data-theme="dark"] .paket-etiket{color:var(--positive);background:var(--positive-bg)}
html[data-theme="dark"] .panel.paket-mevcut{border-color:var(--positive)}
html[data-theme="dark"] .paket-adet span{color:var(--muted)}
html[data-theme="dark"] .paket-fiyat{color:var(--lila-text)}
html[data-theme="dark"] .paket-fiyat-not{color:var(--muted)}
html[data-theme="dark"] .stat-value .stat-birim{color:var(--muted)}
html[data-theme="dark"] .tanim-tablosu tr.satir-gelir > td:first-child{box-shadow:inset 4px 0 0 var(--success-accent)}
html[data-theme="dark"] .tanim-tablosu tr.satir-gider > td:first-child{box-shadow:inset 4px 0 0 var(--danger-accent)}
html[data-theme="dark"] .tanim-tablosu tr.satir-gelir > td{background:color-mix(in srgb, var(--success-bg) 45%, transparent)}
html[data-theme="dark"] .tanim-tablosu tr.satir-gider > td{background:color-mix(in srgb, var(--danger-bg) 45%, transparent)}
html[data-theme="dark"] .hareket-satiri-acik,
html[data-theme="dark"] .odeme-satiri-alinan{background-color:var(--surface)}
html[data-theme="dark"] .hareket-satiri-gelecek,
html[data-theme="dark"] .odeme-satiri-gelecek{background-color:#302615}
html[data-theme="dark"] .hareket-satiri-kapanmis,
html[data-theme="dark"] .odeme-satiri-yapilmis-gelecek{background-color:var(--positive-bg)}
html[data-theme="dark"] .stok-satiri-kritik-alti{background-color:var(--negative-bg)}
html[data-theme="dark"] .fotograf-karti{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .fotograf-karti img{background:var(--inset)}
html[data-theme="dark"] .fotograf-karti-placeholder{background:var(--inset);color:var(--muted)}
html[data-theme="dark"] .fotograf-karti-kilitli{border-color:var(--warning-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--warning-accent) 25%, transparent)}
html[data-theme="dark"] .fotograf-karti-kilitli.tamamlandi{border-color:var(--success-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--success-accent) 25%, transparent)}
html[data-theme="dark"] .foto-onizleme{background:var(--inset)}
html[data-theme="dark"] .foto-onizleme-ok{background:var(--surface);box-shadow:var(--lila-raised)}
html[data-theme="dark"] .konusma-item.active{background-color:var(--lila-soft);border-left:3px solid var(--lila-primary)}
html[data-theme="dark"] .mesaj-gecmisi-kutu{background:var(--inset)}
html[data-theme="dark"] .destek-mesaji{background:var(--inset);border:1px solid var(--line)}
html[data-theme="dark"] .destek-mesaji.destek-mesaji-sa{background:var(--info-bg);border-color:var(--info-border);color:var(--info)}
html[data-theme="dark"] .mesaj-baloncuk.mesaj-musteri{background:var(--surface);border:1px solid var(--line)}
html[data-theme="dark"] .mesaj-baloncuk.mesaj-firma{background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .mesaj-zaman{color:var(--muted)}
html[data-theme="dark"] .workspace-dropdown > .workspace:hover,
html[data-theme="dark"] .workspace-dropdown > .workspace[aria-expanded="true"]{border-color:var(--lila-lilac)}
html[data-theme="dark"] .workspace-metin small{color:var(--muted)}
html[data-theme="dark"] .workspace-chevron{color:var(--muted)}
@layer hz-override{
html[data-theme="dark"] .dt-container .dt-paging .dt-paging-button.current,
html[data-theme="dark"] .dt-container .dt-paging .dt-paging-button.current:hover{background:var(--lila-primary) !important;color:#fff !important;border:0 !important;box-shadow:var(--lila-action) !important}
}
html[data-theme="dark"] :is(#takvim, #panoTakvim) .hz-gun-baslik{background:var(--inset);color:var(--muted)}
html[data-theme="dark"] :is(#takvim, #panoTakvim) .hz-gun{border-color:var(--line);color:var(--text);background:var(--surface)}
html[data-theme="dark"] :is(#takvim, #panoTakvim) .hz-gun:has(.hz-etkinlik){background:#1e1838}
html[data-theme="dark"] :is(#takvim, #panoTakvim) .hz-gun.hz-gun-diger{background:#20202c;color:var(--muted)}
html[data-theme="dark"] :is(#takvim, #panoTakvim) .hz-gun.hz-gun-bugun > :first-child > :first-child{background:var(--lila-primary);color:#fff;box-shadow:var(--lila-action)}
html[data-theme="dark"] :is(#takvim, #panoTakvim) .hz-etkinlik{background:color-mix(in srgb, var(--hz-renk) 13%, #1f2233) !important;color:color-mix(in srgb, var(--hz-renk) 62%, #f6f6f9) !important;border:0 !important;border-left:3px solid var(--hz-renk) !important;box-shadow:none !important}
html[data-theme="dark"] :is(#takvim, #panoTakvim) .hz-etkinlik *{color:inherit !important;background:transparent}
html[data-theme="dark"] :is(#takvim, #panoTakvim) .hz-etkinlik:hover{background:color-mix(in srgb, var(--hz-renk) 22%, #1f2233) !important}
html[data-theme="dark"] .takvim-ozet-balon{background:var(--surface);color:var(--text);border:1px solid var(--line);box-shadow:0 10px 30px rgba(0,0,0,0.288)}
html[data-theme="dark"] .takvim-ozet-oge{border-left:3px solid var(--hz-renk)}
html[data-theme="dark"] .takvim-ozet-oge + .takvim-ozet-oge{border-top:1px solid var(--line)}
html[data-theme="dark"] .takvim-ozet-satir{color:var(--muted)}
html[data-theme="dark"] :where(table.data-table > tbody > tr:nth-child(even):not(.child)){background-color:#201c2e}
html[data-theme="dark"] :where(table.data-table > tbody > tr:nth-child(odd):not(.child)){background-color:var(--surface)}
html[data-theme="dark"] table.data-table > tbody > tr > td{background-color:transparent}
html[data-theme="dark"] table.data-table > tbody > tr:hover > td,
html[data-theme="dark"] table.dataTable.data-table > tbody > tr:hover > td{background:#1d1a2a}
html[data-theme="dark"] table.data-table > thead > tr > th,
html[data-theme="dark"] table.data-table > tbody > tr > td,
html[data-theme="dark"] table.data-table > tfoot > tr > th,
html[data-theme="dark"] table.data-table > tfoot > tr > td{border-right:1px solid var(--line)}
html[data-theme="dark"] table.data-table > thead > tr > th:last-child,
html[data-theme="dark"] table.data-table > tbody > tr > td:last-child,
html[data-theme="dark"] table.data-table > tfoot > tr > th:last-child,
html[data-theme="dark"] table.data-table > tfoot > tr > td:last-child{border-right:0}
html[data-theme="dark"] table.data-table > thead > tr > th{border-bottom:1px solid var(--border)}
html[data-theme="dark"] .tablo-ust-satir > .dt-length{color:var(--muted)}
html[data-theme="dark"] .yetki-arac{background:var(--surface)}
html[data-theme="dark"] .yetki-bolum{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .yetki-bolum > summary{color:var(--lila-text);background:var(--inset)}
html[data-theme="dark"] .yetki-bolum[open] > summary{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .yetki-ok{color:var(--muted)}
html[data-theme="dark"] .yetki-hucre.ozel > span::after{color:var(--lila-text)}
html[data-theme="dark"] .yetki-hucre.degisti > span{color:var(--lila-text)}
html[data-theme="dark"] .yetki-tablo thead th{background:var(--inset);color:var(--muted)}
html[data-theme="dark"] .yetki-tablo thead tr.yetki-tumunu-sec th{background:var(--lila-soft)}
html[data-theme="dark"] .yetki-tablo tbody td{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .yetki-tablo .yetki-yok{color:var(--line)}
html[data-theme="dark"] .yetki-tablo tbody tr:nth-child(even){background:#201c2e}
html[data-theme="dark"] .yetki-kaydet-bar{border:1px solid var(--lila-lilac);background:var(--lila-soft)}
html[data-theme="dark"] .yetki-alt-bar{border-top:1px solid var(--line)}
html[data-theme="dark"] .yetki-durum{color:var(--muted)}
html[data-theme="dark"] .yetki-durum.basarili{color:var(--positive)}
html[data-theme="dark"] .pano-tablo th{color:var(--muted);border-bottom:1px solid var(--line)}
html[data-theme="dark"] .pano-tablo td{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .pano-tablo tr:last-child td{border-bottom:0}
html[data-theme="dark"] .destek-bandi{background:#9f1239;color:#ffffff;box-shadow:0 1px 4px rgba(0,0,0,0.54)}
html[data-theme="dark"] .destek-bandi-duzenleme{background:#b45309}
html[data-theme="dark"] .destek-bandi-duzenleme .badge{background:#1f2233;color:#efb68a;border-color:rgba(255,255,255,0.08)}
html[data-theme="dark"] .destek-bandi .button.destek-bandi-duzenle-ac{background:#fbbf24;color:#eaeaf0;border-color:#fbbf24}
html[data-theme="dark"] .destek-bandi .button.destek-bandi-duzenle-ac:hover{background:#f59e0b}
html[data-theme="dark"] .destek-bandi-hata{background:rgba(48,51,75,0.35)}
html[data-theme="dark"] .destek-bandi .button{background:#1f2233;color:#eaeaf0;border-color:rgba(255,255,255,0.08)}
html[data-theme="dark"] .destek-bandi .button:hover{background:#30161d}
html[data-theme="dark"] .silver-option.destek-oturum-notu{color:var(--muted)}
html[data-theme="dark"] .silver-option.destek-oturum-notu:hover{background:transparent}
html[data-theme="dark"] .bildirim-ust{border-bottom:1px solid var(--line)}
html[data-theme="dark"] .bildirim-oge{border-bottom:1px solid var(--line);color:var(--text)}
html[data-theme="dark"] .bildirim-oge:last-child{border-bottom:0}
html[data-theme="dark"] .bildirim-oge:hover,
html[data-theme="dark"] .bildirim-oge:focus-visible{background:var(--lila-soft);color:var(--text)}
html[data-theme="dark"] .bildirim-oge.okunmamis{background:var(--inset)}
html[data-theme="dark"] .bildirim-oge > i{color:var(--lila-text)}
html[data-theme="dark"] .bildirim-govde span{color:var(--muted)}
html[data-theme="dark"] .bildirim-govde small{color:var(--muted)}
html[data-theme="dark"] .bildirim-oge.okunmamis .bildirim-govde strong::after{background:var(--lila-primary)}
html[data-theme="dark"] .bildirim-bos{color:var(--muted)}
html[data-theme="dark"] .canli-toast{border:1px solid var(--line);border-left:4px solid var(--lila-primary);background:var(--surface);color:var(--text);box-shadow:var(--shadow-pop, 0 14px 38px rgba(0,0,0,0.304))}
html[data-theme="dark"] .canli-toast:hover{color:var(--text);background:var(--lila-soft)}
html[data-theme="dark"] .canli-toast > i{color:var(--lila-text)}
html[data-theme="dark"] .canli-toast-govde span{color:var(--muted)}
html[data-theme="dark"] .canli-toast-kapat{border:0;background:transparent;color:var(--muted)}
html[data-theme="dark"] .data-table th.ogs-grup{color:var(--lila-text)}
html[data-theme="dark"] .duyuru-icerik iframe{border:0}
html[data-theme="dark"] .karsilama-ust{background:linear-gradient(135deg, var(--lila-soft), var(--surface));border-bottom:1px solid var(--line)}
html[data-theme="dark"] .karsilama-ust h2{color:var(--lila-text, var(--lila-text))}
html[data-theme="dark"] .karsilama-ust p{color:var(--muted)}
html[data-theme="dark"] .karsilama-ikon{background:var(--lila-primary);color:#fff;box-shadow:var(--lila-raised)}
html[data-theme="dark"] .karsilama-adim{border:1px solid var(--line);background:var(--surface)}
html[data-theme="dark"] .karsilama-adim.eksik{border-color:var(--lila-apricot)}
html[data-theme="dark"] .karsilama-no{background:var(--lila-soft);color:var(--lila-text)}
html[data-theme="dark"] .karsilama-adim.eksik .karsilama-no{background:var(--lila-apricot);color:var(--text)}
html[data-theme="dark"] .karsilama-metin p{color:var(--muted)}
html[data-theme="dark"] .karsilama-metin .karsilama-uyari{color:var(--warning)}
html[data-theme="dark"] .cerceve-duzen{border:1px solid var(--line)}
html[data-theme="dark"] .cerceve-duzen:has(input:checked){border-color:var(--lila-primary);box-shadow:0 0 0 3px var(--lila-soft)}
html[data-theme="dark"] .cerceve-duzen-cizim{background:var(--inset);border:1px solid var(--border)}
html[data-theme="dark"] .cerceve-duzen-cizim.klasik::before{background:var(--lila-primary)}
html[data-theme="dark"] .cerceve-duzen-cizim.sade::before{background:var(--lila-primary)}
html[data-theme="dark"] .cerceve-duzen-cizim.kart{background:var(--border)}
html[data-theme="dark"] .cerceve-duzen-cizim.kart::before{background:var(--surface);border-top:3px solid var(--lila-primary)}
html[data-theme="dark"] .cerceve-onizleme-kutu{border:1px solid var(--line);background:#1f222c}
html[data-theme="dark"] .cerceve-onizleme-kutu iframe{border:0;background:#1f222c}
html[data-theme="dark"] .renk-noktasi{border:1px solid var(--border)}

/* ── horizon-accent.css ── */
html[data-theme="dark"][data-accent="red"]{--lila-soft:#311717}
html[data-theme="dark"][data-accent="pink"]{--lila-soft:#311623}
html[data-theme="dark"][data-accent="orange"]{--lila-soft:#302214}
html[data-theme="dark"][data-accent="yellow"]{--lila-soft:#2b2512}
html[data-theme="dark"][data-accent="lime"]{--lila-soft:#232a16}
html[data-theme="dark"][data-accent="green"]{--lila-soft:#19281e}
html[data-theme="dark"][data-accent="aqua"]{--lila-soft:#15282b}
html[data-theme="dark"][data-accent="blue"]{--lila-soft:#151f30}
html[data-theme="dark"][data-accent="indigo"]{--lila-soft:#17192f}
html[data-theme="dark"][data-accent="purple"]{--lila-soft:#231631}
html[data-theme="dark"][data-accent="black"]{--lila-soft:#1a1c2a}
html[data-theme="dark"][data-accent]:not([data-accent="teal"]):not([data-accent="lila"]){--lila-action:0 5px 13px color-mix(in srgb, var(--lila-primary) 25%, transparent), inset 0 1px 1px rgba(255,255,255,0.048);--accent-lite:color-mix(in srgb, var(--lila-primary) 88%, #1f2233)}
html[data-theme="dark"][data-accent]:not([data-accent="teal"]):not([data-accent="lila"]) .nav-item.active{background:linear-gradient(145deg, var(--accent-lite), var(--lila-primary))}
html[data-theme="dark"][data-accent]:not([data-accent="teal"]):not([data-accent="lila"]) .button.primary{background:linear-gradient(165deg, var(--accent-lite), var(--lila-primary))}
html[data-theme="dark"][data-accent]:not([data-accent="teal"]):not([data-accent="lila"]) .button.primary:hover:not(:disabled){background:var(--lila-hover);box-shadow:0 6px 18px color-mix(in srgb, var(--lila-primary) 35%, transparent)}
html[data-theme="dark"][data-accent]:not([data-accent="teal"]):not([data-accent="lila"]) .brand-symbol{background:linear-gradient(145deg, var(--accent-lite), var(--lila-primary));border-color:color-mix(in srgb, var(--lila-primary) 60%, rgba(255,255,255,0.08))}
html[data-theme="dark"][data-accent]:not([data-accent="teal"]):not([data-accent="lila"]) .progress-fill{background:linear-gradient(90deg, color-mix(in srgb, var(--lila-primary) 55%, #1f2233), var(--lila-primary))}
html[data-theme="dark"][data-accent]:not([data-accent="teal"]):not([data-accent="lila"]) .dashboard-stats > .stat:nth-child(1){background:linear-gradient(140deg, color-mix(in srgb, var(--lila-primary) 16%, #1f2233), color-mix(in srgb, var(--lila-primary) 5%, #1f2233));border-color:color-mix(in srgb, var(--lila-primary) 35%, rgba(255,255,255,0.08))}
html[data-theme="dark"][data-accent]:not([data-accent="teal"]):not([data-accent="lila"]) .dt-container .dt-paging .dt-paging-button.current{background:var(--lila-primary) !important}
html[data-theme="dark"][data-accent]:not([data-accent="teal"]):not([data-accent="lila"]) .nav-sub .nav-item.active{background:var(--lila-soft);color:var(--lila-text)}
