:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
  position: relative;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  background: #1a1a1a;
  border-radius: 0 30px 30px 0;
  padding: 18px 10px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.sidebar-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 2px;
  padding-bottom: 12px;
}

.sidebar-brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand-logo {
  display: block;
  width: min(168px, 100%);
  height: auto;
  object-fit: contain;
  margin-left: 10px;
}

.sidebar-brand-mark {
  --ring-color: var(--brand);
  flex: 0 0 auto;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
  margin-bottom: -10px;
}

.sidebar-link {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 6px 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-link-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sidebar-link-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex: 0 0 auto;
}

.sidebar-link-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.sidebar-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: currentColor;
  flex: 0 0 auto;
  -webkit-mask: var(--sidebar-icon-url) center / contain no-repeat;
  mask: var(--sidebar-icon-url) center / contain no-repeat;
}

.sidebar-icon-dashboard { --sidebar-icon-url: url("/static/icons/lucide/layout-dashboard.svg"); }
.sidebar-icon-tasks { --sidebar-icon-url: url("/static/icons/lucide/square-check-big.svg"); }
.sidebar-icon-projects { --sidebar-icon-url: url("/static/icons/lucide/folder.svg"); }
.sidebar-icon-archive { --sidebar-icon-url: url("/static/icons/lucide/archive.svg"); }
.sidebar-icon-star { --sidebar-icon-url: url("/static/icons/lucide/star.svg"); }
.sidebar-icon-plus { --sidebar-icon-url: url("/static/icons/lucide/plus.svg"); }
.sidebar-icon-crm { --sidebar-icon-url: url("/static/icons/lucide/users-round.svg"); }
.sidebar-icon-analytics { --sidebar-icon-url: url("/static/icons/lucide/chart-column.svg"); }
.sidebar-icon-admin { --sidebar-icon-url: url("/static/icons/lucide/sliders-horizontal.svg"); }

.sidebar-link:hover {
  color: var(--text);
  border-color: transparent;
  background: #222526;
}

.sidebar-link.active {
  color: var(--text);
  border-color: transparent;
  background: color-mix(in srgb, var(--brand) 18%, var(--card-bg));
}

.sidebar-projects {
  margin-top: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 0;
  position: relative;
}

.sidebar-projects-archived {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.sidebar-projects-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
  margin: 0;
  min-height: 18px;
  line-height: 1.2;
  flex: 0 0 auto;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.sidebar-projects-primary {
  gap: 8px;
}

.sidebar-projects-primary .sidebar-projects-head {
  gap: 6px;
  margin-bottom: 0;
  font-size: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  min-height: auto;
}

.sidebar-projects-primary .sidebar-link {
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-projects-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.sidebar-add-project:hover,
.sidebar-add-project:focus-visible {
  color: #B4D7EE;
}

.sidebar-crm-groups .sidebar-projects-head {
  gap: 6px;
  margin-bottom: 2px;
  font-size: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  min-height: auto;
}

.sidebar-crm-groups .sidebar-projects-head .sidebar-link {
  flex: 1 1 auto;
  padding: 12px 12px;
}

#crmToggleBtn.sidebar-archive-toggle {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

#crmToggleBtn.sidebar-archive-toggle .arrow {
  width: 12px;
  height: 12px;
}

#crmPipelinesList {
  padding-left: 5px;
  margin-top: 2px;
}

.sidebar-crm-groups .sidebar-projects-head:active {
  background: #222526;
  border-radius: 14px;
}

.sidebar-crm-groups .sidebar-projects-head:has(.sidebar-link.active) {
  background: #222526;
  border-radius: 14px;
}

.sidebar-crm-groups .sidebar-projects-head:hover {
  background: #222526;
  border-radius: 14px;
}

.sidebar-crm-groups .sidebar-projects-head:has(.sidebar-link.active) .sidebar-link,
.sidebar-crm-groups .sidebar-projects-head:hover .sidebar-link {
  background: transparent;
}

.sidebar-archive-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 8px 10px 12px;
  line-height: 1.2;
  border-radius: 10px;
}

.sidebar-archive-toggle:hover {
  background: transparent;
  color: var(--fg-1);
}

.sidebar-archive-toggle:focus-visible {
  background: #222526;
  color: var(--fg-1);
}

.sidebar-projects-head-actions .sidebar-archive-toggle {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.sidebar-projects-head-actions .sidebar-archive-toggle:hover,
.sidebar-projects-head-actions .sidebar-archive-toggle:focus-visible {
  background: transparent;
  color: var(--fg-1);
}

.sidebar-archive-toggle > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sidebar-projects:not(.sidebar-projects-primary) .sidebar-projects-head {
  margin-bottom: 0;
  min-height: 0;
}

.sidebar-section-label-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 auto;
}

.sidebar-section-label-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.sidebar-archive-toggle .arrow {
  transition: transform 0.15s ease;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-archive-toggle .arrow svg {
  width: 12px;
  height: 12px;
  display: block;
  fill: currentColor;
}

.sidebar-archive-toggle[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
}

.sidebar-add-project {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-add-project svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.sidebar-projects-list {
  min-height: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 0;
  padding-left: 6px;
  padding-top: 2px;
  max-height: none;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.sidebar-projects-primary .sidebar-projects-list {
  padding-left: 6px;
}

.sidebar-projects-list > .small.text-muted {
  margin-left: 6px;
}

#favoriteProjectsList > .ui-small.ui-muted {
  margin-left: 6px;
}

.sidebar-project-groups {
  border-top: 1px solid color-mix(in srgb, var(--border) 38%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 38%, transparent);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav-secondary {
  margin-top: -9px;
}

.sidebar-project-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid transparent;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 12px;
  line-height: 1.35;
}

.sidebar-project-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  min-width: 0;
}

.sidebar-star-form {
  margin: 0;
}

.sidebar-star {
  border: 0;
  background: transparent;
  color: #798797;
  font-size: 13px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-star svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.sidebar-star.active {
  color: #B4D7EE;
}

.sidebar-project-link .name {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-project-link:hover {
  color: var(--text);
  border-color: transparent;
  background: color-mix(in srgb, var(--card-bg) 82%, #ffffff 18%);
}

.sidebar-project-link.active {
  color: var(--text);
  border-color: transparent;
  background: color-mix(in srgb, var(--brand) 18%, var(--card-bg));
}

.sidebar-project-link.archived {
  opacity: 0.9;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding-top: 8px;
  border-top: 1px solid color-mix(in srgb, var(--border) 45%, transparent);
  flex: 0 0 auto;
}

.profile-trigger {
  border: 0;
  background: #222526;
  color: #E0E0E0;
  border-radius: 10px;
  padding: 8px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
}

.profile-trigger:hover {
  background: #353839;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--avatar-color, #B9D9EE);
  color: #151718;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.profile-avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.avatar-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-color-choice {
  cursor: pointer;
  display: inline-flex;
}

.avatar-color-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-color-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--avatar-color, #B9D9EE);
  color: #151718;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.avatar-color-choice input:checked + .avatar-color-swatch {
  box-shadow: 0 0 0 3px #17191a, 0 0 0 6px var(--avatar-color, #B9D9EE);
}

.profile-meta {
  min-width: 0;
  display: grid;
  line-height: 1.15;
}

.profile-name {
  color: #E0E0E0;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-email {
  color: #c1c6cc;
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-trigger .badge {
  background: #353A3E;
  color: #B4D7EE;
}

.app-main {
  min-width: 0;
  padding: 18px;
}

.nav-link,
.navbar-brand,
.text-muted,
.form-label,
.small {
  color: var(--muted);
}

.navbar-brand {
  color: var(--text);
}

.panel {
  border-radius: 14px;
  background: var(--panel);
  border: 0;
  box-shadow: none;
}

.dot,
.dot-ring {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  border-radius: 999px;
  box-sizing: border-box;
  flex: 0 0 14px;
  aspect-ratio: 1 / 1;
}

.dot {
  border: 1px solid color-mix(in srgb, var(--text) 70%, transparent);
}

.dot-ring {
  border: 4px solid var(--ring-color, var(--brand));
  background: transparent;
}

.form-control,
.form-select,
.btn {
  border-radius: 10px;
}

.btn svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}

.form-control,
.form-select {
  border-color: transparent;
  background: color-mix(in srgb, var(--card-bg) 90%, #ffffff 10%);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--brand) 28%, transparent);
  border-color: transparent;
}

.project-card {
  color: inherit;
  text-decoration: none;
}

.project-card:hover {
  transform: translateY(-1px);
}

.projects-page {
  display: block;
}

.projects-add-btn {
  min-width: 156px;
}

.projects-summary-value {
  color: var(--fg-1);
}

.projects-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.projects-tabs {
  display: inline-flex;
  align-items: flex-end;
  gap: 24px;
}

.projects-tab {
  border: 0;
  position: relative;
  background: transparent;
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 12px;
  font-size: 16px;
  line-height: 1.1;
  font-weight: 500;
}

.projects-tab.active {
  color: var(--fg-1);
}

.projects-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
}

.projects-tab.active::after {
  background: var(--accent);
}

.projects-tab-count {
  min-width: 23px;
  height: 23px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--fg-1);
  font-size: 12px;
  font-weight: 500;
}

.projects-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
}

.projects-search,
.projects-sort {
  min-height: 40px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--fg-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
}

.projects-search {
  min-width: 230px;
}

.projects-sort {
  min-width: 184px;
}

.projects-search input,
.projects-sort select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg-2);
  font: inherit;
  font-size: 14px;
  min-height: 40px;
}

.projects-search input::placeholder {
  color: var(--fg-3);
}

.projects-sort select {
  appearance: none;
  cursor: pointer;
}

.projects-control-icon,
.projects-cell-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-3);
  flex: 0 0 auto;
}

.projects-control-icon svg,
.projects-cell-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.projects-list {
  overflow: hidden;
  border-radius: var(--r-xl);
}

.projects-list-head,
.projects-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(110px, 1fr) minmax(130px, 1.2fr) minmax(130px, 1.2fr) minmax(120px, 0.8fr);
  align-items: center;
  gap: 18px;
}

.projects-list-head {
  min-height: 56px;
  padding: 0 28px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.projects-row {
  min-height: 86px;
  padding: 0 28px;
  color: var(--fg-2);
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  font-size: 16px;
}

.projects-row:last-of-type {
  border-bottom: 0;
}

.projects-row:hover,
.projects-row:focus-visible {
  color: var(--fg-1);
  background: var(--bg-hover);
  border-bottom-color: transparent;
}

.projects-row:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 4px var(--accent-ring);
}

.projects-cell {
  min-width: 0;
  font-size: 14px;
}

.projects-name-cell,
.projects-date-cell,
.projects-progress-cell {
  display: flex;
  align-items: center;
}

.projects-name-cell {
  gap: 14px;
  color: var(--fg-1);
}

.projects-name-cell .dot-ring {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ring-color, var(--accent)) 16%, transparent);
  background: var(--ring-color, var(--accent));
}

.projects-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
}

.projects-owner {
  font-size: 13px;
  white-space: nowrap;
}

.projects-date-cell {
  gap: 10px;
}

.projects-progress-cell {
  justify-content: flex-start;
}

.projects-cell-icon-stroke svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.projects-progress-ring {
  --project-progress: 0%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, var(--panel) 0 56%, transparent 57%),
    conic-gradient(var(--accent) var(--project-progress), color-mix(in srgb, var(--fg-3) 16%, transparent) 0);
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 600;
}

.projects-empty {
  padding: 32px;
}

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

  .projects-controls {
    width: 100%;
  }

  .projects-search,
  .projects-sort {
    flex: 1 1 0;
  }

  .projects-list {
    overflow-x: auto;
  }

  .projects-list-head,
  .projects-row {
    min-width: 880px;
  }
}

@media (max-width: 720px) {
  .projects-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .projects-search,
  .projects-sort {
    min-width: 0;
  }

  .projects-tab {
    font-size: 16px;
  }
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
}

.stat .label {
  color: var(--muted);
  font-size: 12px;
}

.stat .value {
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  margin-top: 10px;
}

.project-page-top {
  display: grid;
  gap: 4px;
}

.project-page-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.date-plain-separator,
.project-days-left {
  margin-left: 5px;
}

.project-days-left {
  color: var(--fg-3);
}

.project-days-left-number {
  color: #E0E0E0;
}

.project-info-strip {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.project-info-item strong {
  color: var(--text);
}

.project-info-icon {
  opacity: 0.9;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-info-icon svg,
.metric-icon {
  width: 14px;
  height: 14px;
  display: block;
  fill: currentColor;
}

.stages-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 4);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
  scrollbar-color: #5b5d60 transparent;
}

.stage-col {
  min-height: 260px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  scroll-snap-align: start;
}

.stage-col.js-stage-edit-surface {
  cursor: pointer;
}

.stage-col::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--stage-accent, #5ec4ff);
}

.stage-metrics {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.stage-head {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.stage-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.stage-head-row-title {
  align-items: flex-start;
}

.stage-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 0;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.stage-status-chip-idle {
  background: #1f2425;
  color: #8f9699;
}

.stage-status-chip-active {
  background: rgba(180, 215, 238, 0.12);
  color: #B4D7EE;
}

.stage-status-chip-done {
  background: rgba(111, 207, 151, 0.14);
  color: #6FCF97;
}

.stage-status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

.stage-metric {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  font-weight: 600;
}

.stage-metric-plan {
  background: color-mix(in srgb, var(--accent-blue) 22%, var(--gray-onyx));
  color: #e3edf8;
}

.stage-metric-fact {
  background: rgba(253, 198, 147, 0.22);
  color: #f8eadf;
}

.stage-progress-wrap {
  display: grid;
  gap: 6px;
}

.stage-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stage-progress-title {
  color: #7a7d80;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}

.stage-progress-label {
  color: #e0e0e0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}

.stage-progressbar {
  height: 9px;
  border-radius: 999px;
  background: #1c2f45;
  overflow: hidden;
}

.stage-progressbar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--stage-accent, #5ec4ff);
}

.project-empty-stage .card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-empty-stage-copy {
  color: var(--muted);
}

.task-card {
  border-radius: 10px;
  padding: 10px;
  background: color-mix(in srgb, var(--card-bg) 88%, #0e1318 12%);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage-col .task-card {
  padding-right: 10px;
}

.task-delete-top {
  position: static;
}

.stage-col .task-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.date-plain-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.date-plain-inline {
  display: inline-block;
  color: var(--fg-1);
}

.date-plain-value {
  color: var(--fg-1);
}

.task-date-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}

.task-date-badge-empty {
  cursor: default;
  opacity: 0.82;
}

.task-stage-done {
  border: 1px solid #495057;
  background: #1f2123;
  color: #cfd3d7;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex: 0 0 auto;
}

.task-stage-done svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.task-card:not(.done) .task-stage-done:hover,
.task-card:not(.done) .task-stage-done:focus-visible {
  background: #6FCF97;
  border-color: #6FCF97;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(111, 207, 151, 0.16);
}

.task-card:not(.done) .task-stage-done:hover svg,
.task-card:not(.done) .task-stage-done:focus-visible svg {
  opacity: 1;
}

.task-card.done .task-stage-done {
  background: #2f654b;
  border-color: #3b7e5b;
  color: #e4f7ed;
}

.task-card.done .task-stage-done svg {
  opacity: 1;
}

.stage-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.1;
  white-space: nowrap;
}

.stage-inline-edit {
  color: var(--text);
  cursor: pointer;
}

.stage-inline-edit:hover {
  opacity: 0.92;
}

.stage-col .task-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 20px;
}

.task-metric-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 999px;
  padding: 3px 9px;
  background: #242527;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.1;
  cursor: pointer;
}

.task-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #242527;
}

.task-controls-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.task-fact-label {
  opacity: 0.78;
}

.project-task-fact-btn {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  border-radius: 10px;
}

.project-task-fact-btn .timer-live.tiny {
  margin-left: 0;
  border: 0;
  border-radius: 10px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1;
}

.project-task-fact-btn:hover .timer-live.tiny {
  background: rgba(255, 255, 255, 0.16);
}

.project-task-fact-btn.project-task-fact-btn-over .timer-live.tiny {
  background: rgba(255, 149, 149, 0.22);
  color: #ffdfe3;
}

.task-metric-btn:hover {
  background: #2f3234;
}

.task-metric-btn .metric-icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.task-metric-btn-fact {
  background: #2a3a3a;
}

.task-metric-btn-fact:hover {
  background: #324647;
}

.task-inline-edit {
  font-size: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.task-inline-edit:hover {
  opacity: 0.92;
}

.stage-col .task-meta-row .priority {
  font-size: 9px;
  cursor: pointer;
  margin-left: auto;
}

.stage-col .js-task-edit-trigger {
  cursor: pointer;
}

.task-card.done {
  opacity: 0.40;
}

.task-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  min-width: 0;
}

.priority {
  text-transform: none;
  font-size: 10px;
  letter-spacing: 0;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid transparent;
}

.priority.high { background: #ffe5e5; color: #9f1616; border-color: #f5bcbc; }
.priority.medium { background: #fff3d7; color: #9a6a00; border-color: #f4dfaa; }
.priority.low { background: #dffbe7; color: #0e7a37; border-color: #bdebc9; }
.priority.frozen { background: #ddeeff; color: #1f5d9f; border-color: #bfd8f1; }

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.tasks-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 36px) / 4);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.day-col {
  min-height: 520px;
  --stage-accent: var(--day-accent);
  background: var(--bg-surface);
  border-radius: var(--r-lg);
}

.day-col.is-today {
  --day-accent: var(--accent);
}

.day-col.is-past {
  --day-accent: rgba(255, 255, 255, 0.1);
}

.day-col.is-future {
  --day-accent: var(--fg-2);
}

.day-head {
  padding: 0;
  border-bottom: 0;
}

.day-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.day-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.day-date {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.day-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
}

.week-task {
  cursor: grab;
  position: relative;
  overflow: hidden;
}

.week-task.priority-high::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--projeta-warning);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  pointer-events: none;
}

.week-task.priority-low:not(.done) {
  opacity: 0.80;
}

.week-task.dragging {
  opacity: 0.55;
}

.task-path {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 0;
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.task-path-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--task-path-color, currentColor);
}

.task-path span:not(.task-path-dot) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-path:hover {
  color: #ffffff;
}

.overdue-mark {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  margin-bottom: 0;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(235, 87, 87, 0.14);
  color: var(--projeta-danger);
  font-size: 10px;
  font-weight: 500;
}

.task-time-btn {
  margin-top: 0;
  border-radius: 8px;
  border: none;
  padding: 3px 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.task-time-btn-plan {
  padding: 0;
  background: transparent;
  color: #ffffff;
  gap: 8px;
}

.task-time-btn-plan .small {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.task-time-btn-plan .estimate-label {
  font-size: 0.95rem;
  color: #ffffff;
}

.task-subtask-add {
  margin-top: 0;
  border: 0;
  background: transparent;
  color: var(--fg-3);
  font-size: 12px;
  text-decoration: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.task-subtask-add:hover {
  color: #a8c2e1;
}

.task-subtasks-block {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.task-subtasks-block[hidden] {
  display: none;
}

.task-subtasks-head {
  display: grid;
  grid-template-columns: auto minmax(44px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.task-subtasks-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.task-subtasks-progress {
  margin-top: 2px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border-strong);
}

.task-subtasks-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.18s ease;
}

.task-subtasks-summary {
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 500;
}

.subtasks-list {
  margin-top: 5px;
  display: grid;
  gap: 8px;
}

.subtasks-list:empty {
  display: none;
}

.subtask-edit-row {
  background-color: var(--bg-elevated);
  border-radius: 12px;
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 6px;
  min-height: 48px;
  padding: 0 5px;
}

.subtask-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-2);
  line-height: 1.35;
  cursor: pointer;
}

.subtask-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.subtask-check-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  min-width: 15px;
  height: 15px;
  border-radius: var(--r-md);
  background: var(--projeta-black-2);
  color: var(--fg-2);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.subtask-check-visual svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.subtask-item:not(.done):hover .subtask-check-visual,
.subtask-item:not(.done):focus-within .subtask-check-visual {
  background: var(--projeta-success);
  color: var(--projeta-white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--projeta-success) 16%, transparent);
}

.subtask-item.done .subtask-check-visual {
  background: color-mix(in srgb, var(--projeta-success) 35%, transparent);
  color: var(--projeta-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--projeta-success) 16%, transparent);
}

.subtask-item:not(.done):hover .subtask-check-visual svg,
.subtask-item:not(.done):focus-within .subtask-check-visual svg,
.subtask-item.done .subtask-check-visual svg {
  opacity: 1;
}

.subtask-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
}

.subtask-item input[type="checkbox"]:checked::after {
  content: none;
}

.subtask-item input[type="checkbox"]:checked {
  background: transparent;
  border: 0;
}

.subtask-item.done .txt {
  color: var(--fg-3);
  text-decoration: line-through;
  text-decoration-color: var(--fg-3);
  opacity: 0.78;
}

.subtask-delete-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  line-height: 1;
  padding: 0;
  border-radius: 7px;
}

.btn-sm.btn-icon-only.subtask-delete-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.task-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 10px;
  background: #242527;
}

.timer-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.timer-live {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.timer-live.tiny {
  font-size: 0.72rem;
  border: 1px solid #496685;
  border-radius: 7px;
  padding: 1px 6px;
  background: #152739;
}

.task-card .timer-toggle {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  line-height: 1;
  border-radius: 7px;
  border: 0;
  background: #242527;
  color: #ffffff;
}

.task-card .timer-toggle svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.task-card .timer-toggle.timer-off:hover {
  background: #2f3234;
}

.task-card .timer-toggle.timer-on,
.task-card .timer-toggle.timer-on:hover {
  background: #8f6734;
  color: #fff4dd;
}

.task-card .timer-live {
  margin-left: 4px;
}

.task-card .timer-live.tiny {
  border: 0;
  border-radius: 10px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.task-card .timer-live.is-running {
  background: #8f6734;
  color: #fff4dd;
}

.task-card .task-metric-btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.task-card .task-metric-btn-fact {
  background: rgba(253, 198, 147, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

.task-card .task-metric-btn-fact-over {
  background: rgba(255, 149, 149, 0.22);
  color: rgba(255, 255, 255, 0.82);
}

.fp-task-btn {
  border: 0;
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.fp-task-btn.is-on {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.modal-anchored {
  overflow: visible;
}

.modal-anchored .modal-dialog {
  max-width: 460px;
  width: 460px;
}

.modal-anchored .modal-content {
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.mini-field-modal .modal-dialog {
  max-width: 460px;
  width: 460px;
}

.modal-sm {
  max-width: 460px;
  width: 460px;
}

.mini-field-modal .modal-dialog,
.mini-field-modal .modal-content {
  transition: none;
}

.mini-field-modal .modal-content {
  max-height: calc(100vh - 24px);
  overflow: visible;
}

.mini-field-modal .modal-body {
  overflow: visible;
}

.stepper-only-modal .modal-dialog,
.mini-field-modal.stepper-only-modal .modal-dialog {
  max-width: max-content;
  width: auto;
}

.stepper-only-modal .modal-content,
.mini-field-modal.stepper-only-modal .modal-content {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  max-height: none;
  overflow: visible;
  padding: 0;
  width: auto;
}

.stepper-only-modal .modal-header,
.stepper-only-modal .modal-footer,
.stepper-only-modal .modal-design .modal-header,
.stepper-only-modal .modal-design .modal-footer {
  display: none;
}

.stepper-only-modal .modal-body,
.stepper-only-modal .modal-design .modal-body {
  padding: 0;
}

.modal-wide-form {
  max-width: 760px;
  width: 760px;
}

.modal-compact-form {
  max-width: 760px;
  width: 760px;
}

.project-form-grid .form-control-color {
  width: 100%;
  min-width: 0;
}

.project-form-grid > [class*="col-"] {
  min-width: 0;
}

.modal-edit-task .modal-dialog {
  max-width: 760px;
  width: 760px;
}

.modal-edit-task .modal-content {
  max-height: calc(100vh - 48px);
}

.modal-edit-task .modal-body {
  overflow-y: auto;
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
  justify-content: flex-end;
  position: absolute;
  right: 0;
  top: 0;
}

.modal-design {
  background: #131313;
  border: 0;
  border-radius: 20px;
  color: var(--fg-1);
  overflow: visible;
  padding: 24px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58);
}

.modal-design .modal-header,
.modal-design .modal-body,
.modal-design .modal-footer {
  border: 0;
  overflow: visible;
  padding: 0;
}

.modal-design.modal-design-task {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  position: relative;
}

.modal-design.modal-design-task .modal-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  padding-right: 0;
}

.modal-design.modal-design-task .modal-footer {
  background: #131313;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.modal-design .modal-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-right: 116px;
  position: relative;
}

.modal-design .modal-header > .btn-close {
  position: absolute;
  right: 0;
  top: 0;
}

.modal-design .modal-title {
  color: var(--fg-1);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 35px 0 35px;
}

.modal-design-mini .modal-header {
  gap: 0;
  padding-right: 52px;
}

.modal-design-mini .modal-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.modal-kicker {
  align-items: center;
  background: rgba(180, 215, 238, 0.12);
  border-radius: 999px;
  color: var(--accent);
  display: inline-flex;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  min-height: 0;
  padding: 5px 11px 4px;
  text-transform: uppercase;
}

.modal-design .modal-form-grid {
  display: grid;
  gap: 10px;
}

.modal-design.modal-design-task .modal-form-grid {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.modal-design .modal-field-row {
  background: #1a1a1a;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  position: relative;
  z-index: 1;
}

.modal-design .modal-field-row:has(.priority-select-ui.open) {
  z-index: 40;
}

.modal-design .modal-field-row-single {
  grid-template-columns: minmax(0, 1fr);
}

.modal-design.modal-design-task .modal-field-row:has(.modal-subtasks-field) {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.modal-design .modal-field {
  background: transparent;
  border-radius: 0;
  padding: 14px 18px 10px;
}

.modal-design .modal-subtasks-field {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 16px 18px;
}

.modal-design .modal-field + .modal-field {
  position: relative;
}

.modal-design .modal-field + .modal-field::before {
  background: rgba(255, 255, 255, 0.06);
  content: "";
  height: calc(100% - 32px);
  left: 0;
  position: absolute;
  top: 16px;
  width: 1px;
}

.modal-design .modal-submit-row {
  width: 100%;
}

.modal-design .form-label {
  color: var(--modal-label-color);
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.modal-design .form-control,
.modal-design .form-select,
.modal-design .priority-select-trigger {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  color: var(--fg-1);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  min-height: 30px;
  padding: 0;
}

.modal-design .form-control::placeholder {
  color: rgba(122, 125, 128, 0.52);
  opacity: 1;
}

.modal-design .form-control:focus,
.modal-design .form-select:focus {
  background-color: transparent;
  box-shadow: none;
}

.modal-design .form-select {
  background-image: none;
  cursor: pointer;
}

.modal-design .js-flat-date,
.modal-design #taskDateRangeInput,
.modal-design #editTaskDateRangeInput,
.modal-design #editTaskDateInlineInput,
.modal-design #taskCreateDateInput,
.modal-design .js-estimate-trigger {
  background-position: left 1px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  padding-left: 32px;
}

.modal-design .js-flat-date,
.modal-design #taskDateRangeInput,
.modal-design #editTaskDateRangeInput,
.modal-design #editTaskDateInlineInput,
.modal-design #taskCreateDateInput {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237a7d80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M8 2v4'/%3e%3cpath d='M16 2v4'/%3e%3crect width='18' height='18' x='3' y='4' rx='2'/%3e%3cpath d='M3 10h18'/%3e%3c/svg%3e");
}

.modal-design .js-estimate-trigger {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237a7d80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpolyline points='12 6 12 12 16 14'/%3e%3c/svg%3e");
}

.modal-design .modal-footer {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  padding-top: 38px;
}

.modal-design-confirm .modal-field-row {
  background: transparent;
  border-radius: 0;
}

.modal-design-confirm .modal-field {
  padding: 0;
}

.modal-design-confirm .modal-confirm-text {
  color: var(--fg-1);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.modal-design .btn-blue,
.modal-design .btn-primary {
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: var(--fg-on-accent);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 17px 24px;
}

.modal-design .btn-blue:hover,
.modal-design .btn-blue:focus-visible,
.modal-design .btn-blue:active,
.modal-design .btn-primary:hover,
.modal-design .btn-primary:focus-visible,
.modal-design .btn-primary:active {
  background: var(--accent-pressed);
  color: var(--fg-on-accent);
}

.modal-design .btn-outline-secondary,
.modal-design .btn-secondary-ghost {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  min-height: 36px;
  padding: 15px 18px;
}

.modal-design .btn-danger {
  background: var(--projeta-danger);
  border: 0;
  border-radius: 999px;
  color: var(--fg-on-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  min-height: 50px;
  padding: 15px 18px;
}

.modal-primary-wide {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.modal-submit-row {
  margin-top: 14px;
}

.modal-color-field {
  align-content: center;
}

.modal-color-control {
  display: flex;
  align-items: center;
  gap: 14px;
}

.modal-color-picker {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 25px;
  padding: 0;
  width: 25px;
}

.modal-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.modal-color-picker::-webkit-color-swatch {
  border: 0;
  border-radius: 999px;
}

.modal-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-color-swatch {
  appearance: none;
  background: var(--swatch-color);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  height: 20px;
  margin: 0;
  padding: 0;
  width: 20px;
}

.modal-color-swatch.is-selected {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.86) inset;
}

.modal-design .task-modal-subtasks {
  flex: 1 1 auto;
  gap: 8px;
  margin-top: 7px;
  max-height: none;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-gutter: stable;
}

.modal-design .task-modal-subtasks .input-group {
  gap: 12px;
}

.modal-design .task-modal-subtasks .form-control {
  background: #222526;
  border-radius: 12px;
  font-size: 14px;
  height: 48px;
  min-height: 48px;
  padding: 10px 12px;
}

.modal-design .task-modal-subtasks .btn {
  background: #222526;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.76);
  min-height: 48px;
  padding: 0 14px;
}

.modal-stepper-grid {
  background: #1a1a1a;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  position: relative;
}

.modal-stepper-grid .modal-field {
  background: transparent;
  border-radius: 0;
  min-height: 86px;
  padding: 16px 18px;
}

.modal-stepper-grid .modal-field + .modal-field {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-stepper-grid .form-control {
  background: transparent;
  border-radius: 0;
  font-size: 16px;
  font-weight: 400;
  min-height: 30px;
  padding: 0;
  text-align: center;
}

.modal-stepper-grid .modal-stepper-control {
  background: #222526;
}

.modal-stepper-control {
  align-items: center;
  background: #1a1a1a;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  min-height: 48px;
  padding: 0 8px;
}

.modal-stepper-control .form-control {
  -moz-appearance: textfield;
  color: var(--fg-1);
}

.modal-stepper-control .form-control::-webkit-inner-spin-button,
.modal-stepper-control .form-control::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-stepper-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #bfbfbf;
  display: inline-flex;
  font-size: 18px;
  font-weight: 500;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.modal-stepper-btn:hover,
.modal-stepper-btn:focus-visible {
  background: transparent;
  color: var(--fg-1);
  outline: 0;
}

.modal-design-mini {
  padding: 24px;
}

.modal-design-mini .modal-body {
  overflow: visible;
}

.modal-design-mini .modal-field {
  min-height: 0;
}

.modal-design-mini .modal-field::before {
  display: none;
}

.modal-icon-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.btn-icon-action {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.crm-deal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.crm-deal-head-actions .crm-icon-action {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.crm-deal-head-actions .btn-icon-accent-success {
  color: #52d98c;
}

.crm-deal-head-actions .btn-icon-accent-success:hover,
.crm-deal-head-actions .btn-icon-accent-success:focus-visible {
  color: #7cf0ad;
  transform: scale(1.06);
}

.crm-deal-head-actions .btn-icon-accent-danger {
  color: #ff6b78;
}

.crm-deal-head-actions .btn-icon-accent-danger:hover,
.crm-deal-head-actions .btn-icon-accent-danger:focus-visible {
  color: #ff98a2;
  transform: scale(1.06);
}

.crm-deal-head-actions .crm-icon-action .sidebar-link-icon {
  width: 36px;
  height: 36px;
}

.crm-deal-head-actions .crm-icon-action svg {
  width: 36px;
  height: 36px;
  display: block;
}

.crm-deal-head-actions .crm-icon-action:hover,
.crm-deal-head-actions .crm-icon-action:focus-visible {
  background: transparent;
  box-shadow: none;
}

.modal-compact-form .form-control,
.modal-compact-form .form-select {
  min-width: 0;
}

.modal-saving-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #cfd3d7;
}

.modal-saving-indicator[hidden] {
  display: none;
}

.modal-saving-indicator::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  opacity: 0.85;
  animation: modalSavingSpin 0.8s linear infinite;
}

@keyframes modalSavingSpin {
  to { transform: rotate(360deg); }
}

.delete-x {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  line-height: 1;
  padding: 0;
  font-size: 12px;
  color: #88a1be;
  border-color: #4c6480;
  background: #1a2a3c;
}

.delete-x:hover {
  color: #d9e7f8;
  border-color: #7791b0;
  background: #22384f;
}

.day-col.drop-hover {
  border-color: #7aa8ff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 40%, transparent);
}

.alert {
  border-radius: 10px;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  display: none;
  -webkit-appearance: none;
}

input[type="date"],
input[type="time"] {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.js-estimate-trigger {
  cursor: pointer;
}

.modal .btn-close {
  align-items: center;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d7d9dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M18 6 6 18'/%3e%3cpath d='m6 6 12 12'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  display: inline-flex;
  filter: none;
  height: 36px;
  justify-content: center;
  opacity: 0.95;
  padding: 0;
  width: 36px;
}

.modal .btn-close:hover {
  background-color: rgba(255, 255, 255, 0.06);
  opacity: 1;
}

.modal .btn-close:focus {
  box-shadow: none;
  outline: 0;
}

@media (max-width: 991px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    display: block;
  }

  .sidebar-projects-list {
    max-height: none;
    overflow: visible;
  }

  .stages-grid {
    grid-auto-columns: minmax(280px, 82vw);
  }
}

/* R-next.3 final palette and UI normalization (no gradients/borders/shadows) */
:root {
  --bg: #111315;
  --panel: #1a1d1f;
  --text: #ffffff;
  --muted: #cfd3d7;
  --border: #1a1d1f;
  --brand: #c0dbef;
  --card-bg: #353839;
  --success-soft: #67a986;
  --danger-soft: #c5878f;
  --warning-soft: #d2aa75;
}

body,
:root[data-theme="dark"] body,
body.dark-theme {
  background: #111315;
  color: var(--text);
}

.app-sidebar {
  background: #1a1a1a;
  border-right: 0;
  box-shadow: none;
}

.app-main {
  background: #111315;
}

.panel,
.card.panel,
.stat.panel,
.project-info-item,
.week-day-col,
.task-card,
.task-subtask-row,
.subtask-item {
  border: 0;
  box-shadow: none;
}

.panel,
.card.panel,
.stat.panel {
  background: #1a1d1f;
}

.task-card,
.sidebar-link.active,
.sidebar-project-link.active,
.sidebar-project-link:hover {
  background: #222526;
}

.sidebar-link:hover {
  background: #222526;
}

.form-control,
.form-select,
body.dark-theme .form-control,
body.dark-theme .form-select {
  background: #242527;
  border: 0;
  color: #fff;
  box-shadow: none;
}

.modal-design .modal-field .form-control,
.modal-design .modal-field .form-select,
.modal-design .modal-field .priority-select-trigger {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  color: var(--fg-1);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  min-height: 30px;
  padding-bottom: 0;
  padding-top: 0;
}

.modal-design .modal-field .form-control:focus,
.modal-design .modal-field .form-select:focus {
  background-color: transparent;
}

.modal-design .modal-field .js-flat-date,
.modal-design .modal-field #taskDateRangeInput,
.modal-design .modal-field #editTaskDateRangeInput,
.modal-design .modal-field #editTaskDateInlineInput,
.modal-design .modal-field #taskCreateDateInput,
.modal-design .modal-field .js-estimate-trigger {
  padding-left: 32px;
}

.modal-design .modal-field .js-flat-date,
.modal-design .modal-field #taskDateRangeInput,
.modal-design .modal-field #editTaskDateRangeInput,
.modal-design .modal-field #editTaskDateInlineInput,
.modal-design .modal-field #taskCreateDateInput {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237a7d80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M8 2v4'/%3e%3cpath d='M16 2v4'/%3e%3crect width='18' height='18' x='3' y='4' rx='2'/%3e%3cpath d='M3 10h18'/%3e%3c/svg%3e");
  background-position: left 1px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.modal-design .modal-field .js-estimate-trigger {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237a7d80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3cpolyline points='12 6 12 12 16 14'/%3e%3c/svg%3e");
  background-position: left 1px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}


.modal-design .priority-select-ui {
  position: relative;
  z-index: 10;
}

.modal-design .priority-select-ui.open {
  z-index: 80;
}

.modal-design .priority-select-menu {
  z-index: 3000;
}

.form-control:focus,
.form-select:focus {
  background: #353839;
  border: 0;
  box-shadow: none;
}

.btn,
.btn:focus,
.btn:active,
.btn:hover {
  box-shadow: none;
}

.btn-outline-secondary {
  background: #1a1d1f;
  border: 1px solid #4d4d4d;
  color: #fff;
  padding: 5px 7px 5px 3px;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  background: rgba(255, 255, 255, 0.06);
  border-color: #5c5c5c;
}

.btn-secondary-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: #cfd3d7;
  padding: 5px 10px;
}

.btn-secondary-ghost:hover,
.btn-secondary-ghost:focus,
.btn-secondary-ghost:active {
  background: transparent;
  border-color: transparent;
  color: #ffffff;
}

.btn-icon-only,
.btn-icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
}

.btn-icon-only {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
}

.modal-design .btn-icon-action.btn-icon-only {
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.78);
  height: 36px;
  min-width: 36px;
  padding: 0;
  width: 36px;
}

.modal-design .btn-icon-action.btn-icon-only:hover,
.modal-design .btn-icon-action.btn-icon-only:focus {
  background: #222526;
  color: var(--fg-1);
}

.modal-design .btn-icon-action.btn-icon-only svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.btn-sm.btn-icon-only {
  width: 30px;
  min-width: 30px;
  height: 22px;
  border-radius: 8px;
}

.btn-icon-only svg,
.btn-icon-text svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

.btn-sm.btn-icon-only svg,
.btn-sm.btn-icon-text svg {
  width: 14px;
  height: 14px;
}

.btn-icon-text {
  justify-content: flex-start;
  padding: 5px 10px;
}

.btn-sm.btn-icon-text {
  padding: 5px 9px;
}

.btn-icon-text .btn-label {
  line-height: 1.1;
}

.btn-primary {
  background: #5f7d95;
  border: 0;
  color: #fff;
}

.btn-primary:hover {
  background: #6f8ea6;
}

.btn-success {
  background: #5e8a70;
  border: 0;
  color: #fff;
}

.btn-success:hover {
  background: #6d9a7f;
}

.btn-danger {
  background: #996774;
  border: 0;
  color: #fff;
}

.btn-warning {
  background: #b99a72;
  border: 0;
  color: #fff;
}

.priority-select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 0.9rem;
  padding-right: 2rem;
}

.priority-select.priority-high {
  background-color: #4b3434;
  color: #ffd8d8;
}

.priority-select.priority-medium {
  background-color: #4a4332;
  color: #ffe9bf;
}

.priority-select.priority-low {
  background-color: #33463a;
  color: #c5ecd2;
}

.priority-select option[value="high"] {
  background: #4b3434;
  color: #ffd8d8;
}

.priority-select option[value="medium"] {
  background: #4a4332;
  color: #ffe9bf;
}

.priority-select option[value="low"] {
  background: #33463a;
  color: #c5ecd2;
}

.priority-select option {
  background-image: none;
}

.priority-select-native-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.priority-select-ui {
  position: relative;
}

.priority-select-trigger {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #242527;
  color: #ffffff;
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.priority-select-trigger .label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.priority-select-trigger .caret {
  color: #7a7d80;
  display: inline-block;
  height: 14px;
  opacity: 1;
  width: 14px;
}

.priority-select-trigger .caret svg {
  display: none;
}

.priority-select-trigger .caret::before {
  background: currentColor;
  content: "";
  display: block;
  height: 14px;
  width: 14px;
  -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") center / contain no-repeat;
}

.priority-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 2000;
  background: #1a1d1f;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 24px 20px rgba(0, 0, 0, 0.15);
  display: none;
}

.priority-select-ui.open .priority-select-menu {
  display: block;
}

.project-inline-priority-menu {
  display: block;
  min-width: 220px;
  right: auto;
  width: 220px;
}

.priority-select-item {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}

.priority-select-item:hover {
  background: #242527;
}

.priority-select-item .label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.priority-select-item .check {
  width: 14px;
  height: 14px;
  opacity: 0;
}

.priority-select-item .check svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.priority-select-item.active .check {
  margin-bottom: 10px;
  opacity: 1;
}

.priority-swatch {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.priority-swatch.high { background: rgb(255, 149, 149); }
.priority-swatch.medium { background: rgb(255, 238, 152); }
.priority-swatch.low { background: rgb(192, 219, 239); }

.priority-select-icon {
  color: currentColor;
  display: inline-block;
  flex: 0 0 12px;
  height: 12px;
  width: 12px;
}

.priority-select-icon svg {
  display: none;
}

.priority-select-icon::before {
  background: currentColor;
  content: "";
  display: block;
  height: 12px;
  width: 12px;
}

.priority-select-icon.high {
  color: #F2C94C;
}

.priority-select-icon.high::before {
  -webkit-mask: url("/static/icons/priority/triangle-rounded.svg") center / contain no-repeat;
  mask: url("/static/icons/priority/triangle-rounded.svg") center / contain no-repeat;
}

.priority-select-icon.medium {
  color: #B4D7EE;
}

.priority-select-icon.medium::before {
  -webkit-mask: url("/static/icons/priority/diamond-rounded.svg") center / contain no-repeat;
  mask: url("/static/icons/priority/diamond-rounded.svg") center / contain no-repeat;
}

.priority-select-icon.low {
  color: #E0E0E0;
}

.priority-select-icon.low::before {
  border-radius: 50%;
}

.crm-create-contact-link {
  font-size: 12px;
  text-decoration: none;
  color: #cfd3d7;
}

.crm-create-contact-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.btn svg,
.btn .sidebar-link-icon svg,
.sidebar-link-icon svg,
.project-info-icon svg,
.metric-icon,
.task-time-btn svg,
.task-subtask-add svg {
  fill: currentColor;
  color: currentColor;
}

.project-info-strip {
  background: #1a1d1f;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-info-strip .close-project-form {
  margin-left: auto;
}

.project-info-item {
  color: #fff;
}

.project-info-item strong,
.stage-inline-edit,
.task-title {
  color: #fff;
}

.project-page-breadcrumbs,
.text-muted,
.small,
.form-label,
.stage-progress-label,
.task-date-badge,
.stage-date-badge {
  color: #cfd3d7;
}

.stage-col {
  background: #1a1d1f;
}

.stage-progressbar {
  background: #242527;
}

.stage-progressbar > span {
  background: var(--stage-accent, #c0dbef);
}

.stage-metric {
  background: #242527;
  border: 0;
  color: #fff;
}

.modal-content.panel {
  border: 1px solid #2a2d31;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.modal-header {
  border-bottom: 1px solid #242527;
}

.modal-footer {
  border-top: 1px solid #242527;
}

.modal-body {
  border: 0;
}

.task-subtask-add {
  text-decoration: none;
  color: var(--fg-3);
}

.task-subtask-add:hover {
  color: #ffffff;
}

.task-card.done,
.task-card.is-done {
  opacity: 0.52;
}

.project-header-actions {
  position: relative;
}

.project-actions-toggle {
  background: #242527;
  border-color: #3a3d40;
  color: #ffffff;
}

.header-action-pill {
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.header-action-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-action-pill:hover,
.header-action-pill:focus-visible,
.sidebar-archive-toggle:focus-visible {
  background: var(--accent);
  color: var(--fg-on-accent);
}

.profile-trigger:hover,
.profile-trigger:focus-visible {
  background: #2F3032;
  color: #E0E0E0;
}

.profile-trigger .badge {
  background: #353A3E;
  color: #B4D7EE;
}

.project-actions-toggle:hover,
.project-actions-toggle:focus-visible {
  background: #2d3033;
  border-color: #4a4d50;
  color: #ffffff;
}

.project-actions-dropdown {
  min-width: 230px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #1f2123;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.project-actions-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  color: #ffffff;
  padding: 9px 10px;
}

.project-actions-item:hover,
.project-actions-item:focus {
  background: #2a2d30;
  color: #ffffff;
}

.project-actions-item:disabled {
  opacity: 0.45;
}

.project-actions-item-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b9d5f2;
  flex: 0 0 auto;
}

.project-actions-item-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tasks-page-top {
  padding-top: 0;
}

.tasks-page-heading {
  align-items: flex-start;
}

.tasks-page-title {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.tasks-title-dot {
  --ring-color: var(--accent);
}

.tasks-header-actions {
  margin-top: 0;
}

.tasks-add-header-btn {
  min-width: 168px;
}

.tasks-period-nav {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tasks-period-label {
  color: var(--fg-3);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
  margin-right: 2px;
}

.tasks-period-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: none;
}

.tasks-period-btn:hover,
.tasks-period-btn:focus-visible {
  background: var(--bg-hover);
  color: var(--fg-1);
}

.tasks-period-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 760px) {
  .tasks-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .tasks-period-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .tasks-period-label {
    width: 100%;
    margin-bottom: 2px;
    font-size: 12px;
  }

  .tasks-period-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
  }
}

/* P.2 + P.11 + P.15 visual system */
.stat .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stat.panel .label {
  gap: 8px;
  color: #7a7d80;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-deviation .label {
  display: flex;
  width: 100%;
}

.stat-deviation-indicator {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  flex: 0 0 6px;
}

.stat-deviation-indicator.is-positive {
  background: #6FCF97;
  box-shadow: rgba(111, 207, 151, 0.16) 0 0 0 4px;
}

.stat-deviation-indicator.is-negative {
  background: #EB5757;
  box-shadow: rgba(235, 87, 87, 0.16) 0 0 0 4px;
}

.stat-deviation-bottom {
  position: relative;
  min-height: 42px;
  margin-top: auto;
}

.stat-deviation-bottom .stat-trend {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  margin-top: 0;
}

.stat-deviation-bars {
  position: absolute;
  right: -4px;
  bottom: 12px;
  width: 102px;
  height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 7px;
  pointer-events: none;
  overflow: visible;
}

.stat-deviation-bars::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 83px;
  height: 1.5px;
  border-radius: 10px;
  background: #2F3032;
}

.stat-deviation-bar {
  position: relative;
  z-index: 1;
  width: 11px;
  height: var(--bar-height);
  flex: 0 0 11px;
  border-radius: 3px;
}

.stat-deviation-bar.is-up {
  background: #6FCF97;
}

.stat-deviation-bar.is-down {
  top: calc(var(--bar-height) - 1.5px);
  background: #EB5757;
}

.stat-label-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: currentColor;
  display: inline-block;
  -webkit-mask: var(--stat-label-icon-url) center / contain no-repeat;
  mask: var(--stat-label-icon-url) center / contain no-repeat;
}

.stat-label-icon-progress {
  --stat-label-icon-url: url("/static/icons/lucide/chart-column-stat.svg");
}

.stat-label-icon-weighted {
  --stat-label-icon-url: url("/static/icons/lucide/circle-dot-stat.svg");
}

.stat-label-icon-plan {
  --stat-label-icon-url: url("/static/icons/lucide/clock-stat.svg");
}

.stat-label-icon-fact {
  --stat-label-icon-url: url("/static/icons/lucide/circle-check-stat.svg");
}

.stat-label-icon-budget {
  --stat-label-icon-url: url("/static/icons/lucide/wallet-cards-stat.svg");
}

.stat-label-icon-deviation {
  --stat-label-icon-url: url("/static/icons/lucide/trending-up-stat.svg");
}

.stat-label-icon-productivity {
  --stat-label-icon-url: url("/static/icons/lucide/chart-column-stat.svg");
}

.stat-label-icon-activity {
  --stat-label-icon-url: url("/static/icons/lucide/timer.svg");
}

.stat-label-icon-active {
  --stat-label-icon-url: url("/static/icons/lucide/list-checks.svg");
}

.stat-trend {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: #b2b8be;
}

.stat-trend.up {
  color: #6FCF97;
}

.stat-trend.down {
  color: #EB5757;
}

.stat-trend.flat {
  color: #9ba2aa;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.month-day-cell {
  min-height: 110px;
  background: #1a1d1f;
  border-radius: 10px;
  padding: 9px;
  display: grid;
  gap: 7px;
  align-content: start;
}

.month-day-cell.today {
  background: #242527;
}

.month-day-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.month-day-title {
  font-size: 11px;
  color: #ffffff;
  font-weight: 600;
}

.month-day-date {
  font-size: 11px;
  color: #c1c6cc;
}

.month-day-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.month-day-count {
  font-size: 11px;
  color: #aeb4bb;
}

@media (max-width: 1200px) {
  .month-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.fp-calendar-modal-open::after {
  background: rgba(0, 0, 0, 0.68);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 1060;
}

.fp-modal-host {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 12px;
  pointer-events: none;
  position: fixed;
  z-index: 1070;
}

.fp-modal-host.is-open {
  display: flex;
  pointer-events: auto;
}

body.fp-calendar-modal-open .modal.show .modal-content {
  filter: blur(10px);
  opacity: 0;
}

/* Force dark calendar in all contexts (including anchored mini modals) */
.flatpickr-calendar,
.flatpickr-calendar.open,
.flatpickr-calendar.inline {
  background: #131313;
  color: #ffffff;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58);
  box-sizing: border-box;
  width: min(460px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 24px;
  z-index: 1070;
}

.fp-modal-host .flatpickr-calendar.fp-has-quick-actions,
.fp-modal-host .flatpickr-calendar.open.fp-has-quick-actions {
  margin: 0;
  position: static;
  transform: none;
}

.flatpickr-calendar.fp-has-quick-actions {
  max-width: calc(100vw - 48px);
  width: 660px;
}

.flatpickr-calendar.fp-has-quick-actions .flatpickr-rContainer,
.flatpickr-calendar.fp-has-quick-actions .flatpickr-weekdays,
.flatpickr-calendar.fp-has-quick-actions .flatpickr-days,
.flatpickr-calendar.fp-has-quick-actions .dayContainer {
  width: 360px;
  min-width: 360px;
  max-width: 360px;
}

.flatpickr-calendar.fp-range-mode {
  max-width: calc(100vw - 48px);
  width: 660px;
}

.flatpickr-calendar.fp-range-mode .flatpickr-innerContainer {
  min-width: 0;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months,
span.flatpickr-weekday,
.flatpickr-weekday,
.flatpickr-day,
.flatpickr-time input,
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
  color: #ffffff;
}

.flatpickr-calendar::before,
.flatpickr-calendar::after {
  display: none;
}

.fp-modal-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  min-height: 36px;
}

.flatpickr-calendar .btn-close {
  align-items: center;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d7d9dc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M18 6 6 18'/%3e%3cpath d='m6 6 12 12'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  border: 0;
  border-radius: 10px;
  color: #d7d9dc;
  display: inline-flex;
  filter: none;
  height: 36px;
  justify-content: center;
  opacity: 0.95;
  padding: 0;
  width: 36px;
}

.flatpickr-calendar .btn-close:hover,
.flatpickr-calendar .btn-close:focus {
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  opacity: 1;
  outline: 0;
}

.flatpickr-months {
  align-items: center;
  display: flex;
  height: 28px;
  justify-content: center;
  margin: 26px 0 26px;
  position: relative;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  align-items: center;
  color: #bfbfbf;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 0;
  width: 28px;
}

.flatpickr-months .flatpickr-prev-month {
  left: 0;
}

.flatpickr-months .flatpickr-next-month {
  right: 0;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
  display: none;
}

.flatpickr-months .flatpickr-prev-month::before,
.flatpickr-months .flatpickr-next-month::before {
  background: currentColor;
  content: "";
  display: block;
  height: 18px;
  width: 18px;
  -webkit-mask: url("/static/icons/lucide/chevron-right.svg") center / contain no-repeat;
  mask: url("/static/icons/lucide/chevron-right.svg") center / contain no-repeat;
}

.flatpickr-months .flatpickr-prev-month::before {
  transform: rotate(180deg);
}

.flatpickr-current-month {
  align-items: center;
  display: inline-flex;
  font-size: 16px;
  height: 28px;
  justify-content: center;
  left: auto;
  padding-top: 0;
  position: static;
  top: 0;
  transform: none;
  width: auto;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
span.flatpickr-weekday,
.flatpickr-weekday {
  font-size: 14px;
  font-weight: 500;
}

.flatpickr-current-month .numInputWrapper span {
  display: none;
}

.numInputWrapper:hover {
  background: rgba(255, 255, 255, 0.06);
}

.flatpickr-current-month input.cur-year {
  -moz-appearance: textfield;
}

.flatpickr-current-month input.cur-year::-webkit-inner-spin-button,
.flatpickr-current-month input.cur-year::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.flatpickr-weekdays {
  margin-bottom: 14px;
}

.flatpickr-days {
  padding-bottom: 2px;
}

.flatpickr-day {
  border: 1px solid transparent;
  border-radius: 12px;
  width: 14.2857143%;
  max-width: none;
  flex-basis: 14.2857143%;
  font-size: 16px;
  height: 40px;
  line-height: 38px;
}

.flatpickr-day:hover {
  background: var(--accent);
  border-color: transparent;
  color: var(--fg-on-accent);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
  background: var(--accent);
  border-color: transparent;
  box-shadow: none;
  color: var(--fg-on-accent);
  -webkit-box-shadow: none;
}

.flatpickr-day.inRange:not(.selected):not(.startRange):not(.endRange) {
  background: var(--accent);
  border-color: transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--fg-on-accent);
  -webkit-box-shadow: none;
}

.flatpickr-day.inRange:not(.selected):not(.startRange):not(.endRange):hover,
.flatpickr-day.prevMonthDay.inRange:not(.selected):not(.startRange):not(.endRange),
.flatpickr-day.nextMonthDay.inRange:not(.selected):not(.startRange):not(.endRange),
.flatpickr-day.today.inRange:not(.selected):not(.startRange):not(.endRange) {
  background: var(--accent);
  border-color: transparent;
  box-shadow: none;
  color: var(--fg-on-accent);
  -webkit-box-shadow: none;
}

.flatpickr-day.startRange:not(.endRange) {
  border-radius: 999px 0 0 999px;
}

.flatpickr-day.endRange:not(.startRange) {
  border-radius: 0 999px 999px 0;
}

.flatpickr-day.inRange:not(.selected):not(.startRange):not(.endRange):nth-child(7n),
.flatpickr-day.inRange:not(.selected):not(.startRange):not(.endRange):last-child {
  border-radius: 0 999px 999px 0;
}

.flatpickr-day.inRange:not(.selected):not(.startRange):not(.endRange):nth-child(7n+1) {
  border-radius: 999px 0 0 999px;
}

.flatpickr-day:focus {
  box-shadow: none;
}

.flatpickr-day.today {
  background: transparent;
  border-color: #454647;
}

.flatpickr-day.today:hover {
  background: var(--accent);
  border-color: transparent;
  color: var(--fg-on-accent);
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #444647;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
  background: transparent;
  border-color: transparent;
  color: #444647;
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.startRange + .endRange,
.flatpickr-day.endRange.startRange,
.flatpickr-day.today.selected,
.flatpickr-day.today.startRange,
.flatpickr-day.today.endRange,
.flatpickr-day.today.selected:hover,
.flatpickr-day.today.startRange:hover,
.flatpickr-day.today.endRange:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus {
  background: var(--accent);
  border-color: transparent;
  box-shadow: none;
  color: var(--fg-on-accent);
  -webkit-box-shadow: none;
}

.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)),
.flatpickr-day.week.selected {
  background: var(--accent);
  box-shadow: none;
  color: var(--fg-on-accent);
  -webkit-box-shadow: none;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  background: transparent;
  border-color: transparent;
  color: #444647;
}

.flatpickr-calendar.hasTime .flatpickr-time {
  border-top: 1px solid #2d3034;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  height: auto;
  line-height: 1;
  margin-top: 8px;
  max-height: none;
  padding: 16px 0 0;
}

.flatpickr-time .numInputWrapper.modal-stepper-control {
  flex: none;
  float: none;
  height: 48px;
  min-height: 0;
  width: auto;
}

.flatpickr-time .numInputWrapper.modal-stepper-control input {
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 16px;
  font-weight: 400;
  height: auto;
  letter-spacing: 0;
  line-height: 1;
  min-height: 0;
  padding: 0;
  text-align: center;
}

.flatpickr-time .numInputWrapper span {
  display: none;
}

.flatpickr-time .flatpickr-time-separator {
  align-self: center;
  color: var(--fg-1);
  font-size: 18px;
  font-weight: 500;
  height: auto;
  line-height: 1;
  width: auto;
}

.fp-body-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.fp-panel {
  align-items: center;
  border-top: 0;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 0;
}

.fp-quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 182px;
  flex: 0 0 182px;
}

.flatpickr-calendar:not(.fp-has-quick-actions) .fp-body-row {
  display: block;
}

.flatpickr-calendar:not(.fp-has-quick-actions) .fp-quick-actions {
  display: none;
}

.fp-quick-btn {
  border: 0;
  background: transparent;
  color: #f1f3f5;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
}

.fp-quick-btn.is-active,
.fp-quick-btn:hover {
  background: var(--accent);
  color: var(--fg-on-accent);
}

.fp-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.fp-action-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: auto;
}

.fp-action-btn {
  border-radius: 999px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  border: 1px solid transparent;
}

.fp-action-btn-secondary {
  background: transparent;
  border-color: transparent;
  color: #b9b9b9;
  padding-right: 2px;
}

.fp-range-toggle {
  justify-self: start;
}

.fp-quick-btn:hover,
.fp-task-btn:hover,
.fp-action-btn:hover {
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .flatpickr-calendar.fp-range-mode {
    width: min(360px, calc(100vw - 24px));
  }

  .fp-body-row {
    flex-direction: column;
  }

  .fp-quick-actions {
    width: 100%;
    flex-basis: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fp-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .fp-action-main {
    justify-content: space-between;
  }

  .fp-range-toggle {
    width: 100%;
  }
}

/* Analytics page */
.analytics-filters .form-label {
  margin-bottom: 4px;
}

.analytics-presets-row .btn {
  min-width: 96px;
}

.analytics-metric .label {
  font-size: 12px;
  color: #cfd3d7;
}

.analytics-metric .value {
  margin-top: 4px;
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
}

.analytics-chart-wrap {
  position: relative;
  height: 320px;
}

.analytics-table {
  color: #ffffff;
}

.analytics-table > :not(caption) > * > * {
  border-bottom: 0;
  background: transparent;
  color: #ffffff;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.analytics-table thead th {
  color: #cfd3d7;
  font-weight: 600;
  font-size: 12px;
}

/* CRM */
.crm-metric .label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.crm-metric .value {
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}

.crm-pipeline-link {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--card-bg);
  padding: 10px 12px;
  border-radius: 10px;
}

.crm-pipeline-link .title {
  font-weight: 700;
  margin-bottom: 2px;
}

.crm-pipeline-link .meta {
  color: var(--muted);
  font-size: 12px;
}

.crm-pipeline-link.active {
  background: color-mix(in srgb, var(--brand) 18%, var(--card-bg));
}

.crm-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #242527;
  color: #cfd3d7;
  font-size: 12px;
  font-weight: 600;
}

.crm-board-wrap {
  overflow-x: auto;
}

.crm-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 10px;
}

.crm-col {
  background: var(--panel);
  border-radius: 12px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.crm-col-head {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.crm-col-head .title {
  font-weight: 700;
  color: var(--text);
}

.crm-col-head .meta {
  font-size: 12px;
  color: var(--muted);
}

.crm-col-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  min-height: 300px;
}

.crm-stage-add-wrap {
  min-height: 38px;
  display: flex;
  align-items: flex-start;
}

.crm-deal-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 12px;
  cursor: grab;
  display: grid;
  gap: 7px;
}

.crm-deal-card.dragging {
  opacity: 0.55;
}

.deal-title {
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
}

.deal-meta {
  color: var(--muted);
  font-size: 12px;
}

.deal-primary-meta {
  min-height: 18px;
}

.deal-amount {
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

.deal-finance-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crm-inline-link {
  color: #ffffff;
  text-decoration: none;
}

.crm-inline-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.crm-inline-link.muted {
  color: #cfd3d7;
}

.crm-inline-link.muted:hover {
  color: #ffffff;
}

.crm-status-chip {
  font-size: 11px;
  line-height: 1;
  border-radius: 999px;
  padding: 5px 8px;
  font-weight: 500;
  white-space: nowrap;
}

.crm-status-lead {
  background: color-mix(in srgb, #fdc693 26%, #242527);
  color: #f3d1b0;
}

.crm-status-order {
  background: color-mix(in srgb, #9B6DFF 28%, #242527);
  color: #d8c6ff;
}

.crm-status-payment {
  background: color-mix(in srgb, #6ec08e 26%, #242527);
  color: #bce7cc;
}

.crm-status-chip.active {
  outline: 1px solid color-mix(in srgb, #ffffff 22%, transparent);
}

.project-crm-panel {
  padding: 22px;
  border-radius: var(--r-2xl);
}

.project-crm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.project-crm-title {
  margin: 0;
  color: var(--fg-1);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
}

.project-crm-summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--fg-3);
  font-size: 13px;
  white-space: nowrap;
  text-transform: uppercase;
}

.project-crm-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.project-crm-summary-count {
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}

.project-crm-summary .header-action-pill,
.project-crm-summary .header-action-pill * {
  text-transform: none;
}

.project-crm-summary-value {
  color: var(--fg-1);
}

.project-crm-summary .header-action-pill {
  margin-left: 20px;
}

.project-crm-list {
  display: grid;
  gap: 14px;
}

.project-crm-card {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px 26px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #222526;
  color: var(--fg-1);
  text-decoration: none;
}

.project-crm-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--crm-card-accent, var(--project-accent, var(--accent)));
}

.project-crm-card-main {
  flex: 1 1 0;
  min-width: 0;
}

.project-crm-kicker,
.project-crm-money-label {
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

.project-crm-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.project-crm-deal-title {
  display: block;
  overflow: hidden;
  color: var(--fg-1);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.16;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-crm-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-top: 14px;
  color: var(--fg-3);
  font-size: 13px;
}

.project-crm-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--contact-avatar-color, var(--accent));
  color: #17191a;
  font-size: 10px;
  font-weight: 600;
}

.project-crm-progress {
  display: grid;
  grid-template-columns: repeat(var(--crm-stage-count, 1), minmax(24px, 1fr));
  flex: 1 1 0;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.project-crm-step {
  display: block;
  height: 6px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--fg-3) 20%, transparent);
  transition: background var(--dur-base) var(--ease-out);
}

.project-crm-step.active {
  background: var(--accent);
}

.project-crm-step.current {
  background: var(--accent);
}

.project-crm-money {
  flex: 1 1 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: right;
  gap: 40px;
  text-align: right;
  min-width: 0;
}

.project-crm-money-amount {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  gap: 8px;
}

.project-crm-money-value {
  flex: 0 0 auto;
  color: var(--fg-1);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.project-crm-state {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 26px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}

.project-crm-state::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
}

.project-crm-state-open {
  background: rgba(111, 207, 151, 0.14);
  color: #6FCF97;
}

.project-crm-state-won {
  background: rgba(111, 207, 151, 0.14);
  color: #6FCF97;
}

.project-crm-state-lost {
  background: rgba(235, 87, 87, 0.14);
  color: var(--projeta-danger);
}

@media (max-width: 1100px) {
}

@media (max-width: 760px) {
  .project-crm-panel {
    padding: 22px;
    border-radius: var(--r-lg);
  }

  .project-crm-head,
  .project-crm-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-crm-summary {
    gap: 8px;
    white-space: normal;
  }

  .project-crm-card {
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    border-radius: 24px;
  }

  .project-crm-card-main,
  .project-crm-progress,
  .project-crm-money {
    flex: 1 1 0;
    width: auto;
  }

  .project-crm-deal-title {
    white-space: normal;
  }

  .project-crm-progress {
    justify-content: stretch;
  }

  .project-crm-money {
    align-items: center;
    text-align: right;
  }
}

/* R-next visual unification: priority/fact/overdue */
.priority {
  background: transparent;
  border: 0;
  color: #ffffff;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.priority .priority-icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.priority .priority-icon svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.priority.high .priority-icon { color: rgb(255, 149, 149); }
.priority.medium .priority-icon { color: rgb(255, 238, 152); }
.priority.low .priority-icon { color: rgb(192, 219, 239); }

.priority-select {
  color: #ffffff;
}

.priority-select.priority-high {
  background-color: rgb(255, 149, 149);
  color: #ffffff;
}

.priority-select.priority-medium {
  background-color: rgb(255, 238, 152);
  color: #111315;
}

.priority-select.priority-low {
  background-color: rgb(192, 219, 239);
  color: #111315;
}

.priority-select option[value="high"] {
  background: rgb(255, 149, 149);
  color: #ffffff;
}

.priority-select option[value="medium"] {
  background: rgb(255, 238, 152);
  color: #111315;
}

.priority-select option[value="low"] {
  background: rgb(192, 219, 239);
  color: #111315;
}

.task-metric-btn-fact,
.stage-metric-fact,
.fact-chip {
  background: rgba(253, 198, 147, 0.22);
  color: #f8eadf;
}

.task-metric-btn-fact-over,
.fact-chip-over {
  background: rgba(255, 149, 149, 0.22);
  color: #ffd3d8;
}

.overdue-mark {
  margin-bottom: 0;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(235, 87, 87, 0.14);
  color: var(--projeta-danger);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
}

.overdue-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  overflow: visible;
}

.crm-stage-add-deal {
  margin: 0;
  align-self: flex-start;
  min-height: 38px;
}

.crm-deal-open-btn {
  justify-self: flex-start;
}

.crm-col-head {
  min-height: 78px;
}

.admin-svg-preview {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #1a1d1f;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.admin-svg-preview svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Dashboard */
.dashboard-page {
  letter-spacing: 0;
}

.dashboard-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dashboard-header-stats {
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
}

.dashboard-header-stat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 0;
}

.dashboard-header-stat.accent {
  background: var(--bg-surface);
}

.dashboard-header-stat .sidebar-link-icon {
  width: 36px;
  height: 36px;
  color: var(--fg-1);
  background: var(--bg-elevated);
  border-radius: 10px;
}

.dashboard-header-stat.accent .sidebar-link-icon {
  color: var(--fg-1);
  background: var(--bg-elevated);
}

.dashboard-header-stat .sidebar-link-icon .stat-label-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dashboard-header-stat-label {
  font-size: 11px;
  line-height: 1.2;
  color: var(--fg-3);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

.dashboard-header-stat-value {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1;
  color: var(--fg-1);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dashboard-card-head,
.dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-card-head .sidebar-link-icon {
  width: 18px;
  height: 18px;
  color: var(--fg-1);
}

.dashboard-success-icon {
  color: var(--fg-1);
}

.dashboard-overline {
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fg-3);
  font-weight: 400;
  letter-spacing: 0;
}

.dashboard-card-spacer {
  flex: 1 1 auto;
}

.dashboard-big-value {
  color: var(--fg-1);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.dashboard-big-value span {
  color: var(--fg-3);
  font-size: 22px;
  font-weight: 600;
}

.dashboard-card-meta {
  margin-top: 7px;
  color: var(--fg-3);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.25;
}

.dashboard-card-meta span,
.ui-small.ui-muted .dashboard-number-accent {
  color: var(--fg-1);
}

.dashboard-card-meta.is-danger span {
  color: var(--projeta-danger);
}

.dashboard-plan-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--fg-1);
  font-size: 17px;
  font-weight: 600;
  flex: 0 0 auto;
  background:
    radial-gradient(circle, var(--card-bg) 56%, transparent 57%),
    conic-gradient(var(--accent) var(--ring-value), color-mix(in srgb, var(--fg-3) 18%, transparent) 0);
}

.dashboard-ring.success {
  background:
    radial-gradient(circle, var(--card-bg) 56%, transparent 57%),
    conic-gradient(var(--accent) var(--ring-value), color-mix(in srgb, var(--fg-3) 18%, transparent) 0);
}

.dashboard-spark-wrap {
  height: 58px;
  margin-top: auto;
}

.dashboard-activity-grid {
  display: grid;
  margin-top: 10px;
  gap: 5px;
}

.dashboard-activity-row {
  display: grid;
  grid-template-columns: 34px repeat(7, minmax(0, 1fr));
  gap: 5px;
  align-items: center;
}

.dashboard-activity-row span,
.dashboard-activity-row b {
  color: var(--fg-4);
  font-size: 9.5px;
  line-height: 1;
  text-align: right;
  font-weight: 600;
  font-style: normal;
}

.dashboard-activity-row b {
  text-align: center;
}

.dashboard-activity-cell {
  height: 16px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg-1) 5%, transparent);
}

.dashboard-activity-cell.level-1 {
  background: rgba(180, 215, 238, 0.22);
}

.dashboard-activity-cell.level-2 {
  background: rgba(180, 215, 238, 0.42);
}

.dashboard-activity-cell.level-3 {
  background: rgba(180, 215, 238, 0.68);
}

.dashboard-activity-cell.level-4 {
  background: var(--accent);
}

.dashboard-heat-legend {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 400;
}

.dashboard-heat-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: rgba(180, 215, 238, 0.22);
}

.dashboard-heat-legend i:nth-of-type(1) {
  background: color-mix(in srgb, var(--fg-1) 5%, transparent);
}

.dashboard-heat-legend i:nth-of-type(3) {
  background: rgba(180, 215, 238, 0.42);
}

.dashboard-heat-legend i:nth-of-type(4) {
  background: rgba(180, 215, 238, 0.68);
}

.dashboard-heat-legend i:nth-of-type(5) {
  background: var(--accent);
}

.dashboard-project-bars {
  margin-top: auto;
  display: grid;
  gap: 8px;
}

.dashboard-project-bars-stacked {
  display: flex;
  gap: 6px;
  height: 10px;
  align-items: stretch;
}

.dashboard-project-bars a {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg-1) 8%, transparent);
  overflow: hidden;
}

.dashboard-project-bars-stacked a {
  flex: 1 1 0;
  height: 100%;
  background: transparent;
}

.dashboard-project-bars span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--project-color);
}

.dashboard-project-bars-stacked span {
  width: 100%;
}

.dashboard-active-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
}

.dashboard-active-legend a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--fg-3);
  text-decoration: none;
  font-size: 10px;
  line-height: 1.2;
}

.dashboard-active-legend i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--project-color);
}

.dashboard-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.dashboard-grid-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, 1fr);
  gap: 16px;
}

.dashboard-grid-productivity {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: 16px;
}

.dashboard-panel {
  padding: 26px;
  overflow: hidden;
}

.dashboard-section-title {
  margin: 0 0 10px;
  color: var(--fg-1);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.dashboard-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 400;
}

.dashboard-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dashboard-legend i {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--fg-1) 16%, transparent);
}

.dashboard-legend i.accent {
  background: var(--accent);
}

.dashboard-legend i.warm {
  background: #e8a57d;
}

.dashboard-legend i.expected {
  background: rgba(180, 215, 238, 0.45);
}

.dashboard-legend i.planned {
  background: rgba(180, 215, 238, 0.22);
  border: 1px solid rgba(180, 215, 238, 0.65);
}

.dashboard-total-chip {
  background: var(--accent-soft);
  color: var(--accent);
}

.dashboard-head-data {
  color: var(--fg-3);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.dashboard-head-data-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.dashboard-open-chip {
  background: var(--accent-soft);
  color: var(--accent);
}

.dashboard-chart-tall {
  height: 284px;
  margin-top: 18px;
}

.dashboard-svg-wrap {
  width: 100%;
  overflow: hidden;
}

.dashboard-svg-wrap svg {
  display: block;
  width: 100%;
  max-width: 100%;
}

.dashboard-workload-wrap {
  height: 284px;
  margin-top: 18px;
  overflow-x: auto;
}

.dashboard-productivity-wrap {
  height: 330px;
  margin-top: 18px;
  overflow-x: auto;
}

.dashboard-timeline-svg-wrap {
  height: auto;
  margin-top: 18px;
  overflow-x: auto;
}

.dashboard-svg-tick,
.dashboard-svg-label {
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.dashboard-svg-label.today,
.dashboard-svg-today-label,
.dashboard-timeline-today-text,
.dashboard-timeline-segment-label,
.dashboard-timeline-project-name,
.dashboard-timeline-month {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0;
}

.dashboard-svg-today-label,
.dashboard-timeline-today-text {
  font-size: 9px;
}

.dashboard-timeline-month {
  font-size: 14px;
}

.dashboard-timeline-project-name {
  font-size: 12.5px;
}

.dashboard-timeline-segment-label {
  font-size: 10.5px;
}

.dashboard-radial-wrap {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 26px;
}

.dashboard-radial-svg {
  justify-self: start;
  width: 100%;
  max-width: 320px;
}

.dashboard-radial-main,
.dashboard-radial-sub {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0;
}

.dashboard-radial-main {
  font-size: 24px;
}

.dashboard-radial-sub {
  font-size: 11px;
}

.dashboard-radial-legend {
  display: grid;
  gap: 11px;
}

.dashboard-radial-legend div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-2);
  font-size: 13px;
}

.dashboard-radial-legend span {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 3px;
}

.dashboard-radial-legend em {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.dashboard-radial-legend strong,
.dashboard-radial-legend b {
  flex: 0 0 auto;
  color: var(--fg-1);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dashboard-radial-legend b {
  width: 36px;
  color: var(--fg-3);
  text-align: right;
}

.dashboard-income-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-income-main {
  margin-top: 6px;
}

.dashboard-income-value {
  margin-top: 6px;
  color: var(--accent);
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.dashboard-income-row {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}

.dashboard-income-row span {
  display: block;
  color: var(--fg-3);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0;
}

.dashboard-income-row strong {
  display: block;
  margin-top: 4px;
  color: var(--fg-2);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
}

.dashboard-income-blocks {
  margin-top: auto;
  height: 14px;
  display: flex;
  gap: 4px;
}

.dashboard-income-blocks span {
  flex: 1 1 0;
  border-radius: 3px;
  background: var(--segment-color);
}

.dashboard-deal-card {
  padding: 18px;
}

.dashboard-deal-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dashboard-deal-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--fg-1);
  background: var(--bg-elevated);
}

.dashboard-deal-icon .stat-label-icon {
  width: 20px;
  height: 20px;
}

.dashboard-deal-main {
  flex: 1 1 auto;
}

.dashboard-deal-amount {
  color: var(--fg-1);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.dashboard-current-projects {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-current-project {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 18px 22px;
  border-radius: 20px;
  color: var(--fg-1);
  text-decoration: none;
  background: var(--card-bg);
}

.dashboard-current-project::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 3px;
  background: var(--project-color);
}

.dashboard-current-project:hover {
  color: var(--fg-1);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
}

.dashboard-current-rail {
  display: none;
}

.dashboard-current-top,
.dashboard-current-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-current-top strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15.5px;
  font-weight: 600;
}

.dashboard-current-top i {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--project-color);
}

.dashboard-current-meta {
  color: var(--fg-3);
  font-size: 12.5px;
}

.dashboard-current-progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--fg-1) 6%, transparent);
}

.dashboard-current-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--project-color);
}

.dashboard-current-bottom em,
.dashboard-current-bottom b {
  color: var(--fg-3);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.dashboard-current-bottom em {
  color: var(--projeta-light-gray);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-timeline {
  position: relative;
  margin-top: 18px;
  display: grid;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 10px;
}

.dashboard-timeline-row {
  display: grid;
  grid-template-columns: 138px minmax(560px, 1fr);
  width: 760px;
  height: 46px;
  align-items: center;
}

.dashboard-timeline-row:nth-child(odd) {
  background: color-mix(in srgb, var(--fg-1) 2%, transparent);
}

.dashboard-timeline-name {
  color: var(--fg-1);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-timeline-track {
  position: relative;
  height: 32px;
}

.dashboard-timeline-segment {
  position: absolute;
  top: 7px;
  height: 18px;
  border-radius: 6px;
  background: var(--project-color);
  color: #10243a;
  overflow: hidden;
  white-space: nowrap;
}

.dashboard-timeline-segment.done {
  opacity: 0.62;
}

.dashboard-timeline-segment.planned {
  color: var(--project-color);
  background: color-mix(in srgb, var(--project-color) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--project-color) 62%, transparent);
}

.dashboard-timeline-segment span {
  display: block;
  padding: 2px 8px;
  font-size: 10.5px;
  line-height: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-timeline-today {
  position: absolute;
  top: 0;
  bottom: 10px;
  width: 1px;
  background: #eb5757;
  pointer-events: none;
  transform: translateX(138px);
}

.dashboard-timeline-today span {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: #eb5757;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-task-list {
  display: grid;
}

.dashboard-task-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 4px;
  padding: 14px 0;
  color: var(--fg-1);
  text-decoration: none;
  border-top: 1px solid color-mix(in srgb, var(--fg-1) 6%, transparent);
}

.dashboard-task-row:first-child {
  border-top: 0;
}

.dashboard-task-row:hover {
  color: var(--fg-1);
}

.dashboard-task-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--project-color);
}

.dashboard-task-main {
  overflow: hidden;
}

.dashboard-task-main strong,
.dashboard-task-main em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.dashboard-task-main strong {
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.dashboard-task-main em {
  margin-top: 2px;
  color: var(--fg-3);
  font-size: 12px;
  line-height: 1.25;
}

.dashboard-task-plan {
  color: var(--fg-2);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dashboard-task-status {
  justify-self: end;
  font-weight: 500;
  text-transform: none;
  white-space: nowrap;
}

.dashboard-task-status-work {
  background: var(--accent-soft);
  color: var(--accent);
}

.dashboard-task-status-done {
  background: color-mix(in srgb, var(--projeta-success) 18%, transparent);
  color: var(--projeta-success);
}

.dashboard-more-btn {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--fg-1) 6%, transparent);
  color: var(--fg-2);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.dashboard-more-btn:hover {
  background: color-mix(in srgb, var(--fg-1) 10%, transparent);
  color: var(--fg-1);
}

.dashboard-morning-hero {
  background: linear-gradient(135deg, #1a1d1f 0%, #16191b 100%);
}

.dashboard-morning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.dashboard-morning-main .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #97a0a8;
  margin-bottom: 10px;
}

.dashboard-morning-main .value {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 600;
  color: #ffffff;
}

.dashboard-morning-main .delta {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #cfd3d7;
}

.dashboard-morning-main .delta.up {
  color: #8fd5aa;
}

.dashboard-morning-main .delta.down {
  color: #ff9ca5;
}

.dashboard-morning-side {
  display: grid;
  gap: 10px;
}

.dashboard-mini-stat {
  border-radius: 14px;
  background: #171a1c;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 12px 14px;
}

.dashboard-mini-stat .label {
  display: block;
  font-size: 12px;
  color: #97a0a8;
  margin-bottom: 6px;
}

.dashboard-mini-stat strong {
  font-size: 1.2rem;
  color: #ffffff;
}

.dashboard-period-note {
  display: grid;
  gap: 2px;
  justify-items: end;
}

.dashboard-period-total {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}

.dashboard-kpi .meta {
  margin-top: 8px;
  font-size: 12px;
  color: #97a0a8;
}

.project-summary-card {
  display: block;
  text-decoration: none;
  background: var(--card-bg);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.04);
}

.project-summary-card:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.progress-line-wrap {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #1a1d1f;
  overflow: hidden;
}

.progress-line-fill {
  height: 100%;
  border-radius: 999px;
}

.project-summary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #aab2b9;
}

.dashboard-weekly-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-summary-card {
  border-radius: 14px;
  background: #171a1c;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 12px;
}

.dashboard-summary-card .label {
  font-size: 12px;
  color: #97a0a8;
  margin-bottom: 4px;
}

.dashboard-summary-card .value {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.dashboard-crm-total {
  text-align: right;
}

.dashboard-crm-total .value {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
}

.dashboard-focus-list {
  display: grid;
  margin-top: 20px;
  gap: 10px;
}

.dashboard-focus-card {
  display: block;
  text-decoration: none;
  color: #ffffff;
  background: #171a1c;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 12px 14px;
}

.dashboard-focus-card:hover {
  color: #ffffff;
}

.dashboard-focus-card .topline,
.dashboard-focus-card .bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-focus-card .title {
  font-weight: 600;
}

.dashboard-focus-card .meta {
  margin-top: 5px;
  font-size: 12px;
  color: #aab2b9;
}

.dashboard-focus-card .bottomline {
  margin-top: 10px;
  font-size: 12px;
  color: #d9dee2;
}

.dashboard-focus-card .payment-state {
  color: #fdc693;
}

@media (max-width: 991px) {
  .dashboard-top,
  .dashboard-grid-main,
  .dashboard-grid-wide,
  .dashboard-grid-productivity {
    grid-template-columns: 1fr;
  }

  .dashboard-top {
    display: grid;
  }

  .dashboard-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-current-projects {
    grid-template-columns: 1fr;
  }

  .dashboard-weekly-summary {
    grid-template-columns: 1fr;
  }

  .dashboard-period-note {
    justify-items: start;
  }

  .dashboard-morning-grid {
    grid-template-columns: 1fr;
  }

  .stage-head-row,
  .project-empty-stage .card-body {
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header-stat {
    width: 100%;
  }

  .dashboard-task-row {
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .dashboard-task-plan {
    display: none;
  }
}

/* Projeta design system layer: colors, radii, buttons and forms only. */
:root {
  --projeta-blue: #b4d7ee;
  --projeta-blue-bright: #6fb6e0;
  --projeta-blue-deep: #2e7bb5;
  --projeta-black: #131313;
  --projeta-black-2: #1a1a1a;
  --projeta-onyx: #222526;
  --projeta-dark-gray: #2f3032;
  --projeta-graphite: #353a3e;
  --projeta-gray: #444647;
  --projeta-light-gray: #bfbfbf;
  --projeta-white: #e0e0e0;
  --projeta-pure-white: #ffffff;
  --projeta-success: #6fcf97;
  --projeta-warning: #f2c94c;
  --projeta-danger: #eb5757;
  --bg-canvas: var(--projeta-black);
  --bg-surface: var(--projeta-black-2);
  --bg-elevated: var(--projeta-onyx);
  --bg-sunken: #0e0e0e;
  --bg-hover: var(--projeta-dark-gray);
  --bg-pressed: var(--projeta-graphite);
  --fg-1: var(--projeta-white);
  --fg-2: var(--projeta-light-gray);
  --fg-3: #7a7d80;
  --fg-4: var(--projeta-gray);
  --modal-label-color: var(--fg-3);
  --fg-on-accent: var(--projeta-black);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --border-focus: var(--projeta-blue);
  --accent: var(--projeta-blue);
  --accent-hover: #c8e1f2;
  --accent-pressed: #9bc7e2;
  --accent-soft: rgba(180, 215, 238, 0.12);
  --accent-ring: rgba(180, 215, 238, 0.35);
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 20px;
  --r-2xl: 36px;
  --r-pill: 999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --bg: var(--bg-canvas);
  --panel: var(--bg-surface);
  --text: var(--fg-1);
  --muted: var(--fg-2);
  --border: var(--border-default);
  --brand: var(--accent);
  --card-bg: var(--bg-elevated);
  --success-soft: var(--projeta-success);
  --danger-soft: var(--projeta-danger);
  --warning-soft: var(--projeta-warning);
}

html,
body,
:root[data-theme="dark"] body,
body.dark-theme {
  background: var(--bg-canvas);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-sidebar {
  background: #1a1a1a;
  border-right: 0;
}

.app-main {
  background: var(--bg-canvas);
  position: relative;
}

.panel,
.card.panel,
.stat.panel {
  background: var(--bg-surface);
  border: 0;
  border-radius: var(--r-lg);
}

.project-summary-card,
.dashboard-mini-stat,
.dashboard-summary-card,
.dashboard-focus-card,
.stage-metric,
.priority-select-trigger,
.priority-select-menu {
  background: var(--bg-elevated);
  border: 0;
  border-radius: var(--r-md);
  color: var(--fg-1);
}

.sidebar-link,
.sidebar-project-link,
.profile-trigger {
  border-radius: var(--r-md);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.sidebar-link:hover,
.sidebar-link.active,
.sidebar-project-link:hover,
.sidebar-project-link.active,
.profile-trigger:hover {
  background: #222526;
  color: var(--fg-1);
}

.btn {
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg-on-accent);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--fg-on-accent);
}

.btn-outline-secondary,
.btn-secondary,
.btn-secondary-ghost {
  background: var(--bg-elevated);
  border-color: transparent;
  color: var(--fg-1);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary-ghost:hover,
.btn-secondary-ghost:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  color: var(--fg-1);
}

.btn-icon-only,
.sidebar-add-project,
.btn-icon-action {
  border-radius: var(--r-md);
}

.form-control,
.form-select,
body.dark-theme .form-control,
body.dark-theme .form-select {
  background: var(--bg-elevated);
  border: 0;
  border-radius: var(--r-md);
  color: var(--fg-1);
  font-family: var(--font-sans);
}

.form-control::placeholder {
  color: var(--fg-4);
}

.form-control:focus,
.form-select:focus {
  background: var(--bg-elevated);
  border-color: transparent;
  color: var(--fg-1);
}

.form-label,
.text-muted,
.small,
.caption,
.stage-progress-label,
.task-date-badge,
.stage-date-badge,
.dashboard-morning-main .eyebrow,
.dashboard-mini-stat .label,
.dashboard-summary-card .label,
.dashboard-kpi .meta {
  color: var(--fg-3);
}

.modal-content.panel {
  background: #131313;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-header {
  border-bottom: 0;
}

.modal-footer {
  border-top: 0;
}

.badge,
.priority,
.task-status,
.task-date-badge,
.stage-date-badge,
.timer-live,
.fact-chip,
.stage-metric {
  border-radius: var(--r-pill);
}

.profile-avatar,
.profile-avatar-img,
.dot,
.dot-ring,
.priority-swatch,
.progress-line-wrap,
.progress-line-fill {
  border-radius: var(--r-pill);
}

.panel,
.card,
.card.panel,
.stat.panel,
.modal-content,
.modal-content.panel,
.task-card,
.project-summary-card,
.dashboard-mini-stat,
.dashboard-summary-card,
.dashboard-focus-card,
.stage-metric,
.project-info-strip,
.project-info-item,
.form-control,
.form-select,
.btn,
.priority-select-trigger,
.priority-select-menu,
.sidebar-link,
.sidebar-project-link,
.profile-trigger {
  border: 0;
  border-width: 0;
  border-style: none;
}

body.dark-theme .form-control,
body.dark-theme .form-select,
.form-control:focus,
.form-select:focus,
body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
  border: 0;
  border-width: 0;
  border-style: none;
}

/* Projeta design system layer 2: component surfaces, no frames. */
.panel,
.card.panel,
.stat.panel {
  background: var(--bg-surface);
  border: 0;
  outline: 0;
  border-radius: var(--r-xl);
  box-shadow: none;
}

.stat.panel {
  min-height: 170px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.stat.panel .stat-trend {
  margin-top: auto;
}

.stat-progress-line {
  height: 3px;
  margin-top: 14px;
  border-radius: 2px;
  overflow: hidden;
  background: #0E0E0E;
}

.stat-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #B4D7EE;
}

.stat-plan-bottom {
  position: relative;
  min-height: 64px;
  margin-top: auto;
}

.stat-plan-bottom .stat-trend {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  margin-top: 0;
}

.stat-ring {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 55px;
  height: 55px;
}

.stat-ring line {
  stroke: #2F3032;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.stat-ring line.is-active {
  stroke: #B4D7EE;
}

.stat-ring.is-danger line.is-active {
  stroke: #EB5757;
}

.stat-ring text {
  fill: #B4D7EE;
  color: #B4D7EE;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.stat-ring.is-danger text {
  fill: #EB5757;
  color: #EB5757;
}

.stat-ring.is-compact text {
  font-size: 15px;
}

.stat-fact-bottom {
  position: relative;
  min-height: 55px;
  margin-top: auto;
}

.stat-fact-bottom .stat-trend {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  margin-top: 0;
}

.stat-sparkline {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 86px;
  height: 55px;
  overflow: visible;
}

.stat-sparkline-area {
  fill: url("#stat-sparkline-fill");
}

.stat-sparkline-line {
  fill: none;
  stroke: #B4D7EE;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-sparkline-dot-halo {
  fill: #B4D7EE;
  opacity: 0.16;
}

.stat-sparkline-dot {
  fill: #B4D7EE;
}

.stat-budget {
  position: relative;
  overflow: hidden;
}

.stat-budget .stat-trend {
  position: relative;
  z-index: 1;
}

.stat-budget-lines {
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 160px;
  height: 88px;
  pointer-events: none;
  color: #444647;
}

.task-card,
.project-summary-card,
.dashboard-mini-stat,
.dashboard-summary-card,
.dashboard-focus-card,
.crm-deal-card,
.crm-stage,
.priority-select-trigger {
  background: var(--bg-elevated);
  border: 0;
  outline: 0;
  border-radius: var(--r-lg);
  box-shadow: none;
}

.task-card,
.sidebar-link.active,
.sidebar-project-link.active,
.sidebar-project-link:hover {
  background: #222526;
}

.dashboard-kpi,
.dashboard-morning-hero {
  border-radius: var(--r-xl);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.project-summary-card:hover,
.dashboard-focus-card:hover,
.task-card:hover {
  background: var(--bg-hover);
  color: var(--fg-1);
}

.btn {
  min-height: 38px;
  padding: 9px 16px;
}

.btn-sm {
  min-height: 30px;
  padding: 6px 12px;
}

.btn-icon-only,
.sidebar-add-project,
.btn-icon-action {
  min-height: 34px;
  width: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: var(--r-md);
}

.form-control,
.form-select,
.priority-select-trigger {
  min-height: 40px;
  padding: 10px 14px;
  background: var(--bg-elevated);
}

textarea.form-control {
  min-height: 88px;
}

.form-control-color {
  min-height: 40px;
  padding: 6px;
}

.badge,
.priority,
.task-status,
.task-date-badge,
.stage-date-badge,
.timer-live,
.fact-chip,
.crm-status-chip,
.stage-metric,
.task-metric-btn,
.overdue-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  outline: 0;
  border-radius: var(--r-pill);
  box-shadow: none;
}

.badge,
.task-date-badge,
.stage-date-badge,
.timer-live,
.fact-chip,
.stage-metric,
.task-metric-btn {
  background: var(--bg-elevated);
  color: var(--fg-2);
}

.priority {
  padding: 5px 10px;
  background: var(--bg-elevated);
  color: var(--fg-2);
}

.priority.high,
.priority-select.priority-high,
.task-metric-btn-fact-over,
.fact-chip-over,
.crm-status-danger,
.crm-status-lost,
.overdue-mark {
  background: rgba(235, 87, 87, 0.14);
  color: var(--projeta-danger);
}

.overdue-mark {
  gap: 4px;
}

.priority.medium,
.priority-select.priority-medium,
.task-metric-btn-fact,
.stage-metric-fact,
.crm-status-warning,
.crm-status-lead,
.crm-status-payment {
  background: rgba(242, 201, 76, 0.14);
  color: var(--projeta-warning);
}

.priority.low,
.priority-select.priority-low,
.crm-status-success,
.crm-status-order,
.crm-status-won {
  background: rgba(111, 207, 151, 0.14);
  color: var(--projeta-success);
}

.timer-live.is-running {
  background: var(--accent-soft);
  color: var(--accent);
}

.table-responsive {
  border: 0;
  outline: 0;
  border-radius: var(--r-xl);
}

.table,
.analytics-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--fg-1);
  --bs-table-border-color: transparent;
  --bs-table-hover-bg: var(--bg-hover);
  --bs-table-hover-color: var(--fg-1);
  border-collapse: separate;
  border-spacing: 0 8px;
  color: var(--fg-1);
}

.table > :not(caption) > * > *,
.analytics-table > :not(caption) > * > * {
  background: var(--bg-elevated);
  border: 0;
  box-shadow: none;
  color: var(--fg-1);
  padding: 10px 12px;
}

.table thead > tr > *,
.analytics-table thead > tr > * {
  background: transparent;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.table tbody tr > *:first-child,
.analytics-table tbody tr > *:first-child {
  border-radius: var(--r-md) 0 0 var(--r-md);
}

.table tbody tr > *:last-child,
.analytics-table tbody tr > *:last-child {
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.modal-content,
.modal-content.panel,
.dropdown-menu,
.project-actions-dropdown {
  border: 0;
  outline: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-content,
.modal-content.panel {
  background: #131313;
  border-radius: 20px;
}

.dropdown-item,
.project-actions-item,
.priority-select-item {
  border-radius: var(--r-md);
  color: var(--fg-1);
}

.dropdown-item:hover,
.dropdown-item:focus,
.project-actions-item:hover,
.priority-select-item:hover {
  background: var(--bg-hover);
  color: var(--fg-1);
}

.crm-status-chip.active,
.sidebar-link:focus-visible,
.sidebar-project-link:focus-visible,
.project-actions-toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.sidebar-project-groups,
.sidebar-footer {
  border: 0;
}

.dot,
.dot-ring {
  border: 0;
  background: var(--ring-color, var(--accent));
}

.sidebar-project-link .dot-ring {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring-color, var(--accent)) 16%, transparent);
  flex-shrink: 0;
  flex-basis: 8px;
  background: var(--ring-color, var(--accent));
}

.sidebar-project-link .dot-ring::after {
  content: none;
}

.project-page-top h1 .dot-ring {
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ring-color, var(--accent)) 16%, transparent);
  flex-shrink: 0;
  flex-basis: 14px;
  background: var(--ring-color, var(--accent));
}

.project-page-top h1 > span:nth-of-type(2) {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.3;
  margin-left: 5px;
}

.project-page-top .project-title {
  margin-bottom: 10px;
}

/* Hover/focus state for dark utility buttons */
.header-action-pill:hover,
.header-action-pill:focus-visible,
.profile-trigger:hover,
.profile-trigger:focus-visible,
.sidebar-archive-toggle:focus-visible {
  background: var(--accent);
  color: var(--fg-on-accent);
}

.task-stage-done,
.js-stage-task-toggle {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.task-stage-done,
.js-stage-task-toggle {
  background: var(--projeta-black-2);
  color: var(--fg-2);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}

.task-card:not(.done) .task-stage-done:hover,
.task-card:not(.done) .task-stage-done:focus-visible,
.task-card:not(.done) .js-stage-task-toggle:hover,
.task-card:not(.done) .js-stage-task-toggle:focus-visible {
  background: #6FCF97;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(111, 207, 151, 0.16);
}

.text-muted,
.small {
  color: #7a7d80;
  text-transform: uppercase;
  font-size: 11px;
}

.ui-muted {
  color: #7a7d80;
}

.ui-small {
  text-transform: uppercase;
  font-size: 11px;
}

.u-mt-0 { margin-top: 0; }
.u-mt-1 { margin-top: 0.25rem; }
.u-mt-2 { margin-top: 0.5rem; }
.u-mt-3 { margin-top: 1rem; }
.u-mt-4 { margin-top: 1.5rem; }
.u-mt-5 { margin-top: 3rem; }

.u-mb-0 { margin-bottom: 0; }
.u-mb-1 { margin-bottom: 0.25rem; }
.u-mb-2 { margin-bottom: 0.5rem; }
.u-mb-3 { margin-bottom: 1rem; }
.u-mb-4 { margin-bottom: 1.5rem; }
.u-mb-5 { margin-bottom: 3rem; }

.u-ms-0 { margin-inline-start: 0; }
.u-ms-1 { margin-inline-start: 0.25rem; }
.u-ms-2 { margin-inline-start: 0.5rem; }
.u-ms-3 { margin-inline-start: 1rem; }
.u-ms-4 { margin-inline-start: 1.5rem; }
.u-ms-5 { margin-inline-start: 3rem; }

.u-me-0 { margin-inline-end: 0; }
.u-me-1 { margin-inline-end: 0.25rem; }
.u-me-2 { margin-inline-end: 0.5rem; }
.u-me-3 { margin-inline-end: 1rem; }
.u-me-4 { margin-inline-end: 1.5rem; }
.u-me-5 { margin-inline-end: 3rem; }

.project-page-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #bfbfbf;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: none;
}

.project-page-breadcrumbs a,
.project-page-breadcrumbs span {
  color: #bfbfbf;
  font-size: 13px;
  text-decoration: none;
  text-transform: none;
}

.project-page-breadcrumbs a,
.project-page-breadcrumbs-separator {
  color: #7a7d80;
}

.project-page-breadcrumbs-separator {
  font-size: 18px;
  line-height: 1;
}

.project-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 120px;
  right: 0;
  top: 0;
  height: 720px;
  background: radial-gradient(ellipse at 18% 0%, color-mix(in srgb, var(--project-accent, #B4D7EE) 8%, transparent) 0%, color-mix(in srgb, var(--project-accent, #B4D7EE) 3.5%, transparent) 36%, transparent 84%);
}

.project-shell > .app-sidebar {
  position: sticky;
  z-index: 2;
}

.project-shell > .app-main {
  position: relative;
}

.project-shell > .app-main {
  background: transparent;
}

.project-page {
  position: relative;
}

.header-action-pill {
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
}

.stage-inline-edit {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}

.stage-inline-edit:hover,
.stage-inline-edit:focus,
.stage-inline-edit:active {
  background: transparent;
  color: #fff;
  transform: none;
}

.stage-head-row {
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.stage-head-row-title {
  flex-wrap: nowrap;
}

.stage-head-row-title .stage-inline-edit {
  width: 60%;
  flex: 0 0 60%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.stage-head-row-title .stage-status-chip {
  width: 35%;
  flex: 0 0 35%;
}

.stage-task-count-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: #444647;
  -webkit-mask: url("/static/icons/lucide/square-check-big.svg") center / contain no-repeat;
  mask: url("/static/icons/lucide/square-check-big.svg") center / contain no-repeat;
}

.stage-head-row-meta {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 20px;
}

.stage-head-row-meta .stage-date-badge {
  width: auto;
  flex: 0 1 auto;
}

.stage-task-count {
  width: auto;
  flex: 0 0 auto;
  min-height: 24px;
  padding: 0;
  background: transparent;
  color: #bfbfbf;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.stage-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stage-progress-title {
  color: #7a7d80;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}

.stage-progress-label {
  color: #e0e0e0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
}

.stage-progressbar {
  height: 9px;
}

.stage-col .task-card {
  background: #222526;
  border-radius: 14px;
  padding: 14px 14px 12px;
  gap: 15px;
  box-shadow: none;
}

.stage-col .task-card:hover {
  background: #222526;
  box-shadow: none;
}

.stage-col.drop-hover {
  outline: 1px dashed rgba(180, 215, 238, 0.42);
  outline-offset: -6px;
}

.stage-col .task-card.dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.stage-col .task-head-row {
  align-items: center;
}

.stage-col .js-task-open-full.task-title {
  min-height: 0;
  padding: 0;
  line-height: 1.3;
  display: block;
}

.stage-col .task-card.is-running {
  box-shadow: rgb(180, 215, 238) 0 0 0 1px inset;
}

.stage-col .task-card.done .task-title {
  text-decoration-line: line-through;
  text-decoration-color: rgba(191, 191, 191, 0.55);
  text-decoration-thickness: 1px;
}

.stage-col .task-controls-row {
  background: #1a1a1a;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
}

.stage-col .task-controls-inline {
  gap: 8px;
}

.stage-col .task-time-btn {
  color: #7a7d80;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
}

.stage-col .task-time-btn .task-time-label {
  color: #7a7d80;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
}

.stage-col .task-time-btn .estimate-label {
  color: #e0e0e0;
  font-size: 11px;
  font-weight: 600;
}

.stage-col .project-task-fact-btn .timer-live.tiny,
.stage-col .task-card .timer-live.tiny {
  background: transparent;
  color: #bfbfbf;
  border: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.stage-col .project-task-fact-btn:hover .timer-live.tiny,
.stage-col .project-task-fact-btn.project-task-fact-btn-over .timer-live.tiny {
  background: transparent;
  color: #bfbfbf;
}

.stage-col .task-card .timer-live.is-running,
.stage-col .project-task-fact-btn .timer-live.is-running {
  background: transparent;
  color: #B4D7EE;
}

.stage-col .task-card .timer-toggle,
.stage-col .task-card .timer-toggle.timer-off,
.stage-col .task-card .timer-toggle.timer-on,
.stage-col .task-card .timer-toggle:hover,
.stage-col .task-card .timer-toggle.timer-off:hover,
.stage-col .task-card .timer-toggle.timer-on:hover {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #B4D7EE;
  color: #1A1A1A;
}

.stage-col .task-card .timer-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-col .task-card .timer-toggle svg path,
.stage-col .task-card .timer-toggle svg polygon,
.stage-col .task-card .timer-toggle svg rect {
  fill: none;
  stroke: currentColor;
}

.stage-metric,
.stage-metric.stage-metric-plan,
.stage-metric.stage-metric-fact {
  align-items: center;
  min-height: 24px;
  gap: 6px;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.stage-metric.stage-metric-plan {
  background: #222526;
  color: #bfbfbf;
}

.stage-metric.stage-metric-fact {
  background: rgba(180, 215, 238, 0.12);
  color: #b4d7ee;
}

.stage-metric.stage-metric-over {
  background: rgba(235, 87, 87, 0.05);
  color: #EB5757;
}

.stage-metric-value {
  color: #e0e0e0;
  font-weight: 500;
}

.stage-metric-fact .stage-metric-value {
  color: currentColor;
}

.stage-metric-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: var(--stage-metric-icon-url) center / contain no-repeat;
  mask: var(--stage-metric-icon-url) center / contain no-repeat;
}

.stage-metric-icon-plan {
  --stage-metric-icon-url: url("/static/icons/lucide/clock-stat.svg");
}

.stage-metric-icon-fact {
  --stage-metric-icon-url: url("/static/icons/lucide/circle-check-stat.svg");
}

.js-add-task-for-stage {
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: transparent;
  color: #bfbfbf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.js-add-task-for-stage .sidebar-link-icon,
.js-add-task-for-stage .sidebar-link-icon svg {
  width: 14px;
  height: 14px;
}

.js-add-task-for-stage:hover,
.js-add-task-for-stage:focus-visible {
  background: transparent;
  border-color: #B4D7EE;
  color: #B4D7EE;
}

.js-add-task-for-stage:not(.btn-check) + .btn:active {
  color: #B4D7EE;
  background-color: #6c757d00;
  border-color: #B4D7EE;
}

.js-add-task-for-stage.btn:active {
  transform: none;
}

.js-add-task-for-stage.btn-outline-secondary:focus {
  color: #B4D7EE;
  background-color: #6c757d00;
  border-color: #B4D7EE;
}

.btn-sm.btn-icon-text.js-add-task-for-stage {
  padding: 10px 14px;
}

.stage-date-badge {
  background: transparent;
  color: #bfbfbf;
  font-size: 12px;
  font-weight: 400;
  gap: 7px;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  white-space: nowrap;
}

.stage-date-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: #444647;
  -webkit-mask: url("/static/icons/lucide/calendar.svg") center / contain no-repeat;
  mask: url("/static/icons/lucide/calendar.svg") center / contain no-repeat;
}

.project-info-strip.panel {
  background: #1a1a1a;
  border-radius: 20px;
  padding: 22px;
  gap: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  box-shadow: none;
}

.project-info-strip .project-info-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  color: #e0e0e0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.project-info-strip .project-info-item:not(:last-of-type)::after {
  content: "";
  width: 1px;
  height: 34px;
  background: #2b2d2f;
  margin-left: 28px;
}

.project-info-strip .project-info-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
  background: #222526;
  color: #d7d7d7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.project-info-strip .project-info-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-info-strip .project-info-icon svg,
.project-info-strip .project-info-icon svg path,
.project-info-strip .project-info-icon svg rect,
.project-info-strip .project-info-icon svg circle {
  fill: none;
}

.project-info-icon-mask {
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--project-info-icon-url) center / contain no-repeat;
  mask: var(--project-info-icon-url) center / contain no-repeat;
}

.project-info-icon-tasks {
  --project-info-icon-url: url("/static/icons/lucide/list-checks.svg");
}

.project-info-icon-timer {
  --project-info-icon-url: url("/static/icons/lucide/timer.svg");
}

.project-info-icon-plan {
  --project-info-icon-url: url("/static/icons/lucide/clock-stat.svg");
}

.project-info-icon-fact {
  --project-info-icon-url: url("/static/icons/lucide/circle-check-stat.svg");
}

.project-info-icon-calendar {
  --project-info-icon-url: url("/static/icons/lucide/calendar.svg");
}

.project-info-copy {
  display: grid;
  gap: 7px;
  line-height: 1;
}

.project-info-label {
  color: #7a7d80;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
}

.project-info-strip .project-info-item strong {
  color: #e0e0e0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.project-info-strip .close-project-form {
  margin-left: auto;
}

.tasks-info-strip.panel {
  justify-content: flex-start;
}

.tasks-info-strip .project-info-label {
  color: var(--fg-3);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 400;
}

.tasks-info-strip .tasks-fact-icon {
  color: var(--accent);
}

.tasks-view-control {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.tasks-filter-menu {
  position: relative;
}

.tasks-filter-btn {
  min-height: 40px;
  border: 0;
  border-radius: var(--r-pill);
  padding: 0 18px;
  background: var(--bg-elevated);
  color: var(--fg-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: all 160ms var(--ease-out);
}

.tasks-filter-btn:hover,
.tasks-filter-btn:focus-visible,
.tasks-filter-btn.active,
.tasks-filter-btn[aria-expanded="true"] {
  background: var(--accent);
  color: var(--fg-on-accent);
}

.tasks-filter-icon,
.tasks-filter-icon svg {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.tasks-filter-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tasks-filter-icon svg path {
  fill: none;
}

.tasks-filter-panel {
  background: #131313;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  max-width: min(460px, calc(100vw - 32px));
  padding: 24px;
  width: 460px;
}

.tasks-filter-title {
  color: #7a7d80;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tasks-filter-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
}

.tasks-filter-option {
  border-radius: 12px;
  padding: 0;
  display: grid;
  grid-template-columns: 18px 8px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--fg-1);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.tasks-filter-option:hover,
.tasks-filter-option:focus-within {
  background: var(--bg-elevated);
}

.tasks-filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tasks-filter-check {
  width: 18px;
  height: 18px;
  border-radius: var(--r-xs);
  background: var(--bg-elevated);
  box-shadow: none;
  position: relative;
}

.tasks-filter-option input:checked + .tasks-filter-check {
  background: var(--accent);
  box-shadow: none;
}

.tasks-filter-option input:checked + .tasks-filter-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 7px;
  height: 10px;
  border: solid var(--fg-on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tasks-filter-project-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--project-dot, var(--accent));
}

.tasks-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
}

.tasks-filter-clear,
.tasks-filter-apply {
  min-height: 32px;
  border: 0;
  border-radius: var(--r-pill);
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.tasks-filter-clear {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  min-height: 36px;
  padding: 15px 18px;
}

.tasks-filter-clear:hover,
.tasks-filter-clear:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  color: var(--fg-1);
}

.tasks-filter-apply {
  background: var(--accent);
  color: var(--fg-on-accent);
  font-weight: 500;
}

.tasks-view-label {
  color: var(--fg-3);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 400;
}

.tasks-view-segment {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
}

.tasks-view-option {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg-2);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: all 160ms var(--ease-out);
}

.tasks-view-option:hover,
.tasks-view-option:focus-visible {
  color: var(--fg-1);
}

.tasks-view-option.active {
  background: var(--accent);
  color: var(--fg-on-accent);
  font-weight: 500;
}

@media (max-width: 900px) {
  .tasks-view-control {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .tasks-view-control {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .tasks-view-segment {
    width: 100%;
  }

  .tasks-view-option {
    flex: 1 1 0;
    text-align: center;
  }
}

.btn-blue {
  border: 0;
  background: #B4D7EE;
  color: #111315;
}

.btn-blue:hover,
.btn-blue:focus-visible,
.btn-blue:active {
  background: #9BC7E2;
  color: #111315;
}

.close-project-btn {
  min-height: auto;
  padding: 10px 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.close-project-btn:hover,
.close-project-btn:focus-visible {
  color: #111315;
}

.close-project-btn-icon,
.close-project-btn-icon svg {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.close-project-btn-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.close-project-btn-icon svg path {
  fill: none;
  stroke: currentColor;
}

.sidebar-group-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  justify-content: flex-start;
  gap: 8px;
}

.sidebar-group-toggle > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sidebar-group-toggle .arrow {
  margin-left: auto;
  transition: transform 0.15s ease;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-group-toggle .arrow svg {
  width: 12px;
  height: 12px;
  display: block;
}

.sidebar-group-toggle[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
}

.sidebar-footer .profile-trigger:hover,
.sidebar-footer .profile-trigger:focus-visible {
  background: #2F3032;
  color: #E0E0E0;
}

.sidebar-footer .profile-trigger .badge {
  background: #353A3E;
  color: #B4D7EE;
}

.task-card .task-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  background: #1a1a1a;
}

.task-card .task-controls-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.task-card .task-time-btn {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a7d80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
}

.task-card .task-time-btn .task-time-label {
  color: #7a7d80;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
}

.task-card .task-time-btn .estimate-label {
  color: #e0e0e0;
  font-size: 11px;
  font-weight: 600;
}

.task-card .timer-live.tiny {
  margin-left: 0;
  background: transparent;
  color: #bfbfbf;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.task-card .timer-live.tiny.is-running {
  background: transparent;
  color: #B4D7EE;
}

.task-card .timer-toggle,
.task-card .timer-toggle.timer-off,
.task-card .timer-toggle.timer-on,
.task-card .timer-toggle:hover,
.task-card .timer-toggle.timer-off:hover,
.task-card .timer-toggle.timer-on:hover {
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #B4D7EE;
  color: #1A1A1A;
}

.task-card .timer-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.task-card .timer-toggle svg path,
.task-card .timer-toggle svg polygon,
.task-card .timer-toggle svg rect {
  fill: none;
  stroke: currentColor;
}

.task-card.is-running {
  box-shadow: rgb(180, 215, 238) 0 0 0 1px inset;
}

.priority {
  color: #bfbfbf;
  font-size: 11px;
  font-weight: 400;
}

.priority.high {
  background: rgba(242, 201, 76, 0.1);
  color: #bfbfbf;
}

.priority.medium {
  background: rgba(180, 215, 238, 0.1);
  color: #bfbfbf;
}

.priority.low {
  background: rgba(224, 224, 224, 0.1);
  color: #bfbfbf;
}

.priority .priority-icon {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  color: currentColor;
}

.priority .priority-icon svg {
  display: none;
}

.priority .priority-icon::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  background: currentColor;
}

.priority.high .priority-icon {
  color: #F2C94C;
}

.priority.high .priority-icon::before {
  width: 6px;
  height: 6px;
  -webkit-mask: url("/static/icons/priority/triangle-rounded.svg") center / contain no-repeat;
  mask: url("/static/icons/priority/triangle-rounded.svg") center / contain no-repeat;
}

.priority.medium .priority-icon {
  color: #B4D7EE;
}

.priority.medium .priority-icon::before {
  width: 6px;
  height: 6px;
  -webkit-mask: url("/static/icons/priority/diamond-rounded.svg") center / contain no-repeat;
  mask: url("/static/icons/priority/diamond-rounded.svg") center / contain no-repeat;
}

.priority.low .priority-icon {
  color: #E0E0E0;
}

.priority.low .priority-icon::before {
  border-radius: 50%;
}

.stage-col .task-date-badge {
  background: transparent;
  color: #bfbfbf;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.stage-col .task-date-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  background: #444647;
  -webkit-mask: url("/static/icons/lucide/calendar.svg") center / contain no-repeat;
  mask: url("/static/icons/lucide/calendar.svg") center / contain no-repeat;
}

.stage-col .task-date-badge-empty {
  opacity: 1;
}

.stage-col .task-meta-row .priority {
  font-size: 11px;
  font-weight: 500;
}

.stage-col .task-meta-row .priority .priority-icon {
  width: 10px;
  height: 10px;
  flex-basis: 10px;
}

.stage-col .task-meta-row .priority .priority-icon::before {
  width: 10px;
  height: 10px;
}
