/* Светлая тема «Стальной терминал».
   Файл собран автоматически: tools/build_light_theme.py.
   Ручные правки — в theme-light-overrides.css. */

html[data-theme="light"] {
  --graphite: #b1b5b8;
  --panel: #e0e2e3;
  --panel-dark: #e5e6e7;
  --panel-alt: #e3e5e6;
  --ink: #212325;
  --muted: #636b72;
  --accent: #1f75ad;
  --accent-soft: rgba(37, 109, 156, 0.20);
  --steel: #636b72;
  --line: rgba(25, 38, 50, 0.11);
  --shadow: 0 18px 40px rgba(16, 26, 36, 0.19);
}

html[data-theme="light"] body {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(25, 38, 50, 0.09), transparent 60%),
    linear-gradient(160deg, #aaaeb2 0%, var(--graphite) 45%, #babdc0 100%);
}

html[data-theme="light"] .error {
  border: 1px solid rgba(189, 40, 40, 0.60);
  background: rgba(166, 58, 58, 0.30);
  color: #af1c1c;
}

html[data-theme="light"] .topbar {
  background: linear-gradient(180deg, #e2e4e5 0%, #e7e8e9 100%);
  border-bottom: 1px solid #d5d7d9;
  box-shadow: 0 10px 24px rgba(16, 26, 36, 0.19);
}

html[data-theme="light"] .brand-mark {
  border: 1px solid rgba(44, 130, 185, 0.44);
  background: linear-gradient(145deg, #dddee0, #e6e7e8);
  box-shadow: inset 0 1px 0 rgba(30, 42, 54, 0.06), inset 0 -2px 0 rgba(16, 26, 36, 0.30);
}

html[data-theme="light"] .brand-title {
  color: #3971b1;
  text-shadow: 0 1px 0 #1d1e1f, 0 -1px 0 rgba(30, 42, 54, 0.05);
}

html[data-theme="light"] .tabs button:hover {
  background: rgba(25, 38, 50, 0.04);
}

html[data-theme="light"] .tabs button.active {
  border-color: rgba(44, 130, 185, 0.44);
  background: linear-gradient(180deg, rgba(52, 88, 121, 0.11), rgba(52, 88, 121, 0.04));
  box-shadow: inset 0 1px 0 rgba(30, 42, 54, 0.06);
}

html[data-theme="light"] .tabs-scroll-zone.left {
  background: linear-gradient(90deg, rgba(240, 243, 246, 0.96), rgba(240, 243, 246, 0.30));
}

html[data-theme="light"] .tabs-scroll-zone.right {
  background: linear-gradient(270deg, rgba(240, 243, 246, 0.96), rgba(240, 243, 246, 0.30));
}

html[data-theme="light"] .tabs-scroll-zone:hover {
  background-color: rgba(52, 88, 121, 0.06);
}

html[data-theme="light"] .get-client-grid > div {
  background: #e7e8ea;
}

html[data-theme="light"] .get-client-grid b {
  color: #2c7fbd;
}

html[data-theme="light"] .topbar-note {
  color: #636b72;
}

html[data-theme="light"] .panel {
  background: repeating-linear-gradient(135deg, rgba(25, 38, 50, 0.04) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #dedfe1 0%, var(--panel) 55%, #e2e4e5 100%);
  border: 1px solid #d3d5d8;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(30, 42, 54, 0.05);
}

html[data-theme="light"] .panel-title {
  text-shadow: 0 1px 0 #1d1e1f, 0 -1px 0 rgba(30, 42, 54, 0.05);
}

html[data-theme="light"] .slot {
  background: linear-gradient(180deg, #e5e7e8, #e3e4e5);
  border: 1px solid #d4d6d9;
  border-top-color: rgba(25, 38, 50, 0.14);
  border-bottom-color: #d6d8db;
  box-shadow: inset 0 2px 6px rgba(16, 26, 36, 0.25), inset 0 -1px 0 rgba(30, 42, 54, 0.03);
}

html[data-theme="light"] .slot-label {
  color: #636b72;
}

html[data-theme="light"] .multi {
  background: #e9eaeb;
  border: 1px solid #d5d7da;
}

html[data-theme="light"] .multi.is-open {
  border-color: rgba(44, 130, 185, 0.60);
  box-shadow: 0 0 0 1px rgba(16, 26, 36, 0.08);
}

html[data-theme="light"] .chip {
  color: #337bb7;
  background: linear-gradient(180deg, #d7d9db, #dee0e1);
  border: 1px solid rgba(44, 130, 185, 0.35);
}

html[data-theme="light"] .chip button {
  color: #3a6e9a;
}

html[data-theme="light"] .chip button:hover {
  color: #131415;
}

html[data-theme="light"] .multi input::placeholder {
  color: #636b72;
}

html[data-theme="light"] .multi-caret {
  color: #636b72;
}

html[data-theme="light"] .dropdown {
  background: #e6e7e8;
  border: 1px solid #d5d8da;
  box-shadow: 0 18px 34px rgba(16, 26, 36, 0.30);
}

html[data-theme="light"] .dropdown-list {
  scrollbar-color: #2e4d6a #cfd2d5;
}

html[data-theme="light"] .dropdown-list::-webkit-scrollbar-track {
  background: #eaebec;
}

html[data-theme="light"] .dropdown-list::-webkit-scrollbar-thumb {
  background: #2c4862;
}

html[data-theme="light"] .dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #2c4862;
}

html[data-theme="light"] .dropdown-addall {
  border-bottom: 1px solid rgba(44, 130, 185, 0.22);
  background: rgba(52, 88, 121, 0.07);
}

html[data-theme="light"] .dropdown-addall:hover {
  background: rgba(52, 88, 121, 0.13);
}

html[data-theme="light"] .dropdown-item {
  border-bottom: 1px solid rgba(25, 38, 50, 0.07);
}

html[data-theme="light"] .dropdown-item:hover {
  background: rgba(52, 88, 121, 0.10);
}

html[data-theme="light"] .dropdown-item.selected {
  background: rgba(52, 88, 121, 0.08);
}

html[data-theme="light"] .dropdown-item.excluded .dropdown-main {
  color: #933838;
}

html[data-theme="light"] .dropdown-exclude {
  border-left: 1px solid rgba(25, 38, 50, 0.08);
  color: #636b72;
}

html[data-theme="light"] .dropdown-exclude:hover {
  color: #a62525;
  background: rgba(166, 58, 58, 0.08);
}

html[data-theme="light"] .dropdown-exclude.is-excluded {
  color: #ac1f1f;
  background: rgba(166, 58, 58, 0.11);
}

html[data-theme="light"] .chip-excluded {
  background: linear-gradient(180deg, #dee0e1, #e5e6e7);
  border-color: rgba(185, 44, 44, 0.44);
  color: #933838;
}

html[data-theme="light"] .chip-not {
  color: #a12a2a;
}

html[data-theme="light"] .range-values input {
  border: 1px solid #d5d7da;
  background: #e9eaeb;
}

html[data-theme="light"] .range-values span {
  color: #636b72;
}

html[data-theme="light"] .range-track::before {
  background: #eeeff0;
  box-shadow: inset 0 2px 4px rgba(16, 26, 36, 0.39), 0 1px 0 rgba(30, 42, 54, 0.04);
}

html[data-theme="light"] .range-fill {
  background: linear-gradient(180deg, #2c85bc, #2a5e7f);
  box-shadow: 0 0 10px rgba(16, 26, 36, 0.19);
}

html[data-theme="light"] .range-track input[type="range"]::-webkit-slider-thumb {
  background: linear-gradient(180deg, #4288bc, #a4a8ac 45%, #c0c3c6);
  border: 1px solid #d6d8db;
  box-shadow: inset 0 1px 0 #1d1e1f, 0 2px 6px rgba(16, 26, 36, 0.33);
}

html[data-theme="light"] .range-track input[type="range"]::-moz-range-thumb {
  background: linear-gradient(180deg, #4288bc, #a4a8ac 45%, #c0c3c6);
  border: 1px solid #d6d8db;
}

html[data-theme="light"] .range-limits {
  color: #636b72;
}

html[data-theme="light"] .free-search {
  background: #e9eaeb;
  border: 1px solid #d5d7da;
  box-shadow: inset 0 2px 6px rgba(16, 26, 36, 0.25);
}

html[data-theme="light"] .free-search input::placeholder {
  color: #636b72;
}

html[data-theme="light"] .ghost-btn {
  border: 1px solid #c6cacd;
  background: linear-gradient(180deg, rgba(25, 38, 50, 0.04), transparent);
  color: #25282a;
}

html[data-theme="light"] .find-btn {
  border: 1px solid #2d516b;
  color: #2084c9;
  background: linear-gradient(180deg, #28506b 0%, #244e6a 45%, #234f6a 100%);
  text-shadow: 0 1px 0 #1d1e1f;
  box-shadow: inset 0 1px 0 rgba(30, 42, 54, 0.16), inset 0 -3px 0 rgba(16, 26, 36, 0.22), 0 8px 18px rgba(16, 26, 36, 0.22);
}

html[data-theme="light"] .find-btn:hover {
  background: linear-gradient(180deg, #2b5e7e 0%, #254e69 45%, #234f6a 100%);
}

html[data-theme="light"] .find-btn:active {
  box-shadow: inset 0 3px 10px rgba(16, 26, 36, 0.33);
}

html[data-theme="light"] .table-title {
  color: #3e75ac;
  text-shadow: 0 1px 0 #1d1e1f;
}

html[data-theme="light"] .gear-btn {
  border: 1px solid #c6cacd;
  background: #e3e5e6;
}

html[data-theme="light"] .gear-menu {
  background: #e6e7e8;
  border: 1px solid #d5d8da;
  box-shadow: 0 18px 34px rgba(16, 26, 36, 0.30);
}

html[data-theme="light"] .table-wrap {
  border: 1px solid #d4d6d9;
  background: #e7e8e9;
}

html[data-theme="light"] thead th {
  color: #636b72;
  background: #e2e4e5;
  border-bottom: 1px solid #d5d7da;
}

html[data-theme="light"] thead th.sortable button:hover {
  text-shadow: 0 0 8px rgba(16, 26, 36, 0.28);
}

html[data-theme="light"] .sort-mark {
  color: #636b72;
}

html[data-theme="light"] tbody td {
  border-bottom: 1px solid rgba(25, 38, 50, 0.07);
  color: #222427;
}

html[data-theme="light"] tbody tr:hover {
  background: rgba(52, 88, 121, 0.06);
}

html[data-theme="light"] td a {
  color: #2385c2;
}

html[data-theme="light"] .pager button {
  border: 1px solid #c6cacd;
  background: #e3e5e6;
}

html[data-theme="light"] .export-btn {
  border: 1px solid #c5c8cb;
  background: linear-gradient(180deg, #dcdddf 0%, #e4e6e7 60%, #e9eaeb 100%);
  color: #3a78b0;
  text-shadow: 0 1px 0 #1d1e1f;
  box-shadow: inset 0 1px 0 rgba(30, 42, 54, 0.06), inset 0 -3px 0 rgba(16, 26, 36, 0.28);
}

html[data-theme="light"] .export-btn::after {
  background: linear-gradient(100deg, transparent, rgba(25, 38, 50, 0.09), transparent);
}

html[data-theme="light"] .export-btn:hover {
  color: #2084c9;
}

html[data-theme="light"] .period-switch {
  border: 1px solid #d4d6d9;
  background: #e9eaeb;
}

html[data-theme="light"] .period-switch button.active {
  background: linear-gradient(180deg, #d1d3d5, #dddfe0);
  color: #2580c5;
}

html[data-theme="light"] .flow-in {
  color: #2a7943;
}

html[data-theme="light"] .flow-out {
  color: #a02b2b;
}

html[data-theme="light"] .stack-item {
  border-bottom-color: rgba(25, 38, 50, 0.07);
  background: #e4e5e6;
}

html[data-theme="light"] .stack-item:hover {
  background: #e0e1e2;
}

html[data-theme="light"] .stack-item.selected {
  border-color: rgba(44, 130, 185, 0.56);
  background: rgba(52, 88, 121, 0.08);
  color: #257ec5;
}

html[data-theme="light"] .drag-handle {
  color: #636b72;
}

html[data-theme="light"] .bar-label {
  color: #4075aa;
}

html[data-theme="light"] .bar-track {
  background: #ecedee;
  box-shadow: inset 0 2px 4px rgba(16, 26, 36, 0.33);
}

html[data-theme="light"] .bar-fill {
  background: linear-gradient(90deg, #264f68, #2878ab);
  box-shadow: inset 0 1px 0 rgba(30, 42, 54, 0.16);
}

html[data-theme="light"] .bar-track.flow {
  background: #ecedee;
}

html[data-theme="light"] .bar-fill-left {
  background: linear-gradient(90deg, #b9bcbf, #9d4343);
  box-shadow: inset 0 1px 0 rgba(30, 42, 54, 0.13);
}

html[data-theme="light"] .bar-value {
  color: #212325;
}

html[data-theme="light"] .counterparty-error {
  border: 1px solid rgba(189, 40, 40, 0.44);
  background: rgba(166, 58, 58, 0.17);
  color: #af1c1c;
}

html[data-theme="light"] .counterparty-factor {
  background: #e4e6e7;
  border-left: 3px solid #827016;
}

html[data-theme="light"] .counterparty-factor.stop {
  border-left-color: #8c2121;
  background: rgba(166, 58, 58, 0.11);
}

html[data-theme="light"] .counterparty-factor span {
  color: #977d20;
}

html[data-theme="light"] .counterparty-factor.stop span {
  color: #a92222;
}

html[data-theme="light"] .counterparty-factor b {
  color: #2d7abc;
}

html[data-theme="light"] .counterparty-factor-empty {
  color: #297942;
}

html[data-theme="light"] .counterparty-leasing-kpi > div {
  background: #e7e8ea;
}

html[data-theme="light"] .counterparty-leasing-kpi b {
  color: #2c7fbd;
}

html[data-theme="light"] .counterparty-verdict {
  border-left: 4px solid #afb4b8;
  background: #e6e7e8;
}

html[data-theme="light"] .counterparty-verdict.green {
  border-left-color: #2e7646;
  background: rgba(56, 126, 80, 0.12);
}

html[data-theme="light"] .counterparty-verdict.yellow {
  border-left-color: #827016;
  background: rgba(171, 150, 42, 0.10);
}

html[data-theme="light"] .counterparty-verdict.red {
  border-left-color: #8c2121;
  background: rgba(166, 58, 58, 0.13);
}

html[data-theme="light"] .counterparty-verdict.null {
  border-left-color: #afb4b8;
  background: rgba(240, 243, 246, 0.30);
}

html[data-theme="light"] .counterparty-verdict-label {
  color: #2580c5;
}

html[data-theme="light"] .counterparty-company-name {
  color: #2580c5;
}

html[data-theme="light"] .counterparty-facts > div {
  border-bottom: 1px solid rgba(25, 38, 50, 0.07);
}

html[data-theme="light"] .counterparty-facts b {
  color: #3b7bae;
}

html[data-theme="light"] .counterparty-flow > div {
  background: #e7e8ea;
}

html[data-theme="light"] .counterparty-flow b {
  color: #2c7fbd;
}

html[data-theme="light"] .counterparty-note {
  border-left: 2px solid #827016;
  background: rgba(171, 150, 42, 0.08);
  color: #977d20;
}

html[data-theme="light"] .counterparty-risk-block.danger {
  color: #a92222;
}

html[data-theme="light"] .counterparty-risk-block.warn {
  color: #977d20;
}

html[data-theme="light"] .counterparty-list-row {
  border-bottom: 1px solid rgba(25, 38, 50, 0.07);
}

html[data-theme="light"] .counterparty-list-row b {
  color: #2d7abc;
}

html[data-theme="light"] .counterparty-person {
  border-bottom: 1px solid rgba(25, 38, 50, 0.07);
}

html[data-theme="light"] .counterparty-person b {
  color: #2d7abc;
}

html[data-theme="light"] .counterparty-source.ok {
  border-color: rgba(70, 159, 100, 0.44);
  color: #297942;
}

html[data-theme="light"] .counterparty-source.empty {
  border-color: rgba(44, 130, 185, 0.28);
}

html[data-theme="light"] .counterparty-source.unchecked {
  border-color: rgba(189, 165, 40, 0.44);
  color: #977d20;
}

html[data-theme="light"] .modal-backdrop {
  background: rgba(240, 243, 246, 0.70);
}

html[data-theme="light"] .modal {
  background: #e4e5e7;
  border: 1px solid #c6cacd;
  box-shadow: 0 30px 60px rgba(16, 26, 36, 0.33);
}

html[data-theme="light"] .modal a {
  color: #2385c2;
}

html[data-theme="light"] .client-hero {
  border: 1px solid #d4d6d9;
  background: radial-gradient(620px 220px at 8% 0%, rgba(52, 88, 121, 0.11), transparent 70%),
    linear-gradient(180deg, #dddee0, #e4e5e6);
  box-shadow: inset 0 1px 0 rgba(30, 42, 54, 0.04), var(--shadow);
}

html[data-theme="light"] .client-title {
  color: #317ab8;
}

html[data-theme="light"] .client-client-name {
  color: #1f75ad;
}

html[data-theme="light"] .client-lead {
  color: #636b72;
}

html[data-theme="light"] .offline-badge {
  border: 1px solid rgba(44, 130, 185, 0.44);
  background: rgba(52, 88, 121, 0.08);
}

html[data-theme="light"] .file-chip {
  background: #e6e7e8;
}

html[data-theme="light"] .dropzone {
  border: 1px dashed rgba(44, 130, 185, 0.40);
  background: linear-gradient(180deg, rgba(52, 88, 121, 0.04), transparent),
    #e6e7e8;
}

html[data-theme="light"] .dropzone:hover, html[data-theme="light"] .dropzone.is-drag {
  border-color: rgba(44, 130, 185, 0.60);
  background: linear-gradient(180deg, rgba(52, 88, 121, 0.10), transparent),
    #e4e5e6;
}

html[data-theme="light"] .dropzone-mark {
  border: 1px solid rgba(44, 130, 185, 0.50);
  background: linear-gradient(180deg, #d7d9db, #e2e3e4);
}

html[data-theme="light"] .dropzone-title {
  color: #337db7;
}

html[data-theme="light"] .client-sheet-row select, html[data-theme="light"] .profile-select select {
  background: #e9eaeb;
  border: 1px solid #d5d7da;
}

html[data-theme="light"] .explain-card {
  border: 1px solid #d4d6d9;
  background: linear-gradient(180deg, #dee0e1, #e3e5e6);
}

html[data-theme="light"] .filebar-name {
  color: #2d7abc;
}

html[data-theme="light"] .client-diagnostics {
  border: 1px solid #d4d6d9;
  background: rgba(240, 243, 246, 0.90);
  color: #636b72;
}

html[data-theme="light"] .diag-ok {
  color: #2e753e;
}

html[data-theme="light"] .diag-warn {
  color: #a62525;
}

html[data-theme="light"] .mode-switch {
  border: 1px solid #d5d7da;
  background: #e9eaeb;
}

html[data-theme="light"] .mode-switch button.active {
  background: linear-gradient(180deg, #d1d3d5, #dddfe0);
  color: #2580c5;
  box-shadow: inset 0 1px 0 rgba(30, 42, 54, 0.07);
}

html[data-theme="light"] .client-profile-note {
  color: #636b72;
  border-left: 2px solid rgba(44, 130, 185, 0.56);
}

html[data-theme="light"] .cat-chip {
  border: 1px solid rgba(25, 38, 50, 0.12);
  background: #e4e6e7;
}

html[data-theme="light"] .cat-chip:hover {
  border-color: rgba(44, 130, 185, 0.50);
}

html[data-theme="light"] .cat-chip.active {
  border-color: rgba(44, 130, 185, 0.60);
  background: rgba(52, 88, 121, 0.14);
  color: #207fc9;
}

html[data-theme="light"] .cat-chip.warn.active {
  border-color: rgba(185, 44, 44, 0.60);
  background: rgba(166, 58, 58, 0.11);
}

html[data-theme="light"] .cat-chip.warn.active b {
  color: #a62525;
}

html[data-theme="light"] .kpi-card {
  border: 1px solid #d4d6d9;
  background: linear-gradient(180deg, #dddfe0, #e4e6e7);
  box-shadow: inset 0 1px 0 rgba(30, 42, 54, 0.03);
}

html[data-theme="light"] .kpi-card.accent {
  border-color: rgba(44, 130, 185, 0.44);
}

html[data-theme="light"] .kpi-value {
  color: #2c7fbd;
}

html[data-theme="light"] .client-note.warn {
  border: 1px solid rgba(189, 97, 40, 0.44);
  background: rgba(166, 98, 58, 0.19);
  color: #ad581e;
}

html[data-theme="light"] .month-bar {
  border: 1px solid rgba(44, 130, 185, 0.31);
  background: linear-gradient(180deg, rgba(52, 88, 121, 0.30), rgba(52, 88, 121, 0.10));
}

html[data-theme="light"] .month-col:hover .month-bar {
  background: linear-gradient(180deg, rgba(52, 88, 121, 0.30), rgba(52, 88, 121, 0.21));
}

html[data-theme="light"] .month-col.selected .month-bar {
  background: linear-gradient(180deg, #3093ce, #2c5c7b);
  box-shadow: 0 0 20px rgba(16, 26, 36, 0.15);
}

html[data-theme="light"] .cp-row:hover {
  background: rgba(52, 88, 121, 0.08);
}

html[data-theme="light"] .cp-row.selected {
  background: rgba(52, 88, 121, 0.14);
}

html[data-theme="light"] .cp-inn-toggle:hover {
  border-color: rgba(44, 130, 185, 0.44);
}

html[data-theme="light"] .cp-track {
  border: 1px solid #d4d7d9;
  background: #eaebec;
}

html[data-theme="light"] .cp-fill {
  background: linear-gradient(90deg, #285068, #2878ab);
}

html[data-theme="light"] .cp-row.selected .cp-fill {
  background: linear-gradient(90deg, #2878ab, #3095ce);
}

html[data-theme="light"] .client-ops th {
  border-bottom: 1px solid rgba(44, 130, 185, 0.25);
}

html[data-theme="light"] .client-ops tr:hover td {
  background: rgba(52, 88, 121, 0.04);
}

html[data-theme="light"] .cat-badge.accent {
  border-color: rgba(44, 130, 185, 0.50);
  background: rgba(52, 88, 121, 0.10);
}

html[data-theme="light"] .cat-badge.warn {
  color: #9c2f2f;
  border-color: rgba(185, 44, 44, 0.44);
  background: rgba(166, 58, 58, 0.08);
}

html[data-theme="light"] .cat-badge.steel {
  color: #25282a;
}

html[data-theme="light"] .client-footnote {
  border: 1px solid #d4d6d9;
  background: rgba(240, 243, 246, 0.85);
  color: #636b72;
}

html[data-theme="light"] .chart-tooltip {
  border: 1px solid rgba(44, 130, 185, 0.56);
  background: #ecedee;
  box-shadow: 0 20px 50px rgba(16, 26, 36, 0.33);
}

html[data-theme="light"] .tip-title {
  color: #2c7fbd;
}

html[data-theme="light"] .tip-purpose {
  color: #636b72;
}

html[data-theme="light"] .statement-file {
  background: #e6e7e8;
}

html[data-theme="light"] .mapping-panel {
  border: 1px solid #d4d6d9;
  background: #e6e7e8;
}

html[data-theme="light"] .mapping-field input, html[data-theme="light"] .mapping-field select {
  border: 1px solid #d5d7da;
  background: #e9eaeb;
}

html[data-theme="light"] .mapping-preview {
  border: 1px solid #d4d6d9;
}

html[data-theme="light"] .mapping-preview th {
  background: #e2e4e5;
}

html[data-theme="light"] .mapping-warn {
  border: 1px solid rgba(189, 97, 40, 0.44);
  background: rgba(166, 98, 58, 0.17);
  color: #ad581e;
}

html[data-theme="light"] .upload-help-card {
  background: #e4e6e7;
}

html[data-theme="light"] .upload-help-note {
  color: #636b72;
}

html[data-theme="light"] .client-mini-table th {
  border-bottom: 1px solid rgba(44, 130, 185, 0.25);
}

html[data-theme="light"] .client-mini-table tr:hover td {
  background: rgba(52, 88, 121, 0.04);
}

html[data-theme="light"] .client-mini-table .total-row td {
  border-top: 1px solid rgba(44, 130, 185, 0.31);
  color: #2d7abc;
}

html[data-theme="light"] .neg {
  color: #a62525;
}

html[data-theme="light"] .metric-list > div {
  background: #e4e6e7;
}

html[data-theme="light"] .metric-list b {
  color: #2d7abc;
}

html[data-theme="light"] .metric-list em {
  color: #636b72;
}

html[data-theme="light"] .metric-grid > div {
  background: #e4e6e7;
}

html[data-theme="light"] .metric-grid b {
  color: #2d7abc;
}

html[data-theme="light"] .report-empty {
  color: #636b72;
}

html[data-theme="light"] .region-alert > div {
  border: 1px solid rgba(189, 97, 40, 0.56);
  background: rgba(166, 98, 58, 0.19);
}

html[data-theme="light"] .region-alert b {
  color: #ad581e;
}

html[data-theme="light"] .region-alert span {
  color: #955d36;
}

html[data-theme="light"] .risk-row {
  background: #e4e6e7;
}

html[data-theme="light"] .risk-row.alert {
  border-color: rgba(189, 40, 40, 0.50);
  background: rgba(166, 58, 58, 0.21);
}

html[data-theme="light"] .risk-status.alert {
  border-color: rgba(189, 40, 40, 0.60);
  color: #a62525;
  background: rgba(166, 58, 58, 0.10);
}

html[data-theme="light"] .risk-status.check {
  border-color: rgba(189, 126, 40, 0.60);
  color: #9d681a;
  background: rgba(171, 116, 42, 0.08);
}

html[data-theme="light"] .risk-status.ok {
  border-color: rgba(62, 166, 80, 0.44);
  color: #2e753e;
}

html[data-theme="light"] .verdict-text {
  color: #2c7fbd;
}

html[data-theme="light"] .score-track {
  border: 1px solid #d4d7d9;
  background: #eaebec;
}

html[data-theme="light"] .score-fill {
  background: linear-gradient(90deg, #285068, #2878ab);
}

html[data-theme="light"] .flag-list li {
  color: #9e2d2d;
}

html[data-theme="light"] .verdict-note {
  color: #636b72;
}

html[data-theme="light"] .client-formats span {
  border: 1px solid rgba(44, 130, 185, 0.31);
  background: rgba(52, 88, 121, 0.07);
  color: #2d81ba;
}

html[data-theme="light"] .offline-download {
  border-bottom: 1px dotted rgba(44, 130, 185, 0.60);
}

html[data-theme="light"] .offline-download:hover {
  color: #2088c9;
}

html[data-theme="light"] .inline-link {
  border-bottom: 1px dotted rgba(44, 130, 185, 0.60);
}

html[data-theme="light"] .inline-link:hover {
  color: #2088c9;
}

html[data-theme="light"] .chart-switch button {
  border: 1px solid #d4d6d9;
  background: #e9eaeb;
}

html[data-theme="light"] .chart-switch button.active {
  border-color: rgba(44, 130, 185, 0.60);
  background: rgba(52, 88, 121, 0.11);
}

html[data-theme="light"] .month-bar.out {
  background: rgba(166, 58, 58, 0.30);
  border-color: rgba(189, 40, 40, 0.60);
}

html[data-theme="light"] .month-col.selected .month-bar.out {
  background: rgba(166, 58, 58, 0.30);
}

html[data-theme="light"] .chart-legend .legend-in::before {
  background: linear-gradient(180deg, #2c87bf, #285068);
}

html[data-theme="light"] .chart-legend .legend-out::before {
  background: rgba(166, 58, 58, 0.30);
}

html[data-theme="light"] .profile-badge {
  border: 1px solid rgba(62, 166, 80, 0.44);
  color: #2e753e;
}

html[data-theme="light"] .profile-badge.alert {
  border-color: rgba(189, 40, 40, 0.60);
  color: #a62525;
  background: rgba(166, 58, 58, 0.08);
}

html[data-theme="light"] .profile-grid > div {
  background: #e4e6e7;
}

html[data-theme="light"] .profile-grid b {
  color: #2d7abc;
}

html[data-theme="light"] .profile-grid em {
  color: #636b72;
}

html[data-theme="light"] .profile-penalty.alert {
  border-color: rgba(189, 40, 40, 0.56);
  background: rgba(166, 58, 58, 0.19);
}

html[data-theme="light"] .party-row {
  background: #e4e6e7;
}

html[data-theme="light"] .party-row b {
  color: #2d7abc;
}

html[data-theme="light"] .profile-penalty-detail {
  color: #636b72;
}

html[data-theme="light"] .clickable-row:hover td {
  background: rgba(52, 88, 121, 0.06);
}

html[data-theme="light"] .clickable-row.selected-row td {
  background: rgba(52, 88, 121, 0.11);
}

html[data-theme="light"] .month-bar.expense-bar {
  background: linear-gradient(180deg, rgba(166, 58, 58, 0.30), rgba(166, 58, 58, 0.15));
  border-color: rgba(189, 40, 40, 0.60);
}

html[data-theme="light"] .month-col.selected .month-bar.expense-bar {
  background: linear-gradient(180deg, #b72929, #9d4343);
}

html[data-theme="light"] .table-category-filter button {
  background: #e4e6e7;
}

html[data-theme="light"] .table-category-filter button.active {
  border-color: rgba(44, 130, 185, 0.60);
  background: rgba(52, 88, 121, 0.11);
}

html[data-theme="light"] .assumed {
  border-bottom: 1px dotted #997124;
  color: #926f24;
}

html[data-theme="light"] .client-sticky-controls {
  border: 1px solid rgba(44, 130, 185, 0.35);
  background: rgba(240, 243, 246, 0.94);
  box-shadow: 0 8px 22px rgba(16, 26, 36, 0.15);
}

html[data-theme="light"] .collapse-toggle {
  background: rgba(25, 38, 50, 0.03);
}

html[data-theme="light"] .collapse-toggle:hover {
  border-color: rgba(44, 130, 185, 0.44);
}

html[data-theme="light"] .party-row.clickable:hover {
  background: rgba(52, 88, 121, 0.07);
}

html[data-theme="light"] .party-row.selected {
  background: rgba(52, 88, 121, 0.13);
}

html[data-theme="light"] .kp-link-btn {
  border: 1px solid rgba(44, 130, 185, 0.44);
  background: rgba(52, 88, 121, 0.08);
}

html[data-theme="light"] .kp-link-btn:hover {
  background: rgba(52, 88, 121, 0.15);
}

html[data-theme="light"] .kp-link-input {
  border: 1px solid #d4d6d9;
  background: #eaebec;
}

html[data-theme="light"] .kp-link-input:focus {
  border-color: rgba(44, 130, 185, 0.56);
}

html[data-theme="light"] .kp-field input, html[data-theme="light"] .kp-field textarea {
  border: 1px solid #d4d6d9;
  background: #eaebec;
}

html[data-theme="light"] .kp-field input:focus, html[data-theme="light"] .kp-field textarea:focus {
  border-color: rgba(44, 130, 185, 0.56);
}

html[data-theme="light"] .kp-photo-url {
  border: 1px solid #d4d6d9;
  background: #eaebec;
}

html[data-theme="light"] .kp-photo-card {
  background: #eaebec;
}

html[data-theme="light"] .kp-photo-card.selected {
  border-color: rgba(44, 130, 185, 0.56);
}

html[data-theme="light"] .kp-photo-card img {
  background: #f2f3f3;
}

html[data-theme="light"] .kp-photo-card-bar button {
  color: #af1c1c;
}

html[data-theme="light"] .rate-mode {
  border: 1px solid #d4d6d9;
  background: #e9eaeb;
}

html[data-theme="light"] .rate-mode button.active {
  background: linear-gradient(180deg, #d1d3d5, #dddfe0);
  color: #2580c5;
}

html[data-theme="light"] .rate-pdf-soon {
  border: 1px dashed rgba(44, 130, 185, 0.44);
}

html[data-theme="light"] .rate-field input {
  border: 1px solid #d4d6d9;
  background: #eaebec;
}

html[data-theme="light"] .rate-field input:focus {
  border-color: rgba(44, 130, 185, 0.56);
}

html[data-theme="light"] .rate-results {
  background: #eaebec;
}

html[data-theme="light"] .rate-results-nds {
  background: #ebeced;
  border-color: rgba(189, 165, 40, 0.31);
}

html[data-theme="light"] .rate-result-row {
  border-bottom: 1px solid rgba(25, 38, 50, 0.07);
}

html[data-theme="light"] .rate-highlight {
  background: rgba(171, 150, 42, 0.11);
  border-left: 2px solid #827016;
}

html[data-theme="light"] .rate-highlight b {
  color: #ae8909;
}

html[data-theme="light"] .rate-table th {
  background: #dfe1e2;
  color: #282b2d;
}

html[data-theme="light"] .rate-table td {
  border-bottom: 1px solid rgba(25, 38, 50, 0.07);
}

html[data-theme="light"] .rate-table tbody tr:hover {
  background: rgba(52, 88, 121, 0.05);
}

html[data-theme="light"] .rate-info {
  border: 1px solid rgba(44, 130, 185, 0.56);
}

html[data-theme="light"] .brand-tagline {
  color: #35678e;
}

html[data-theme="light"] .role-chip {
  border: 1px solid rgba(44, 130, 185, 0.38);
  color: #2685bc;
}

html[data-theme="light"] .auth-mark {
  border: 1px solid rgba(44, 130, 185, 0.44);
}

html[data-theme="light"] .client-stage {
  background: rgba(240, 243, 246, 0.70);
}

html[data-theme="light"] .client-stage-title {
  color: #3579b4;
}

html[data-theme="light"] .client-add-btn {
  border: 1px solid rgba(44, 130, 185, 0.50);
  background: rgba(52, 88, 121, 0.10);
  color: #208ec9;
}

html[data-theme="light"] .client-add-btn:hover {
  background: rgba(52, 88, 121, 0.19);
}

html[data-theme="light"] .client-stage-empty {
  color: #636b72;
}

html[data-theme="light"] .client-stage-arrow {
  color: #284f6a;
}

html[data-theme="light"] .client-card {
  background: #e5e6e7;
}

html[data-theme="light"] .client-card.locked {
  background: #e8e9ea;
}

html[data-theme="light"] .client-card.urgent .client-urgent-glow {
  background: radial-gradient(ellipse, rgba(166, 79, 58, 0.30), transparent 70%);
}

html[data-theme="light"] .client-card.stale::after {
  background: repeating-linear-gradient(45deg, #be6c21 0 8px, #eeefef 8px 16px);
}

html[data-theme="light"] .client-card-inn {
  color: #2c7fbd;
}

html[data-theme="light"] .client-badge.wait {
  background: rgba(171, 150, 42, 0.14);
  color: #977d20;
}

html[data-theme="light"] .client-badge.ok {
  background: rgba(56, 126, 80, 0.14);
  color: #297942;
}

html[data-theme="light"] .client-badge.help {
  background: rgba(166, 109, 58, 0.15);
  color: #af621c;
}

html[data-theme="light"] .client-flame {
  color: #636b72;
}

html[data-theme="light"] .client-flame.on {
  color: #af391c;
  border-color: rgba(189, 69, 40, 0.50);
  background: rgba(166, 79, 58, 0.10);
}

html[data-theme="light"] .client-locked-lines span {
  background: repeating-linear-gradient(135deg, #dbdcde 0 4px, #e2e4e5 4px 8px);
}

html[data-theme="light"] .client-locked-hint {
  color: #636b72;
}

html[data-theme="light"] .client-card-fields b {
  color: #3579b4;
}

html[data-theme="light"] .client-card-comment {
  color: #282b2d;
}

html[data-theme="light"] .client-card-action {
  border: 1px solid rgba(44, 130, 185, 0.38);
  background: rgba(52, 88, 121, 0.08);
  color: #228dc7;
}

html[data-theme="light"] .client-card-action:hover {
  background: rgba(52, 88, 121, 0.15);
}

html[data-theme="light"] .client-card-action.help {
  border-color: rgba(189, 110, 40, 0.44);
  color: #af621c;
  background: rgba(166, 109, 58, 0.08);
}

html[data-theme="light"] .client-card-note {
  background: rgba(171, 150, 42, 0.08);
  color: #977d20;
}

html[data-theme="light"] .client-checks label.checked {
  color: #297942;
}

html[data-theme="light"] .client-checks label.pending {
  color: #af621c;
}

html[data-theme="light"] .client-checks input {
  accent-color: #2d7545;
}

html[data-theme="light"] .client-grant {
  color: #977d20;
}

html[data-theme="light"] .client-manager-comment textarea, html[data-theme="light"] .client-create-comment textarea {
  border: 1px solid #d4d6d9;
  background: #eaebec;
}

html[data-theme="light"] .client-create-panel {
  border: 1px solid rgba(44, 130, 185, 0.35);
  background: #e6e7e8;
}

html[data-theme="light"] .role-switch {
  border: 1px solid rgba(44, 130, 185, 0.35);
  background: #eaebec;
  color: #3f77ab;
}

html[data-theme="light"] .client-archive-toggle {
  border: 1px solid rgba(179, 49, 49, 0.50);
  background: rgba(166, 58, 58, 0.08);
  color: #aa2121;
}

html[data-theme="light"] .client-archive-toggle:hover {
  background: rgba(166, 58, 58, 0.17);
}

html[data-theme="light"] .client-stage.expanded {
  background: #eaebec;
}

html[data-theme="light"] .client-expand-btn {
  border: 1px solid rgba(44, 130, 185, 0.31);
}

html[data-theme="light"] .client-expand-btn:hover {
  border-color: rgba(44, 130, 185, 0.56);
}

html[data-theme="light"] .client-stage.stage-new {
  border-top: 2px solid rgba(44, 130, 185, 0.44);
}

html[data-theme="light"] .client-stage.stage-work {
  border-top: 2px solid rgba(60, 120, 169, 0.44);
}

html[data-theme="light"] .client-stage.stage-approved {
  border-top: 2px solid rgba(70, 159, 100, 0.56);
}

html[data-theme="light"] .client-stage.stage-advance {
  border-top: 2px solid rgba(189, 165, 40, 0.56);
}

html[data-theme="light"] .client-badge.approved {
  background: rgba(56, 126, 80, 0.15);
  color: #22803d;
}

html[data-theme="light"] .client-collapsed-summary {
  color: #212325;
}

html[data-theme="light"] .client-expand-hint {
  color: #636b72;
}

html[data-theme="light"] .client-manager-name {
  color: #35678e;
}

html[data-theme="light"] .client-name-input input {
  border: 1px solid rgba(44, 130, 185, 0.38);
  background: #eaebec;
}

html[data-theme="light"] .client-deal-fields input {
  border: 1px solid #d4d6d9;
  background: #eaebec;
}

html[data-theme="light"] .client-archive-mark {
  color: #9a3131;
}

html[data-theme="light"] .client-archive-mark:hover {
  color: #af391c;
}

html[data-theme="light"] .client-card-action.return {
  border-color: rgba(189, 165, 40, 0.38);
  color: #977d20;
  background: rgba(171, 150, 42, 0.06);
}

html[data-theme="light"] .client-archive-panel {
  background: #e7e8ea;
}

html[data-theme="light"] .client-archive-row {
  border-bottom: 1px solid rgba(25, 38, 50, 0.08);
}

html[data-theme="light"] .client-comments-history {
  border: 1px solid rgba(25, 38, 50, 0.09);
  background: #e8eaeb;
  color: #242729;
}

html[data-theme="light"] .client-comments textarea {
  border: 1px solid #d4d6d9;
  background: #eaebec;
}

html[data-theme="light"] .client-archive-comments {
  color: #636b72;
}
