:root {
  color-scheme: dark;
  --apple-bg: #07080a;
  --apple-sidebar: #0d0f12;
  --apple-surface: #15171b;
  --apple-surface-raised: #1b1e23;
  --apple-control: #23262c;
  --apple-line: rgba(255, 255, 255, 0.072);
  --apple-line-soft: rgba(255, 255, 255, 0.045);
  --apple-text: #f5f5f7;
  --apple-secondary: #a1a1a6;
  --apple-tertiary: #6e6e73;
  --apple-blue: #4da3ff;
  --apple-blue-solid: #0a84ff;
}

html,
body {
  background: var(--apple-bg) !important;
}

.fast-ui .backup-export-modal {
  width: min(672px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - 32px);
  overflow-y: auto !important;
  background: rgba(20, 22, 27, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

.fast-ui .backup-range-option {
  min-height: 68px;
  border: 1px solid transparent;
}

.fast-ui .backup-range-option[data-selected="true"] {
  background: rgba(52, 211, 153, 0.1) !important;
  border-color: rgba(52, 211, 153, 0.38) !important;
}

.fast-ui .audit-log-view {
  width: 100%;
  max-width: 1360px !important;
}

.fast-ui .audit-log-toolbar {
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 0 2px;
}

.fast-ui .audit-log-filters {
  margin-top: 0 !important;
  gap: 6px !important;
}

.fast-ui .audit-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.045);
  color: var(--apple-secondary);
  min-height: 28px;
  padding: 5px 10px !important;
}

.fast-ui .audit-filter-button span {
  color: var(--apple-tertiary);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.fast-ui .audit-filter-button:hover {
  background: rgba(255, 255, 255, 0.075);
  color: var(--apple-primary);
}

.fast-ui .audit-filter-button[data-selected="true"] {
  border-color: rgba(77, 163, 255, 0.34);
  background: rgba(77, 163, 255, 0.14);
  color: var(--apple-primary);
}

.fast-ui .audit-log-day-group > div:first-child {
  margin-bottom: 6px !important;
  min-height: 24px;
}

.fast-ui .audit-log-list {
  overflow: hidden;
  border-top: 1px solid var(--apple-line-soft);
  border-bottom: 1px solid var(--apple-line-soft);
}

.fast-ui .audit-log-entry + .audit-log-entry {
  border-top: 1px solid var(--apple-line-soft);
}

.fast-ui .audit-log-entry {
  display: grid !important;
  grid-template-columns: 58px 54px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 72px;
  padding: 11px 14px !important;
  background: transparent !important;
  transition: background-color 140ms ease !important;
}

.fast-ui .audit-log-entry:hover {
  background: rgba(255, 255, 255, 0.026) !important;
}

.fast-ui .audit-log-action-badge {
  display: inline-flex;
  width: 46px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  justify-self: start;
  border: 0 !important;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.fast-ui .audit-log-time {
  color: #758399;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.fast-ui .audit-log-body {
  min-width: 0;
}

.fast-ui .audit-log-title-row {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.fast-ui .audit-log-title-row strong {
  overflow: hidden;
  color: var(--apple-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fast-ui .audit-log-actor {
  flex: 0 0 auto;
  color: #7f8a99;
  font-size: 10px;
}

.fast-ui .audit-log-actor::before {
  content: "操作人 ";
  color: #596474;
}

.fast-ui .audit-log-body p {
  overflow: hidden;
  margin-top: 3px;
  color: #9aa6b5;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fast-ui .audit-log-actions {
  display: flex;
  min-width: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.fast-ui .audit-log-delete-button {
  opacity: 0;
  transition: opacity 140ms ease, color 140ms ease, background-color 140ms ease;
}

.fast-ui .audit-log-entry:hover .audit-log-delete-button,
.fast-ui .audit-log-entry:focus-within .audit-log-delete-button {
  opacity: 1;
}

@media (max-width: 700px) {
  .fast-ui .audit-log-entry {
    grid-template-columns: 46px 48px minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  .fast-ui .audit-log-body {
    grid-column: 2 / 4;
  }

  .fast-ui .audit-log-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .fast-ui .audit-log-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .fast-ui .audit-log-delete-button {
    opacity: 1;
  }
}

.fast-ui {
  background: var(--apple-bg) !important;
  color: var(--apple-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, sans-serif !important;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: -0.005em;
}

.fast-ui > .absolute.pointer-events-none {
  display: none !important;
}

.fast-ui main {
  background: radial-gradient(circle at 58% -20%, rgba(41, 151, 255, 0.055), transparent 38%), #000 !important;
}

.fast-ui h1,
.fast-ui h2,
.fast-ui h3,
.fast-ui h4,
.fast-ui h5 {
  color: var(--apple-text);
  letter-spacing: -0.025em !important;
}

.fast-ui [class~="text-slate-600"],
.fast-ui [class~="text-slate-700"] {
  color: var(--apple-tertiary) !important;
}

.fast-ui [class~="text-slate-400"],
.fast-ui [class~="text-slate-500"] {
  color: var(--apple-secondary) !important;
}

.fast-ui [class~="text-indigo-300"],
.fast-ui [class~="text-indigo-400"],
.fast-ui [class~="text-blue-400"] {
  color: var(--apple-blue) !important;
}

.fast-ui [class*="shadow-indigo"],
.fast-ui [class*="shadow-purple"],
.fast-ui [class*="shadow-blue"],
.fast-ui [class*="shadow-emerald"],
.fast-ui [class*="shadow-red"] {
  box-shadow: none !important;
}

.fast-ui .glass,
.fast-ui .glass-darker,
.fast-ui .global-search-panel,
.fast-ui .project-list-panel,
.fast-ui .dashboard-controls,
.fast-ui .member-card,
.fast-ui .queue-toolbar,
.fast-ui .queue-item,
.fast-ui .queue-type-cell,
.fast-ui .queue-actions {
  background: var(--apple-surface) !important;
  border-color: var(--apple-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.fast-ui .dashboard-stats > div {
  background: var(--apple-surface) !important;
  border-color: var(--apple-line-soft) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}

.fast-ui .dashboard-stats > div:hover,
.fast-ui .queue-item:hover,
.fast-ui .member-card:hover {
  background: var(--apple-surface-raised) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.fast-ui .dashboard-controls,
.fast-ui .queue-toolbar {
  border-radius: 20px !important;
}

.fast-ui .project-list-panel {
  border-radius: 22px !important;
  overflow: visible;
}

.fast-ui .member-card {
  border-radius: 24px !important;
}

.fast-ui aside {
  background: rgba(17, 17, 19, 0.98) !important;
  border-color: var(--apple-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.fast-ui aside > div:first-child {
  padding-left: 20px !important;
  padding-right: 20px !important;
}

.fast-ui aside .bg-gradient-to-tr,
.fast-ui header .bg-gradient-to-tr {
  background: linear-gradient(145deg, #45a8ff, var(--apple-blue-solid)) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.fast-ui aside nav {
  display: grid;
  gap: 5px;
}

.fast-ui aside nav button {
  min-height: 46px;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  color: var(--apple-secondary) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.fast-ui aside nav button:hover {
  background: rgba(255, 255, 255, 0.055) !important;
  color: var(--apple-text) !important;
}

.fast-ui aside nav button[class*="bg-white/10"] {
  background: var(--apple-control) !important;
  border-color: var(--apple-line) !important;
  color: var(--apple-text) !important;
}

.fast-ui aside nav button svg[class*="text-indigo"] {
  color: var(--apple-blue) !important;
}

.fast-ui aside nav button span[class*="bg-indigo"] {
  background: var(--apple-blue-solid) !important;
}

.fast-ui aside > .mt-auto {
  border-color: var(--apple-line-soft) !important;
  padding: 18px !important;
}

.fast-ui aside > .mt-auto > button {
  background: var(--apple-surface) !important;
  border-color: var(--apple-line) !important;
  border-radius: 13px !important;
  color: var(--apple-text) !important;
  box-shadow: none !important;
}

.fast-ui aside > .mt-auto > button:hover {
  background: var(--apple-control) !important;
}

.fast-ui header.lg\:hidden {
  background: rgba(17, 17, 19, 0.96) !important;
  border-color: var(--apple-line) !important;
  backdrop-filter: blur(18px) !important;
}

.fast-ui button[class~="bg-indigo-600"],
.fast-ui button[class~="bg-indigo-500"],
.fast-ui button[class*="bg-gradient-to-r"] {
  background: var(--apple-blue-solid) !important;
  border-color: transparent !important;
  color: white !important;
  box-shadow: none !important;
}

.fast-ui button[class*="hover:bg-indigo-500"]:hover,
.fast-ui button[class*="hover:bg-indigo-600"]:hover,
.fast-ui button[class*="bg-gradient-to-r"]:hover {
  background: #0077ed !important;
}

.fast-ui button:focus-visible,
.fast-ui input:focus-visible,
.fast-ui textarea:focus-visible,
.fast-ui select:focus-visible,
.fast-ui summary:focus-visible {
  outline: 2px solid rgba(41, 151, 255, 0.8) !important;
  outline-offset: 2px;
}

.fast-ui input:not([class*="bg-transparent"]):not([class*="opacity-0"]),
.fast-ui textarea:not([class*="bg-transparent"]),
.fast-ui select {
  background-color: var(--apple-control) !important;
  border-color: var(--apple-line) !important;
  color: var(--apple-text) !important;
  box-shadow: none !important;
}

.fast-ui input::placeholder,
.fast-ui textarea::placeholder {
  color: var(--apple-tertiary) !important;
}

.fast-ui .dashboard-filter-row > div,
.fast-ui .dashboard-filter-row select,
.fast-ui .dashboard-filter-row button {
  box-shadow: none !important;
}

.fast-ui .dashboard-filter-row > div {
  border-color: var(--apple-line) !important;
  background: var(--apple-control) !important;
}

.fast-ui .dashboard-filter-row button[class~="bg-indigo-500"] {
  background: #f5f5f7 !important;
  color: #111113 !important;
}

.fast-ui .project-list-panel thead,
.fast-ui .project-list-panel thead tr {
  background: var(--apple-surface-raised) !important;
}

.fast-ui .project-list-panel th {
  color: var(--apple-secondary) !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
}

.fast-ui .project-list-panel tbody tr {
  border-color: var(--apple-line-soft) !important;
  background: transparent !important;
}

.fast-ui .project-list-panel tbody tr:hover {
  background: rgba(255, 255, 255, 0.035) !important;
}

.fast-ui .project-list-panel tbody h4,
.fast-ui .queue-item input,
.fast-ui .member-card p[class*="font-bold"] {
  font-weight: 650 !important;
}

.fast-ui .queue-item {
  border-radius: 18px !important;
}

.fast-ui .queue-type-cell,
.fast-ui .queue-actions {
  background: #161618 !important;
  border-color: var(--apple-line-soft) !important;
}

.fast-ui .queue-actions > .grid button {
  background: var(--apple-control) !important;
  border-color: var(--apple-line-soft) !important;
  color: var(--apple-text) !important;
}

.fast-ui .queue-actions > .grid button:hover {
  background: var(--apple-blue-solid) !important;
  border-color: transparent !important;
}

.fast-ui .project-paused {
  background: #202022 !important;
  border-color: rgba(174, 174, 178, 0.24) !important;
  box-shadow: inset 3px 0 0 #636366 !important;
}

.fast-ui .rounded-3xl.border.bg-white\/\[0\.03\],
.fast-ui div[class*="rounded-3xl"][class*="bg-white/[0.03]"] {
  background: var(--apple-surface) !important;
  border-color: var(--apple-line) !important;
  box-shadow: none !important;
}

.fast-ui .modal-assignee-menu,
.fast-ui .modal-project-type-menu {
  background: #2c2c2e !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34) !important;
}

.fast-ui [class*="bg-slate-950/95"],
.fast-ui [class*="bg-slate-900/95"] {
  background: rgba(28, 28, 30, 0.98) !important;
  border-color: var(--apple-line) !important;
}

.fast-ui .fixed.inset-0 > .relative,
.fast-ui .fixed.inset-0 form[class*="max-w"] {
  border-color: rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46) !important;
}

.fast-ui .archive-calendar-view {
  --archive-line: rgba(255, 255, 255, 0.085);
  --archive-panel: var(--apple-surface);
}

.fast-ui .archive-calendar-total svg,
.fast-ui .archive-calendar-total strong {
  color: var(--apple-blue) !important;
}

.fast-ui .archive-calendar-toolbar,
.fast-ui .archive-calendar-shell,
.fast-ui .archive-calendar-monthbar {
  background: var(--apple-surface) !important;
  border-color: var(--archive-line) !important;
  box-shadow: none !important;
}

.fast-ui .archive-calendar-search,
.fast-ui .archive-calendar-type-filter,
.fast-ui .archive-calendar-month-actions button {
  background: var(--apple-control) !important;
  border-color: var(--apple-line) !important;
}

.fast-ui .archive-calendar-day {
  background: #121214 !important;
}

.fast-ui .archive-calendar-day:hover,
.fast-ui .archive-calendar-day.has-projects {
  background: #18181a !important;
}

.fast-ui .archive-calendar-day.is-today time {
  background: var(--apple-blue-solid) !important;
}

.fast-ui .archive-calendar-entry {
  box-shadow: none !important;
}

.fast-ui .custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}

.fast-ui .custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

@media (max-width: 1023px) {
  .fast-ui main {
    background: #000 !important;
  }

  .fast-ui .dashboard-stats > div,
  .fast-ui .dashboard-controls,
  .fast-ui .project-list-panel,
  .fast-ui .queue-item,
  .fast-ui .member-card {
    border-radius: 18px !important;
  }
}

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

/* V2: use tonal depth instead of nested outlines. */
.fast-ui main {
  background: radial-gradient(circle at 52% -18%, rgba(10, 132, 255, 0.07), transparent 34%), var(--apple-bg) !important;
}

.fast-ui .glass,
.fast-ui .glass-darker,
.fast-ui .global-search-panel,
.fast-ui .project-list-panel,
.fast-ui .dashboard-controls,
.fast-ui .dashboard-stats > div,
.fast-ui .member-card,
.fast-ui .queue-toolbar,
.fast-ui .queue-item {
  border-color: transparent !important;
}

.fast-ui .dashboard-controls,
.fast-ui .queue-toolbar {
  background: #101216 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.fast-ui .dashboard-stats > div,
.fast-ui .member-card,
.fast-ui .queue-item,
.fast-ui .glass,
.fast-ui .global-search-panel {
  background: var(--apple-surface) !important;
}

.fast-ui .dashboard-stats > div:hover,
.fast-ui .member-card:hover,
.fast-ui .queue-item:hover {
  background: var(--apple-surface-raised) !important;
  border-color: transparent !important;
}

.fast-ui aside {
  background: var(--apple-sidebar) !important;
  border-right-color: rgba(255, 255, 255, 0.045) !important;
}

.fast-ui aside nav button[class*="bg-white/10"] {
  background: rgba(10, 132, 255, 0.12) !important;
  border-color: transparent !important;
  color: #f5f7fa !important;
}

.fast-ui aside > .mt-auto > button {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: transparent !important;
}

.fast-ui .dashboard-filter-row > div,
.fast-ui .dashboard-filter-row select {
  border-color: transparent !important;
}

.fast-ui .project-list-panel {
  background: #121418 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

.fast-ui .project-list-panel thead,
.fast-ui .project-list-panel thead tr {
  background: #191b20 !important;
}

.fast-ui .project-list-panel tbody tr {
  border-color: rgba(255, 255, 255, 0.042) !important;
}

.fast-ui .queue-item {
  box-shadow: inset 2px 0 0 rgba(77, 163, 255, 0.34) !important;
}

@media (min-width: 1024px) {
  .fast-ui .queue-type-cell,
  .fast-ui .queue-actions {
    min-height: 62px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.055) !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .fast-ui .queue-type-cell {
    padding-left: 14px !important;
    padding-right: 4px !important;
  }

  .fast-ui .queue-actions {
    padding-left: 14px !important;
    padding-right: 0 !important;
  }
}

.fast-ui .queue-type-cell select {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.fast-ui .queue-actions > .grid button {
  border: 0 !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: #e8e8ed !important;
}

.fast-ui .queue-actions > .grid button:hover {
  background: rgba(10, 132, 255, 0.82) !important;
}

.fast-ui .queue-row-tools {
  border-left-color: rgba(255, 255, 255, 0.055) !important;
}

.fast-ui .queue-row-tools button {
  border-color: transparent !important;
  background: transparent !important;
}

.fast-ui .queue-meta > span {
  border: 0 !important;
  background: transparent !important;
}

.fast-ui .member-card > button,
.fast-ui .member-card [class*="grid-cols-3"] button {
  border-color: transparent !important;
  box-shadow: none !important;
}

.fast-ui .member-card [class*="bg-black/25"] {
  border-color: transparent !important;
  background: #101216 !important;
}

.fast-ui div[class*="rounded-3xl"][class*="bg-white/[0.03]"] {
  border-color: transparent !important;
  background: var(--apple-surface) !important;
}

.fast-ui [class*="border-white/5"] {
  border-color: rgba(255, 255, 255, 0.04) !important;
}

.fast-ui [class*="border-white/10"] {
  border-color: rgba(255, 255, 255, 0.07) !important;
}

.fast-ui .archive-calendar-toolbar,
.fast-ui .archive-calendar-shell {
  border-color: rgba(255, 255, 255, 0.055) !important;
  background: #121418 !important;
}

.fast-ui .archive-calendar-day {
  border-color: rgba(255, 255, 255, 0.035) !important;
  background: #0f1114 !important;
}

.fast-ui .archive-calendar-day:hover,
.fast-ui .archive-calendar-day.has-projects {
  background: #15181c !important;
}

.fast-ui .fixed.inset-0 > .relative,
.fast-ui .fixed.inset-0 form[class*="max-w"] {
  border-color: rgba(255, 255, 255, 0.085) !important;
}

.fast-ui .queue-type-cell select,
.fast-ui .queue-actions > .grid button,
.fast-ui .queue-row-tools button,
.fast-ui .member-card > button,
.fast-ui .member-card [class*="grid-cols-3"] button,
.fast-ui .member-card [class*="bg-black/25"] {
  border-color: transparent !important;
}

/* Theme selector: persistent, UI-only, and isolated from project data. */
.fast-ui .theme-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.fast-ui .theme-switcher button {
  min-height: 28px;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--apple-tertiary) !important;
  font-size: 10px;
  font-weight: 650;
  box-shadow: none !important;
  transition: background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.fast-ui .theme-switcher button:hover {
  color: var(--apple-text) !important;
}

.fast-ui .theme-switcher button[data-selected="true"] {
  background: rgba(255, 255, 255, 0.115) !important;
  color: var(--apple-text) !important;
}

/* Apple-inspired light appearance. Kept at the end so it safely overrides the dark baseline. */
.fast-ui.theme-light {
  color-scheme: light;
  --apple-bg: #f5f5f7;
  --apple-sidebar: #f5f5f7;
  --apple-surface: #ffffff;
  --apple-surface-raised: #fbfbfd;
  --apple-control: #f1f1f3;
  --apple-line: #e5e5e7;
  --apple-line-soft: #ececee;
  --apple-text: #1d1d1f;
  --apple-secondary: #6e6e73;
  --apple-tertiary: #86868b;
  --apple-blue: #0071e3;
  --apple-blue-solid: #0071e3;
  background: var(--apple-bg) !important;
  color: var(--apple-text) !important;
}

.fast-ui.theme-light main,
.fast-ui.theme-light .h-screen.bg-slate-950 {
  background: var(--apple-bg) !important;
}

.fast-ui.theme-light h1,
.fast-ui.theme-light h2,
.fast-ui.theme-light h3,
.fast-ui.theme-light h4,
.fast-ui.theme-light h5,
.fast-ui.theme-light [class~="text-white"],
.fast-ui.theme-light [class~="text-slate-100"],
.fast-ui.theme-light [class~="text-slate-200"],
.fast-ui.theme-light [class~="text-slate-300"] {
  color: var(--apple-text) !important;
}

.fast-ui.theme-light [class~="text-slate-400"],
.fast-ui.theme-light [class~="text-slate-500"] {
  color: var(--apple-secondary) !important;
}

.fast-ui.theme-light [class~="text-slate-600"],
.fast-ui.theme-light [class~="text-slate-700"] {
  color: var(--apple-tertiary) !important;
}

.fast-ui.theme-light [class*="bg-white/[0."],
.fast-ui.theme-light [class*="bg-black/"],
.fast-ui.theme-light [class*="bg-slate-950/"],
.fast-ui.theme-light [class*="bg-slate-900/"] {
  background-color: #f1f1f3 !important;
}

.fast-ui.theme-light [class*="border-white/"],
.fast-ui.theme-light [class*="divide-white/"] > * + * {
  border-color: var(--apple-line-soft) !important;
}

.fast-ui.theme-light aside {
  background: var(--apple-sidebar) !important;
  border-right-color: #dedee2 !important;
  box-shadow: none !important;
}

.fast-ui.theme-light aside nav button {
  color: #5f6368 !important;
}

.fast-ui.theme-light aside nav button:hover {
  background: #e8e8ed !important;
  color: var(--apple-text) !important;
}

.fast-ui.theme-light aside nav button[class*="bg-white/10"] {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.055) !important;
  color: #1d1d1f !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.055) !important;
}

.fast-ui.theme-light aside > .mt-auto {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

.fast-ui.theme-light aside > .mt-auto > button {
  background: #ffffff !important;
  border-color: #e5e5e7 !important;
  color: var(--apple-text) !important;
}

.fast-ui.theme-light aside > .mt-auto > button:hover {
  background: #f1f1f3 !important;
}

.fast-ui.theme-light aside > div:first-child > div:first-child > span:last-child,
.fast-ui.theme-light header.lg\:hidden > div > span {
  color: #1d1d1f !important;
}

.fast-ui.theme-light .theme-switcher {
  background: #e8e8ed;
  border: 1px solid #dedee2;
}

.fast-ui.theme-light .theme-switcher button {
  color: #6e6e73 !important;
}

.fast-ui.theme-light .theme-switcher button[data-selected="true"] {
  background: #ffffff !important;
  color: var(--apple-text) !important;
  box-shadow: 0 1px 3px rgba(30, 41, 59, 0.12) !important;
}

.fast-ui.theme-light header.lg\:hidden {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(0, 0, 0, 0.075) !important;
}

.fast-ui.theme-light .glass,
.fast-ui.theme-light .glass-darker,
.fast-ui.theme-light .global-search-panel,
.fast-ui.theme-light .project-list-panel,
.fast-ui.theme-light .dashboard-controls,
.fast-ui.theme-light .dashboard-stats > div,
.fast-ui.theme-light .member-card,
.fast-ui.theme-light .queue-toolbar,
.fast-ui.theme-light .queue-item,
.fast-ui.theme-light div[class*="rounded-3xl"][class*="bg-white/[0.03]"] {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.055) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.045) !important;
}

.fast-ui.theme-light .dashboard-controls,
.fast-ui.theme-light .queue-toolbar {
  background: #ffffff !important;
}

.fast-ui.theme-light .dashboard-stats > div:hover,
.fast-ui.theme-light .member-card:hover,
.fast-ui.theme-light .queue-item:hover {
  background: #ffffff !important;
  border-color: #d2d2d7 !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.065) !important;
}

.fast-ui.theme-light .project-list-panel {
  background: #ffffff !important;
}

.fast-ui.theme-light .project-list-panel thead,
.fast-ui.theme-light .project-list-panel thead tr {
  background: #f5f5f7 !important;
}

.fast-ui.theme-light .project-list-panel tbody tr {
  border-color: rgba(0, 0, 0, 0.055) !important;
}

.fast-ui.theme-light .project-list-panel tbody tr:hover {
  background: #fafafa !important;
}

.fast-ui.theme-light input:not([class*="bg-transparent"]):not([class*="opacity-0"]),
.fast-ui.theme-light textarea:not([class*="bg-transparent"]),
.fast-ui.theme-light select,
.fast-ui.theme-light .dashboard-filter-row > div {
  background-color: #f1f1f3 !important;
  border-color: #e5e5e7 !important;
  color: var(--apple-text) !important;
  box-shadow: inset 0 1px 1px rgba(30, 41, 59, 0.025) !important;
}

.fast-ui.theme-light input::placeholder,
.fast-ui.theme-light textarea::placeholder {
  color: #86868b !important;
}

.fast-ui.theme-light .dashboard-filter-row button[class~="bg-indigo-500"] {
  background: #1d1d1f !important;
  color: #ffffff !important;
}

.fast-ui.theme-light button[class~="bg-indigo-600"],
.fast-ui.theme-light button[class~="bg-indigo-500"],
.fast-ui.theme-light button[class*="bg-gradient-to-r"],
.fast-ui.theme-light button[class~="bg-emerald-500"] {
  color: #ffffff !important;
}

.fast-ui.theme-light [class~="text-white"][class~="bg-indigo-500"],
.fast-ui.theme-light [class~="text-white"][class~="bg-indigo-600"],
.fast-ui.theme-light [class~="text-white"][class~="bg-blue-500"],
.fast-ui.theme-light [class~="text-white"][class~="bg-blue-600"],
.fast-ui.theme-light [class~="text-white"][class~="bg-emerald-500"],
.fast-ui.theme-light [class~="text-white"][class~="bg-emerald-600"],
.fast-ui.theme-light [class*="bg-gradient-to-tr"] > [class~="text-white"] {
  color: #ffffff !important;
}

.fast-ui.theme-light input[type="date"],
.fast-ui.theme-light input[type="datetime-local"] {
  color-scheme: light !important;
}

/* Apple-style light hierarchy: neutral canvas, white cards, color reserved for meaning. */
.fast-ui.theme-light .dashboard-stats > div:nth-child(1) {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.055) !important;
}

.fast-ui.theme-light .dashboard-stats > div:nth-child(2) {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.055) !important;
}

.fast-ui.theme-light .dashboard-stats > div:nth-child(3) {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.055) !important;
}

.fast-ui.theme-light .dashboard-stats > div:nth-child(4) {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.055) !important;
}

.fast-ui.theme-light .member-card {
  background: #ffffff !important;
}

.fast-ui.theme-light .member-card > div:first-child > div:first-child > div:first-child {
  background: #f1f1f3 !important;
  border-color: #e5e5e7 !important;
  color: #515154 !important;
}

.fast-ui.theme-light .member-card > button {
  background: #f1f1f3 !important;
  border-color: transparent !important;
  color: #0066cc !important;
}

.fast-ui.theme-light .member-card > button:hover {
  background: #e8e8ed !important;
  border-color: transparent !important;
}

.fast-ui.theme-light .member-card [class*="grid-cols-3"] button,
.fast-ui.theme-light .member-card [class*="bg-black/25"] {
  background: #f5f5f7 !important;
  border-color: #ececee !important;
  color: var(--apple-text) !important;
}

.fast-ui.theme-light .member-card [class*="grid-cols-3"] button:hover {
  background: #ededf0 !important;
  border-color: #dedee2 !important;
}

@media (min-width: 1280px) {
  .fast-ui.theme-light main div.max-w-7xl:has(.member-card) > :first-child {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.055) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.045) !important;
  }

  .fast-ui.theme-light main div.max-w-7xl:has(.member-card) > :first-child::before {
    color: #1d1d1f !important;
  }
}

.fast-ui.theme-light .fixed.inset-0[class*="bg-black/"],
.fast-ui.theme-light .fixed.inset-0 > [class*="bg-black/"] {
  background: rgba(31, 41, 55, 0.34) !important;
}

.fast-ui.theme-light .fixed.inset-0 > .relative,
.fast-ui.theme-light .fixed.inset-0 form[class*="max-w"] {
  background: #ffffff !important;
  border-color: #e5e5e7 !important;
}

.fast-ui.theme-light .fixed.inset-0 header,
.fast-ui.theme-light .fixed.inset-0 footer {
  border-color: #ececee !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

.fast-ui.theme-light .queue-item {
  background: #ffffff !important;
}

.fast-ui.theme-light .queue-meta > span,
.fast-ui.theme-light .queue-row-tools button,
.fast-ui.theme-light .queue-actions > .grid button,
.fast-ui.theme-light .queue-type-cell select {
  background: #f5f5f7 !important;
  border-color: #e5e5e7 !important;
}

.fast-ui.theme-light .audit-filter-button {
  background: #f1f1f3 !important;
  border-color: transparent !important;
  color: #6e6e73 !important;
}

.fast-ui.theme-light .audit-filter-button:hover {
  background: #e8e8ed !important;
  color: #1d1d1f !important;
}

.fast-ui.theme-light .audit-filter-button[data-selected="true"] {
  background: #1d1d1f !important;
  border-color: #1d1d1f !important;
  color: #ffffff !important;
}

.fast-ui.theme-light .audit-log-entry:hover {
  background: #f5f5f7 !important;
}

/* Screenshot-driven alignment corrections for queue metadata and dashboard rows. */
.fast-ui.theme-light .project-list-panel tbody td:nth-child(n + 2) {
  vertical-align: middle !important;
}

.fast-ui.theme-light .project-list-panel th:last-child,
.fast-ui.theme-light .project-list-panel td:last-child {
  text-align: center !important;
}

.fast-ui.theme-light .project-list-panel td:last-child > :first-child {
  justify-content: center !important;
}

/* Muted semantic chips remain recognizable without fluorescent light-theme colors. */
.fast-ui.theme-light span[class~="bg-emerald-500/10"] {
  background: #e5f1ed !important;
  border-color: #c8dfd7 !important;
  color: #2f7463 !important;
}

.fast-ui.theme-light span[class~="bg-indigo-500/10"] {
  background: #e9edf7 !important;
  border-color: #cfd8ea !important;
  color: #445f8e !important;
}

.fast-ui.theme-light span[class~="bg-amber-500/10"] {
  background: #f5efdf !important;
  border-color: #e7dab7 !important;
  color: #806326 !important;
}

.fast-ui.theme-light span[class~="bg-rose-500/10"],
.fast-ui.theme-light span[class~="bg-red-500/10"] {
  background: #f6e9eb !important;
  border-color: #e9cfd5 !important;
  color: #9a4f60 !important;
}

/* Member task avatars use one calm slate-blue instead of unrelated neon colors. */
.fast-ui.theme-light .member-card [class~="w-5"][class~="h-5"][class~="rounded-full"][class~="text-white"] {
  background: #74889e !important;
  border: 1px solid #687c92 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

/* Audit colors need darker ink on a light canvas; inline dark-theme colors are overridden. */
.fast-ui.theme-light .audit-log-action-badge[data-audit-category="create"] {
  background: #e5f2ec !important;
  border-color: #c6e0d3 !important;
  color: #277158 !important;
}

.fast-ui.theme-light .audit-log-action-badge[data-audit-category="update"] {
  background: #e9edf8 !important;
  border-color: #ced7ed !important;
  color: #485f99 !important;
}

.fast-ui.theme-light .audit-log-action-badge[data-audit-category="completion"] {
  background: #eee9f6 !important;
  border-color: #d9ceeb !important;
  color: #684f94 !important;
}

.fast-ui.theme-light .audit-log-action-badge[data-audit-category="delivery"] {
  background: #e3f1ef !important;
  border-color: #c4dfda !important;
  color: #276f68 !important;
}

.fast-ui.theme-light .audit-log-action-badge[data-audit-category="allocation"] {
  background: #e7eff8 !important;
  border-color: #c9d9ec !important;
  color: #315f96 !important;
}

.fast-ui.theme-light .audit-log-action-badge[data-audit-category="scheduling"] {
  background: #e5f1f3 !important;
  border-color: #c7dde2 !important;
  color: #326b76 !important;
}

.fast-ui.theme-light .audit-log-action-badge[data-audit-category="return"],
.fast-ui.theme-light .audit-log-action-badge[data-audit-category="undo"] {
  background: #f4eddf !important;
  border-color: #e4d5b5 !important;
  color: #81632d !important;
}

.fast-ui.theme-light .audit-log-action-badge[data-audit-category="delete"] {
  background: #f6e7e9 !important;
  border-color: #e8cbd1 !important;
  color: #9b4d5d !important;
}

.fast-ui.theme-light .audit-log-action-badge[data-audit-category="save"] {
  background: #e7eef5 !important;
  border-color: #cbd7e4 !important;
  color: #3e668a !important;
}

/* Archive cards use neutral surfaces, reserving teal for the completion signal only. */
.fast-ui.theme-light main .max-w-4xl .space-y-12 [class*="rounded-[28px]"] {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.055) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.045) !important;
}

.fast-ui.theme-light main .max-w-4xl .space-y-12 [class*="rounded-[28px]"]:hover {
  background: #ffffff !important;
  border-color: #d2d2d7 !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.065) !important;
}

.fast-ui.theme-light main .max-w-4xl .space-y-12 [class*="rounded-[28px]"] [class~="w-12"][class~="h-12"] {
  background: #e4f0ed !important;
  border-color: #c3ddd5 !important;
  color: #327767 !important;
}

.fast-ui.theme-light main .max-w-4xl .space-y-12 [class*="rounded-[28px]"] [class~="bg-white/5"][class~="rounded-xl"] {
  background: #f5f5f7 !important;
  border-color: #e5e5e7 !important;
  color: #515154 !important;
}

.fast-ui.theme-light main .max-w-4xl .space-y-12 [class*="rounded-[28px]"] [class~="text-emerald-500/80"][class~="rounded-full"] {
  background: #e7f1ef !important;
  border-color: #c9dfda !important;
  color: #34786b !important;
}

.fast-ui.theme-light main .max-w-4xl .space-y-12 [class~="w-6"][class~="h-6"][class~="bg-slate-900"] {
  background: #f1f1f3 !important;
  border-color: #7189a7 !important;
  box-shadow: none !important;
}

.fast-ui.theme-light main .max-w-4xl .space-y-12 [class~="bg-slate-900/50"][class~="rounded-full"] {
  background: #f1f1f3 !important;
  border-color: #e5e5e7 !important;
}

.fast-ui.theme-light .queue-type-cell,
.fast-ui.theme-light .queue-actions {
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.07) !important;
}

.fast-ui.theme-light .queue-type-cell select,
.fast-ui.theme-light .queue-actions > .grid button,
.fast-ui.theme-light .member-card [class*="bg-black/25"] {
  background: #f5f5f7 !important;
  border-color: #e5e5e7 !important;
  color: var(--apple-text) !important;
}

.fast-ui.theme-light .queue-type-cell select {
  color-scheme: light !important;
}

.fast-ui.theme-light .queue-type-cell select option {
  background-color: #ffffff !important;
  color: #1d1d1f !important;
}

.fast-ui.theme-light .queue-row-tools,
.fast-ui.theme-light .queue-type-cell,
.fast-ui.theme-light .queue-actions {
  border-left-color: rgba(0, 0, 0, 0.065) !important;
}

.fast-ui.theme-light .project-paused {
  background: #e9e9ed !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 3px 0 0 #8e8e93 !important;
}

.fast-ui.theme-light .modal-assignee-menu,
.fast-ui.theme-light .modal-project-type-menu,
.fast-ui.theme-light .backup-export-modal,
.fast-ui.theme-light .fixed.inset-0 > .relative,
.fast-ui.theme-light .fixed.inset-0 form[class*="max-w"] {
  background: rgba(255, 255, 255, 0.995) !important;
  border-color: #e5e5e7 !important;
  color: var(--apple-text) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18) !important;
}

.fast-ui.theme-light .archive-calendar-view {
  --archive-line: rgba(0, 0, 0, 0.075);
  --archive-panel: #ffffff;
}

.fast-ui.theme-light .archive-calendar-toolbar,
.fast-ui.theme-light .archive-calendar-shell,
.fast-ui.theme-light .archive-calendar-monthbar {
  background: #ffffff !important;
  border-color: var(--archive-line) !important;
}

.fast-ui.theme-light .archive-calendar-search,
.fast-ui.theme-light .archive-calendar-type-filter,
.fast-ui.theme-light .archive-calendar-month-actions button {
  background: #f1f1f3 !important;
  border-color: #e5e5e7 !important;
  color: var(--apple-text) !important;
}

.fast-ui.theme-light .archive-calendar-day {
  background: #ffffff !important;
  border-color: #ececee !important;
}

.fast-ui.theme-light .archive-calendar-day:hover,
.fast-ui.theme-light .archive-calendar-day.has-projects {
  background: #f9f9fb !important;
}

.fast-ui.theme-light .archive-calendar-month-label,
.fast-ui.theme-light .archive-calendar-entry-copy strong {
  color: #1d1d1f !important;
}

.fast-ui.theme-light .archive-calendar-month-note,
.fast-ui.theme-light .archive-calendar-weekdays > div,
.fast-ui.theme-light .archive-calendar-day-heading > span {
  color: #6e6e73 !important;
}

.fast-ui.theme-light .archive-calendar-day-heading time {
  color: #515154 !important;
}

.fast-ui.theme-light .archive-calendar-day.is-adjacent .archive-calendar-day-heading time {
  color: #b0b0b5 !important;
}

.fast-ui.theme-light .archive-calendar-entry-assignee {
  border-color: rgba(0, 113, 227, 0.16) !important;
  background: rgba(0, 113, 227, 0.075) !important;
  color: #0066cc !important;
}

.fast-ui.theme-light .audit-log-list {
  border-color: rgba(0, 0, 0, 0.065) !important;
}

.fast-ui.theme-light .audit-log-entry + .audit-log-entry {
  border-color: rgba(0, 0, 0, 0.055) !important;
}

.fast-ui.theme-light .audit-log-entry:hover {
  background: #f5f5f7 !important;
}

.fast-ui.theme-light .audit-log-time {
  color: #6e7480;
}

.fast-ui.theme-light .audit-log-actor {
  color: #6e6e73;
}

.fast-ui.theme-light .audit-log-actor::before {
  color: #9a9aa0;
}

.fast-ui.theme-light .audit-log-body p {
  color: #5f6368;
}

.fast-ui.theme-light .custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
}

@media (max-width: 1023px) {
  .fast-ui.theme-light main {
    background: var(--apple-bg) !important;
  }
}
