:root {
  --dash-bg: #f1efdf;
  --dash-surface: #f7f4e3;
  --dash-card: #fbf8e9;
  --dash-panel: #dde2c8;
  --dash-low: #e9ead4;
  --dash-container: #d1dac0;
  --dash-high: #bfccb2;
  --dash-variant: #c9d3b9;
  --dash-border: #d4dcc9;
  --dash-outline: #7c8e7d;
  --dash-ink: #12281f;
  --dash-primary: #0b1c15;
  --dash-on-primary: #f7f4e3;
  --dash-muted: #5f7166;
  --dash-soft: #33473b;
  --dash-inverse: #2b3f32;
  --dash-success: #6f8f62;
  --dash-success-text: #17382d;
  --dash-danger: #ba1a1a;
  --dash-rose: #b8796f;
  --dash-orange: #c49a61;
  --dash-purple: #8e8b6b;
  --dash-indigo: #667b66;
  --dash-blue: #6f8f8d;
  --dash-sky: #94aaa0;
  --dash-teal: #7fa99c;
  --dash-focus: rgba(56, 189, 248, 0.38);
  --dash-accent: #3f9d35;
  --dash-accent-dark: #0f4a38;
  --dash-container-width: 100%;
  --dash-radius-sm: 6px;
  --dash-radius-lg: 12px;
  --dash-radius-xl: 16px;
  --dash-radius-2xl: 18px;
  --dash-radius-3xl: 24px;
  --dash-radius-full: 999px;
  --dash-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --dash-bg: #07130f;
  --dash-surface: #172820;
  --dash-card: #111f18;
  --dash-panel: #1b3026;
  --dash-low: #192c22;
  --dash-container: #22392d;
  --dash-high: #2b4536;
  --dash-variant: #334d3d;
  --dash-border: #314637;
  --dash-outline: #7c8e7d;
  --dash-ink: #f3efd8;
  --dash-primary: #f7f4e3;
  --dash-on-primary: #07130f;
  --dash-muted: #bdc8ad;
  --dash-soft: #d7dcc4;
  --dash-inverse: #f3efd8;
  --dash-success: #7fa99c;
  --dash-success-text: #6ee7d8;
  --dash-danger: #fca5a5;
  --dash-focus: rgba(45, 212, 191, 0.38);
}

.dashboard-page,
.dashboard-page * {
  box-sizing: border-box;
}

.dashboard-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse 72% 44% at 82% 0%, rgba(201, 211, 185, 0.38), transparent 66%),
    var(--dash-bg);
  color: var(--dash-ink);
  font-family: "Geist", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.dashboard-page.modal-open {
  overflow: hidden;
}

.dashboard {
  width: 100%;
  min-height: calc(100vh - 64px);
  padding: 48px 0 64px;
}

.dashboard-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(20px, 2.5vw, 40px);
}

.dashboard svg,
.dashboard-toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dashboard-page .dash-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin: 0 0 10px;
  color: #3f9d35;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: none;
}

.dashboard-page .dash-eyebrow::before {
  display: none;
  content: none;
}

[data-theme="dark"] .dashboard-page .dash-eyebrow {
  color: #8bd291;
}

.pill-button {
  transition:
    background 180ms var(--dash-ease),
    border-color 180ms var(--dash-ease),
    color 180ms var(--dash-ease),
    opacity 180ms var(--dash-ease),
    transform 180ms var(--dash-ease);
}

.pill-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--dash-radius-full);
  padding: 0 20px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  text-decoration: none;
  cursor: pointer;
}

.pill-button svg {
  width: 17px;
  height: 17px;
}

.pill-button-primary {
  background: var(--dash-primary);
  color: var(--dash-on-primary);
  box-shadow: 0 18px 40px -32px rgba(11, 28, 21, 0.42);
}

.pill-button-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.dashboard a:focus-visible,
.dashboard button:focus-visible,
.dashboard input:focus-visible,
.dashboard select:focus-visible {
  outline: 3px solid var(--dash-focus);
  outline-offset: 3px;
}

#dashboard-title:focus {
  outline: none;
}

.dashboard-loading {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 48px;
}

.loading-copy h1,
.sign-in-prompt h1 {
  max-width: 14ch;
  margin: 10px 0 0;
  color: var(--dash-primary);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.loading-copy p,
.sign-in-prompt p {
  max-width: 54ch;
  margin: 14px 0 0;
  color: var(--dash-muted);
  font-size: 15px;
  line-height: 1.6;
}

.sign-in-prompt {
  min-height: 620px;
  max-width: 640px;
  margin: 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.sign-in-prompt .pill-button {
  margin-top: 28px;
}

.skeleton-layout {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 16px;
}

.skeleton-panel,
.skeleton-card {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dash-border) 72%, transparent);
  border-radius: var(--dash-radius-3xl);
  background: color-mix(in srgb, var(--dash-card) 90%, white 10%);
  box-shadow: 0 20px 44px -36px rgba(11, 28, 21, 0.22);
}

.skeleton-panel {
  grid-row: span 2;
  padding: 32px;
}

.skeleton-panel::before,
.skeleton-card::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  animation: skeleton-sweep 1.8s infinite;
}

.skeleton-panel span,
.skeleton-panel strong,
.skeleton-panel p {
  display: block;
  border-radius: var(--dash-radius-full);
  background: var(--dash-high);
}

.skeleton-panel span {
  width: 126px;
  height: 26px;
}

.skeleton-panel strong {
  width: 72%;
  height: 64px;
  margin-top: 72px;
}

.skeleton-panel p {
  width: 92%;
  height: 18px;
  margin-top: 22px;
}

.skeleton-panel p:last-child {
  width: 58%;
}

.skeleton-card.short {
  min-height: 150px;
}

@keyframes skeleton-sweep {
  to {
    transform: translateX(100%);
  }
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 36px);
  padding: 8px 0 4px;
}

.dashboard-hero-greeting {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.dashboard-hero-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #ececec;
}

.dashboard-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-hero-initials {
  color: #525252;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dashboard-hero-copy {
  min-width: 0;
}

.dashboard-hero-copy h1 {
  margin: 0;
  color: #171717;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.dashboard-hero-date {
  margin: 2px 0 0;
  color: #737373;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.dashboard-hero-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  min-height: 44px;
  flex: 0 1 420px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: #a3a3a3;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 140ms var(--dash-ease), box-shadow 140ms var(--dash-ease);
}

.dashboard-hero-search:hover,
.dashboard-hero-search:focus-visible {
  border-color: #d4d4d4;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dashboard-hero-search svg {
  width: 16px;
  height: 16px;
  stroke: #a3a3a3;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-hero-search span {
  justify-self: start;
  color: #a3a3a3;
  text-align: left;
}

.dashboard-hero-search kbd {
  justify-self: end;
  border: 1px solid #ebebeb;
  border-radius: 6px;
  background: #fafafa;
  color: #737373;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.dashboard-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2500;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100vw - 48px));
  transform: translateY(16px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--dash-radius-2xl);
  background: rgba(49, 48, 48, 0.92);
  color: #f3efd8;
  padding: 14px 18px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.34);
  font-size: 0.875rem;
  font-weight: 700;
  transition: opacity 180ms var(--dash-ease), transform 180ms var(--dash-ease);
  backdrop-filter: blur(18px);
}

.dashboard-toast-message {
  min-width: 0;
}

.dashboard-toast-action {
  flex: 0 0 auto;
  border: 1px solid rgba(244, 240, 239, 0.5);
  border-radius: var(--dash-radius-full);
  background: transparent;
  color: #f3efd8;
  padding: 7px 11px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-toast-action:hover,
.dashboard-toast-action:focus-visible {
  background: rgba(244, 240, 239, 0.14);
}

.dashboard-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1040px) {
  .dashboard {
    padding-top: 48px;
  }

  .dashboard-hero,
  .dashboard-loading {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .dashboard-hero-search {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 720px) {
  .dashboard {
    padding: 32px 0 64px;
  }

  .dashboard-container {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
  }

  .dashboard-hero {
    order: 1;
  }

  .loading-copy h1,
  .sign-in-prompt h1 {
    font-size: 2.75rem;
  }
}

[data-theme="dark"] .dashboard-hero-copy h1 {
  color: var(--dash-ink);
}

[data-theme="dark"] .dashboard-hero-date {
  color: var(--dash-muted);
}

[data-theme="dark"] .dashboard-hero-search {
  border-color: var(--dash-border);
  background: color-mix(in srgb, var(--dash-card) 90%, #0b1913 10%);
  color: var(--dash-muted);
}

[data-theme="dark"] .dashboard-hero-search span,
[data-theme="dark"] .dashboard-hero-search svg {
  color: var(--dash-muted);
  stroke: var(--dash-muted);
}

[data-theme="dark"] .dashboard-hero-search kbd {
  border-color: var(--dash-border);
  background: color-mix(in srgb, var(--dash-low) 80%, transparent);
  color: var(--dash-muted);
}

/* Workspace legislation table */
.workspace-table-card {
  --workspace-accent: #7f56d9;
  --workspace-accent-soft: #f4f3ff;
  --workspace-border: #eaecf0;
  --workspace-muted: #667085;
  --workspace-ink: #101828;
  margin-top: 8px;
  border: 1px solid var(--workspace-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.workspace-table-head {
  padding: 20px 20px 0;
}

.workspace-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.workspace-title {
  margin: 0;
  color: var(--workspace-ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.workspace-menu-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  text-decoration: none;
  transition: background 140ms var(--dash-ease), color 140ms var(--dash-ease);
}

.workspace-menu-btn:hover,
.workspace-menu-btn:focus-visible {
  background: #f2f4f7;
  color: #667085;
  outline: none;
}

.workspace-menu-btn svg {
  width: 18px;
  height: 18px;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 16px;
}

.workspace-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--workspace-border);
  border-radius: 10px;
  background: #f9fafb;
}

.workspace-tab {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 140ms var(--dash-ease), color 140ms var(--dash-ease), box-shadow 140ms var(--dash-ease);
}

.workspace-tab[aria-selected="true"] {
  background: #fff;
  color: var(--workspace-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.workspace-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.workspace-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: min(280px, 100%);
  min-height: 40px;
  border: 1px solid var(--workspace-border);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
}

.workspace-search svg {
  width: 16px;
  height: 16px;
  stroke: #98a2b3;
  fill: none;
  stroke-width: 1.8;
}

.workspace-search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--workspace-ink);
  font: inherit;
  font-size: 14px;
  outline: none;
}

.workspace-search-input::placeholder {
  color: #98a2b3;
}

.workspace-search kbd {
  border: 1px solid #eaecf0;
  border-radius: 6px;
  background: #f9fafb;
  color: #667085;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 11px;
}

.workspace-filters-wrap {
  position: relative;
}

.workspace-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--workspace-border);
  border-radius: 10px;
  background: #fff;
  color: #344054;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms var(--dash-ease), color 140ms var(--dash-ease), box-shadow 140ms var(--dash-ease);
}

.workspace-filters-btn.is-active {
  border-color: var(--workspace-accent);
  color: var(--workspace-accent);
  box-shadow: 0 0 0 4px rgba(127, 86, 217, 0.12);
}

.workspace-filters-btn svg {
  width: 16px;
  height: 16px;
}

.workspace-filters-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(520px, calc(100vw - 48px));
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
}

.workspace-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1.2fr) auto;
  gap: 8px;
  align-items: center;
}

.workspace-filter-select {
  min-height: 40px;
  border: 1px solid var(--workspace-border);
  border-radius: 10px;
  background: #fff;
  color: #344054;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
}

.workspace-filter-clear {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.workspace-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.workspace-filter-add,
.workspace-filter-reset {
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.workspace-filter-apply-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-filter-apply {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--workspace-accent);
  color: #fff;
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.workspace-table-wrap {
  overflow: auto;
  border-top: 1px solid var(--workspace-border);
}

.workspace-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.workspace-table thead th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--workspace-border);
  background: #f9fafb;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.workspace-col-check {
  width: 44px;
}

.workspace-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.workspace-sort svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.workspace-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--workspace-border);
  color: #344054;
  font-size: 14px;
  vertical-align: middle;
}

.workspace-table tbody tr:hover {
  background: #fcfcfd;
}

.workspace-check {
  display: inline-flex;
  position: relative;
  width: 18px;
  height: 18px;
}

.workspace-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.workspace-check span {
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
}

.workspace-check input:checked + span {
  border-color: var(--workspace-accent);
  background: var(--workspace-accent);
  box-shadow: inset 0 0 0 2px #fff;
}

.workspace-item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-item-copy strong {
  color: var(--workspace-ink);
  font-size: 14px;
  font-weight: 500;
}

.workspace-item-copy span {
  color: #667085;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-cell-state,
.workspace-cell-updated,
.workspace-cell-percent {
  color: #667085;
  white-space: nowrap;
}

.workspace-progress {
  display: block;
  width: min(180px, 100%);
  height: 8px;
  border-radius: 999px;
  background: #f2f4f7;
  overflow: hidden;
}

.workspace-progress i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--workspace-accent);
}

.workspace-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--workspace-border);
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 2px 10px 2px 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.workspace-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--workspace-accent);
}

.workspace-cell-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.workspace-action {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #98a2b3;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms var(--dash-ease), color 140ms var(--dash-ease);
}

.workspace-action:hover,
.workspace-action:focus-visible {
  background: #f2f4f7;
  color: #667085;
  outline: none;
}

.workspace-action.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.workspace-action svg {
  width: 16px;
  height: 16px;
}

.workspace-empty-row td {
  padding: 48px 24px;
}

.workspace-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.workspace-empty svg {
  width: 34px;
  height: 34px;
  color: #98a2b3;
}

.workspace-empty h3 {
  margin: 0;
  color: var(--workspace-ink);
  font-size: 18px;
}

.workspace-empty p {
  margin: 0;
  max-width: 42ch;
  color: #667085;
  font-size: 14px;
}

.workspace-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--workspace-ink);
  color: #fff;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.workspace-empty-cta svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .workspace-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  .workspace-search {
    flex: 1;
    width: auto;
  }

  .workspace-filters-wrap {
    flex: 0 0 auto;
  }

  .workspace-filter-row {
    grid-template-columns: 1fr;
  }
}

[data-theme="dark"] .workspace-table-card {
  --workspace-border: rgba(255, 255, 255, 0.1);
  --workspace-muted: #a9a29a;
  --workspace-ink: #f3efd8;
  background: color-mix(in srgb, var(--dash-card) 92%, #0b1913 8%);
}

[data-theme="dark"] .workspace-tabs,
[data-theme="dark"] .workspace-table thead th,
[data-theme="dark"] .workspace-table tbody tr:hover {
  background: color-mix(in srgb, var(--dash-low) 80%, transparent);
}

[data-theme="dark"] .workspace-tab[aria-selected="true"],
[data-theme="dark"] .workspace-search,
[data-theme="dark"] .workspace-filters-btn,
[data-theme="dark"] .workspace-filters-popover,
[data-theme="dark"] .workspace-filter-select,
[data-theme="dark"] .workspace-check span,
[data-theme="dark"] .workspace-tag {
  background: color-mix(in srgb, var(--dash-card) 90%, #0b1913 10%);
}

/* Sidebar app shell */
html.epieme-authenticated .dashboard-page {
  background: var(--dash-bg);
}

html.epieme-authenticated .dashboard {
  min-height: 100vh;
  padding: 24px 0 40px;
}

html.epieme-authenticated .dashboard-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(20px, 2.5vw, 40px);
}

html.epieme-authenticated .sign-in-prompt {
  min-height: calc(100vh - 120px);
  margin: 0;
  max-width: none;
  padding-top: 12vh;
}

@media (max-width: 960px) {
  html.epieme-authenticated .dashboard {
    padding-top: 16px;
  }

  html.epieme-authenticated .dashboard-container {
    padding: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
