/* Explicit application themes. Native controls follow the selected mode. */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef0f3;
  --surface: #ffffff;
  --surface-soft: #f7f9fb;
  --surface-raised: #ffffff;
  --surface-hover: #edf3f8;
  --ink: #233746;
  --muted: #586d7d;
  --line: #dce4eb;
  --input-border: #cbd7e1;
  --theme-link: #315e7d;
  --theme-primary: #294d68;
  --theme-selected: #e5eef5;
  --theme-selected-ink: #234d6a;
  --command-top: #dce6ef;
  --command-bottom: #eef0f3;
  --nav: #102b4d;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16212d;
  --surface: #202f3e;
  --surface-soft: #243646;
  --surface-raised: #293c4d;
  --surface-hover: #30485d;
  --ink: #e7eef5;
  --muted: #a8bac9;
  --line: #3c5163;
  --input-border: #526d82;
  --theme-link: #b3d5ed;
  --theme-primary: #385f7d;
  --theme-selected: #314d65;
  --theme-selected-ink: #e0effb;
  --command-top: #2a4055;
  --command-bottom: #16212d;
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); }
button, input, textarea, select { color-scheme: inherit; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
textarea, select {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--input-border);
  caret-color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .9; }
input[type="checkbox"], input[type="radio"] { accent-color: #41769a; }
.assignment-board input[type="checkbox"] {
  accent-color: #41769a;
  width: 15px;
  height: 15px;
  vertical-align: middle;
  cursor: pointer;
}
dialog, #editor, #changes-review {
  color-scheme: inherit;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
dialog .dialog-head, dialog .dialog-body,
#editor .dialog-head, #editor .dialog-body {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
dialog .dialog-head h2, dialog .dialog-body h3,
dialog .dialog-body legend, dialog .form-field > span {
  color: var(--ink);
}
dialog .dialog-head p, dialog .dialog-copy,
dialog .form-field small, dialog .dialog-copy strong { color: var(--muted); }
dialog .dialog-footer {
  background: var(--surface-soft);
  border-color: var(--line);
}
dialog .wf-fieldset {
  border-color: var(--line);
  background: var(--surface-soft);
  padding: 15px 16px 18px;
}
dialog .wf-fieldset legend { font-size: 14px; font-weight: 650; padding: 0 6px; }
dialog .wf-fieldset label { color: var(--ink); font-size: 14px; }
dialog .wf-fieldset input:not([type="checkbox"]),
dialog .wf-fieldset textarea,
dialog .wf-fieldset + input:not([type="checkbox"]) {
  border: 1px solid var(--input-border);
  background: var(--surface);
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--ink);
}
#wf-closeout input:not([type="checkbox"]):not([type="radio"]),
#wf-closeout textarea {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 9px 11px;
}
#wf-closeout .dialog-body { scrollbar-gutter: stable; }
#wf-closeout .form-field input[readonly] { background: var(--surface-soft); color: var(--ink); }
#date-form .dialog-head { background: var(--surface-soft); }
#date-form .dialog-head h2 { color: var(--ink); }
.btn.archive-confirm-button,
.btn.primary.archive-confirm-button {
  background: linear-gradient(115deg, #fff0bd 0%, #e4c384 28%, #c99d50 52%, #f7e1a5 76%, #e5c783 100%);
  border: 1px solid #c4a465;
  color: #3f301b;
  text-shadow: 0 1px 0 #fff6d780;
  box-shadow: inset 0 1px 0 #fff6d9, 0 1px 2px #43371c14;
  font-weight: 700;
}
.btn.archive-confirm-button:hover,
.btn.primary.archive-confirm-button:hover {
  background: linear-gradient(115deg, #fff4cf 0%, #e9cd95 28%, #d7af67 52%, #ffebbb 76%, #edd59c 100%);
  border-color: #ad8644;
}
.btn.archive-confirm-button:focus-visible { outline: 3px solid #5682a3; outline-offset: 3px; }

/* The context bar belongs to the page, while navigation remains in the sidebar. */
.page-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: sticky;
  top: 12px;
  z-index: 16;
  margin: -14px 0 0;
  padding: 10px 13px 14px;
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  background: linear-gradient(180deg, var(--command-top) 0%, var(--command-bottom) 100%);
}
.page-command-context {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  min-width: 0;
}
.page-command-context strong { color: var(--ink); font-weight: 650; }
.page-command-context > svg { width: 16px; height: 16px; flex: none; }
.page-command-context > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-command-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.page-command-bar .btn { padding: 6px 10px; font-size: 13px; min-height: 30px; }
.page-command-bar .context-management-button {
  color: var(--theme-selected-ink);
  background: var(--theme-selected);
  border: 1px solid color-mix(in srgb, var(--theme-link) 28%, var(--line));
  font-weight: 650;
}
.page-command-bar .context-management-button:hover { background: var(--surface-hover); }
.theme-toggle { gap: 6px; }
.theme-toggle svg { width: 15px; height: 15px; }
.context-management-button svg { width: 16px; height: 16px; }
.project-return-link, .context-return-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--theme-selected);
  border: 1px solid color-mix(in srgb, var(--theme-link) 30%, var(--line));
  color: var(--theme-selected-ink);
  padding: 9px 13px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 14px;
  margin-bottom: 18px;
}
.project-return-link:hover, .context-return-link:hover { background: var(--surface-hover); border-color: var(--theme-link); }
.project-return-link svg, .context-return-link svg { width: 17px; height: 17px; }
.page-command-bar .context-return-link { margin-bottom: 0; font-size: 13px; padding: 6px 10px; }
.context-management-menu { position: relative; }
.context-management-menu > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 7px;
  min-height: 30px;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
}
.context-management-menu > summary::-webkit-details-marker { display: none; }
.context-management-menu > summary:focus-visible { outline: 3px solid #7397c8; outline-offset: 3px; }
.context-management-menu[open] > summary { background: var(--surface-hover); border-color: var(--theme-link); }
.context-management-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 7px);
  z-index: 24;
  display: grid;
  gap: 4px;
  min-width: 230px;
  max-width: min(340px, calc(100vw - 48px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: 0 12px 35px #11263b22;
}
.context-management-popover .btn,
.context-management-popover a {
  justify-content: flex-start;
  width: 100%;
  padding: 9px 10px;
  border-radius: 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
}
.context-management-popover .btn:hover,
.context-management-popover a:hover { background: var(--surface-hover); }
.context-management-popover > small,
.context-management-popover .menu-caption {
  font-size: 12px;
  color: var(--muted);
  padding: 5px 10px 7px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3px;
}
.project-contacts-compact {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink);
}
.project-contacts-compact .contact-item { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.project-contacts-compact .contact-item small { color: var(--muted); font-size: 12px; flex: none; }
.project-contacts-compact .contact-item strong { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }

/* Surfaces with pre-existing fixed light colors. Semantic badges retain their palettes. */
:root[data-theme="dark"] .topbar { background: #1b2b3ce8; border-color: var(--line); }
:root[data-theme="dark"] :is(.breadcrumb, .topbar-right, .breadcrumb b) { color: var(--muted); }
:root[data-theme="dark"] :is(.panel, .stat, .project-card, .project-meta, .exhibit-summary,
  .resource, .person-tab, .day-card, .board-person, .role-picker, .project-notes,
  .workflow-step, .management-tool, .assignment-command-bar, .assignment-filter-panel,
  .assignment-project-v27, .assignment-project-toggle, .filter-choice, .search) {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] :is(.btn, .icon-btn) {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--input-border);
}
:root[data-theme="dark"] .btn:hover { background: var(--surface-hover); }
:root[data-theme="dark"] .btn.primary { background: var(--theme-primary); color: #f4f8fc; border-color: #668aa4; }
:root[data-theme="dark"] .btn.quiet { background: transparent; border-color: transparent; color: var(--muted); }
:root[data-theme="dark"] .btn.quiet:hover { color: var(--ink); background: var(--surface-hover); }
:root[data-theme="dark"] .project-top-actions .close-project-action { background: var(--surface); color: var(--ink); border-color: var(--input-border); }
:root[data-theme="dark"] .btn.archive-confirm-button,
:root[data-theme="dark"] .btn.primary.archive-confirm-button {
  background: linear-gradient(115deg, #fff0bd 0%, #e4c384 28%, #c99d50 52%, #f7e1a5 76%, #e5c783 100%);
  border-color: #c4a465;
  color: #3f301b;
}
:root[data-theme="dark"] .btn.archive-confirm-button:hover { filter: brightness(1.05); }
:root[data-theme="dark"] .project-card:hover,
:root[data-theme="dark"] .management-tool:hover { background: var(--surface-soft); border-color: #708ba0; }
:root[data-theme="dark"] :is(th, .time-header, .timeline-footer, .project-overview-header .project-overview-metrics,
  .compact-groups th, .assignment-card-heading, .assignment-project-head, .management-note,
  .assignment-project-footer, .source-table td:first-child, .source-table th:first-child,
  .staff-table th:first-child, .staff-table td:first-child) {
  background: var(--surface-soft);
  color: var(--muted);
  border-color: var(--line);
}
:root[data-theme="dark"] :is(td, .card-bottom, .exhibit, .role-row, .feature-history article,
  .history-tools, .management-notice, .management-nav, .project-tabs, .wf-controls,
  .wf-group, .wf-summary, .backup-record, .backup-footnote, .backup-reopenings,
  .simple-format-list, .simple-format-row, .rush-matrix, .rush-matrix-row,
  .assignment-readonly-exhibit, .assignment-project-footer) { border-color: var(--line); }
:root[data-theme="dark"] :is(.assignment-board td, .assignment-board .frozen) { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] :is(.assignment-board th, .assignment-board th.frozen) { background: var(--surface-soft); color: var(--muted); }
:root[data-theme="dark"] .assignment-board .board-project-row td,
:root[data-theme="dark"] .assignment-board .board-project-row td.frozen { background: #2b4053; color: var(--ink); }
:root[data-theme="dark"] :is(.assignment-board .selected td, .compact-groups tr.selected,
  .compact-groups tbody tr:hover, .project-list tbody tr:hover, .assignment-project-toggle[aria-expanded="true"],
  .assignment-project-toggle:hover, .role-cell:hover, .role-cell:focus-visible,
  .picker-people label:hover, .focused-exhibit) { background: var(--surface-hover); }
:root[data-theme="dark"] .board-go-project { background: #344e65; color: #e0edfa; border-color: #5c7b94; }
:root[data-theme="dark"] .board-go-project:hover { background: #3c5b75; }
:root[data-theme="dark"] :is(.segmented, .simple-format-switch, .range-select,
  .status-impact, .summary-notes, .summary-facts > div, .task-title-banner, .task-edit-current,
  .format-previous-note, .wf-choices label, .workflow-connection-note,
  .alert, .date-box, .upcoming-day .empty) { background: var(--surface-soft); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .segmented button { color: var(--muted); }
:root[data-theme="dark"] .segmented button.active { background: var(--surface-raised); color: var(--ink); box-shadow: 0 1px 3px #0003; }
:root[data-theme="dark"] .project-notes textarea { background: #1b2a38; color: var(--ink); }
:root[data-theme="dark"] .task-edit-grid > .form-field > input,
:root[data-theme="dark"] .history-tools input,
:root[data-theme="dark"] .form-field textarea,
:root[data-theme="dark"] .form-field input[readonly] { background: var(--surface); color: var(--ink); border-color: var(--input-border); }
:root[data-theme="dark"] .project-tabs button { color: var(--muted); }
:root[data-theme="dark"] .project-tabs button.active { color: #d2e7f6; border-bottom-color: #91b7d4; }
:root[data-theme="dark"] .management-nav a { color: var(--muted); }
:root[data-theme="dark"] .management-nav a.active,
:root[data-theme="dark"] .management-nav a:hover { background: var(--theme-selected); color: var(--theme-selected-ink); }
:root[data-theme="dark"] :is(.filter-chip, .filter-choice.selected, .person-tab.active,
  .people-choice input:checked + span, .task-person-list label:has(input:checked)) {
  background: var(--theme-selected); color: var(--theme-selected-ink); border-color: #6c8ea9;
}
:root[data-theme="dark"] .filter-active { background-color: var(--theme-selected)!important; color: var(--theme-selected-ink)!important; border-color: #7298b4!important; }
:root[data-theme="dark"] .filter-chip:hover { background: var(--surface-hover); }
:root[data-theme="dark"] .inline-edit:hover { color: #dceffc; background: #36526b; }
:root[data-theme="dark"] .rush-level-picker span { background: var(--surface); color: var(--ink); border-color: var(--input-border); }
:root[data-theme="dark"] .rush-level-picker input:checked + span { background: #3b607d; color: #fff; border-color: #88acc6; }
:root[data-theme="dark"] .rush-list-heading { background: var(--surface-soft); color: var(--muted); }
:root[data-theme="dark"] .rush-exhibit-choice:hover { background: var(--surface-hover); }
:root[data-theme="dark"] .rush-exhibit-choice:has(input:checked) { background: var(--theme-selected); }
:root[data-theme="dark"] .simple-format-switch span { color: var(--muted); }
:root[data-theme="dark"] .simple-format-switch input:checked + span { background: #426783; color: #fff; }
:root[data-theme="dark"] .simple-format-switch input[value="printed"]:checked + span { background: #326eab; color: #fff; }
:root[data-theme="dark"] .rush-row-options input[value="25"]:checked + span { background: #f3dfae; color: #614810; }
:root[data-theme="dark"] .rush-row-options input[value="50"]:checked + span { background: #f3d3b9; color: #76370f; }
:root[data-theme="dark"] .rush-row-options input[value="100"]:checked + span { background: #f1c7c7; color: #7b2424; }

/* Text hierarchy is preserved with deliberate contrast instead of color inversion. */
:root[data-theme="dark"] :is(.project-card .card-identity h3, .project-card .card-dates strong,
  .project-card .card-dates, .assignment-board .board-project-row td label b,
  .board-exhibit strong, .assignments-table strong, .exhibit-title strong,
  .exhibit-title .budget-stat strong, .scope-row-name, .assignments-summary,
  .assignment-card-heading > span strong, .assignment-readonly-exhibit dd,
  .assignment-member select, .metadata-button, .task-title-banner .task-editor-name,
  .task-editor-name, .task-edit-current > strong, .task-person-list label,
  .grouped-event-heading strong, .wf-summary strong, .wf-label,
  .backup-record strong, .closure-project > h3 a, .team-person,
  .status-impact-caption strong, .format-result > strong,
  .format-result.is-proposed > strong, .hours b, .role-chip strong) { color: var(--ink); }
:root[data-theme="dark"] :is(.project-card .code, .project-card .code > span,
  .project-card .card-dates small, .project-card .card-dates > div:last-child small,
  .project-card .card-dates .next-deadline-label, .project-card .card-format,
  .project-card .card-trial, .project-card .card-format > span, .project-card .card-trial > span,
  .project-card .card-format > strong, .project-card .card-trial > strong,
  .project-card .card-top .eyebrow, .exhibit-title small, .exhibit-title .budget-stat small,
  .exhibit-title .budget-stat strong > span, .exhibit-date small, .rush-control small,
  .card-no-rush, .project-priority small, .project-rush-label, .project-meta small,
  .project-contacts small, .project-status-heading, .project-team-label,
  .board-team-heading, .board-team-heading small, .board-person small, .board-project-row td > span,
  .board-cell-meta .date-btn, .cell-add, .assignment-order, .assignment-member,
  .assignment-date small, .assignment-rush-count, .assignment-project-title small,
  .assignment-card-heading small, .assignment-exhibit-heading p,
  .assignment-readonly-exhibit dt, .assignments-summary > span,
  .filter-choice-row > span, .history-tools label, .history-note, .history-pagination,
  .management-notice p, .management-tool p, .management-demo, .feature-history small,
  .feature-note, .wf-label small, .wf-demo p, .wf-block, .wf-id, .wf-choices small,
  .backup-date, .backup-record p, .backup-status small, .backup-footnote, .backup-empty,
  .backup-explanation, .backup-reopenings, .task-category-caption, .task-title-detail,
  .task-edit-current > span, .task-description > span, .task-description p,
  .task-edit-grid > .form-field, .task-assignees legend, .task-assignees > .small,
  .task-context-footer, .task-edit-help, .task-scope-note, .task-edit-note,
  .rush-matrix-title small, .rush-save-footer > span, .format-hint, .format-current,
  .format-result > small, .format-result.is-proposed > small:first-child,
  .status-impact-caption, .status-archive-note, .detail-grid p, .detail-grid label,
  .activity-entry small, .resource span, .project-news, .hours, .role-chip span,
  .stat .label, .time-label, .time-weeks button, .day-label, .time-weeks small,
  .project-label small, .milestone-label, .day-card-head, .week-event small,
  .empty, .info-content p, .info-content ul, .workflow-step p, .workflow-step .workflow-detail,
  .source-project-info, .source-project-info dt, .source-records dt,
  .source-project-info dd, .source-records dd, .archive-caption,
  .archive-summary span, .archive-totals small, .review-intro, .review-change > div > span,
  .log-values, .active-filters, .assignment-footnote) { color: var(--muted); }
:root[data-theme="dark"] :is(.text-link, .date-btn, .task-source-link, .source-schedule-link,
  .project-list .text-link, .assignment-project-footer a, .project-closure-details > summary,
  .technical-details summary, .clear-filters) { color: var(--theme-link); }
:root[data-theme="dark"] #wf-approval .approval-instructions { color: var(--ink); }
:root[data-theme="dark"] .wf-scope-badge { color: #c4d8e8!important; }
:root[data-theme="dark"] :is(.project-team-label > span, .assign-count, .archive-tabs b,
  .workflow-step-number, .workflow-step .workflow-screen, .backup-preview-label) {
  background: var(--surface-raised); color: var(--muted); border-color: var(--line);
}
:root[data-theme="dark"] .role-chip { background: var(--surface-soft); border-color: var(--line); }
:root[data-theme="dark"] .has-rush > .exhibit-row { background: linear-gradient(90deg, #38352d, var(--surface) 45%); }
:root[data-theme="dark"] .priority-row { background: #2e302d; }
:root[data-theme="dark"] .wf-demo,
:root[data-theme="dark"] .feature-demo-section { background: #233b4d; border-color: #405f76; }
:root[data-theme="dark"] .note-card { background: #253d35; border-color: #426253; }
:root[data-theme="dark"] .note-card h3 { color: #d4e8d8; }
:root[data-theme="dark"] .note-card p { color: #b4cbbd; }
:root[data-theme="dark"] :is(.materials-complete, .wf-sync, .backup-complete) { color: #9ed7b5; }
:root[data-theme="dark"] :is(.wf-sync.attention, .backup-preparing, .attention) { color: #e8c77b; }
:root[data-theme="dark"] :is(.form-error, .backup-failed, .backup-record .backup-error, .overdue-label,
  .assignment-readonly-exhibit dd.overdue-date) { color: #f2ada5; }
:root[data-theme="dark"] .trial-text { color: #e0aaa5!important; }
:root[data-theme="dark"] .co-text { color: #e7bf88!important; }
:root[data-theme="dark"] .exhibit-hours.budget-within { --budget-color: #8bc6a4; }
:root[data-theme="dark"] .exhibit-hours.budget-near { --budget-color: #e5c35b; }
:root[data-theme="dark"] .exhibit-hours.budget-over { --budget-color: #ef8992; }
:root[data-theme="dark"] .exhibit-hours.budget-unknown { --budget-color: #9aaebf; }
:root[data-theme="dark"] .exhibit-hours:is(.budget-within,.budget-near,.budget-over) .budget-stat:last-child strong { color: var(--budget-color); }
:root[data-theme="dark"] .exhibit-title .hours-budget-label { color: var(--budget-color); }
:root[data-theme="dark"] .review-values .before { background: #413338; color: #e4bec0; }
:root[data-theme="dark"] .review-values .after { background: #28453b; color: #c4e9d2; }
:root[data-theme="dark"] .review-values .after strong { color: #d8f4e2; }
:root[data-theme="dark"] .review-footer .discard-edits { color: #edb4a8; }
:root[data-theme="dark"] .log-values .old { color: #c3a9ab; }
:root[data-theme="dark"] .log-values .new { color: #b2d9c1; }

/* Timeline categories and artist identities stay recognizable in either mode. */
:root[data-theme="dark"] .track { background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / var(--days) - 1px), #314455 calc(100% / var(--days) - 1px), #314455 calc(100% / var(--days))); }
:root[data-theme="dark"] .timeline.overview .track { background: repeating-linear-gradient(90deg, transparent 0, transparent calc(700% / var(--days) - 1px), #314455 calc(700% / var(--days) - 1px), #314455 calc(700% / var(--days))); }
:root[data-theme="dark"] .time-weeks button.current,
:root[data-theme="dark"] .time-weeks button:hover { background: #2b4357; color: #deebf5; }
:root[data-theme="dark"] .schedule-panel .milestone .diamond { border-color: var(--surface); box-shadow: 0 0 0 2px var(--surface); }
:root[data-theme="dark"] .task-category-icon.large { background: var(--surface-raised); border-color: var(--line); }
:root[data-theme="dark"] :is(.more-mark, .timeline.overview .overview-more) { color: #dfebf4; }
:root[data-theme="dark"] .day-card-head b { color: var(--ink); }
:root[data-theme="dark"] .day-card.today .day-card-head { background: #2a413b; }
:root[data-theme="dark"] .week-event { background: #293d4f; color: var(--ink); }
:root[data-theme="dark"] .week-event .digest-project { color: var(--ink); }
:root[data-theme="dark"] .avatar { border-color: var(--surface); }
:root[data-theme="dark"] .avatar.artist-avatar,
:root[data-theme="dark"] .team-person .avatar.artist-avatar,
:root[data-theme="dark"] .artist-name { background: var(--artist-bg); color: var(--artist-fg); }
:root[data-theme="dark"] .format-highlight,
:root[data-theme="dark"] .card-format .format-highlight,
:root[data-theme="dark"] .project-overview-metrics .metadata-button.format-highlight { background: #fff2cc; color: #4b4536; }
:root[data-theme="dark"] .exhibit-title .printed-badge,
:root[data-theme="dark"] .assignment-exhibit-heading .printed-badge { background: #dbeaff; color: #174f91; border-color: #9abde5; }

@media (max-width: 720px) {
  .page-command-bar { gap: 8px; top: 6px; padding: 8px 9px 12px; }
  .page-command-context { font-size: 12px; }
  .page-command-actions { gap: 5px; }
  .page-command-bar .btn { padding: 6px 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle { transition: background-color .15s ease, border-color .15s ease; }
}

/* Small page-level refinements. */
.theme-toggle{display:inline-flex;align-items:center;gap:6px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:7px;padding:7px 9px;font-size:13px;cursor:pointer}.theme-toggle svg{width:15px;height:15px}
.command-back{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--muted);white-space:nowrap}.command-back svg{width:15px;height:15px}.command-context-label{font-size:13px;font-weight:650;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.page-command-context{min-width:0;gap:14px}.context-management-popover .btn{justify-content:flex-start;width:100%;border:0;box-shadow:none;background:transparent;font-size:14px}.context-management-popover .btn:hover{background:var(--surface-hover)}.command-menu-heading{font-size:14px;font-weight:650;padding:8px 10px;color:var(--ink);border-bottom:1px solid var(--line);margin-bottom:5px}.command-menu-heading small{display:block;color:var(--muted);font-size:12px;font-weight:400;overflow-wrap:anywhere;margin-top:3px}.command-preview-note{padding:8px 10px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);display:block}
.page-command-bar .close-project-action{background:var(--surface);color:var(--muted);border:1px solid var(--line);font-size:13px}.project-contact-readonly{display:grid;gap:4px;margin:16px 0}.project-contact-readonly small{font-size:13px;color:var(--muted)}.project-contact-readonly strong{font-size:14px;color:var(--ink)}
.card-top{align-items:flex-start;gap:10px}.card-top .project-contacts-compact{flex:1;min-width:0;margin:0}.project-contacts-compact.compact{font-size:13px;gap:4px 12px}.project-contacts-compact.compact .contact-item{display:flex;align-items:baseline;gap:5px;min-width:0;max-width:100%}.project-contacts-compact.compact .contact-item small{font-size:11px;flex-shrink:0}.project-contacts-compact.compact .contact-item strong{font-size:13px;white-space:normal;overflow-wrap:anywhere}.project-list .project-contacts-compact{margin:3px 0}.source-caption{font-size:11px}
.project-context-grid{margin-bottom:14px}.project-tabs{margin-top:0}.board-exhibit{display:flex;align-items:flex-start}.board-cell-meta{margin-left:0!important}.management-tools-heading{margin-top:24px;margin-bottom:12px}
.next-task-choices{display:grid;gap:8px;margin-top:16px}.next-task-choice{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);color:var(--ink);cursor:pointer}.next-task-choice strong{flex:1}.next-task-choice svg{width:20px;height:20px}.next-task-choice>span{color:var(--muted);font-size:14px}
@media(max-width:680px){.page-command-bar .close-project-action{padding:7px}.command-context-label{display:none}.page-command-actions{gap:6px}.theme-toggle span{display:none}.topbar-right{gap:6px}.project-contacts-compact.compact{display:grid}}

/* Compact project context, in the same reading order at every screen size. */
.project-context-grid.with-project-information{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr);gap:14px}
.project-context-grid .project-information{height:196px;min-width:0;display:flex;flex-direction:column;margin:0}
.project-information>.panel-head{padding:12px 16px 8px;flex:none;border-bottom:1px solid var(--line)}
.project-information>.panel-head h2{font-size:14px;font-weight:650}
.project-context-grid .source-project-info{overflow:auto;min-height:0;flex:1;padding:10px 16px 14px;scrollbar-width:thin;scrollbar-gutter:stable}
.project-context-grid .source-project-info dl{display:grid;grid-template-columns:92px minmax(0,1fr);gap:6px 10px;font-size:13px;line-height:1.5;margin:0}
.project-context-grid .source-project-info dt{color:var(--muted)}
.project-context-grid .source-project-info dd{margin:0;overflow-wrap:anywhere;color:var(--ink)}
.project-context-grid .source-project-info h3{font-size:13px;margin:12px 0 4px}
.project-context-grid .source-project-info p{font-size:13px;line-height:1.5;margin:4px 0 8px}
.project-context-grid .source-project-info details{font-size:13px;margin-top:9px}
.project-context-grid .source-project-info .source-warning{padding:9px 10px}
.project-header-footer .project-edit-assignments{display:block;margin-top:14px}
.project-list td{padding-top:14px;padding-bottom:14px}
.project-list .project-list-identity{min-width:270px;max-width:340px}
.project-list .project-list-code{display:block;font-size:14px;font-weight:650;line-height:1.4;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:7px}
.project-list-contact{display:flex;align-items:baseline;gap:8px;line-height:1.55;margin-top:2px;font-size:13px}
.project-list-contact>span{flex:0 0 43px;color:var(--muted);font-size:12px}
.project-list-contact>strong{font-size:13px;font-weight:500;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-list td:nth-child(2),.project-list td:nth-child(3){white-space:nowrap}
.project-list .card-no-rush{white-space:nowrap}
@media(max-width:1200px) and (min-width:801px){.project-context-grid.with-project-information{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}.project-context-grid.with-project-information .compact-groups{grid-column:1/-1;height:auto;max-height:160px}}
@media(max-width:800px){.project-context-grid.with-project-information{grid-template-columns:1fr}.project-context-grid .project-information{height:210px}.project-list .project-list-identity{min-width:250px;max-width:300px}}

/* Menu scope: blue belongs to workspace Management; neutral belongs to the project. */
.context-management-popover .command-menu-item{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:9px 11px;text-align:left;line-height:1.4;font-size:14px;border:1px solid transparent;border-radius:6px;margin:2px 0;box-sizing:border-box}
.context-management-popover .command-menu-item>svg{display:block;width:18px;height:18px;flex:0 0 18px;align-self:center}
.context-management-popover .command-menu-item>span{flex:1;min-width:0}
.context-management-popover .command-menu-item.command-global{background:#eaf1f8;border-color:#d4e1ee;color:#214e73}
.context-management-popover .command-menu-item.command-global:hover{background:#dce9f5;border-color:#a8c3db;color:#173d5d}
.context-management-popover .command-overview{margin-top:10px;border-top-width:1px;font-weight:650}
.context-management-popover .command-overview>svg:last-child{width:14px;height:14px;flex-basis:14px}
:root[data-theme="dark"] .context-management-popover .command-menu-item.command-global{background:#2c455b;border-color:#4d6b85;color:#d1e5f5}
:root[data-theme="dark"] .context-management-popover .command-menu-item.command-global:hover{background:#38566e}

/* Keep project actions on the team line; file shortcuts stay visible above details. */
.project-team-row{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;flex-wrap:wrap}
.project-team-row .project-team{flex:1;min-width:230px;align-items:center}
.project-header-footer .project-team-row .project-edit-assignments{display:inline-flex;margin:0;padding:5px 8px;flex:none;align-self:center}
.project-information-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid var(--line);flex:none}
.project-information-links .btn{display:inline-flex;align-items:center;gap:5px;font-size:12px;padding:5px 7px;line-height:1.4;background:var(--surface-soft);border:1px solid var(--line);color:var(--theme-link)}
.project-information-links svg{width:14px;height:14px;flex:none}
.project-information-links .icon-btn{width:26px;height:26px;margin-left:auto}
.management-global-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 18px;margin:0 0 20px;border:1px solid #c9dceb;border-radius:10px;background:#eaf1f8;color:#214e73}
.management-global-actions strong{display:block;font-size:14px}.management-global-actions small{display:block;font-size:12px;margin-top:3px}
.management-global-actions .command-global{display:inline-flex;align-items:center;gap:8px;background:#214e73;color:white;border:1px solid #214e73;padding:8px 12px}
.management-global-actions .command-global svg{width:16px;height:16px;flex:none}
:root[data-theme="dark"] .management-global-actions{background:#2c455b;border-color:#4d6b85;color:#d1e5f5}
@media(max-width:600px){.project-team-row .project-team{min-width:0;flex-basis:100%}.project-header-footer .project-team-row .project-edit-assignments{margin-left:auto}.management-global-actions .button-row{flex-wrap:wrap}}

/* Workspace links and compact, read-only assignment lists. */
.workspace-tool-return { margin-bottom: 18px; }
.workspace-tool-return a, .management-history-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--theme-link); }
.workspace-tool-return svg, .management-history-link svg { width: 15px; height: 15px; flex: none; }
.assignments-header { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 14px; }
.assignments-header-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.assignments-header-top h1 { margin: 0; font-size: 26px; line-height: 1.25; letter-spacing: -.6px; }
.assignments-header-top > .btn { font-size: 14px; padding: 8px 12px; }
.assignments-header .assignment-command-bar { border: 0; border-radius: 0; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); background: transparent; gap: 12px; }
.assignments-header .assignment-filter-panel { margin-top: 12px; }
.assignments-header .active-filters { padding-bottom: 0; }
.assignments-summary { margin: 12px 2px 8px; }
.assignment-projects-v27.list { display: block; gap: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.assignment-projects-v27.list .assignment-project-v27 { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.assignment-list-heading, .assignment-projects-v27.list .assignment-project-toggle { display: grid; grid-template-columns: minmax(180px,1fr) 70px 125px 110px; column-gap: 16px; align-items: center; padding: 11px 16px; }
.assignment-list-heading { background: var(--surface-soft); color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.assignment-list-heading > span:first-child { padding-left: 27px; }
.assignment-projects-v27.list .assignment-project-toggle { min-height: 47px; color: var(--ink); }
.assignment-projects-v27.list .assignment-project-title { gap: 12px; }
.assignment-projects-v27.list .assignment-project-title strong { font-size: 14px; line-height: 1.5; font-weight: 650; }
.assignment-exhibit-count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.assignment-projects-v27.list .assignment-date { font-size: 14px; }
.assignment-projects-v27.list .assignment-rush-count { grid-column: auto; margin: 0; }
.assignment-projects-v27.list .assignment-readonly-exhibit { display: grid; grid-template-columns: minmax(200px,1fr) minmax(370px,1fr); align-items: center; gap: 20px; padding: 12px 16px 12px 43px; background: var(--surface-soft); }
.assignment-projects-v27.list .assignment-exhibit-heading p { margin-top: 2px; }
.assignment-projects-v27.list .assignment-readonly-exhibit dl { margin: 0; gap: 12px; }
.assignment-projects-v27.list .assignment-readonly-exhibit dt { margin-bottom: 3px; }
.assignment-projects-v27.list .assignment-project-footer { padding: 7px 16px 7px 43px; }
.assignment-project-toggle:focus-visible { outline: 2px solid var(--theme-link); outline-offset: -3px; }
@media(max-width:900px) {
 .assignment-projects-v27.list .assignment-readonly-exhibit { grid-template-columns: 1fr; gap: 8px; }
 .assignments-header .assignment-command-bar { flex-wrap: wrap; }
}
@media(max-width:680px) {
 .assignments-header { padding: 14px; }
 .assignments-header-top h1 { font-size: 22px; }
 .assignments-header .assignment-member { width: auto; flex: 1 1 230px; justify-content: flex-start; }
 .assignments-header .assignment-member select { min-width: 120px; flex: 1; }
 .assignment-list-heading, .assignment-projects-v27.list .assignment-project-toggle { grid-template-columns: minmax(115px,1fr) 42px 85px 70px; gap: 8px; padding: 10px; }
 .assignment-list-heading { font-size: 11px; }
 .assignment-list-heading > span:first-child { padding-left: 22px; }
 .assignment-projects-v27.list .assignment-project-title { gap: 7px; }
 .assignment-projects-v27.list .assignment-rush-count { font-size: 12px; white-space: normal; }
 .assignment-projects-v27.list .assignment-readonly-exhibit { padding: 10px 14px 10px 32px; }
 .assignment-projects-v27.list .assignment-project-footer { padding-left: 32px; }
}

/* Direct destinations, with independent expand controls in assignment rows. */
.management-direct { text-decoration: none; }
.assignment-projects-v27.list .assignment-project-title { gap: 8px; }
.assignment-expand-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 26px; padding: 4px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.assignment-expand-button svg { width: 15px; height: 15px; }
.assignment-expand-button:hover { background: var(--theme-selected); color: var(--theme-link); }
.assignment-project-link { color: var(--theme-link); font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; }
.assignment-project-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.assignment-project-link:focus-visible, .assignment-expand-button:focus-visible { outline: 2px solid var(--theme-link); outline-offset: 2px; }
.assignment-list-heading > span:first-child { padding-left: 32px; }

/* Separate workspace management from everyday work. */
.sidebar-management-section { margin-top: 14px; padding: 12px 0; border-top: 1px solid #35516d; border-bottom: 1px solid #35516d; }
.sidebar .sidebar-management-section > a { background: #203f50; color: #c4e4e2; border: 1px solid #3a6170; border-radius: 7px; }
.sidebar .sidebar-management-section > a:hover { background: #294f5f; color: #efffff; }
.sidebar .sidebar-management-section > a.active { background: #315e6b; color: #ffffff; border-color: #79b6be; box-shadow: inset 3px 0 0 #9cd6d5; }
.management-reference-links { display: flex; flex-wrap: wrap; gap: 12px 26px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
.management-reference-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--theme-link); padding: 4px 0; }
.management-reference-links svg { width: 15px; height: 15px; flex: none; }

/* Readable assignment counts and project statuses. */
.assignment-member select.artist-selected { background-color: var(--artist-bg); color: var(--artist-fg); border-color: var(--artist-fg); }
.assignment-member select option { background: var(--surface); color: var(--ink); }
.assignment-projects-v27.list .assignment-exhibit-count { font-size: 18px; font-weight: 700; color: var(--ink); }
.assignment-summary-status .badge { font-size: 14px; font-weight: 650; padding: 4px 9px; }
.assignment-card-heading .assignment-summary-status { display: inline-block; margin-top: 7px; }
.assignment-list-heading, .assignment-projects-v27.list .assignment-project-toggle { grid-template-columns: minmax(180px,1fr) 70px 115px 125px 110px; }
@media(max-width:900px) {
 .assignment-list-heading, .assignment-projects-v27.list .assignment-project-toggle { grid-template-columns: minmax(140px,1fr) 55px 100px 100px 80px; gap: 10px; }
}
@media(max-width:680px) {
 .assignment-projects-v27.list { overflow-x: auto; }
 .assignment-list-heading, .assignment-projects-v27.list .assignment-project-v27 { min-width: 565px; }
 .assignment-list-heading, .assignment-projects-v27.list .assignment-project-toggle { grid-template-columns: minmax(140px,1fr) 55px 100px 100px 80px; }
}

/* Balanced hierarchy: project names lead; counts, dates and statuses support. */
body { font-size: 15px; }
.assignment-project-link, .assignment-card-heading a { font-size: 15px; font-weight: 650; }
.assignment-projects-v27.list .assignment-exhibit-count,
.assignment-projects-v27.list .assignment-date,
.assignment-projects-v27.list .assignment-rush-count { font-size: 14px; }
.assignment-projects-v27.list .assignment-exhibit-count { font-weight: 600; }
.assignment-summary-status .badge { font-size: 12px; font-weight: 600; padding: 3px 7px; }
.assignment-list-heading { font-size: 12px; text-transform: none; letter-spacing: 0; }
.assignment-exhibit-heading strong { font-size: 14px; }
.assignment-exhibit-heading p, .assignment-readonly-exhibit dt { font-size: 13px; }
.assignment-readonly-exhibit dd { font-size: 14px; }
.assignment-member, .assignment-order, .assignments-summary > span { font-size: 13px; }
.assignment-member select { font-size: 14px; min-width: 165px; }
:root[data-theme] .assignments-header .assignment-member select.artist-selected {
 background: var(--artist-bg); color: var(--artist-select-ink) !important;
 -webkit-text-fill-color: var(--artist-select-ink); border-color: var(--artist-select-ink);
 color-scheme: light;
}
:root[data-theme] .assignments-header .assignment-member select option {
 background: var(--surface); color: var(--ink); -webkit-text-fill-color: var(--ink);
}
.schedule-header { margin-bottom: 18px; }
.schedule-header .button-row { flex-wrap: wrap; justify-content: flex-end; }
.schedule-header .schedule-management { background: var(--theme-selected); color: var(--theme-selected-ink); }
.schedule-header .schedule-management svg { width: 17px; height: 17px; }
.schedule-header .active-filters { margin-top: 8px; }
.assignment-list-heading, .assignment-projects-v27.list .assignment-project-toggle {
 grid-template-columns: minmax(180px,1fr) 75px 115px 135px 110px;
}
@media(max-width:900px) {
 .assignment-projects-v27.list { overflow-x: auto; }
 .assignment-list-heading, .assignment-projects-v27.list .assignment-project-v27 { min-width: 650px; }
 .assignment-list-heading, .assignment-projects-v27.list .assignment-project-toggle { grid-template-columns: minmax(180px,1fr) 65px 110px 120px 95px; gap: 10px; }
}

/* Exhibits use the full project content width. */
.project-body { grid-template-columns: minmax(0,1fr); }

/* Sort and filter in the assignment column headings. */
.assignment-header-control { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; border: 0; border-radius: 4px; padding: 5px 3px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; text-align: left; cursor: pointer; white-space: nowrap; }
.assignment-header-control.is-active { color: var(--theme-selected-ink); background: var(--theme-selected); }
.assignment-header-control:hover { background: var(--surface-hover); color: var(--theme-link); }
.assignment-header-control svg { width: 13px; height: 13px; }
.assignment-list-heading { padding-top: 6px; padding-bottom: 6px; position: relative; z-index: 2; }
.assignment-status-select { width: 100%; min-width: 0; font-size: 12px; }
.assignment-status-select option { background: var(--surface); color: var(--ink); }
.assignment-card-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.assignment-projects-v27.list { overflow: visible; }
.assignment-list-heading { border-radius: 10px 10px 0 0; }
.assignment-projects-v27.list .assignment-project-v27:last-child { border-radius: 0 0 10px 10px; }
@media(max-width:900px) {
 .assignment-projects-v27.list { overflow-x: auto; }
}

/* Project resources sit above the notes, freeing the information panel. */
.project-context-grid .project-notes { padding: 0; height: 196px; }
.project-notes .project-information-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding: 8px 12px; }
.project-notes .project-information-links > button { flex-shrink: 0; }
.project-notes .notes-heading { padding: 8px 12px 0; }
.project-context-grid .project-notes textarea { width: calc(100% - 24px); min-height: 60px; margin: 6px 12px 12px; }

/* Keep the current filter visible in both assignment views. */
.assignment-filter-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--line); border-left: 3px solid var(--theme-link); border-radius: 6px; background: var(--theme-selected); color: var(--theme-selected-ink); font-size: 13px; }
.assignment-filter-notice .btn { display: inline-flex; align-items: center; gap: 10px; }
.assignment-readonly-exhibit dl { grid-template-columns: repeat(3,minmax(0,1fr)); }
.assignment-readonly-exhibit.has-rush dl { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media(max-width:680px) {
 .assignment-readonly-exhibit dl, .assignment-readonly-exhibit.has-rush dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Notes have a compact footer action; card controls stay quiet. */
.project-context-grid .project-notes { height: 196px; }
.project-context-grid .project-notes textarea { margin-bottom: 6px; }
.project-notes .notes-actions { display: flex; justify-content: flex-end; padding: 0 12px 10px; }
.project-notes .notes-actions .btn { min-width: 0; min-height: 0; padding: 3px 10px; font-size: 12px; line-height: 1.5; border-radius: 5px; }
.assignment-card-controls { flex: 0 0 auto; }
.assignment-card-controls .assignment-status-select { width: auto; min-width: 120px; }
.source-project-info > h3:first-child { margin-top: 0; }

/* Match the context panels and keep labels beside their values. */
.project-context-grid .source-project-info dl { grid-template-columns: 94px minmax(0,1fr); }
.project-notes .notes-actions { padding-bottom: 8px; }
@media(max-width:800px) {
 .project-context-grid .project-information { height: 196px; }
}

.assignment-list-heading > .assignment-project-column:first-child { display: flex; align-items: center; gap: 8px; padding-left: 0; }
.assignment-expand-all { font-size: 18px; font-weight: 500; line-height: 1; }
.assignment-expand-all:disabled { opacity: .4; cursor: default; }

/* Compact exhibit details with each value clearly below its label. */
.exhibit-section-heading { display: flex; align-items: center; gap: 6px; }
.exhibit-expand-all { font-size: 18px; font-weight: 500; line-height: 1; }
.exhibit-detail .assignment-chips { margin-bottom: 14px; }
.exhibit-detail .detail-grid { grid-template-columns: minmax(130px,.6fr) minmax(180px,1fr) minmax(220px,1.4fr); gap: 16px 24px; align-items: start; margin-bottom: 14px; }
.exhibit-detail .detail-grid > div { min-width: 0; }
.exhibit-detail .detail-grid label { display: block; margin-bottom: 7px; }
.exhibit-detail .detail-grid p { margin: 0; }
.exhibit-detail .detail-grid .inline-edit { display: flex; width: fit-content; }
.exhibit-detail .detail-actions { gap: 6px; }
.exhibit-detail .source-records { margin-bottom: 0; }
@media(max-width:900px) {
 .exhibit-detail .detail-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Alternate exhibit surfaces within each project, preserving summary headers. */
:root[data-theme] .exhibit-table > .exhibit { --exhibit-row-surface: var(--surface); background: var(--exhibit-row-surface); }
:root[data-theme] .exhibit-table > .exhibit:nth-child(even) { --exhibit-row-surface: var(--surface-soft); }
:root[data-theme] .exhibit-table > .exhibit > .exhibit-row { background: var(--exhibit-row-surface); }
:root[data-theme] .exhibit-table > .has-rush > .exhibit-row { background: linear-gradient(90deg, #fbf3df, var(--exhibit-row-surface) 45%); }
:root[data-theme="dark"] .exhibit-table > .has-rush > .exhibit-row { background: linear-gradient(90deg, #38352d, var(--exhibit-row-surface) 45%); }
:root[data-theme] .assignment-readonly-exhibits > .assignment-readonly-exhibit { background: var(--surface); }
:root[data-theme] .assignment-readonly-exhibits > .assignment-readonly-exhibit:nth-child(even) { background: var(--surface-soft); }

/* Give projects a clear anchor, with lighter exhibit and contributor type. */
:root { --assignment-project-band: #e3ebf2; --assignment-project-ink: #243f54; --assignment-project-accent: #7198b5; }
:root[data-theme="dark"] { --assignment-project-band: #172836; --assignment-project-ink: #f0f5f9; --assignment-project-accent: #78a8c7; }
:root[data-theme] .assignment-projects-v27 .assignment-project-toggle,
:root[data-theme] .assignment-projects-v27 .assignment-card-heading { background: var(--assignment-project-band); box-shadow: inset 3px 0 0 var(--assignment-project-accent); }
.assignment-projects-v27 .assignment-project-link,
.assignment-projects-v27 .assignment-card-heading a { color: var(--assignment-project-ink); font-size: 16px; font-weight: 650; line-height: 1.4; }
.assignment-projects-v27 .assignment-exhibit-name { display: block; font-size: 14px; font-weight: 550; line-height: 1.5; color: var(--ink); }
.assignment-contributors { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 3px; }
.assignment-contributors li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; line-height: 1.45; }
.assignment-contributor-name { font-weight: 500; color: var(--ink); }
.assignment-contributor-role { font-weight: 400; color: var(--muted); }
.assignment-contributor-role::before { content: '·'; margin-right: 8px; }
.assignment-projects-v27 .assignment-readonly-exhibit dt { font-size: 12px; font-weight: 400; line-height: 1.4; }
.assignment-projects-v27 .assignment-readonly-exhibit dd { font-size: 14px; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }
.assignment-projects-v27 .assignment-date strong, .assignment-card-heading > span > strong { font-weight: 500; }
.assignment-projects-v27 .assignment-summary-status .badge { font-weight: 500; }


.sidebar .vendor-brief{display:block;color:#c6dcea;font-size:12px;margin:12px 0;text-decoration:underline;text-underline-offset:3px;}

/* Neutral alternating exhibit rows, including Rush exhibits. */
:root[data-theme] .exhibit-table > .has-rush > .exhibit-row { background: var(--exhibit-row-surface); }
