/* STRONG LMB 360 v18.2.11
   Dark Mode Screen Perfecting Authority
   Scope: CSS-only visual refinement for dark mode. No JS, data, routes or calculations changed.
*/

html.strong-v1812-theme-dark,
body.strong-v1812-theme-dark,
.strong-v1812-theme-dark{
  color-scheme: dark;
  --dark-bg-0:#070d18;
  --dark-bg-1:#0a1220;
  --dark-bg-2:#0f1a2b;
  --dark-bg-3:#131f33;
  --dark-surface:rgba(15,26,43,.96);
  --dark-surface-2:rgba(19,31,51,.96);
  --dark-surface-3:rgba(23,38,62,.96);
  --dark-line:rgba(226,232,240,.13);
  --dark-line-2:rgba(226,232,240,.20);
  --dark-text:#edf4ff;
  --dark-text-2:#c8d5e8;
  --dark-muted:#9fb0c8;
  --dark-soft:#7f8fa7;
  --dark-gold:#f4cf72;
  --dark-gold-2:#ffe4a3;
  --dark-blue:#82caff;
  --dark-green:#8ee6b1;
  --dark-red:#ff9a91;
  --dark-orange:#ffc46f;
  --coop-paper:var(--dark-bg-1)!important;
  --coop-white:var(--dark-surface)!important;
  --coop-cream:var(--dark-bg-2)!important;
  --coop-ink:var(--dark-text)!important;
  --coop-deep:var(--dark-text)!important;
  --coop-graphite:var(--dark-text-2)!important;
  --coop-mist:var(--dark-muted)!important;
  --coop-line:var(--dark-line)!important;
  --coop-line-soft:rgba(226,232,240,.08)!important;
  --strong-bg:var(--dark-bg-1)!important;
  --strong-card:var(--dark-surface)!important;
  --strong-text:var(--dark-text)!important;
  --strong-muted:var(--dark-muted)!important;
  --strong-border:var(--dark-line)!important;
  --fs39r10-card:var(--dark-surface)!important;
  --fs39r10-line:var(--dark-line)!important;
  --fs39r10-primary:var(--dark-text)!important;
  --fs39r10-muted:var(--dark-muted)!important;
}

body.strong-v1812-theme-dark{
  background:
    radial-gradient(circle at 12% 0%, rgba(53,109,154,.19), transparent 33%),
    radial-gradient(circle at 88% 6%, rgba(244,207,114,.10), transparent 27%),
    radial-gradient(circle at 55% 100%, rgba(42,157,143,.08), transparent 32%),
    linear-gradient(180deg,var(--dark-bg-1),var(--dark-bg-0))!important;
  color:var(--dark-text)!important;
}

.strong-v1812-theme-dark *,
.strong-v1812-theme-dark *::before,
.strong-v1812-theme-dark *::after{border-color:var(--dark-line);} 

.strong-v1812-theme-dark .app,
.strong-v1812-theme-dark .main,
.strong-v1812-theme-dark main,
.strong-v1812-theme-dark .content,
.strong-v1812-theme-dark #content-area,
.strong-v1812-theme-dark .module-shell,
.strong-v1812-theme-dark .strong-v1812-shell{
  background:transparent!important;
  color:var(--dark-text)!important;
}

/* Typography and institutional hierarchy */
.strong-v1812-theme-dark h1,
.strong-v1812-theme-dark h2,
.strong-v1812-theme-dark h3,
.strong-v1812-theme-dark h4,
.strong-v1812-theme-dark h5,
.strong-v1812-theme-dark h6,
.strong-v1812-theme-dark .card-title,
.strong-v1812-theme-dark .card-title *,
.strong-v1812-theme-dark .page-head h1,
.strong-v1812-theme-dark .page-head h2,
.strong-v1812-theme-dark .page-head h3,
.strong-v1812-theme-dark .fs39r10-strip-main strong,
.strong-v1812-theme-dark .num,
.strong-v1812-theme-dark .val,
.strong-v1812-theme-dark .value,
.strong-v1812-theme-dark .kpi-value,
.strong-v1812-theme-dark .kpi-card strong,
.strong-v1812-theme-dark .kpi-box strong,
.strong-v1812-theme-dark .strong-v1352-kpi strong,
.strong-v1812-theme-dark .strong-v1352-spreads b{
  color:var(--dark-text)!important;
}
.strong-v1812-theme-dark p,
.strong-v1812-theme-dark span,
.strong-v1812-theme-dark small,
.strong-v1812-theme-dark .muted,
.strong-v1812-theme-dark .meta,
.strong-v1812-theme-dark .lbl,
.strong-v1812-theme-dark .label,
.strong-v1812-theme-dark .kpi-label,
.strong-v1812-theme-dark .kpi-meta,
.strong-v1812-theme-dark .field-help,
.strong-v1812-theme-dark .narrative,
.strong-v1812-theme-dark .academy-muted,
.strong-v1812-theme-dark .dlab-note,
.strong-v1812-theme-dark .fs39r2-sync p,
.strong-v1812-theme-dark .fs39r2-full-comparator>p{
  color:var(--dark-muted)!important;
}
.strong-v1812-theme-dark .eyebrow,
.strong-v1812-theme-dark .strong-v1812-kicker,
.strong-v1812-theme-dark .academy-kicker,
.strong-v1812-theme-dark .fs39r10-eyebrow,
.strong-v1812-theme-dark .nav-section-title{
  color:var(--dark-gold)!important;
}

/* Surfaces: catches old hard-coded light cards and module-specific shells */
.strong-v1812-theme-dark .card,
.strong-v1812-theme-dark .strong-v1812-card,
.strong-v1812-theme-dark .strong-ui-card,
.strong-v1812-theme-dark .panel,
.strong-v1812-theme-dark .box,
.strong-v1812-theme-dark .module-card,
.strong-v1812-theme-dark .metric-card,
.strong-v1812-theme-dark .mini-card,
.strong-v1812-theme-dark .kpi,
.strong-v1812-theme-dark .kpi-card,
.strong-v1812-theme-dark .kpi-box,
.strong-v1812-theme-dark .rate-v928-kpi,
.strong-v1812-theme-dark .rate-mode-card,
.strong-v1812-theme-dark .rate-v928-preview-box,
.strong-v1812-theme-dark .rate-v928-note,
.strong-v1812-theme-dark .academy-section,
.strong-v1812-theme-dark .academy-progress-card,
.strong-v1812-theme-dark .academy-hero,
.strong-v1812-theme-dark .academy-course,
.strong-v1812-theme-dark .academy-course-detail,
.strong-v1812-theme-dark .academy-lesson,
.strong-v1812-theme-dark .academy-lesson-card,
.strong-v1812-theme-dark .academy-practice-detail,
.strong-v1812-theme-dark .academy-assessment-detail,
.strong-v1812-theme-dark .academy-score-card,
.strong-v1812-theme-dark .professor-panel,
.strong-v1812-theme-dark .professor-hero,
.strong-v1812-theme-dark .professor-board,
.strong-v1812-theme-dark .formula-box,
.strong-v1812-theme-dark .dlab-kpi,
.strong-v1812-theme-dark .dlab-help,
.strong-v1812-theme-dark .dlab-report,
.strong-v1812-theme-dark .c360-score,
.strong-v1812-theme-dark .c360-rate-box,
.strong-v1812-theme-dark .c360-rate-note,
.strong-v1812-theme-dark .tl-card,
.strong-v1812-theme-dark .fs39r2-card,
.strong-v1812-theme-dark .fs39r10-card,
.strong-v1812-theme-dark .fs38r6-card,
.strong-v1812-theme-dark .fs39r6-card,
.strong-v1812-theme-dark .fs39-import-panel,
.strong-v1812-theme-dark .fs39-testbank-panel,
.strong-v1812-theme-dark .strong-v1351-panel,
.strong-v1812-theme-dark .strong-v1351-card,
.strong-v1812-theme-dark .strong-v1352-client360-block,
.strong-v1812-theme-dark .strong-v1352-kpi,
.strong-v1812-theme-dark .strong-v1352-spreads div,
.strong-v1812-theme-dark .strong-v1352-grid section,
.strong-v1812-theme-dark .gen-help-section,
.strong-v1812-theme-dark .empty-state{
  background:linear-gradient(180deg,var(--dark-surface-2),var(--dark-surface))!important;
  border:1px solid var(--dark-line)!important;
  box-shadow:0 18px 46px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.025)!important;
  color:var(--dark-text)!important;
}
.strong-v1812-theme-dark .card:hover,
.strong-v1812-theme-dark .kpi:hover,
.strong-v1812-theme-dark .kpi-card:hover,
.strong-v1812-theme-dark .module-card:hover,
.strong-v1812-theme-dark .academy-course:hover,
.strong-v1812-theme-dark .academy-lesson-card:hover{
  border-color:rgba(244,207,114,.25)!important;
  box-shadow:0 24px 62px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.035)!important;
}

/* Specific light panels and strips */
.strong-v1812-theme-dark .card-cream,
.strong-v1812-theme-dark .card-deep,
.strong-v1812-theme-dark .strong-v1812-switch,
.strong-v1812-theme-dark .strong-v1812-hidden-note,
.strong-v1812-theme-dark .strong-v1812-help,
.strong-v1812-theme-dark .strong-v1812-source,
.strong-v1812-theme-dark .fs39r10-executive-strip,
.strong-v1812-theme-dark .fs39r10-strip-meta span,
.strong-v1812-theme-dark .fs39r2-summary>div,
.strong-v1812-theme-dark .strong-v1352-controls{
  background:linear-gradient(135deg,rgba(25,40,65,.94),rgba(14,24,40,.94))!important;
  border:1px solid var(--dark-line)!important;
  color:var(--dark-text)!important;
}

/* Tables: force all legacy white tables to dark institutional tables */
.strong-v1812-theme-dark .table-wrap,
.strong-v1812-theme-dark .table,
.strong-v1812-theme-dark .data-table,
.strong-v1812-theme-dark .c360-table,
.strong-v1812-theme-dark .dlab-table,
.strong-v1812-theme-dark .fs39r10-table-wrap,
.strong-v1812-theme-dark .strong-v1352-table-wrap{
  background:rgba(10,18,32,.94)!important;
  border:1px solid var(--dark-line)!important;
  border-radius:16px!important;
  box-shadow:0 14px 34px rgba(0,0,0,.24)!important;
}
.strong-v1812-theme-dark table,
.strong-v1812-theme-dark .fs39r2-table,
.strong-v1812-theme-dark .fs39r10-table{
  background:transparent!important;
  color:var(--dark-text)!important;
}
.strong-v1812-theme-dark thead,
.strong-v1812-theme-dark thead tr,
.strong-v1812-theme-dark thead th,
.strong-v1812-theme-dark th,
.strong-v1812-theme-dark .fs39r2-table th,
.strong-v1812-theme-dark .fs39r10-table th,
.strong-v1812-theme-dark .strong-v1352-grid th{
  background:linear-gradient(180deg,#192941,#111c2f)!important;
  color:#f2f7ff!important;
  border-color:var(--dark-line-2)!important;
}
.strong-v1812-theme-dark tbody tr,
.strong-v1812-theme-dark tbody td,
.strong-v1812-theme-dark td,
.strong-v1812-theme-dark .fs39r2-table td,
.strong-v1812-theme-dark .fs39r10-table td,
.strong-v1812-theme-dark .strong-v1352-grid td{
  background:transparent!important;
  color:var(--dark-text-2)!important;
  border-color:rgba(226,232,240,.08)!important;
}
.strong-v1812-theme-dark tbody tr:nth-child(even) td{background:rgba(255,255,255,.025)!important;}
.strong-v1812-theme-dark tbody tr:hover td,
.strong-v1812-theme-dark tbody tr:hover{background:rgba(244,207,114,.075)!important;color:#fff!important;}
.strong-v1812-theme-dark tr.total td,
.strong-v1812-theme-dark tr.subtotal td,
.strong-v1812-theme-dark .total,
.strong-v1812-theme-dark .subtotal{
  background:rgba(130,202,255,.09)!important;
  color:#f4f8ff!important;
  font-weight:900!important;
}

/* Forms */
.strong-v1812-theme-dark input,
.strong-v1812-theme-dark select,
.strong-v1812-theme-dark textarea,
.strong-v1812-theme-dark .field input,
.strong-v1812-theme-dark .field select,
.strong-v1812-theme-dark .field textarea,
.strong-v1812-theme-dark .form-field input,
.strong-v1812-theme-dark .form-field select,
.strong-v1812-theme-dark .form-field textarea,
.strong-v1812-theme-dark .dlab-field input,
.strong-v1812-theme-dark .dlab-field select,
.strong-v1812-theme-dark .strong-v1352-controls input{
  background:#091322!important;
  color:var(--dark-text)!important;
  border:1px solid rgba(226,232,240,.16)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.strong-v1812-theme-dark input:focus,
.strong-v1812-theme-dark select:focus,
.strong-v1812-theme-dark textarea:focus{
  border-color:rgba(244,207,114,.62)!important;
  box-shadow:0 0 0 3px rgba(244,207,114,.13), inset 0 1px 0 rgba(255,255,255,.035)!important;
  outline:none!important;
}
.strong-v1812-theme-dark label,
.strong-v1812-theme-dark .field label,
.strong-v1812-theme-dark .form-field label,
.strong-v1812-theme-dark .dlab-field label,
.strong-v1812-theme-dark .strong-v1352-controls label{color:var(--dark-text-2)!important;}
.strong-v1812-theme-dark option{background:#101a2b!important;color:var(--dark-text)!important;}
.strong-v1812-theme-dark ::placeholder{color:rgba(200,213,232,.55)!important;opacity:1;}

/* Buttons, tabs, chips */
.strong-v1812-theme-dark button,
.strong-v1812-theme-dark .btn,
.strong-v1812-theme-dark .academy-back,
.strong-v1812-theme-dark .strong-help-action,
.strong-v1812-theme-dark .mc-type-btn,
.strong-v1812-theme-dark .strong-v1352-kpi button,
.strong-v1812-theme-dark .strong-v1352-actions button,
.strong-v1812-theme-dark .strong-v1351-close{
  background:rgba(226,232,240,.075)!important;
  color:var(--dark-text)!important;
  border:1px solid rgba(226,232,240,.16)!important;
}
.strong-v1812-theme-dark button:hover,
.strong-v1812-theme-dark .btn:hover,
.strong-v1812-theme-dark .academy-back:hover,
.strong-v1812-theme-dark .strong-help-action:hover{
  background:rgba(244,207,114,.13)!important;
  border-color:rgba(244,207,114,.32)!important;
}
.strong-v1812-theme-dark .btn-primary,
.strong-v1812-theme-dark .primary,
.strong-v1812-theme-dark .tl-primary,
.strong-v1812-theme-dark button.btn-primary{
  background:linear-gradient(135deg,#2b5b83,#1a4b40)!important;
  color:#fff!important;
  border-color:rgba(226,232,240,.12)!important;
}
.strong-v1812-theme-dark .btn-gold{
  background:linear-gradient(135deg,#f6d37b,#d9ab38)!important;
  color:#0f1a2b!important;
  border-color:rgba(255,228,163,.35)!important;
}
.strong-v1812-theme-dark .btn-danger,
.strong-v1812-theme-dark .danger button{
  background:linear-gradient(135deg,#ba5149,#89322e)!important;
  color:#fff!important;
}
.strong-v1812-theme-dark .badge,
.strong-v1812-theme-dark .pill,
.strong-v1812-theme-dark .strong-v1812-pill,
.strong-v1812-theme-dark .dlab-pill,
.strong-v1812-theme-dark .c360-pill,
.strong-v1812-theme-dark .strong-v924-pill,
.strong-v1812-theme-dark .label-tag,
.strong-v1812-theme-dark .profile,
.strong-v1812-theme-dark .academy-topic-pills span,
.strong-v1812-theme-dark code{
  background:rgba(226,232,240,.075)!important;
  color:var(--dark-text)!important;
  border:1px solid rgba(226,232,240,.14)!important;
}
.strong-v1812-theme-dark .badge-success,
.strong-v1812-theme-dark .ok,
.strong-v1812-theme-dark .success,
.strong-v1812-theme-dark .pos{color:var(--dark-green)!important;background:rgba(142,230,177,.10)!important;border-color:rgba(142,230,177,.22)!important;}
.strong-v1812-theme-dark .badge-warn,
.strong-v1812-theme-dark .badge-warning,
.strong-v1812-theme-dark .warn{color:var(--dark-orange)!important;background:rgba(255,196,111,.10)!important;border-color:rgba(255,196,111,.22)!important;}
.strong-v1812-theme-dark .badge-danger,
.strong-v1812-theme-dark .bad,
.strong-v1812-theme-dark .danger,
.strong-v1812-theme-dark .neg{color:var(--dark-red)!important;background:rgba(255,154,145,.10)!important;border-color:rgba(255,154,145,.22)!important;}
.strong-v1812-theme-dark .badge-info,
.strong-v1812-theme-dark .info{color:var(--dark-blue)!important;background:rgba(130,202,255,.10)!important;border-color:rgba(130,202,255,.22)!important;}

/* Alerts and helper sections */
.strong-v1812-theme-dark .alert,
.strong-v1812-theme-dark .notice,
.strong-v1812-theme-dark .note,
.strong-v1812-theme-dark .fs39-note,
.strong-v1812-theme-dark .fs39r2-alert,
.strong-v1812-theme-dark .fs38r6-alert,
.strong-v1812-theme-dark .fs39r6-alert,
.strong-v1812-theme-dark .strong-v1812-warning,
.strong-v1812-theme-dark .academy-error-box{
  background:rgba(244,207,114,.08)!important;
  border:1px solid rgba(244,207,114,.22)!important;
  color:var(--dark-text)!important;
}
.strong-v1812-theme-dark .alert.danger,
.strong-v1812-theme-dark .fs39r2-alert.danger,
.strong-v1812-theme-dark .fs38r6-alert.danger,
.strong-v1812-theme-dark .fs39r6-alert.danger{
  background:rgba(255,154,145,.08)!important;
  border-color:rgba(255,154,145,.24)!important;
}

/* Navigation and header refinement */
.strong-v1812-theme-dark header.topbar,
.strong-v1812-theme-dark .topbar{
  background:rgba(8,15,27,.88)!important;
  border-bottom:1px solid rgba(226,232,240,.12)!important;
  box-shadow:0 18px 46px rgba(0,0,0,.34)!important;
  backdrop-filter:blur(18px) saturate(140%);
}
.strong-v1812-theme-dark .sidebar,
.strong-v1812-theme-dark aside,
.strong-v1812-theme-dark .side-nav{
  background:linear-gradient(180deg,#0c1828,#07101c)!important;
  color:var(--dark-text)!important;
  border-color:rgba(226,232,240,.11)!important;
}
.strong-v1812-theme-dark .nav-item,
.strong-v1812-theme-dark .nav-category-toggle,
.strong-v1812-theme-dark .sidebar a,
.strong-v1812-theme-dark .side-nav a{
  color:rgba(237,244,255,.82)!important;
}
.strong-v1812-theme-dark .nav-item:hover,
.strong-v1812-theme-dark .nav-category-toggle:hover,
.strong-v1812-theme-dark .sidebar a:hover{
  background:rgba(226,232,240,.075)!important;
  color:#fff!important;
}
.strong-v1812-theme-dark .nav-item.active,
.strong-v1812-theme-dark .nav-category-toggle.active,
.strong-v1812-theme-dark .sidebar a.active{
  background:linear-gradient(90deg,rgba(244,207,114,.20),rgba(130,202,255,.075))!important;
  color:#fff!important;
  border-color:rgba(244,207,114,.24)!important;
}

/* Modals and overlays */
.strong-v1812-theme-dark .modal,
.strong-v1812-theme-dark .modal-content,
.strong-v1812-theme-dark .dropdown,
.strong-v1812-theme-dark .popover,
.strong-v1812-theme-dark .toast,
.strong-v1812-theme-dark .strong-v1351-modal,
.strong-v1812-theme-dark .strong-v1352-modal{
  background:linear-gradient(180deg,var(--dark-surface-2),var(--dark-bg-2))!important;
  color:var(--dark-text)!important;
  border:1px solid var(--dark-line-2)!important;
  box-shadow:0 34px 90px rgba(0,0,0,.55)!important;
}
.strong-v1812-theme-dark .modal-backdrop,
.strong-v1812-theme-dark .strong-v1351-modal-backdrop,
.strong-v1812-theme-dark .strong-v1352-modal-backdrop{background:rgba(2,6,13,.66)!important;}
.strong-v1812-theme-dark .strong-v1351-info-btn,
.strong-v1812-theme-dark .strong-v1351-modal-close,
.strong-v1812-theme-dark .strong-v1352-close{background:#142238!important;color:#fff!important;border:1px solid var(--dark-line)!important;}

/* Scrollbars and selection */
.strong-v1812-theme-dark hr,
.strong-v1812-theme-dark .divider{border-color:rgba(226,232,240,.11)!important;}
.strong-v1812-theme-dark ::selection{background:rgba(244,207,114,.34);color:#fff;}
.strong-v1812-theme-dark ::-webkit-scrollbar{width:10px;height:10px;}
.strong-v1812-theme-dark ::-webkit-scrollbar-track{background:rgba(255,255,255,.035);}
.strong-v1812-theme-dark ::-webkit-scrollbar-thumb{background:rgba(226,232,240,.20);border-radius:999px;}
.strong-v1812-theme-dark ::-webkit-scrollbar-thumb:hover{background:rgba(244,207,114,.34);}

@media print{
  .strong-v1812-theme-dark *{background:white!important;color:#111!important;box-shadow:none!important;}
}
