:root {
  --su-ink: #172c3b;
  --su-muted: #586c7b;
  --su-teal: #0b716d;
  --su-teal-dark: #075651;
  --su-gold: #f4ba58;
  --su-line: #dce5ea;
  --su-surface: #ffffff;
  --su-page: #f3f6f8;
  --su-raised: #eef3f6;
  --bs-body-font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --bs-body-color: var(--su-ink);
  --bs-body-bg: #f3f6f8;
  --bs-primary: #0b716d;
  --bs-primary-rgb: 11, 113, 109;
  --bs-link-color: #086c68;
  --bs-link-hover-color: #064e4b;
  --bs-border-color: var(--su-line);
  --bs-border-radius: .65rem;
  --bs-border-radius-lg: 1rem;
}

body { margin: 0; min-height: 100vh; line-height: 1.6; font-family: var(--bs-body-font-family); color: var(--su-ink); background-color: var(--su-page); }
h1, h2, h3, h4, h5, h6 { color: var(--su-ink); font-weight: 650; line-height: 1.25; letter-spacing: -.025em; }
h1, .h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
a { text-underline-offset: .2em; }
.text-muted, .form-text { color: var(--su-muted) !important; }
.small, small { line-height: 1.55; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 4000; padding: .7rem 1rem; background: white; color: var(--su-teal); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid #ad751d; outline-offset: 3px; }

.app-navbar { background: #122c3b; border-bottom: 3px solid var(--su-gold); padding: .85rem 0; margin-bottom: 0 !important; }
.app-navbar > .container-fluid { max-width: 1580px; padding-inline: 2rem; gap: 1.5rem; }
.app-navbar .navbar-brand { gap: .7rem; color: white; margin-right: 2rem; }
.brand-mark { background: white; border-radius: .6rem; padding: .35rem; display: flex; align-items: center; }
.brand-mark img { height: 32px; width: auto; max-width: 120px; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.2; }
.brand-wordmark small { color: #c2d1da; font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; }
.app-navbar .navbar-nav { gap: .35rem; }
.app-navbar .nav-link { color: #d0dde5; font-size: .92rem; font-weight: 600; padding: .65rem 1rem !important; border-radius: .55rem; }
.app-navbar .nav-link:hover, .app-navbar .nav-link:focus, .app-navbar .nav-link.show { color: white; background: #ffffff12; }
.app-navbar .nav-link.active { color: white; background: #ffffff1c; box-shadow: inset 0 -2px var(--su-gold); }
.app-navbar .dropdown-menu { padding: .5rem; margin-top: .75rem; border: 1px solid var(--su-line); border-radius: .8rem; box-shadow: 0 12px 35px #122c3b20; min-width: 235px; }
.dropdown-item { padding: .6rem .8rem; font-size: .9rem; border-radius: .4rem; color: var(--su-ink); }
.dropdown-item:hover, .dropdown-item:focus { color: var(--su-teal-dark); background: #eaf4f2; }
.app-navbar .navbar-toggler { border-color: #7a909e; padding: .55rem; }
.app-navbar .navbar-toggler-icon { filter: invert(1) grayscale(1) brightness(2); }
.app-navbar #logoutBtn { border-color: #8aa0ae; color: #e2eaf0; padding: .45rem .9rem; }
.app-navbar #logoutBtn:hover { background: #ffffff18; border-color: #fff; color: #fff; }
body > .container { max-width: 1520px; padding: 2rem 2rem 3rem; min-height: 65vh; }
body > .container > main > .d-flex:first-child { margin-bottom: 1.6rem !important; }
.app-footer { border-top: 1px solid var(--su-line); padding: 1.5rem 2rem; color: var(--su-muted); font-size: .76rem; display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.app-footer strong { color: var(--su-ink); font-weight: 650; }

.card { border: 1px solid var(--su-line); border-radius: .95rem; box-shadow: 0 3px 14px #172c3b05; }
.card.shadow-sm { box-shadow: 0 3px 14px #172c3b08 !important; }
.card-body { padding: 1.4rem; }
.latest-run-errors-warning { border: 2px solid #d18a1b; }
.latest-run-errors-summary { cursor: pointer; padding: .8rem 1.4rem; }
.latest-run-errors-summary > span { margin-right: .5rem; }
.latest-run-errors-summary:focus-visible { outline: 3px solid var(--su-teal); outline-offset: -3px; border-radius: .8rem; }
.revenue-average { padding: .65rem; border: 1px solid var(--su-line); border-radius: .6rem; background: var(--su-raised); }
.card-header { padding: 1rem 1.4rem; background: #fafcfd; border-color: var(--su-line); font-size: .9rem; }
.card-header:first-child { border-radius: .9rem .9rem 0 0; }
.card > .table-responsive:last-child { border-radius: 0 0 .9rem .9rem; }
.border-primary { border-color: #9cc9c5 !important; }
.assignment-controls { padding: 1.25rem; background: #eef7f5; border: 1px solid #aacfc9; border-left: 4px solid var(--su-teal); border-radius: .7rem; }
.selection-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block: .75rem; padding: 1.25rem; background: var(--su-surface); color: var(--su-ink); border: 3px solid #a96308; border-left-width: 8px; border-radius: .8rem; box-shadow: 0 0 0 3px #dca23a33, 0 4px 16px #0002; }
.selection-action strong { display: block; margin-bottom: .3rem; }
.selection-action .btn { white-space: normal; }
.table-selection-action { position: sticky; top: .5rem; z-index: 1050; }
.driver-choice { min-width: min(260px, 100%); }
.assignment-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; list-style: none; counter-reset: assignment-step; padding: 0; margin: 1.25rem 0; }
.assignment-steps li { position: relative; padding-left: 2.4rem; counter-increment: assignment-step; }
.assignment-steps li::before { content: counter(assignment-step); position: absolute; top: .1rem; left: 0; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--su-teal); color: white; font-size: .8rem; font-weight: 700; }
.assignment-steps strong, .assignment-steps span { display: block; }
.assignment-steps strong { font-size: .88rem; }
.assignment-steps span { font-size: .78rem; color: var(--su-muted); margin-top: .25rem; }
.selection-section { border-top: 1px solid var(--su-line); padding-top: 1.4rem; margin-top: 1.4rem; }
#assignmentLegend svg { width: 18px; height: 18px; }
.legend-filter { background: transparent; border: 1px solid var(--su-line); border-radius: .35rem; color: inherit; padding: .2rem .4rem; }
.legend-filter:hover, .legend-filter[aria-pressed="true"] { border-color: var(--su-teal); background: var(--su-surface); }
.legend-filter:focus-visible { outline: 2px solid var(--su-teal); outline-offset: 2px; }
.column-sort { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; padding: .35rem .1rem; text-align: left; display: inline-flex; align-items: center; gap: .6rem; }
.column-sort:hover { color: var(--bs-link-color); }
.sort-indicator { font-size: 1rem; }
th[aria-sort="ascending"] .column-sort, th[aria-sort="descending"] .column-sort { color: var(--bs-link-color); }
.route-rate-scroll { max-height: 16rem; overflow: auto; }
.route-rate-table thead th { position: sticky; top: 0; z-index: 1; background: var(--bs-body-bg); }
.task-pill { border: 1px solid; padding: .5em .75em; }
.task-pickup { background: #d5f3ec; border-color: #21836d; color: #115643; }
.task-dropoff { background: #fce6cf; border-color: #bc7428; color: #7c400e; }
.table { --bs-table-bg: #fff; --bs-table-color: var(--su-ink); --bs-table-border-color: #e5ecf0; --bs-table-striped-bg: #f8fafb; --bs-table-hover-bg: #f0f7f6; font-size: .88rem; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .95rem 1rem; }
.table-sm > :not(caption) > * > * { padding: .7rem .85rem; }
.table > thead, .table-light { --bs-table-bg: #eef3f6; --bs-table-color: #445e6e; }
.table th { font-size: .73rem; letter-spacing: .025em; font-weight: 700; vertical-align: middle; }
.table-warning { --bs-table-bg: #fff4d9; --bs-table-hover-bg: #ffedc3; --bs-table-color: #574017; }
.table-responsive { scrollbar-width: thin; scrollbar-color: #adbdc8 #f3f6f8; }
.table td { overflow-wrap: anywhere; }
.table td .btn { overflow-wrap: normal; white-space: nowrap; }
.form-label { font-size: .8rem; font-weight: 650; color: #3f5666; margin-bottom: .4rem; }
.form-control, .form-select { border-color: #cbd8e1; background-color: #fff; color: var(--su-ink); padding: .65rem .85rem; font-size: .92rem; border-radius: .55rem; }
.form-control-sm, .form-select-sm { padding: .45rem .65rem; font-size: .84rem; }
.form-control:focus, .form-select:focus { border-color: #489a93; box-shadow: 0 0 0 .2rem #0b716d18; }
.form-control:disabled, .form-select:disabled { color: #607684; background: #edf2f5; }
.form-control::placeholder { color: #718391; opacity: 1; }
.form-check-input { border-color: #9cafba; cursor: pointer; }
.form-check-input:checked { background-color: var(--su-teal); border-color: var(--su-teal); }
.form-check-input:focus { border-color: var(--su-teal); box-shadow: 0 0 0 .2rem #0b716d20; }
.form-text { font-size: .76rem; }
textarea { line-height: 1.55 !important; }
.btn { font-weight: 600; font-size: .86rem; padding: .65rem 1rem; border-radius: .55rem; transition: background-color 140ms ease, box-shadow 140ms ease; }
.btn-sm, .btn-group-sm > .btn { padding: .4rem .7rem; font-size: .77rem; }
.btn-primary { --bs-btn-bg: #0b716d; --bs-btn-border-color: #0b716d; --bs-btn-hover-bg: #075651; --bs-btn-hover-border-color: #075651; --bs-btn-active-bg: #064a46; --bs-btn-active-border-color: #064a46; --bs-btn-disabled-bg: #0b716d; --bs-btn-disabled-border-color: #0b716d; --bs-btn-focus-shadow-rgb: 11,113,109; }
.btn-outline-primary { --bs-btn-color: #0b716d; --bs-btn-border-color: #64a49f; --bs-btn-hover-bg: #0b716d; --bs-btn-hover-border-color: #0b716d; --bs-btn-active-bg: #075651; --bs-btn-active-border-color: #075651; --bs-btn-disabled-color: #477e7a; --bs-btn-disabled-border-color: #9cbebc; }
.btn-outline-secondary { --bs-btn-color: #475f70; --bs-btn-border-color: #c3d1db; --bs-btn-hover-bg: #e8eff3; --bs-btn-hover-color: #172c3b; --bs-btn-hover-border-color: #9eb2c1; --bs-btn-active-bg: #dce7ed; --bs-btn-active-color: #172c3b; }
.btn-outline-info { --bs-btn-color: #285d7b; --bs-btn-border-color: #a5c4d6; --bs-btn-hover-bg: #eaf3fa; --bs-btn-hover-color: #163f57; --bs-btn-hover-border-color: #7ba7c1; }
.btn-success { --bs-btn-bg: #24734d; --bs-btn-border-color: #24734d; --bs-btn-hover-bg: #185b3a; --bs-btn-hover-border-color: #185b3a; }
.alert { border-radius: .7rem; padding: .95rem 1.15rem; font-size: .88rem; border-width: 1px; }
.alert-info, .alert-primary { color: #215c69; background: #eaf4f7; border-color: #c6e0e6; }
.alert-success { color: #205b3e; background: #edf8f1; border-color: #c9e6d3; }
.alert-warning { color: #755018; background: #fff7e6; border-color: #efdfb5; }
.alert-danger { color: #923c3c; background: #fff1f0; border-color: #edcecb; }
.badge { padding: .45em .65em; font-weight: 650; letter-spacing: .01em; border-radius: .35rem; }
.text-bg-success { color: #18593b !important; background-color: #ddf1e5 !important; }
.text-bg-warning { color: #775116 !important; background-color: #fff0c9 !important; }
.text-bg-secondary { color: #486171 !important; background-color: #e7edf1 !important; }
.nav-pills .nav-link { border-radius: .5rem; font-weight: 600; font-size: .85rem; }
.nav-pills .nav-link.active { background: var(--su-teal); }
.modal-content { border: 0; border-radius: 1rem; box-shadow: 0 25px 70px #122c3b30; }
.modal-header, .modal-footer { border-color: var(--su-line); padding: 1.2rem 1.4rem; }
.modal-body { padding: 1.4rem; }
.toast.text-bg-success .btn-close-white { filter: none; }
pre { background: #122c3b !important; color: #d9e6ed; border-color: #294655 !important; padding: 1rem !important; font-size: .78rem; border-radius: .6rem; }
.leaflet-container { font-family: var(--bs-body-font-family); border-color: var(--su-line) !important; border-radius: .8rem !important; }
.leaflet-container a { color: #086c68; }
.leaflet-tooltip, .leaflet-popup-content-wrapper { border-radius: .5rem; }
.bodyEditor, .emailPreview { border-color: var(--su-line) !important; border-radius: .7rem !important; }
#invoicesRunForm { width: 100%; background: white !important; border-color: var(--su-line) !important; border-radius: .95rem !important; padding: 1.5rem !important; margin-top: 1rem; }
#invoicesRunForm > .row { align-items: start !important; }
#invoicesRunForm .form-check { margin-top: 1.8rem; }
#invoicesRunForm #runNowBtn { margin-top: 1.6rem; }
#runType, #customersSelect { min-width: 0; }

.home-hero { background: #122c3b; color: #d5e3eb; border-radius: 1.2rem; padding: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; position: relative; overflow: hidden; }
.home-hero h1 { color: white; font-size: clamp(2rem, 4vw, 3.3rem); max-width: 700px; margin-block: .7rem 1rem; }
.home-hero p { max-width: 620px; margin: 0; }
.home-business-link { display: inline-flex; align-items: center; gap: .8rem; color: #ffda98; margin-top: 1.4rem; font-size: .88rem; font-weight: 650; text-decoration: none; }
.home-business-link:hover, .home-business-link:focus { color: #fff0d3; text-decoration: underline; }
.business-pillars { display: flex; flex-wrap: wrap; gap: .65rem 1.75rem; padding: 1.1rem .25rem .2rem; color: var(--su-muted); font-size: .8rem; }
.business-pillars span { display: inline-flex; gap: .55rem; align-items: center; }
.business-pillars span::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: #c48a2e; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 700; color: #936012; }
.home-hero .eyebrow { color: #f4c879; }
.home-sun { flex-shrink: 0; width: 140px; height: 140px; border: 1px solid #f4ba5845; border-radius: 50%; box-shadow: 0 0 0 24px #f4ba5809, 0 0 0 48px #f4ba5806; display: grid; place-items: center; }
.home-sun::after { content: ""; width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(150deg, #fbd38b, #dd9638); }
.auth-page { background: var(--su-page); }
.auth-page .wrap { min-height: 100vh; max-width: 1180px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding: 3rem; }
.auth-intro h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--su-ink); margin: 1.5rem 0 1rem; }
.auth-intro p { color: var(--su-muted); max-width: 440px; }
.auth-intro img { max-width: 180px; height: auto; background: white; border-radius: .7rem; padding: .7rem; }
.auth-panel { min-width: 0; }
.auth-page, .auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-panel #clerk-signin > div { max-width: 100%; }
.auth-panel code { overflow-wrap: anywhere; }
.auth-panel .error { background: white; color: var(--su-ink); padding: 1.5rem; border: 1px solid var(--su-line); border-radius: .85rem; overflow-wrap: anywhere; }

@media (min-width: 992px) {
  .app-navbar .dropdown:last-child .dropdown-menu { right: 0; left: auto; }
}
@media (max-width: 991.98px) {
  .app-navbar > .container-fluid { padding-inline: 1rem; gap: .5rem; }
  .app-navbar .navbar-brand { margin-right: 0; }
  .app-navbar .navbar-collapse { padding-top: 1rem; }
  .app-navbar .dropdown-menu { margin-top: .25rem; box-shadow: none; }
  .app-navbar #logoutBtn { margin-top: .8rem; }
  .auth-page .wrap { grid-template-columns: 1fr; gap: 2rem; max-width: 540px; padding: 2rem 1.25rem; }
  .auth-intro h1 { font-size: 2rem; }
}
@media (max-width: 575.98px) {
  body > .container { padding: 1.25rem 1rem 2rem; }
  .assignment-steps { grid-template-columns: 1fr; gap: .9rem; }
  .assignment-controls { padding: 1rem; }
  .driver-choice { width: 100%; }
  .card-body { padding: 1rem; }
  .card-header { padding: .85rem 1rem; }
  .app-footer { padding: 1.25rem 1rem; }
  .home-hero { padding: 1.75rem; }
  .home-sun { display: none; }
  #invoicesRunForm { padding: 1rem !important; }
  #invoicesRunForm .form-check, #invoicesRunForm #runNowBtn { margin-top: 0; }
  .brand-wordmark small { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.theme-control { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.theme-label { font-size: .75rem; color: var(--su-muted); }
.theme-picker { font: inherit; font-size: .8rem; color: var(--su-ink); background: var(--su-surface); border: 1px solid var(--su-line); border-radius: .5rem; padding: .5rem .65rem; cursor: pointer; }
.app-navbar .theme-label { color: #d0dde5; }
.theme-status { font-size: .75rem; flex-basis: 100%; max-width: 260px; color: var(--su-muted); }
.app-navbar .theme-status { color: #ffd18a; }
.theme-status:empty { display: none; }
.auth-panel .theme-control { margin-bottom: 1.5rem; }
.auth-intro .eyebrow { color: var(--su-muted) !important; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --su-page: #20272f;
  --su-surface: #2a333e;
  --su-raised: #333e4b;
  --su-ink: #e7eef5;
  --su-muted: #b3c2d0;
  --su-line: #485869;
}
:root[data-theme="midnight"] {
  color-scheme: dark;
  --su-page: #080e19;
  --su-surface: #101b2b;
  --su-raised: #19283d;
  --su-ink: #e2edff;
  --su-muted: #a8bbd6;
  --su-line: #2d425d;
}
:root[data-theme="light"] { color-scheme: light; }
:root:is([data-theme="dark"], [data-theme="midnight"]) {
  --bs-body-color: var(--su-ink);
  --bs-body-bg: var(--su-page);
  --bs-secondary-color: var(--su-muted);
  --bs-tertiary-bg: var(--su-raised);
  --bs-secondary-bg: var(--su-raised);
  --bs-emphasis-color: var(--su-ink);
  --bs-border-color: var(--su-line);
  --bs-link-color: #84d8ce;
  --bs-link-hover-color: #b7eee7;
}
:root[data-theme="midnight"] .app-navbar { background: #050a12; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .card,
:root:is([data-theme="dark"], [data-theme="midnight"]) .modal-content,
:root:is([data-theme="dark"], [data-theme="midnight"]) .dropdown-menu,
:root:is([data-theme="dark"], [data-theme="midnight"]) .auth-panel .error { color: var(--su-ink); background: var(--su-surface); }
:root:is([data-theme="dark"], [data-theme="midnight"]) .card-header { background: var(--su-raised); }
:root:is([data-theme="dark"], [data-theme="midnight"]) :is(.bg-light, .bg-white),
:root:is([data-theme="dark"], [data-theme="midnight"]) #invoicesRunForm { background: var(--su-surface) !important; color: var(--su-ink); }
:root:is([data-theme="dark"], [data-theme="midnight"]) .table {
  --bs-table-bg: var(--su-surface);
  --bs-table-color: var(--su-ink);
  --bs-table-border-color: var(--su-line);
  --bs-table-striped-bg: var(--su-raised);
  --bs-table-striped-color: var(--su-ink);
  --bs-table-hover-bg: var(--su-raised);
  --bs-table-hover-color: var(--su-ink);
}
:root:is([data-theme="dark"], [data-theme="midnight"]) :is(.table > thead, .table-light) { --bs-table-bg: var(--su-raised); --bs-table-color: var(--su-muted); }
:root:is([data-theme="dark"], [data-theme="midnight"]) .table-warning { --bs-table-bg: #514222; --bs-table-color: #fff0c9; --bs-table-hover-bg: #5e4b25; --bs-table-hover-color: #fff0c9; }
:root:is([data-theme="dark"], [data-theme="midnight"]) :is(.form-control, .form-select) { color: var(--su-ink); background-color: var(--su-page); border-color: var(--su-line); }
:root:is([data-theme="dark"], [data-theme="midnight"]) :is(.form-control, .form-select):disabled { background-color: var(--su-raised); color: var(--su-muted); }
:root:is([data-theme="dark"], [data-theme="midnight"]) .form-control::placeholder { color: var(--su-muted); }
:root:is([data-theme="dark"], [data-theme="midnight"]) .form-label { color: var(--su-muted); }
:root:is([data-theme="dark"], [data-theme="midnight"]) .assignment-controls { background: var(--su-raised); border-color: #4c8b83; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .selection-action { border-color: #f4c465; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .task-pickup { background: #124b43; border-color: #51d4b4; color: #b4ffe9; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .task-dropoff { background: #5c3514; border-color: #ffba62; color: #ffe0b3; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .dropdown-item:hover,
:root:is([data-theme="dark"], [data-theme="midnight"]) .dropdown-item:focus { color: #b7eee7; background: var(--su-raised); }
:root:is([data-theme="dark"], [data-theme="midnight"]) .btn-outline-primary { --bs-btn-color: #9be2d9; --bs-btn-border-color: #639f9b; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .btn-outline-secondary { --bs-btn-color: #c6d7e6; --bs-btn-border-color: #7a91a6; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .btn-outline-info { --bs-btn-color: #afd9f5; --bs-btn-border-color: #688fab; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .btn-outline-danger { --bs-btn-color: #ffb3b3; --bs-btn-border-color: #be7373; }
:root:is([data-theme="dark"], [data-theme="midnight"]) :is(.alert-info, .alert-primary) { color: #b4e4ec; background: #153642; border-color: #3a6672; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .alert-success { color: #bde5c9; background: #193c2c; border-color: #3b6a50; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .alert-warning { color: #f6dfab; background: #45371f; border-color: #79653a; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .alert-danger { color: #ffcccc; background: #49282c; border-color: #85535b; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .eyebrow { color: #f4c879; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .text-primary { color: #9be2d9 !important; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .text-danger { color: #ffb3b3 !important; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .text-success { color: #a4deba !important; }
.leaflet-div-icon { color: #172c3b; }
:root:is([data-theme="dark"], [data-theme="midnight"]) :is(.emailPreview, .bodyEditor) { background: #fff !important; color-scheme: light; }
:root:is([data-theme="dark"], [data-theme="midnight"]) .leaflet-popup-content-wrapper,
:root:is([data-theme="dark"], [data-theme="midnight"]) .leaflet-popup-tip,
:root:is([data-theme="dark"], [data-theme="midnight"]) .leaflet-tooltip { background: var(--su-surface); color: var(--su-ink); border-color: var(--su-line); }
