/* Shared shell tokens and the projects workspace. */
html:root[data-theme=light] {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --ink: #1c2940;
  --muted: #5d6878;
  --line: #dce1e7;
  --ui-soft: #f1f3f6;
  --ui-accent: #315acb;
  --ui-on-accent: #ffffff;
  --ui-accent-soft: #edf2ff;
  --ui-hover: #f4f6fa;
}

html:root[data-theme=dark] {
  --bg: #141a1f;
  --surface: #1b232a;
  --ink: #edf2f6;
  --muted: #a9b7c4;
  --line: #35414a;
  --ui-soft: #252f38;
  --ui-accent: #73c8bb;
  --ui-on-accent: #102a28;
  --ui-accent-soft: #243b3a;
  --ui-hover: #25313a;
}

html:root[data-theme] .main {
  font-family: 'Golos Text', Arial, sans-serif;
  font-size: 15px;
}

html:root[data-theme] .sidebar {
  padding-top: 24px;
}

html:root[data-theme] .sidebar .workspace {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  margin-block: 24px 16px;
}

html:root[data-theme] .sidebar .nav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
}

html:root[data-theme] .sidebar nav a {
  min-height: 44px;
  margin-block: 3px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

html:root[data-theme] .sidebar nav a.active {
  font-weight: 650;
}

html:root[data-theme] .main > header {
  min-height: 66px;
  padding-block: 10px;
  gap: 8px;
}

html:root[data-theme] .main > header .breadcrumbs {
  font-size: 13px;
}

html:root[data-theme] .main > header .local-status {
  font-size: 12px;
}

html:root[data-theme] .main > header .button {
  font-size: 13px;
  padding-inline: 12px;
  border-radius: 8px;
}

.projects-workspace {
  min-width: 0;
}

.projects-workspace .demo-banner {
  display: none;
}

.projects-workspace > .notice {
  margin-bottom: 20px;
}

html:root[data-theme] .projects-workspace .page-head {
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}

.projects-workspace .page-head > div {
  min-width: 0;
}

html:root[data-theme] .projects-workspace .page-head h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.8px;
  text-wrap: balance;
}

html:root[data-theme] .projects-workspace .page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

html:root[data-theme] .projects-workspace .button.primary {
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.projects-head-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.projects-archive {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.projects-archive:hover {
  color: var(--ui-accent);
}

html:root[data-theme] .projects-workspace .channel-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

html:root[data-theme] .projects-workspace .channel-tile {
  display: flex;
  width: auto;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  min-height: 46px;
  border-radius: 8px;
  box-shadow: none;
}

.projects-workspace .channel-tile .direction-icon {
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 13px;
}

.projects-workspace .channel-tile .direction-icon svg {
  width: 17px;
  height: 17px;
}

html:root[data-theme] .projects-workspace .channel-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

html:root[data-theme] .projects-workspace .channel-title small {
  display: inline;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.projects-workspace .tile-check {
  display: none;
}

html:root[data-theme] .projects-workspace .projects-area {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  overflow: clip;
}

html:root[data-theme] .projects-workspace .project-tools {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(150px, 190px) minmax(150px, 180px) auto;
  gap: 10px;
  padding: 18px 20px 12px;
  align-items: center;
}

html:root[data-theme] .projects-workspace .project-search,
html:root[data-theme] .projects-workspace .project-tools select {
  min-height: 44px;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
}

html:root[data-theme] .projects-workspace .project-search input {
  font-size: 14px;
  line-height: 1.5;
  outline-offset: 5px;
}

.projects-workspace .project-search:focus-within {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
}

html:root[data-theme] .projects-workspace .view-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--ui-soft);
}

html:root[data-theme] .projects-workspace .view-switch button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  border-radius: 5px;
  color: var(--muted);
}

html:root[data-theme] .projects-workspace .view-switch .selected {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 3px #00000014;
}

html:root[data-theme] .projects-workspace .project-statuses {
  margin: 0;
  padding: 0 20px 14px;
  gap: 6px;
  border: 0;
  flex-wrap: wrap;
}

html:root[data-theme] .projects-workspace .status-chip {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
}

html:root[data-theme] .projects-workspace .status-chip.selected {
  background: var(--ui-accent-soft);
  color: var(--ui-accent);
  border-color: color-mix(in srgb, var(--ui-accent) 30%, var(--surface));
}

html:root[data-theme] .projects-workspace .status-chip > span:last-child {
  min-width: 18px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: inherit;
  opacity: 1;
}

html:root[data-theme] .projects-workspace .reset-filters {
  min-height: 36px;
  font-size: 12px;
  color: var(--muted);
  text-underline-offset: 3px;
}

.projects-workspace .project-results-head {
  margin: 0;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

html:root[data-theme] .projects-workspace .project-results-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.projects-workspace #filter-context {
  font-size: 13px;
  color: var(--muted);
}

html:root[data-theme] .projects-workspace #project-table > .panel {
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.projects-workspace .project-scroll-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
  background: var(--ui-soft);
}

.projects-workspace .project-scroll-toolbar > strong {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.projects-workspace .project-scroll-actions {
  margin: 0;
  gap: 6px;
}

html:root[data-theme] .projects-workspace .project-scroll-actions button {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 5px;
}

.projects-workspace .project-scroll-top {
  flex-basis: 100%;
  height: 16px;
  border: 0;
}

html:root[data-theme] .projects-workspace .project-register {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

html:root[data-theme] .projects-workspace .project-register :is(th, td) {
  padding: 14px 16px;
}

html:root[data-theme] .projects-workspace .project-register thead th {
  background: color-mix(in srgb, var(--column-accent) 8%, var(--surface));
  font-size: 12px;
  font-weight: 600;
}

html:root[data-theme] .projects-workspace .project-register .project-column-groups th {
  border-top-width: 2px;
  background: color-mix(in srgb, var(--column-accent) 12%, var(--surface));
  padding-block: 9px;
  font-size: 12px;
}

html:root[data-theme] .projects-workspace .project-register .project-name {
  font-size: 14px;
  font-weight: 650;
}

html:root[data-theme] .projects-workspace .project-register .tag {
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
}

.projects-workspace .project-cards {
  gap: 16px;
  padding: 4px 20px 20px;
}

html:root[data-theme] .projects-workspace .project-card {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: none;
}

html:root[data-theme] .projects-workspace .project-card h2 {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -.2px;
}

html:root[data-theme] .projects-workspace .project-card .project-id {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--muted);
}

html:root[data-theme] .projects-workspace .project-card .subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 1200px) {
  html:root[data-theme] .projects-workspace .project-tools {
    grid-template-columns: minmax(200px, 1fr) minmax(140px, 1fr);
  }
  .projects-workspace .view-switch {
    justify-self: end;
  }
}

@media (max-width: 720px) {
  html:root[data-theme] .projects-workspace .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .projects-workspace .page-head > div {
    width: 100%;
  }
  html:root[data-theme] .projects-workspace .page-head h1 {
    font-size: 26px;
  }
  .projects-head-actions {
    gap: 10px;
  }
  html:root[data-theme] .projects-workspace .channel-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
  }
  html:root[data-theme] .projects-workspace .channel-tile {
    padding: 10px;
    gap: 7px;
    min-width: 0;
  }
  html:root[data-theme] .projects-workspace .channel-title {
    flex-wrap: wrap;
    gap: 2px 6px;
    min-width: 0;
    white-space: normal;
  }
  html:root[data-theme] .projects-workspace .channel-title small {
    flex-basis: 100%;
  }
  html:root[data-theme] .projects-workspace .project-tools {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
  }
  html:root[data-theme] .projects-workspace .project-tools select,
  html:root[data-theme] .projects-workspace .project-search input {
    font-size: 16px;
  }
  html:root[data-theme] .projects-workspace .view-switch {
    justify-self: stretch;
  }
  html:root[data-theme] .projects-workspace .view-switch button {
    min-height: 44px;
    flex: 1;
    font-size: 14px;
  }
  html:root[data-theme] .projects-workspace .project-statuses {
    padding: 0 14px 14px;
  }
  html:root[data-theme] .projects-workspace .status-chip,
  html:root[data-theme] .projects-workspace .reset-filters {
    min-height: 44px;
  }
  .projects-workspace .project-results-head {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .projects-workspace .project-scroll-toolbar {
    padding: 12px 14px;
  }
  .projects-workspace .project-scroll-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html:root[data-theme] .projects-workspace .project-scroll-actions button {
    min-height: 44px;
    font-size: 13px;
  }
  .projects-workspace .project-cards {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 14px 14px;
  }
  html:root[data-theme] .projects-workspace .project-card {
    min-width: 0;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-workspace *, .sidebar nav a {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Form controls must remain usable outside .field wrappers too. */
html:root[data-theme] .main #daily-project{
 width:100%;max-width:100%;box-sizing:border-box;min-height:44px;
 padding:10px 12px;font:inherit;font-size:16px;line-height:1.4;
 border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);
}
@media(max-width:600px){
 html:root[data-theme] .main .page-head{flex-wrap:wrap;align-items:flex-start;}
 html:root[data-theme] .main .page-head>div{min-width:0;flex:1 1 100%;}
 html:root[data-theme] .main .page-head>.button{flex:0 1 auto;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;}
 html:root[data-theme] .main #bank-finance-summary{min-width:0;max-width:100%;box-sizing:border-box;}
 html:root[data-theme] .main #bank-finance-summary .button{min-width:0;max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;min-height:44px;line-height:1.4;}
}

/* Projects are a data workspace: use the available desktop width. */
html:root[data-theme] #content:has(> .projects-workspace) {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding-inline: 24px;
}
@media (max-width: 720px) {
  html:root[data-theme] #content:has(> .projects-workspace) { padding-inline: 12px; }
}

/* Operational screens share one readable, compact table rhythm. */
html:root[data-theme] #content:has(.payroll-workspace, .daily-workspace, .video-workspace) {max-width:none;width:100%;box-sizing:border-box;padding-inline:24px}
.payroll-workspace,.daily-workspace,.video-workspace{min-width:0}
.workspace-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px!important}
.workspace-filters label{display:grid;gap:6px;font-size:13px;font-weight:500;min-width:140px;flex:0 1 auto}
.workspace-filters :is(input,select){min-height:44px!important;width:100%;max-width:100%;font-size:14px}
.workspace-table-scroll{max-width:100%;overflow:auto;max-height:65dvh;overscroll-behavior-x:contain}
html:root[data-theme] .workspace-data-table{border-collapse:separate;border-spacing:0;min-width:900px;width:100%;font-size:14px;line-height:1.45}
html:root[data-theme] .workspace-data-table :is(th,td){padding:12px 14px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:top}
html:root[data-theme] .workspace-data-table thead th{position:sticky;top:0;z-index:2;background:var(--ui-soft);font-size:12px;font-weight:600;text-align:left;white-space:normal}
html:root[data-theme] .workspace-data-table tbody th{font-weight:500;text-align:left}
html:root[data-theme] .workspace-data-table tbody :is(td,th){font-variant-numeric:tabular-nums;font-weight:400}
html:root[data-theme] .workspace-data-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--ui-accent) 4%,transparent)}
html:root[data-theme] .workspace-data-table tbody tr:hover{background:color-mix(in srgb,var(--ui-accent) 8%,transparent)}
html:root[data-theme] .workspace-data-table :is(.num,tfoot td){text-align:right;white-space:nowrap}
html:root[data-theme] .workspace-data-table tfoot :is(th,td){font-weight:650;background:var(--ui-soft)}
.workspace-data-table td small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:4px}
.workspace-data-table .button{padding:6px 10px;min-height:36px;font-size:13px;white-space:nowrap}
.workspace-note{padding:0 16px 14px;margin:0;font-size:13px;line-height:1.5;color:var(--muted)}
.workspace-counterline{display:flex;flex-wrap:wrap;gap:8px 24px;padding:12px 16px;font-size:14px;border-top:1px solid var(--line)}
.workspace-help{padding:10px 16px;font-size:13px;color:var(--muted);border-top:1px solid var(--line)}
.workspace-help summary,.payroll-review-notes summary{cursor:pointer;min-height:32px;line-height:32px}
.payroll-composition{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line)}
.payroll-composition>div{padding:16px;border-right:1px solid var(--line);display:grid;gap:8px}
.payroll-composition small{font-size:13px;color:var(--muted)}
.payroll-composition strong{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}
.payroll-review-notes{padding:12px 16px;font-size:13px;line-height:1.6}
html:root[data-theme] .daily-project-name{display:block;text-align:left;font-weight:500!important;font-size:14px!important;white-space:normal;min-width:180px;padding:0 0 6px!important}
html:root[data-theme] .daily-status,.video-task-status{display:inline-block;padding:4px 8px;border-radius:5px;font-size:12px;line-height:1.4;background:var(--ui-soft);font-weight:500}
html:root[data-theme] .daily-status-overdue,.video-task-status.video-state-overdue{color:var(--ui-danger);border-left:3px solid currentColor}
html:root[data-theme] .daily-status-submitted,.video-task-status.video-state-done{color:var(--ui-success)}
html:root[data-theme] .daily-entry-table{min-width:560px}
.daily-entry-table input{width:100%;min-width:90px;min-height:44px;font-size:16px;font-weight:400}
.daily-entry-form>details,.daily-entry-form>.field{margin-top:14px}
html:root[data-theme] .daily-inline-editor h3{font-size:16px;font-weight:600}
html:root[data-theme] .daily-costs strong{font-size:15px;font-weight:500}
.video-task-group>summary{display:flex;justify-content:space-between;gap:12px;padding:16px;font-weight:600;cursor:pointer;list-style-position:inside}
.video-task-group .panel-head h2{font-size:17px;font-weight:600}
.video-task-table .text-button{white-space:normal;text-align:left;font-size:14px;font-weight:500}
.video-task-table td:first-child{white-space:nowrap}
@media(max-width:720px){
 html:root[data-theme] #content:has(.payroll-workspace,.daily-workspace,.video-workspace){padding-inline:12px}
 .workspace-filters label{flex:1 1 140px;min-width:0}
 .payroll-composition{grid-template-columns:repeat(2,minmax(0,1fr))}
 .payroll-composition strong{font-size:18px;overflow-wrap:anywhere}
 .workspace-data-table .button{min-height:44px}
}

html:root[data-theme] #content:has(.team-workspace,.analytics-page){max-width:none;width:100%;box-sizing:border-box;padding-inline:24px}
html:root[data-theme] #content table:not(.project-register){border-collapse:separate;border-spacing:0}
html:root[data-theme] #content table:not(.project-register) :is(th,td){border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
html:root[data-theme] #content table:not(.project-register) thead th{background:color-mix(in srgb,var(--ui-accent) 8%,var(--surface,#fff));font-weight:600}
html:root[data-theme] #content table:not(.project-register) tbody tr:nth-child(even){background:color-mix(in srgb,var(--ui-accent) 4%,transparent)}
html:root[data-theme] #content table:not(.project-register) tbody tr:hover{background:color-mix(in srgb,var(--ui-accent) 8%,transparent)}
.team-person-cell{display:flex;align-items:center;gap:10px;min-width:180px}
.team-person-cell small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.team-history-group>summary{padding:16px;cursor:pointer;font-weight:600}
.team-register td:last-child .text-button{display:block;margin-top:8px}
html:root[data-theme] .analytics-metrics{min-width:600px}
html:root[data-theme] .analytics-metrics tbody td:nth-child(2){font-weight:600;font-size:16px}
html:root[data-theme] .analytics-register thead tr:nth-child(2) th{top:42px}
html:root[data-theme] .analytics-column-groups th{height:42px;vertical-align:middle}
html:root[data-theme] .analytics-column-groups th:nth-child(2){background:color-mix(in srgb,var(--ui-accent) 12%,var(--surface,#fff))}
html:root[data-theme] .analytics-column-groups th:nth-child(3){background:color-mix(in srgb,#9d7835 14%,var(--surface,#fff))}
html:root[data-theme] .analytics-register tbody td:nth-child(n+5){background:color-mix(in srgb,#9d7835 3%,transparent)}
html:root[data-theme] .sidebar nav a:is([data-page="team"],[data-page="daily"],[data-page="finance"],[data-page="settings"]){border-top:1px solid var(--line);border-radius:0;margin-top:8px;padding-top:15px}
@media(max-width:720px){html:root[data-theme] #content:has(.team-workspace,.analytics-page){padding-inline:12px}}

html:root[data-theme=light]{--ui-danger:#983e2d;--ui-success:#2f7150}
html:root[data-theme=dark]{--ui-danger:#ffafa2;--ui-success:#8ad0a5}
html:root[data-theme] #content:has(.payroll-workspace,.daily-workspace,.video-workspace,.analytics-page) > .demo-banner,
html:root[data-theme] .analytics-page .demo-banner{display:none}

/* Project status colors requested by Ivan, 11 Nov 2026. Text always retained. */
html:root[data-theme=light]{--project-active-ink:#23623d;--project-active-bg:#e6f2e9;--project-pause-ink:#77520d;--project-pause-bg:#fff1cc;--project-stop-ink:#963d42;--project-stop-bg:#fae9eb;--project-wait-ink:#2b5596;--project-wait-bg:#e9f0fc}
html:root[data-theme=dark]{--project-active-ink:#a3dbb5;--project-active-bg:#20392a;--project-pause-ink:#f0cf88;--project-pause-bg:#3d311b;--project-stop-ink:#f2b1b7;--project-stop-bg:#40272d;--project-wait-ink:#abc9f0;--project-wait-bg:#22344a}
html:root[data-theme] [data-project-status="Активен"]{--status-ink:var(--project-active-ink);--status-bg:var(--project-active-bg)}
html:root[data-theme] [data-project-status="На паузе"]{--status-ink:var(--project-pause-ink);--status-bg:var(--project-pause-bg)}
html:root[data-theme] [data-project-status="Стоп"]{--status-ink:var(--project-stop-ink);--status-bg:var(--project-stop-bg)}
html:root[data-theme] [data-project-status="Ожидает запуска"]{--status-ink:var(--project-wait-ink);--status-bg:var(--project-wait-bg)}
html:root[data-theme] :is(.main,dialog) .tag.gray[data-project-status]{color:var(--status-ink,var(--ink));background:var(--status-bg,var(--ui-soft));border:1px solid color-mix(in srgb,var(--status-ink,var(--line)) 25%,transparent);white-space:nowrap;font-weight:600}
html:root[data-theme] .project-statuses [data-status="Активен"]{--status-ink:var(--project-active-ink);--status-bg:var(--project-active-bg)}
html:root[data-theme] .project-statuses [data-status="На паузе"]{--status-ink:var(--project-pause-ink);--status-bg:var(--project-pause-bg)}
html:root[data-theme] .project-statuses [data-status="Стоп"]{--status-ink:var(--project-stop-ink);--status-bg:var(--project-stop-bg)}
html:root[data-theme] .project-statuses [data-status="Ожидает запуска"]{--status-ink:var(--project-wait-ink);--status-bg:var(--project-wait-bg)}
html:root[data-theme] .projects-workspace .project-statuses .status-chip[data-status]:not([data-status=""]){color:var(--status-ink);background:var(--status-bg);border:1px solid color-mix(in srgb,var(--status-ink) 30%,transparent)}
html:root[data-theme] .project-statuses .status-chip[data-status] .status-dot{background:var(--status-ink,currentColor)}
html:root[data-theme] .projects-workspace .project-statuses .status-chip.selected{outline:2px solid var(--ui-accent);outline-offset:2px}

/* Workload summary: the same status meaning as project labels. */
html:root[data-theme] .project-workload-matrix tbody tr:nth-child(1){--matrix-bg:var(--project-wait-bg);--matrix-ink:var(--project-wait-ink)}
html:root[data-theme] .project-workload-matrix tbody tr:nth-child(2){--matrix-bg:var(--project-pause-bg);--matrix-ink:var(--project-pause-ink)}
html:root[data-theme] .project-workload-matrix tbody tr:nth-child(3){--matrix-bg:var(--project-active-bg);--matrix-ink:var(--project-active-ink)}
html:root[data-theme] .project-workload-matrix tbody tr.workload-total{--matrix-bg:var(--ui-accent-soft);--matrix-ink:var(--ink)}
html:root[data-theme] .main #content .project-workload-matrix tbody tr>:is(th,td){background:var(--matrix-bg);color:var(--matrix-ink);border-bottom-color:color-mix(in srgb,var(--matrix-ink) 20%,var(--line));}
html:root[data-theme] .main #content .project-workload-matrix thead th{background:var(--ui-accent-soft);color:var(--ink);font-weight:600;}
html:root[data-theme] .main #content .project-workload-matrix tr>:first-child{border-left:3px solid var(--matrix-ink,var(--ui-accent));}
html:root[data-theme] .main #content .project-workload-matrix tr>:last-child{border-left:2px solid var(--ui-accent);font-weight:750;}
html:root[data-theme] .main #content .project-workload-matrix tbody tr.workload-total>*{border-top:2px solid var(--ui-accent);font-weight:700;}
