/* =========================================================
   Area 3 V259.27 - Day / Night Mode
   Dark palette inspired by ChatGPT: neutral charcoal surfaces,
   soft borders, bright readable text, semantic colors preserved.
   Loaded LAST so legacy light-only declarations cannot win.
   ========================================================= */

:root{
  --a3-day-bg:#f8fafc;
  --a3-day-surface:#ffffff;
  --a3-day-text:#172b4d;
  --a3-night-bg:#212121;
  --a3-night-surface:#2f2f2f;
  --a3-night-surface-2:#292929;
  --a3-night-surface-3:#343434;
  --a3-night-elevated:#383838;
  --a3-night-text:#ececec;
  --a3-night-muted:#b4b4b4;
  --a3-night-border:#4a4a4a;
  --a3-night-border-soft:#3a3a3a;
  --a3-night-header:#171717;
  --a3-night-header-2:#1c1c1c;
  --a3-night-blue:#4b9cff;
  --a3-night-blue-hover:#68adff;
  --a3-night-input:#2b2b2b;
  --a3-night-row:#252525;
  --a3-night-row-alt:#2b2b2b;
  --a3-night-row-hover:#333333;
  --a3-night-danger:#ff6b6b;
}

html[data-theme="dark"]{color-scheme:dark;}
html.area3-theme-ready-v25927 body,
html.area3-theme-ready-v25927 .panel,
html.area3-theme-ready-v25927 .section-card,
html.area3-theme-ready-v25927 .detail-card,
html.area3-theme-ready-v25927 input,
html.area3-theme-ready-v25927 select,
html.area3-theme-ready-v25927 textarea{
  transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease;
}

/* ---------- Toggle ---------- */
.area3-theme-toggle-v25927{
  appearance:none!important;
  -webkit-appearance:none!important;
  flex:0 0 auto!important;
  display:inline-grid!important;
  place-items:center!important;
  width:32px!important;
  height:30px!important;
  min-width:32px!important;
  min-height:30px!important;
  padding:0!important;
  margin:0 1px!important;
  border:1px solid rgba(255,255,255,.65)!important;
  border-radius:7px!important;
  background:#fff!important;
  background-image:none!important;
  box-shadow:none!important;
  cursor:pointer!important;
  line-height:1!important;
}
.area3-theme-toggle-v25927:hover,
.area3-theme-toggle-v25927:focus-visible{
  border-color:#fff!important;
  box-shadow:0 0 0 2px rgba(255,255,255,.16)!important;
}
.area3-theme-square-v25927{
  display:block!important;
  width:11px!important;
  height:11px!important;
  border-radius:1px!important;
  background:#111827!important;
  border:1px solid #111827!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .area3-theme-toggle-v25927{
  background:#292929!important;
  border-color:#676767!important;
}
html[data-theme="dark"] .area3-theme-toggle-v25927:hover,
html[data-theme="dark"] .area3-theme-toggle-v25927:focus-visible{
  background:#343434!important;
  border-color:#8b8b8b!important;
}
html[data-theme="dark"] .area3-theme-square-v25927{
  background:#fff!important;
  border-color:#fff!important;
}
.area3-mobile-account-actions-v25927{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:7px 10px!important;
  border-top:1px solid rgba(255,255,255,.12)!important;
}
.area3-mobile-account-actions-v25927 .logout{
  flex:1!important;
  margin:0!important;
}
.area3-theme-toggle-mobile-v25927{
  width:34px!important;
  min-width:34px!important;
}

/* ---------- Core canvas ---------- */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] body.login-page,
html[data-theme="dark"] .app{
  background:var(--a3-night-bg)!important;
  background-color:var(--a3-night-bg)!important;
  background-image:none!important;
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
}
html[data-theme="dark"] body::before,
html[data-theme="dark"] body::after{
  background:none!important;
  background-image:none!important;
}
html[data-theme="dark"] *{scrollbar-color:#555 #242424;}
html[data-theme="dark"] ::selection{background:#2563eb;color:#fff;}

/* ---------- Header / navigation ---------- */
html[data-theme="dark"] body .app > header.topbar.topbar-v11,
html[data-theme="dark"] body header.topbar.topbar-v11,
html[data-theme="dark"] body .topbar-v11,
html[data-theme="dark"] body .topbar,
html[data-theme="dark"] body .app-header,
html[data-theme="dark"] body .navbar{
  background:var(--a3-night-header)!important;
  background-color:var(--a3-night-header)!important;
  background-image:none!important;
  border-color:#353535!important;
  box-shadow:0 2px 10px rgba(0,0,0,.38)!important;
}
html[data-theme="dark"] body .topbar.topbar-v11 .top-actions{
  background:var(--a3-night-header)!important;
  background-color:var(--a3-night-header)!important;
}
html[data-theme="dark"] body .topbar-v11 .top-actions .navlink,
html[data-theme="dark"] body .topbar-v11 .top-actions .logout,
html[data-theme="dark"] body .topbar .top-actions .navlink,
html[data-theme="dark"] body .topbar .top-actions .logout{
  color:#f5f5f5!important;
  -webkit-text-fill-color:#f5f5f5!important;
}
html[data-theme="dark"] body .hamburger-panel-v15,
html[data-theme="dark"] body .area3-hamburger-panel-v25911{
  background:#242424!important;
  background-color:#242424!important;
  border-color:#4a4a4a!important;
  box-shadow:0 16px 40px rgba(0,0,0,.5)!important;
}
html[data-theme="dark"] body .hamburger-panel-v15 a,
html[data-theme="dark"] body .area3-hamburger-panel-v25911 a{
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
  border-color:#3e3e3e!important;
}
html[data-theme="dark"] body .hamburger-panel-v15 a:hover,
html[data-theme="dark"] body .area3-hamburger-panel-v25911 a:hover{
  background:#333!important;
}
html[data-theme="dark"] .area3-menu-toggle-v25911,
html[data-theme="dark"] .area3-menu-toggle-v25911:hover,
html[data-theme="dark"] .area3-menu-toggle-v25911:focus{
  background:transparent!important;
  border-color:transparent!important;
}
html[data-theme="dark"] .area3-menu-icon-v25910 i{background:#fff!important;}

/* ---------- Running notice ---------- */
html[data-theme="dark"] body .area3-running-notice-v230,
html[data-theme="dark"] body #area3RunningNoticeV230{
  background:#0f5f9e!important;
  border-color:#154d77!important;
}

/* ---------- Generic surfaces ---------- */
html[data-theme="dark"] body .panel,
html[data-theme="dark"] body .section-card,
html[data-theme="dark"] body .detail-card,
html[data-theme="dark"] body .compact-panel,
html[data-theme="dark"] body .compact-list,
html[data-theme="dark"] body .list-table,
html[data-theme="dark"] body .toolbar,
html[data-theme="dark"] body .summary-toggle,
html[data-theme="dark"] body .dashboard-control-v81,
html[data-theme="dark"] body .dashboard-chart-card-v52,
html[data-theme="dark"] body .dashboard-card-clean-v81,
html[data-theme="dark"] body .status-heatmap-v113,
html[data-theme="dark"] body .inventory-card,
html[data-theme="dark"] body .vendor-inventory-card,
html[data-theme="dark"] body .vmi-card-v25923,
html[data-theme="dark"] body .alat-card,
html[data-theme="dark"] body .tasklist-mobile-card-v12,
html[data-theme="dark"] body .task-mobile-card-v198,
html[data-theme="dark"] body .activity-mobile-card-v8,
html[data-theme="dark"] body .status-timeline-card-v9,
html[data-theme="dark"] body .notification-card,
html[data-theme="dark"] body .notes-card,
html[data-theme="dark"] body .contract-card,
html[data-theme="dark"] body .pr-card,
html[data-theme="dark"] body .po-card,
html[data-theme="dark"] body .age-card,
html[data-theme="dark"] body .ai-card,
html[data-theme="dark"] body .app-card{
  background:var(--a3-night-surface)!important;
  background-color:var(--a3-night-surface)!important;
  background-image:none!important;
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
  border-color:var(--a3-night-border)!important;
  box-shadow:0 4px 16px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] body .panel *,
html[data-theme="dark"] body .section-card *,
html[data-theme="dark"] body .detail-card *,
html[data-theme="dark"] body .compact-panel *{
  border-color:var(--a3-night-border)!important;
}

/* Preserve semantic badges / colored state controls. */
html[data-theme="dark"] body .status,
html[data-theme="dark"] body .pill,
html[data-theme="dark"] body [class*="badge"],
html[data-theme="dark"] body [class*="status-pill"],
html[data-theme="dark"] body .status-select{
  -webkit-text-fill-color:currentColor!important;
}

/* ---------- Typography ---------- */
html[data-theme="dark"] body,
html[data-theme="dark"] body p,
html[data-theme="dark"] body li,
html[data-theme="dark"] body td,
html[data-theme="dark"] body label,
html[data-theme="dark"] body h1,
html[data-theme="dark"] body h2,
html[data-theme="dark"] body h3,
html[data-theme="dark"] body h4,
html[data-theme="dark"] body strong,
html[data-theme="dark"] body b{
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
}
html[data-theme="dark"] body small,
html[data-theme="dark"] body .meta,
html[data-theme="dark"] body .muted,
html[data-theme="dark"] body .subtitle,
html[data-theme="dark"] body .help,
html[data-theme="dark"] body .hint,
html[data-theme="dark"] body .empty{
  color:var(--a3-night-muted)!important;
  -webkit-text-fill-color:var(--a3-night-muted)!important;
}
html[data-theme="dark"] body a:not(.btn):not(.navlink):not(.logout):not(.status):not(.pill){
  color:#79b8ff!important;
  -webkit-text-fill-color:#79b8ff!important;
}
html[data-theme="dark"] body a:not(.btn):not(.navlink):not(.logout):hover{
  color:#a8d0ff!important;
  -webkit-text-fill-color:#a8d0ff!important;
}

/* ---------- Forms ---------- */
html[data-theme="dark"] body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] body select:not(.status-select),
html[data-theme="dark"] body textarea,
html[data-theme="dark"] body [contenteditable="true"]{
  background:var(--a3-night-input)!important;
  background-color:var(--a3-night-input)!important;
  background-image:none!important;
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
  border-color:#565656!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body input::placeholder,
html[data-theme="dark"] body textarea::placeholder{
  color:#9b9b9b!important;
  -webkit-text-fill-color:#9b9b9b!important;
  opacity:1!important;
}
html[data-theme="dark"] body select option{
  background:#252525!important;
  color:#f2f2f2!important;
}
html[data-theme="dark"] body input:focus,
html[data-theme="dark"] body select:not(.status-select):focus,
html[data-theme="dark"] body textarea:focus,
html[data-theme="dark"] body [contenteditable="true"]:focus{
  border-color:var(--a3-night-blue)!important;
  box-shadow:0 0 0 3px rgba(75,156,255,.18)!important;
  outline:none!important;
}
html[data-theme="dark"] body input[type="checkbox"],
html[data-theme="dark"] body input[type="radio"]{
  accent-color:var(--a3-night-blue)!important;
}

/* ---------- Buttons ---------- */
html[data-theme="dark"] body .btn.primary,
html[data-theme="dark"] body button.btn.primary,
html[data-theme="dark"] body a.btn.primary,
html[data-theme="dark"] body input.btn.primary,
html[data-theme="dark"] body .filter-btn-v16,
html[data-theme="dark"] body .fab-add-task-v16,
html[data-theme="dark"] body .task-add-btn-v194,
html[data-theme="dark"] body .btn-filter,
html[data-theme="dark"] body button[name="filter"],
html[data-theme="dark"] body button[name="apply_filter"],
html[data-theme="dark"] body button[type="submit"]:not(.danger):not(.secondary):not(.text-btn-v9){
  background:#2f7edb!important;
  background-color:#2f7edb!important;
  background-image:none!important;
  border-color:#2f7edb!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-theme="dark"] body .btn.primary:hover,
html[data-theme="dark"] body button.btn.primary:hover,
html[data-theme="dark"] body a.btn.primary:hover,
html[data-theme="dark"] body .filter-btn-v16:hover,
html[data-theme="dark"] body button[type="submit"]:not(.danger):not(.secondary):not(.text-btn-v9):hover{
  background:#438fe8!important;
  border-color:#438fe8!important;
}
html[data-theme="dark"] body .btn.secondary,
html[data-theme="dark"] body button.btn.secondary,
html[data-theme="dark"] body a.btn.secondary,
html[data-theme="dark"] body .btn-outline,
html[data-theme="dark"] body .reset-btn-v16,
html[data-theme="dark"] body .reset-btn,
html[data-theme="dark"] body .share-btn-v28,
html[data-theme="dark"] body .text-btn-v9:not(.danger){
  background:#292929!important;
  background-color:#292929!important;
  background-image:none!important;
  border-color:#707070!important;
  color:#f0f0f0!important;
  -webkit-text-fill-color:#f0f0f0!important;
}
html[data-theme="dark"] body .btn.secondary:hover,
html[data-theme="dark"] body a.btn.secondary:hover,
html[data-theme="dark"] body .btn-outline:hover,
html[data-theme="dark"] body .reset-btn-v16:hover,
html[data-theme="dark"] body .share-btn-v28:hover{
  background:#3a3a3a!important;
  border-color:#8b8b8b!important;
}
html[data-theme="dark"] body .btn.danger,
html[data-theme="dark"] body button.danger,
html[data-theme="dark"] body a.danger,
html[data-theme="dark"] body button[name="delete"]{
  background:#342222!important;
  border-color:#b95757!important;
  color:#ff8d8d!important;
  -webkit-text-fill-color:#ff8d8d!important;
}

/* ---------- Tables ---------- */
html[data-theme="dark"] body .table-wrap,
html[data-theme="dark"] body .inventory-table-wrap,
html[data-theme="dark"] body .status-table-wrap-v198,
html[data-theme="dark"] body .tasklist-desktop-v12,
html[data-theme="dark"] body .activity-table-desktop-v8,
html[data-theme="dark"] body .vmi-table-wrap-v25923{
  background:var(--a3-night-surface)!important;
  border-color:var(--a3-night-border)!important;
}
html[data-theme="dark"] body table:not(.hm-table-v113),
html[data-theme="dark"] body table:not(.hm-table-v113) thead,
html[data-theme="dark"] body table:not(.hm-table-v113) thead tr,
html[data-theme="dark"] body table:not(.hm-table-v113) thead th{
  background:#303744!important;
  background-color:#303744!important;
  background-image:none!important;
  color:#f3f5f8!important;
  -webkit-text-fill-color:#f3f5f8!important;
  border-color:#4a5563!important;
}
html[data-theme="dark"] body table:not(.hm-table-v113) tbody tr{
  background:var(--a3-night-row)!important;
}
html[data-theme="dark"] body table:not(.hm-table-v113) tbody tr:nth-child(even){
  background:var(--a3-night-row-alt)!important;
}
html[data-theme="dark"] body table:not(.hm-table-v113) tbody tr:hover{
  background:var(--a3-night-row-hover)!important;
}
html[data-theme="dark"] body table:not(.hm-table-v113) tbody td{
  background:transparent!important;
  background-color:transparent!important;
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
  border-color:#414141!important;
}
html[data-theme="dark"] body table:not(.hm-table-v113) tbody td a{
  color:#8bc2ff!important;
  -webkit-text-fill-color:#8bc2ff!important;
}
html[data-theme="dark"] body .list-header,
html[data-theme="dark"] body .list-header > div{
  background:#303744!important;
  color:#f3f5f8!important;
  -webkit-text-fill-color:#f3f5f8!important;
  border-color:#4a5563!important;
}
html[data-theme="dark"] body .list-row{
  background:#252525!important;
  color:var(--a3-night-text)!important;
  border-color:#414141!important;
}
html[data-theme="dark"] body .list-row:nth-child(even){background:#2b2b2b!important;}
html[data-theme="dark"] body .list-row:hover{background:#333!important;}

/* Tasklist / Status Alat compact headers and update cells */
html[data-theme="dark"] body .tasklist-table-v12 thead th,
html[data-theme="dark"] body .status-table-v198 thead th{
  background:#303744!important;
  color:#f5f5f5!important;
  -webkit-text-fill-color:#f5f5f5!important;
  border-color:#4a5563!important;
}
html[data-theme="dark"] body .update-cell-v260,
html[data-theme="dark"] body .update-date-v260,
html[data-theme="dark"] body .status-age-v198{
  color:var(--a3-night-muted)!important;
  -webkit-text-fill-color:var(--a3-night-muted)!important;
}

/* ---------- Detail pages ---------- */
html[data-theme="dark"] body .detail-card.compact-panel.task-detail-report-hero-v69,
html[data-theme="dark"] body .task-detail-report-hero-v69,
html[data-theme="dark"] body .task-detail-report-hero-v69 .activity-progress-card-v18413,
html[data-theme="dark"] body .task-detail-report-hero-v69 .task-explanation-box-v220,
html[data-theme="dark"] body .task-detail-report-hero-v69 .chips.task-main-chips-v56 span{
  background:var(--a3-night-surface)!important;
  background-color:var(--a3-night-surface)!important;
  background-image:none!important;
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
  border-color:var(--a3-night-border)!important;
}
html[data-theme="dark"] body .task-detail-report-hero-v69 .detail-head h2,
html[data-theme="dark"] body .task-detail-report-hero-v69 .task-explanation-label-v220,
html[data-theme="dark"] body .task-detail-report-hero-v69 .task-explanation-content-v220,
html[data-theme="dark"] body .task-detail-report-hero-v69 .task-explanation-content-v220 *{
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
}
html[data-theme="dark"] body .task-detail-report-hero-v69 .activity-progress-card-v18413 .task-detail-ring-inner-v69{
  background:#242424!important;
  box-shadow:inset 0 0 0 1px #555!important;
}
html[data-theme="dark"] body .task-detail-report-hero-v69 .activity-progress-card-v18413 .task-detail-ring-v69{
  background:conic-gradient(var(--a3-night-blue) var(--task-progress,0%), #464646 0)!important;
  box-shadow:inset 0 0 0 5px #333!important;
}
html[data-theme="dark"] body .task-detail-report-hero-v69 .activity-progress-line-v18413 > div,
html[data-theme="dark"] body progress{
  background:#464646!important;
}

/* ---------- Rich text, remarks, documentation ---------- */
html[data-theme="dark"] body .remark,
html[data-theme="dark"] body .remarks-item,
html[data-theme="dark"] body .remark-item,
html[data-theme="dark"] body .documentation-item,
html[data-theme="dark"] body .documentation-card,
html[data-theme="dark"] body .doc-card,
html[data-theme="dark"] body .link-card,
html[data-theme="dark"] body .rich-editor,
html[data-theme="dark"] body .ql-toolbar,
html[data-theme="dark"] body .ql-container,
html[data-theme="dark"] body .ql-editor{
  background:#2a2a2a!important;
  background-color:#2a2a2a!important;
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
  border-color:var(--a3-night-border)!important;
}
html[data-theme="dark"] body .ql-stroke{stroke:#ddd!important;}
html[data-theme="dark"] body .ql-fill{fill:#ddd!important;}
html[data-theme="dark"] body .ql-picker{color:#ddd!important;}

/* ---------- Modals / dropdowns ---------- */
html[data-theme="dark"] body .modal-backdrop{
  background:rgba(0,0,0,.72)!important;
}
html[data-theme="dark"] body .modal,
html[data-theme="dark"] body .inventory-modal,
html[data-theme="dark"] body .dialog,
html[data-theme="dark"] body [class*="-modal"]:not(.modal-backdrop){
  background:#2b2b2b!important;
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
  border-color:#555!important;
  box-shadow:0 24px 70px rgba(0,0,0,.55)!important;
}
html[data-theme="dark"] body .pic-search-menu-v257,
html[data-theme="dark"] body .pic-search-menu-v257 button{
  background:#2d2d2d!important;
  color:#eee!important;
  -webkit-text-fill-color:#eee!important;
  border-color:#4c4c4c!important;
}
html[data-theme="dark"] body .pic-search-menu-v257 button:hover{background:#3a3a3a!important;}

/* ---------- Dashboard ---------- */
html[data-theme="dark"] body .dashboard-title-v81 small,
html[data-theme="dark"] body .chart-card-head-v52 span,
html[data-theme="dark"] body .chart-legend-v52 span,
html[data-theme="dark"] body .hm-head-v113 p{
  color:var(--a3-night-muted)!important;
  -webkit-text-fill-color:var(--a3-night-muted)!important;
}
html[data-theme="dark"] body .pie-v52 span{
  background:#242424!important;
  color:#f0f0f0!important;
  -webkit-text-fill-color:#f0f0f0!important;
  border-color:#555!important;
}
html[data-theme="dark"] body .chart-legend-v52 a,
html[data-theme="dark"] body .hm-summary-card-v113{
  background:#292929!important;
  color:#eee!important;
  -webkit-text-fill-color:#eee!important;
  border-color:#474747!important;
}
html[data-theme="dark"] body .hm-scroll-v113{border-color:#4a4a4a!important;background:#252525!important;}
html[data-theme="dark"] body .hm-table-v113 th,
html[data-theme="dark"] body .hm-equipment-v113{
  background:#303744!important;
  color:#f3f5f8!important;
  -webkit-text-fill-color:#f3f5f8!important;
  border-color:#4a5563!important;
}

/* ---------- Procurement: override V274 hard black text ---------- */
html[data-theme="dark"] body .proc-dashboard-v190 .proc-chart-card-v190,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-progress-card-v190,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-kpi-dashboard-v190 > div,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-kpi-v185 > div,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-chart-card-v190 *,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-progress-card-v190 *,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-kpi-dashboard-v190 > div *,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-kpi-v185 > div *{
  background-color:transparent!important;
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
}
html[data-theme="dark"] body .proc-dashboard-v190 .proc-chart-card-v190,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-progress-card-v190,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-kpi-dashboard-v190 > div,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-kpi-v185 > div{
  background:var(--a3-night-surface)!important;
  border-color:var(--a3-night-border)!important;
}
html[data-theme="dark"] body .proc-dashboard-v190 .proc-pie-v190 span,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-pie-v190 span b,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-pie-v190 span small{
  color:var(--a3-night-text)!important;
  -webkit-text-fill-color:var(--a3-night-text)!important;
}
html[data-theme="dark"] body .proc-dashboard-v190 .proc-dashboard-title-v190,
html[data-theme="dark"] body .proc-dashboard-v190 .proc-dashboard-title-v190 *{
  background:var(--a3-night-header)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* ---------- Home ---------- */
html[data-theme="dark"] body.home-no-header-v1845,
html[data-theme="dark"] body .home-gemini-v124{
  background:#212121!important;
  background-color:#212121!important;
  background-image:none!important;
}
html[data-theme="dark"] body .home-gemini-glow-v124{display:none!important;}
html[data-theme="dark"] body .home-gemini-inner-v124 h1{
  color:#f3f3f3!important;
  -webkit-text-fill-color:#f3f3f3!important;
}
html[data-theme="dark"] body .home-gemini-search-v124,
html[data-theme="dark"] body .home-part-ai-button-v25912{
  background:#2f2f2f!important;
  border-color:#555!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .home-gemini-search-v124 input,
html[data-theme="dark"] body .home-gemini-search-v124 select{
  background:transparent!important;
  border-color:transparent!important;
}
html[data-theme="dark"] body .home-gemini-shortcuts-v124 a{
  background:#2b2b2b!important;
  border-color:#4b4b4b!important;
  color:#e8e8e8!important;
  -webkit-text-fill-color:#e8e8e8!important;
}
html[data-theme="dark"] body .home-gemini-shortcuts-v124 a:hover{background:#353535!important;}

/* ---------- Login ---------- */
html[data-theme="dark"] body.login-page{
  background:#212121!important;
  color:#ececec!important;
}
html[data-theme="dark"] body.login-page .login-card{
  background:#2f2f2f!important;
  background-color:#2f2f2f!important;
  background-image:none!important;
  border-color:#505050!important;
  box-shadow:0 20px 60px rgba(0,0,0,.38)!important;
}
html[data-theme="dark"] body.login-page .login-card h1,
html[data-theme="dark"] body.login-page .login-card label{
  color:#f0f0f0!important;
  -webkit-text-fill-color:#f0f0f0!important;
}

/* ---------- Alerts / chips / pagination ---------- */
html[data-theme="dark"] body .alert:not(.danger):not(.success),
html[data-theme="dark"] body .chip,
html[data-theme="dark"] body .tag,
html[data-theme="dark"] body .summary-chip{
  background:#303030!important;
  color:#eee!important;
  -webkit-text-fill-color:#eee!important;
  border-color:#505050!important;
}
html[data-theme="dark"] body .alert.success{background:#153b2a!important;color:#a7f3d0!important;-webkit-text-fill-color:#a7f3d0!important;border-color:#276749!important;}
html[data-theme="dark"] body .alert.danger{background:#402020!important;color:#fecaca!important;-webkit-text-fill-color:#fecaca!important;border-color:#7f1d1d!important;}
html[data-theme="dark"] body .pagination a,
html[data-theme="dark"] body .pagination span{
  background:#292929!important;
  color:#e8e8e8!important;
  -webkit-text-fill-color:#e8e8e8!important;
  border-color:#505050!important;
}
html[data-theme="dark"] body .pagination a.active{
  background:#2f7edb!important;
  border-color:#2f7edb!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* ---------- Horizontal rules / dividers ---------- */
html[data-theme="dark"] body hr,
html[data-theme="dark"] body .divider,
html[data-theme="dark"] body [class*="separator"]{
  border-color:#444!important;
}

/* ---------- Images and code ---------- */
html[data-theme="dark"] body pre,
html[data-theme="dark"] body code{
  background:#1d1d1d!important;
  color:#e5e5e5!important;
  border-color:#444!important;
}

/* ---------- Responsive header ---------- */
@media (min-width:901px){
  body .topbar.topbar-v11 .top-actions .area3-theme-toggle-v25927{
    flex:0 0 32px!important;
    padding:0!important;
    margin-left:-8px!important;
    margin-right:-10px!important;
    align-self:center!important;
  }
}
@media (max-width:900px){
  .area3-mobile-account-actions-v25927{display:flex!important;}
}

/* ---------- Printing is always Day Mode ---------- */
@media print{
  html[data-theme="dark"],
  html[data-theme="dark"] body,
  html[data-theme="dark"] .app{
    background:#fff!important;
    color:#111!important;
    -webkit-text-fill-color:#111!important;
  }
  .area3-theme-toggle-v25927{display:none!important;}
}
