/* Optional dark theme. Rules apply only under html.t31-dark. Light mode is untouched. */
html.t31-dark { color-scheme: dark; }
html.t31-dark .t31-console,
html.t31-dark .t31-record,
html.t31-dark .t31-app,
html.t31-dark .t31-page,
html.t31-dark .t31-home,
html.t31-dark .t31-setup,
html.t31-dark .t31-deal,
html.t31-dark .t31-company,
html.t31-dark .t31-mail,
html.t31-dark .t31-mandate-app,
html.t31-dark .t31-ws,
html.t31-dark .t31-research-app,
html.t31-dark .t31-research-settings {
  --t31-ink: #F5F1E8;
  --t31-muted: #E7E1D4;
  --t31-bg: #0A1426;
  --t31-surface: #13233D;
  --t31-line: rgba(245, 241, 232, .28);
  --t31-hairline: rgba(245, 241, 232, .28);
}
html.t31-dark,
html.t31-dark body,
html.t31-dark #wrapper,
html.t31-dark .content,
html.t31-dark .t31-console,
html.t31-dark .t31-console-body,
html.t31-dark #t31-console-main {
  background: #0A1426 !important;
  color: #F5F1E8 !important;
}
html.t31-dark .t31-console-top,
html.t31-dark .t31-console-nav,
html.t31-dark .t31-console-menu-list,
html.t31-dark .dropdown-menu,
html.t31-dark .panel_s,
html.t31-dark .panel,
html.t31-dark .panel-body,
html.t31-dark .modal-content,
html.t31-dark .popover,
html.t31-dark .bootstrap-select .dropdown-menu,
html.t31-dark .t31-card,
html.t31-dark .tw-bg-white,
html.t31-dark .t31tk-stat,
html.t31-dark .t31tk-panel,
html.t31-dark .t31tk-card,
html.t31-dark header.top {
  background: #13233D !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .18) !important;
}
html.t31-dark .t31-console-top,
html.t31-dark #t31-app,
html.t31-dark .t31a-main,
html.t31-dark .t31-console-main {
  background: #0A1426 !important;
  color: #F5F1E8 !important;
  border-bottom: 1px solid rgba(245, 241, 232, .16);
}
html.t31-dark.t31x body #wrapper .content,
html.t31-dark .content.t31-wrap-tasks-floor,
html.t31-dark .t31-ops-tile,
html.t31-dark .t31-list-row,
html.t31-dark .t31-home-stage,
html.t31-dark .t31-home-split-row,
html.t31-dark #t31-console-main h1,
html.t31-dark .t31-console-main h1 {
  background: #13233D !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .18) !important;
}
html.t31-dark.t31x body #wrapper .content,
html.t31-dark .content.t31-wrap-tasks-floor,
html.t31-dark #t31-console-main {
  background: #0A1426 !important;
}
html.t31-dark #t31-app section,
html.t31-dark #t31-app li,
html.t31-dark #t31-app article,
html.t31-dark #t31-app .t31a-card,
html.t31-dark .t31a-list li,
html.t31-dark .t31-tasks-chip,
html.t31-dark .btn-default,
html.t31-dark .dt-buttons .btn {
  background: #13233D !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .18) !important;
}
html.t31-dark .t31-console-nav {
  background: #0E1A30 !important;
}
html.t31-dark .t31-console-nav a,
html.t31-dark .t31-console-user-name,
html.t31-dark .t31-console-menu-list a,
html.t31-dark h1, html.t31-dark h2, html.t31-dark h3, html.t31-dark h4,
html.t31-dark .t31-page-title,
html.t31-dark .t31tk-title,
html.t31-dark a.t31-list-name {
  color: #F5F1E8 !important;
}
html.t31-dark .t31-console-nav a:hover,
html.t31-dark .t31-console-nav a.is-active,
html.t31-dark .t31-tasks-view-link,
html.t31-dark .t31c-tab.is-active,
html.t31-dark a {
  color: #E2C48A !important;
}
html.t31-dark .t31-console-nav-link.is-active,
html.t31-dark .btn-primary,
html.t31-dark .t31-wrap-tasks-cta,
html.t31-dark .t31tk-cta {
  background: #E2C48A !important;
  border-color: #E2C48A !important;
  color: #0A1426 !important;
}
html.t31-dark .t31-console-search-input,
html.t31-dark input,
html.t31-dark textarea,
html.t31-dark select,
html.t31-dark .form-control,
html.t31-dark .bootstrap-select > .dropdown-toggle,
html.t31-dark .dataTables_filter input,
html.t31-dark .dataTables_length select {
  background: #101C33 !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .35) !important;
  box-shadow: none !important;
}
html.t31-dark input::placeholder,
html.t31-dark textarea::placeholder { color: #C9D4E4 !important; }
html.t31-dark input:focus,
html.t31-dark textarea:focus,
html.t31-dark select:focus,
html.t31-dark .form-control:focus {
  border-color: #F5F1E8 !important;
  outline: 2px solid #F5F1E8 !important;
  outline-offset: 1px;
}
html.t31-dark table,
html.t31-dark .table,
html.t31-dark table.dataTable,
html.t31-dark .dataTables_wrapper {
  background: transparent !important;
  color: #F5F1E8 !important;
}
html.t31-dark .table > thead > tr > th,
html.t31-dark table.dataTable thead th,
html.t31-dark .table > tbody > tr > td,
html.t31-dark table.dataTable tbody td {
  background: #13233D !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .14) !important;
}
html.t31-dark .table-hover > tbody > tr:hover > td,
html.t31-dark table.dataTable tbody tr:hover > td { background: #1B3054 !important; }
html.t31-dark .t31-muted,
html.t31-dark .text-muted,
html.t31-dark .t31tk-lede,
html.t31-dark .t31-console-crumb,
html.t31-dark .dataTables_info { color: #C9D4E4 !important; }
html.t31-dark .modal-header,
html.t31-dark .modal-footer,
html.t31-dark .dropdown-menu > li > a { color: #F5F1E8 !important; }
html.t31-dark .dropdown-menu > li > a:hover,
html.t31-dark .bootstrap-select .dropdown-menu li a:hover { background: #1B3054 !important; color: #F5F1E8 !important; }
html.t31-dark .t31-theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 12px; margin: 8px;
  border-radius: 10px; border: 1px solid rgba(245, 241, 232, .35);
  background: #101C33; color: #F5F1E8; font-weight: 650;
}
html.t31-dark .t31-theme-toggle[aria-pressed="true"] { background: #E2C48A; color: #0A1426; border-color: #E2C48A; }
.t31-theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 12px; margin: 8px;
  border-radius: 10px; border: 1px solid #0A1426;
  background: #F5F1E8; color: #0A1426; font-weight: 650;
}
html.t31-dark :focus-visible { outline: 2px solid #F5F1E8; outline-offset: 2px; }
html.t31-dark .t31-console-brand,
html.t31-dark header.top .brand {
  background: transparent;
}
html.t31-dark .t31-ops-n,
html.t31-dark .t31-ops-tile,
html.t31-dark .t31-home-stage,
html.t31-dark .t31-home-stage-n,
html.t31-dark .t31-list-name,
html.t31-dark .t31-list-row,
html.t31-dark .t31-list-row a,
html.t31-dark .t31-page-title {
  color: #F5F1E8 !important;
}
html.t31-dark h5,
html.t31-dark .t31-home-meta-label,
html.t31-dark .t31-ops-l,
html.t31-dark .t31-home-stage-l,
html.t31-dark .t31-list-meta,
html.t31-dark .t31-empty,
html.t31-dark .t31-kicker,
html.t31-dark .t31-home-cov-strip h5,
html.t31-dark .text-muted,
html.t31-dark .t31-muted {
  color: #E7E1D4 !important;
}
html.t31-dark iframe,
html.t31-dark embed,
html.t31-dark object,
html.t31-dark canvas,
html.t31-dark .pdf-view,
html.t31-dark img:not(.t31-console-brand img):not(header.top img) {
  filter: none !important;
}
html.t31-dark.t31x h1.t31-page-title,
html.t31-dark.t31x h1,
html.t31-dark.t31x h2,
html.t31-dark.t31x h3,
html.t31-dark .t31-ops-tile,
html.t31-dark .t31-list-row,
html.t31-dark .t31-list-row a,
html.t31-dark .t31-home-stage {
  color: #F5F1E8 !important;
}
html.t31-dark.t31x .t31-console-main,
html.t31-dark.t31x.t31-console-on #wrapper .content {
  background-color: #0A1426 !important;
  color: #F5F1E8 !important;
}
html.t31-dark.t31x .t31-console-main *,
html.t31-dark.t31x.t31-console-on #wrapper .content * {
  color: #F5F1E8 !important;
}
html.t31-dark.t31x .t31-console-main div,
html.t31-dark.t31x .t31-console-main section,
html.t31-dark.t31x .t31-console-main article,
html.t31-dark.t31x .t31-console-main li,
html.t31-dark.t31x .t31-console-main td,
html.t31-dark.t31x .t31-console-main th,
html.t31-dark.t31x.t31-console-on #wrapper .content div,
html.t31-dark.t31x.t31-console-on #wrapper .content section,
html.t31-dark.t31x.t31-console-on #wrapper .content li,
html.t31-dark.t31x.t31-console-on #wrapper .content td,
html.t31-dark.t31x.t31-console-on #wrapper .content th,
html.t31-dark.t31x .modal-content,
html.t31-dark.t31x .modal-content *,
html.t31-dark.t31x .dropdown-menu,
html.t31-dark.t31x .dropdown-menu *,
html.t31-dark.t31x .popover,
html.t31-dark.t31x .popover * {
  background-color: #13233D !important;
  color: #F5F1E8 !important;
}
html.t31-dark.t31x .t31-console-main a,
html.t31-dark.t31x .t31-console-main button,
html.t31-dark.t31x .t31-console-main span,
html.t31-dark.t31x .t31-console-main p,
html.t31-dark.t31x .t31-console-main label,
html.t31-dark.t31x .t31-console-main nav,
html.t31-dark.t31x .t31-console-main h1,
html.t31-dark.t31x .t31-console-main h2,
html.t31-dark.t31x .t31-console-main h3,
html.t31-dark.t31x .t31-console-main h4,
html.t31-dark.t31x .t31-console-main h5,
html.t31-dark.t31x .t31-console-main h6,
html.t31-dark.t31x.t31-console-on #wrapper .content a,
html.t31-dark.t31x.t31-console-on #wrapper .content button,
html.t31-dark.t31x.t31-console-on #wrapper .content span,
html.t31-dark.t31x.t31-console-on #wrapper .content p,
html.t31-dark.t31x.t31-console-on #wrapper .content label,
html.t31-dark.t31x.t31-console-on #wrapper .content nav,
html.t31-dark.t31x.t31-console-on #wrapper .content h1,
html.t31-dark.t31x.t31-console-on #wrapper .content h2,
html.t31-dark.t31x.t31-console-on #wrapper .content h3,
html.t31-dark.t31x.t31-console-on #wrapper .content h4,
html.t31-dark.t31x.t31-console-on #wrapper .content h5,
html.t31-dark.t31x.t31-console-on #wrapper .content h6 {
  background-color: #13233D !important;
  color: #F5F1E8 !important;
}
html.t31-dark.t31x .t31-console-main .btn-primary,
html.t31-dark.t31x .t31-console-main .t31-wrap-tasks-cta,
html.t31-dark.t31x .t31-console-main .t31tk-cta,
html.t31-dark.t31x.t31-console-on #wrapper .btn-primary,
html.t31-dark.t31x.t31-console-on #wrapper .t31-wrap-tasks-cta {
  background-color: #E2C48A !important;
  color: #0A1426 !important;
  border-color: #E2C48A !important;
}
html.t31-dark.t31x .t31-console-main input,
html.t31-dark.t31x .t31-console-main textarea,
html.t31-dark.t31x .t31-console-main select,
html.t31-dark.t31x .t31-console-main .form-control,
html.t31-dark.t31x.t31-console-on #wrapper input,
html.t31-dark.t31x.t31-console-on #wrapper textarea,
html.t31-dark.t31x.t31-console-on #wrapper select,
html.t31-dark.t31x.t31-console-on #wrapper .form-control {
  background-color: #101C33 !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .4) !important;
}
html.t31-dark.t31x .alert,
html.t31-dark.t31x .alert * {
  background-color: #3F2A1C !important;
  color: #F5F1E8 !important;
}
html.t31-dark.t31r-on {
  --r-ink: #F5F1E8;
  --r-mute: #E7E1D4;
  --r-card: #13233D;
}
html.t31-dark.t31x.t31r-on nav.t31r-nav > .t31c-tab,
html.t31-dark.t31x.t31r-on nav.t31r-nav > .t31c-tab.is-active,
html.t31-dark.t31x .t31-list-card .t31-list-meta,
html.t31-dark.t31x .t31-list-meta,
html.t31-dark.t31x .t31-console-tools > .t31-console-tool > a,
html.t31-dark.t31x .t31-console-tools > .t31-console-tool > li > a,
html.t31-dark.t31x .t31-console-tools a.dropdown-toggle,
html.t31-dark.t31x .t31-console-tools a.dropdown-toggle *,
html.t31-dark.t31x .t31a-tools > .t31a-tool > a,
html.t31-dark.t31x .t31a-tools > .t31a-tool > li > a,
html.t31-dark.t31x .t31a-tools a.dropdown-toggle,
html.t31-dark.t31x .t31a-tools a.dropdown-toggle * {
  color: #F5F1E8 !important;
  background-color: transparent !important;
}
html.t31-dark.t31x .dropdown-toggle,
html.t31-dark.t31x .bootstrap-select > .dropdown-toggle,
html.t31-dark.t31x.t31-console-on #wrapper a.dropdown-toggle,
html.t31-dark.t31x.t31-console-on #wrapper a.dropdown-toggle * {
  color: #F5F1E8 !important;
  background-color: #13233D !important;
}
/* Setup cards keep their own cream surface in the light stylesheet. Paint the whole card, not a bar behind the title. */
html.t31-dark.t31x .t31-setup.t31-hub a.t31-setup-card,
html.t31-dark.t31x .t31-hub--setup a.t31-setup-card,
html.t31-dark.t31x .t31-setup.t31-hub .t31-setup-card.t31-card {
  background: #13233D !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .28) !important;
}
html.t31-dark.t31x .t31-setup.t31-hub a.t31-setup-card .t31-setup-card-title,
html.t31-dark.t31x .t31-hub--setup a.t31-setup-card .t31-setup-card-title,
html.t31-dark.t31x .t31-setup.t31-hub a.t31-setup-card .t31-setup-card-meta,
html.t31-dark.t31x .t31-hub--setup a.t31-setup-card .t31-setup-card-meta,
html.t31-dark.t31x .t31-setup .t31-setup-step-title,
html.t31-dark.t31x .t31-setup .t31-setup-step-body,
html.t31-dark.t31x .t31-setup .t31-setup-step-help,
html.t31-dark.t31x .t31-setup .t31-setup-wizard-title,
html.t31-dark.t31x .t31-setup .t31w3-area-sub,
html.t31-dark.t31x .t31-setup .t31w3-area h2 {
  background: transparent !important;
  color: #F5F1E8 !important;
}
html.t31-dark.t31x .t31-setup.t31-hub a.t31-setup-card .t31-setup-card-meta,
html.t31-dark.t31x .t31-hub--setup a.t31-setup-card .t31-setup-card-meta,
html.t31-dark.t31x .t31-setup .t31-setup-step-help,
html.t31-dark.t31x .t31-setup .t31w3-area-sub {
  color: #E7E1D4 !important;
}
html.t31-dark .t31tk-stat {
  background: #13233D !important;
  color: #F5F1E8 !important;
}
html.t31-dark .t31tk-stat .t31tk-stat-l,
html.t31-dark .t31tk-stat .t31tk-stat-v,
html.t31-dark .t31tk-stat .t31tk-stat-s {
  background: transparent !important;
  color: #F5F1E8 !important;
}
html.t31-dark.t31-wrap-tasks .tw-grid > button {
  background: #13233D !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .28) !important;
}
html.t31-dark.t31-wrap-tasks .tw-grid > button span,
html.t31-dark.t31-wrap-tasks .tw-grid > button span[style*="color"],
html.t31-dark.t31x.t31-wrap-tasks #wrapper .tw-grid > button span[style*="color"] {
  background: transparent !important;
  color: #F5F1E8 !important;
}
html.t31-dark.t31x #wrapper [style*="rgb(59, 130, 246)"]:not([style*="background" i]):not(.cpicker):not(.fc-event):not(.fc-event *),
html.t31-dark.t31x #wrapper [style*="#03a9f4" i]:not([style*="background" i]):not(.cpicker):not(.fc-event):not(.fc-event *),
html.t31-dark.t31x #wrapper [style*="rgb(3, 169, 244)"]:not([style*="background" i]):not(.cpicker):not(.fc-event):not(.fc-event *),
html.t31-dark.t31x #wrapper [style*="#0048a8" i]:not([style*="background" i]):not(.cpicker):not(.fc-event):not(.fc-event *),
html.t31-dark.t31x #wrapper [style*="rgb(0, 72, 168)"]:not([style*="background" i]):not(.cpicker):not(.fc-event):not(.fc-event *),
html.t31-dark.t31x #wrapper [style*="#64748b" i]:not([style*="background" i]):not(.cpicker):not(.fc-event):not(.fc-event *) {
  color: #F5F1E8 !important;
}
html.t31-dark.t31x.t31-wrap-tasks #wrapper a.dropdown-toggle {
  color: #F5F1E8 !important;
  background: #1B3054 !important;
  border-color: rgba(245, 241, 232, .4) !important;
}
html.t31-dark.t31x body #wrapper #tasks a.dropdown-toggle[style*="03a9f4"],
html.t31-dark.t31x body #wrapper #tasks a.dropdown-toggle[style*="777"],
html.t31-dark.t31x body #wrapper #tasks a.dropdown-toggle[style*="fc2d42"],
html.t31-dark.t31x body #wrapper #tasks a.dropdown-toggle[style*="ff6f00"] {
  color: #F5F1E8 !important;
}
@media (max-width: 900px) {
  html.t31-dark.t31x .t31-console-top,
  html.t31-dark.t31x .t31a-top {
    background: #0A1426 !important;
  }
  html.t31-dark.t31x .t31-console-burger span,
  html.t31-dark.t31x .t31a-burger span {
    background: #F5F1E8 !important;
  }
}
@media print {
  html.t31-dark, html.t31-dark body, html.t31-dark #wrapper, html.t31-dark .content,
  html.t31-dark .panel-body, html.t31-dark table, html.t31-dark td, html.t31-dark th {
    background: #fff !important; color: #111 !important;
  }
  html.t31-dark .t31-console-top, html.t31-dark .t31-console-nav, html.t31-dark .t31-theme-toggle { display: none !important; }
}

/* ===== 2026-11-10 readability pass: dark tokens for every look, Path1 shell, legacy leaks ===== */
html.t31-dark.t31x {
  --x-ink: #F5F1E8;
  --x-ink-2: #E7E1D4;
  --x-muted: #C9D1E0;
  --x-faint: #AEB8C8;
  --x-card: #13233D;
  --x-card-2: #172A48;
  --x-paper: #0A1426;
  --x-paper-2: #1B2D4D;
  --x-ivory: #1D2F52;
  --x-hair: rgba(245, 241, 232, .14);
  --x-hair-2: rgba(245, 241, 232, .08);
  --x-accent: #9DB4FF;
  --x-accent-soft: rgba(157, 180, 255, .16);
  --x-good: #7CD6A6;
  --x-good-soft: rgba(124, 214, 166, .16);
  --x-warn: #F0BE73;
  --x-warn-soft: rgba(240, 190, 115, .16);
  --x-cold: #F4A08C;
  --x-cold-soft: rgba(244, 160, 140, .16);
  --fc-list-event-hover-bg-color: #1B3054;
}
html.t31-dark {
  --ink: #F5F1E8;
  --ink2: #E7E1D4;
  --mut: #C9D1E0;
  --line: rgba(245, 241, 232, .16);
  --paper: #0A1426;
  --goldink: #E2C48A;
}
html.t31-dark #t31-app {
  --t31-floor: #0A1426;
  --t31-ink: #F5F1E8;
  --t31-muted: #C9D1E0;
  --t31-line: rgba(245, 241, 232, .16);
  --t31-card: #13233D;
}
html.t31-dark .t31-console,
html.t31-dark .t31-record,
html.t31-dark .t31-app,
html.t31-dark .t31-page,
html.t31-dark .t31-hub {
  --t31-pill: #1D2F52;
  --t31-muted: #C9D1E0;
}
html.t31-dark.t31r-on {
  --r-line: rgba(245, 241, 232, .16);
  --r-soft: #1B2D4D;
  --r-mute: #C9D1E0;
}
html.t31-dark .t31tk {
  --k-ink: #F5F1E8; --k-ink2: #E7E1D4; --k-body: #E7E1D4; --k-muted: #C9D1E0;
  --k-paper: #0A1426; --k-paper2: #1B2D4D; --k-card: #13233D; --k-hair: rgba(245, 241, 232, .14);
}
html.t31-dark .t31tv-root {
  --ink: #F5F1E8; --ink2: #E7E1D4; --mut: #C9D1E0; --faint: rgba(245, 241, 232, .55);
  --cream: #0A1426; --kraft: #1B2D4D; --line: rgba(245, 241, 232, .14); --head: #13233D; --card: #13233D;
}
html.t31-dark .t31chat {
  --ink: #F5F1E8; --ink2: #E7E1D4; --mut: #C9D1E0; --line: rgba(245, 241, 232, .16); --line2: rgba(245, 241, 232, .10);
  --floor: #0A1426; --card: #13233D; --tc-soft: #1D2F52; --tc-soft2: #172A48;
}
html.t31-dark .t31w-tl { --ink: #F5F1E8; --mut: #C9D1E0; --line: rgba(245, 241, 232, .16); --soft: #1B2D4D; }
html.t31-dark .t31ai-launch,
html.t31-dark .t31ai-scrim {
  --a-card: #13233D; --a-card-2: #172A48; --a-paper: #0A1426; --a-paper-2: #1B2D4D;
  --a-ink: #F5F1E8; --a-ink-2: #E7E1D4; --a-muted: #C9D1E0; --a-hair: rgba(245, 241, 232, .14);
}

/* Path1 app shell (Home, Deals, deal pages): floor, top bar, search, avatar menu */
html.t31-dark .t31a-shell,
html.t31-dark .t31a-body,
html.t31-dark.t31x .t31a-main {
  background: #0A1426 !important;
  color: #F5F1E8 !important;
}
html.t31-dark .t31a-top,
html.t31-dark.t31x .t31a-top {
  background: #0B1629 !important;
  color: #F5F1E8 !important;
  border-bottom: 1px solid rgba(245, 241, 232, .12) !important;
  box-shadow: none !important;
}
html.t31-dark .t31a-search-input,
html.t31-dark.t31x .t31a-search-input {
  background: #13233D !important;
  color: #F5F1E8 !important;
  border: 1px solid rgba(245, 241, 232, .22) !important;
}
html.t31-dark .t31a-menu-list,
html.t31-dark .t31a-menu-list a {
  background: #13233D !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .18) !important;
}
html.t31-dark .t31a-menu-list a:hover,
html.t31-dark .t31a-menu-list a:focus-visible { background: #1B3054 !important; }
html.t31-dark .t31a-avatar,
html.t31-dark .t31-console-avatar {
  color: #0A1426 !important;
}

/* Muted copy, placeholders, kbd hints: one readable muted tone (>= 7:1 on #13233D) */
html.t31-dark input::placeholder,
html.t31-dark textarea::placeholder,
html.t31-dark .form-control::placeholder,
html.t31-dark .t31a-search-input::placeholder {
  color: #AEB8C8 !important;
  opacity: 1 !important;
}
html.t31-dark kbd,
html.t31-dark .t31x-kbd {
  background: #1D2F52 !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .22) !important;
}
html.t31-dark pre,
html.t31-dark code {
  background: #0E1A30 !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .16) !important;
}
html.t31-dark hr { border-color: rgba(245, 241, 232, .14) !important; }

/* Primary actions keep the gold fill with navy text; secondary buttons read as navy outlines */
html.t31-dark .btn-primary,
html.t31-dark .btn-primary * { color: #0A1426 !important; }
html.t31-dark .btn-default:hover,
html.t31-dark .btn-default:focus { background: #1B3054 !important; color: #F5F1E8 !important; }
html.t31-dark .label-default,
html.t31-dark .badge {
  background: #1D2F52 !important;
  color: #F5F1E8 !important;
}

/* Pagination and dataTables chrome */
html.t31-dark .pagination > li > a,
html.t31-dark .pagination > li > span,
html.t31-dark .paginate_button a {
  background: #13233D !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .18) !important;
}
html.t31-dark .pagination > .active > a,
html.t31-dark .paginate_button.active a {
  background: #E2C48A !important;
  color: #0A1426 !important;
  border-color: #E2C48A !important;
}

/* Modals and popovers: one navy surface, readable close button */
html.t31-dark .modal-content,
html.t31-dark .modal-header,
html.t31-dark .modal-body,
html.t31-dark .modal-footer {
  background: #13233D !important;
  color: #F5F1E8 !important;
  border-color: rgba(245, 241, 232, .16) !important;
}
html.t31-dark .modal-header .close,
html.t31-dark .close { color: #F5F1E8 !important; opacity: .85 !important; text-shadow: none !important; }
html.t31-dark .modal-backdrop.in { opacity: .6 !important; }

/* Bottom tab bar on phones */
html.t31-dark.t31x .t31x-tabbar { background: rgba(11, 22, 41, .97) !important; border: 1px solid rgba(245, 241, 232, .12); }

/* Deals board: no cream floor or cream edge fades behind the columns */
html.t31-dark .t31-board,
html.t31-dark #t31-app .t31-board {
  background: #0A1426 !important;
}
/* Top bar icons (messages, bell, timer, share) */
html.t31-dark .t31a-top a,
html.t31-dark .t31a-top button,
html.t31-dark .t31a-top a > i,
html.t31-dark .t31a-top a > svg,
html.t31-dark .t31a-top button > svg,
html.t31-dark .t31a-top .top-timers {
  color: #E7E1D4 !important;
}
html.t31-dark .t31a-top a.t31a-brand { color: #E2C48A !important; }
html.t31-dark .top-timers,
html.t31-dark .top-timers i,
html.t31-dark .t31a-top i,
html.t31-dark .notifications-icon i {
  color: #E7E1D4 !important;
}
/* Colour wordmark on the dark top bar: show the white wordmark instead */
html.t31-dark img[src*="/t31_console/assets/img/twelve31-logo.png"] {
  content: url("/modules/t31_console/assets/img/twelve31-logo-white.png?v=20261026");
}
html.t31-dark #t31-app .t31a-tools li,
html.t31-dark #t31-app .t31a-tools li.icon {
  background: transparent !important;
}
html.t31-dark #t31-app .t31a-tools #top-timers,
html.t31-dark #t31-app .t31a-tools #top-timers span,
html.t31-dark #t31-app .t31a-tools #top-timers i {
  color: #E7E1D4 !important;
}
