/* Trello Gantt Chart Power-Up Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f5f7;
    color: #172b4d;
  overflow: visible;
}

body.modal-open {
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

#gantt-container {
    padding: 20px;
    max-width: 100%;
  overflow: visible;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 12px;
}

.header h1 {
    color: #172b4d;
    font-size: 24px;
    font-weight: 600;
}

.header-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.header-title-stack {
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
  min-width: 250px;
}

.header-title-stack h1 {
  line-height: 1.1;
}

.header-title-stack .task-search--title {
  width: 100%;
}

.header-title-row .header-actions {
  margin-left: auto;
}

.header-title-row .infrequently-modified-controls {
  align-items: stretch;
  flex: 1 1 520px;
  min-width: 280px;
  max-width: none;
  overflow-x: auto;
  overflow-y: hidden;
}

.infrequently-modified-controls .toolbar-group {
  justify-content: center;
}

.infrequently-modified-controls .toolbar-group--board {
  min-width: min(560px, 48vw);
  max-width: min(680px, 52vw);
}

.infrequently-modified-controls .toolbar-group--board .toolbar-group__controls {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.infrequently-modified-controls .toolbar-group--filters,
.infrequently-modified-controls .toolbar-group--baselines {
  min-width: max-content;
}

.infrequently-modified-controls .toolbar-group--filters .toolbar-group__controls {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: max-content max-content max-content;
}

.infrequently-modified-controls .toolbar-group--filters #show-employee-progress {
  grid-column: 1 / span 2;
}

.infrequently-modified-controls .toolbar-group--filters #show-points-rewards {
  grid-column: 3;
}

.infrequently-modified-controls .toolbar-group--baselines .toolbar-group__controls {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: max-content max-content;
}

.infrequently-modified-controls .toolbar-group--baselines .baseline-view {
  grid-column: 1 / -1;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar-groups {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.toolbar-row {
  display: contents;
}

.toolbar-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border: 1px solid rgba(9, 30, 66, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  flex: 0 0 auto;
}

.toolbar-group__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5e6c84;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toolbar-group__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #e9f2ff;
  color: #0747a6;
  font-size: 13px;
  line-height: 1;
}

.toolbar-group__controls {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.toolbar-group--board {
  width: fit-content;
  min-width: 820px;
  max-width: min(1040px, 82vw);
}

.toolbar-group--board .toolbar-group__controls {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.toolbar-group--board .board-picker {
  inline-size: auto;
  max-width: none;
  min-width: 0;
  width: 100%;
}

.toolbar-group--board #load-all-boards {
  align-items: center;
  align-self: stretch;
  display: inline-flex;
  justify-content: center;
  min-height: 100%;
  padding-inline: 18px;
  white-space: nowrap;
}

.toolbar-group--timeline {
  width: 610px;
}

.toolbar-group--view {
  width: 410px;
}

.toolbar-group--filters {
  width: 590px;
}

.toolbar-group--baselines {
  width: 680px;
}

@media (max-width: 1500px) {
  .toolbar-group__controls {
    flex-wrap: wrap;
  }

  .toolbar-group--timeline {
    width: 520px;
  }

  .toolbar-group--filters {
    width: 560px;
  }

  .toolbar-group--baselines {
    width: 650px;
  }
}

.baseline-view {
  display: inline-flex;
  border: 1px solid #d6dadc;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f5f7;
}

.baseline-view__button {
  background: transparent;
  border: 0;
  color: #172b4d;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 6px 10px;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
  min-width: 48px;
}

.baseline-view__button + .baseline-view__button {
  border-left: 1px solid #d6dadc;
}

.baseline-view__button.is-active {
  background: #0079bf;
  color: #fff;
}

.baseline-view__button:disabled {
  cursor: not-allowed;
  background: #f4f5f7;
  color: #6b778c;
  opacity: 0.6;
}

.layout-view {
  display: inline-flex;
  border: 1px solid #d6dadc;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f5f7;
}

.layout-view__button {
  background: transparent;
  border: 0;
  color: #172b4d;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 6px 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.layout-view__button + .layout-view__button {
  border-left: 1px solid #d6dadc;
}

.layout-view__button.is-active {
  background: #0079bf;
  color: #fff;
}

.chronological-sort {
  min-width: 150px;
  font-weight: 600;
}

#board-filter {
  width: 180px;
  max-width: 180px;
}

.controls select,
.controls button:not(.baseline-view__button) {
    padding: 6px 10px;
    border: 1px solid #dfe1e6;
    border-radius: 3px;
    background: white;
    color: #172b4d;
    font-size: 13px;
    cursor: pointer;
}

.controls button:not(.baseline-view__button) {
    background: white;
    color: #172b4d;
    border-color: #cfd6e0;
}

.controls button:not(.baseline-view__button):hover {
    background: #f4f7fb;
    border-color: #a8b5c6;
}

.controls .toolbar-button-primary,
.controls .modern-button.toolbar-button-primary {
  background: #0079bf;
  color: #ffffff;
  border-color: #0079bf;
  font-weight: 700;
}

.controls .toolbar-button-primary:hover,
.controls .modern-button.toolbar-button-primary:hover {
  background: #005a8b;
  border-color: #005a8b;
}

.controls .toolbar-button-secondary {
  background: #ffffff;
  color: #172b4d;
  border-color: #cfd6e0;
  font-weight: 600;
}

.controls .layout-view__button {
  border: 0;
  border-radius: 0;
}

.controls .layout-view__button.is-active {
  background: #0079bf;
  color: #ffffff;
}

.controls .layout-view__button:not(.is-active) {
  background: transparent;
  color: #172b4d;
}

.controls .layout-view__button:not(.is-active):hover {
  background: #e9edf2;
}

.controls .modern-button {
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.2s ease;
}

.controls .modern-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(38, 132, 255, 0.22);
  background: linear-gradient(135deg, #3b5bdb, #1d75ff);
}

.controls .modern-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.35);
}

.controls .modern-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(38, 132, 255, 0.18);
}

.baseline-indicator {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  background: #f4f5f7;
  color: #172b4d;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.baseline-indicator::before {
  content: "Baseline:";
  font-weight: 600;
  margin-right: 6px;
  color: #091e42;
}

.gantt-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}


.timeline-header {
  display: block;
  background: #f4f5f7;
  border-bottom: 1px solid #dfe1e6;
  position: sticky;
  top: 0;
  z-index: 10;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 4px 0;
}

.task-column {
  width: 320px;
  padding: 12px;
  font-weight: 600;
  border-right: 1px solid #dfe1e6;
  background: #f4f5f7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-column {
  flex: 1 1 auto;
  padding: 8px 0 16px;
  font-weight: 600;
  text-align: left;
  position: relative;
  overflow-x: auto;
  overflow-y: auto;
  min-height: 0;
}

.gantt-content {
  display: flex;
  flex: 1 1 auto;
  overflow: hidden;
}

.task-list {
  width: 320px;
  border-right: 1px solid #dfe1e6;
  background: white;
  overflow-y: auto;
}

.timeline-content {
  position: relative;
  min-height: 100%;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f4f5f7;
    min-height: 40px;
    cursor: pointer;
}

.task-item:hover {
    background: #f4f5f7;
}

.task-info {
    flex: 1;
}

.task-name {
    font-weight: 500;
     height: 26px;
}

.task-meta {
    font-size: 12px;
    color: #6b778c;
}

.task-meta span {
    margin-right: 8px;
}

/* performance helper messages */
#loading-message,
#render-limit-message {
  margin-top: 4px;
  font-size: 13px;
  color: #555;
}
#render-limit-message button {
  margin-left: 8px;
  font-size: 13px;
}

.task-bar {
    position: absolute;
    height: 20px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.task-bar:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.task-bar.not-started {
    background: #dfe1e6;
    color: #6b778c;
}

.task-bar.in-progress {
    background: #ff9500;
    color: white;
}

.task-bar.complete {
    background: #61bd4f;
    color: white;
}

.task-bar.overdue {
    background: #eb5a46;
    color: white;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.baseline-bar {
    position: absolute;
    height: 2px;
    background: #0079bf;
    opacity: 0.7;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 1px;
}

.timeline-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.timeline-week-highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(7, 71, 166, 0.14);
  border-left: 1px solid rgba(7, 71, 166, 0.35);
  border-right: 1px solid rgba(7, 71, 166, 0.35);
  pointer-events: none;
  z-index: 0;
}

.timeline-week-highlight--header {
  height: 100%;
  top: 0;
  background: rgba(7, 71, 166, 0.1);
}

.timeline-grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px solid #dfe1e6;
}

.timeline-grid-line.minor {
  border-left-color: #e1e4e8;
}

.timeline-grid-line.major {
    border-left-color: #c1c7d0;
}

.timeline-grid-line.today {
    border-left-color: #eb5a46;
    border-left-width: 2px;
}

.timeline-label {
    position: absolute;
    top: -25px;
    font-size: 11px;
    color: #6b778c;
    text-align: center;
    transform: translateX(-50%);
}

/* ===== Calendar Timeline View ===== */
#gantt-container.layout-mode-calendar .gantt-header-row {
  display: block;
}

#gantt-container.layout-mode-calendar .task-column,
#gantt-container.layout-mode-calendar #task-list,
#gantt-container.layout-mode-calendar #gantt-resizer,
#gantt-container.layout-mode-calendar #chronological-sort {
  display: none;
}

#gantt-container.layout-mode-calendar .task-column:has(.inline-new-project-button) { display: flex; width: auto; min-width: 0; border: 0; }
#gantt-container.layout-mode-calendar .task-column > :not(.task-column-controls),
#gantt-container.layout-mode-calendar .task-column-controls > :not(.inline-new-project-button) { display: none; }

#gantt-container.layout-mode-calendar .timeline-header {
  border-bottom: 1px solid #dfe8f3;
  overflow: visible;
  padding: 0;
  white-space: normal;
}

#gantt-container.layout-mode-calendar .gantt-content {
  overflow: hidden;
}

#gantt-container.layout-mode-calendar .timeline-column {
  padding: 0;
  overflow: auto;
  background: #f7f9fc;
}

#gantt-container.layout-mode-calendar .timeline-content {
  min-height: 100%;
}

.calendar-view-header {
  align-items: flex-start;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-width: calc(170px + 12px + (430px * 7) + (12px * 6) + 36px);
  padding: 14px 18px;
}

.calendar-view-header__main {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: calc(170px + 12px + (430px * 7) + (12px * 6));
}

.calendar-view-title-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.calendar-week-nav {
  align-items: center;
  appearance: none;
  background: linear-gradient(180deg, #ffffff, #eef8ff);
  border: 1px solid rgba(66, 133, 244, 0.28);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(23, 43, 77, 0.08);
  color: #0747a6;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 26px;
  font-weight: 950;
  height: 40px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.calendar-week-nav:hover {
  border-color: rgba(66, 133, 244, 0.58);
  box-shadow: 0 8px 18px rgba(66, 133, 244, 0.15);
  transform: translateY(-1px);
}

.calendar-view-eyebrow {
  color: #4285f4;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.calendar-view-header h2 {
  color: #172b4d;
  font-size: 20px;
  line-height: 1.1;
  margin: 0;
}

.calendar-view-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.calendar-view-summary span {
  background: rgba(66, 133, 244, 0.09);
  border: 1px solid rgba(66, 133, 244, 0.22);
  border-radius: 999px;
  color: #2d5fb8;
  font-size: 11px;
  font-weight: 850;
  padding: 5px 9px;
}

.calendar-week-progress {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(223, 232, 243, 0.92);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 18px rgba(23, 43, 77, 0.05);
  display: grid;
  gap: 10px;
  margin-left: calc(170px + 12px);
  padding: 12px 14px;
  width: calc((430px * 7) + (12px * 6));
}

.calendar-week-progress__headline {
  align-items: center;
  color: #526581;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  text-align: center;
}

.calendar-week-progress__icon {
  align-items: center;
  background: rgba(97, 189, 79, 0.12);
  border-radius: 999px;
  color: #20bf22;
  display: inline-flex;
  font-size: 16px;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.calendar-week-progress__title {
  color: #172b4d;
  font-size: 16px;
  font-weight: 950;
}

.calendar-week-progress__headline strong {
  color: #20bf22;
  font-size: 16px;
  font-weight: 950;
}

.calendar-week-progress__days {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
}

.calendar-week-progress-day {
  display: grid;
  gap: 6px;
  min-width: 0;
  text-align: center;
}

.calendar-week-progress-day__label {
  color: #172b4d;
  font-size: 12px;
  font-weight: 850;
}

.calendar-week-progress-day__label strong {
  color: #20bf22;
  margin-left: 3px;
}

.calendar-week-progress-day__steps {
  align-items: center;
  display: flex;
  gap: 3px;
  justify-content: center;
  min-height: 18px;
  position: relative;
}

.calendar-week-progress-day__steps::before {
  background: rgba(177, 190, 205, 0.7);
  content: "";
  height: 3px;
  left: 6px;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.calendar-week-progress-step,
.calendar-week-progress-empty-dot {
  align-items: center;
  background: #ffffff;
  border: 2px solid #b1becd;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 18px;
  z-index: 1;
}

.calendar-week-progress-step.is-complete {
  background: #20bf22;
  border-color: #20bf22;
  box-shadow: 0 0 0 3px rgba(32, 191, 34, 0.13);
}

.calendar-view-board {
  display: flex;
  gap: 12px;
  min-height: 620px;
  min-width: max-content;
  padding: 14px;
  position: relative;
}

.calendar-view-board.is-day-focus {
  min-width: calc(170px + 12px + min(1320px, calc(100vw - 230px)));
}

.calendar-empty-week-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 520px;
  min-width: calc(170px + 12px + (430px * 7) + (12px * 6));
  position: relative;
}

.calendar-empty-week-shell .empty-state {
  flex: 1 1 auto;
}

.calendar-week-side-nav {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  z-index: 35;
}

.calendar-week-side-nav:hover {
  transform: translateY(-50%) translateY(-1px);
}

.calendar-week-side-nav--previous {
  align-self: flex-start;
  left: 18px;
  margin-right: -52px;
  margin-top: 330px;
}

.calendar-week-side-nav--next {
  align-self: flex-start;
  margin-left: -52px;
  margin-top: 330px;
  order: 999;
  right: 18px;
}

.calendar-assignee-column {
  background: #ffffff;
  border: 1px solid #dfe8f3;
  box-shadow: 0 1px 3px rgba(23, 43, 77, 0.06);
  display: flex;
  flex: 0 0 170px;
  flex-direction: column;
  overflow: hidden;
}

.calendar-assignee-header {
  align-items: flex-end;
  background: #f6f8fb;
  border-bottom: 1px solid #dfe8f3;
  color: #8ba0bb;
  display: flex;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  min-height: 69px;
  padding: 14px 12px;
  text-transform: uppercase;
}

.calendar-assignee-picker.calendar-day-capacity {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
  min-height: 114px;
}

.calendar-assignee-picker__hint {
  display: none;
}

.calendar-assignee-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.calendar-assignee-button {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.72);
  border: 2px solid rgba(66, 135, 168, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 10px rgba(17, 58, 93, 0.08);
  color: #10294b;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 2px;
  position: relative;
  width: 38px;
}

.calendar-assignee-button:hover {
  border-color: rgba(48, 171, 210, 0.42);
  transform: translateY(-1px);
}

.calendar-assignee-button.is-selected {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.85), transparent 36%),
    linear-gradient(135deg, rgba(100, 227, 195, 0.9), rgba(55, 183, 255, 0.72));
  border-color: rgba(49, 146, 43, 0.56);
  box-shadow:
    0 0 0 3px rgba(97, 189, 79, 0.16),
    0 6px 16px rgba(17, 58, 93, 0.12);
}

.calendar-assignee-avatar {
  align-items: center;
  background: linear-gradient(145deg, #e9f7ff, #ffffff);
  border: 1px solid rgba(76, 154, 255, 0.24);
  color: #0747a6;
  display: inline-flex;
  font-size: 10px;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  overflow: hidden;
  width: 30px;
}

.calendar-assignee-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

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

.calendar-assignee-empty {
  color: #6b778c;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.calendar-assignee-filler {
  background:
    linear-gradient(to right, rgba(223, 232, 243, 0.7) 1px, transparent 1px);
  background-size: 50% 100%;
  flex: 1 1 auto;
  min-height: 360px;
}

.calendar-assignee-lane-label-stack {
  background:
    linear-gradient(to right, rgba(223, 232, 243, 0.7) 1px, transparent 1px);
  background-size: 50% 100%;
  display: grid;
  gap: 12px;
  margin-top: 68px;
  padding: 14px 8px 18px;
}

.calendar-day-column {
  background: #ffffff;
  border: 1px solid #dfe8f3;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(23, 43, 77, 0.06);
  display: flex;
  flex: 0 0 430px;
  flex-direction: column;
  overflow: hidden;
}

.calendar-view-board.is-day-focus .calendar-day-column {
  flex: 1 1 min(1320px, calc(100vw - 230px));
  min-width: min(1320px, calc(100vw - 230px));
}

.calendar-day-column.is-today {
  background: #edf4ff;
  border-color: #4285f4;
  box-shadow: 0 0 0 1px rgba(66, 133, 244, 0.35), 0 10px 30px rgba(66, 133, 244, 0.12);
}

.calendar-day-column.is-complete-day {
  background: #eafbea;
  border-color: rgba(32, 191, 34, 0.48);
  box-shadow: 0 0 0 1px rgba(32, 191, 34, 0.2), 0 10px 30px rgba(32, 191, 34, 0.12);
}

.calendar-day-header {
  align-items: center;
  appearance: none;
  background: #f6f8fb;
  border-bottom: 1px solid #dfe8f3;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
}

.calendar-day-header:hover,
.calendar-day-header:focus-visible {
  background:
    linear-gradient(145deg, rgba(232, 241, 255, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 2px rgba(66, 133, 244, 0.2);
  outline: none;
}

.calendar-day-column.is-today .calendar-day-header {
  background: #e8f1ff;
}

.calendar-day-column.is-complete-day .calendar-day-header {
  background: #ddf8df;
}

.calendar-day-name {
  color: #8ba0bb;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.calendar-day-header strong {
  color: #172b4d;
  display: block;
  font-size: 22px;
  line-height: 1.05;
}

.calendar-day-focus-back,
.calendar-day-focus-floating-back {
  align-items: center;
  appearance: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 248, 255, 0.78));
  border: 1px solid rgba(48, 171, 210, 0.34);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 6px 16px rgba(17, 58, 93, 0.1);
  color: #0747a6;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  min-height: 32px;
  padding: 7px 12px;
  white-space: nowrap;
}

.calendar-day-focus-back:hover,
.calendar-day-focus-back:focus-visible,
.calendar-day-focus-floating-back:hover,
.calendar-day-focus-floating-back:focus-visible {
  border-color: rgba(12, 102, 228, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 8px 20px rgba(12, 102, 228, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.calendar-day-focus-floating-back {
  align-self: flex-start;
  left: 190px;
  position: sticky;
  top: 16px;
  z-index: 42;
}

.calendar-day-count {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(66, 133, 244, 0.32);
  border-radius: 999px;
  color: #4285f4;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-width: 26px;
  padding: 3px 7px;
}

.calendar-day-column.is-complete-day .calendar-day-count {
  background: #20bf22;
  border-color: #20bf22;
  color: #ffffff;
}

.calendar-day-capacity.timeline-header-cell-progress {
  border-bottom: 1px solid #dfe8f3;
  border-left: 0;
  height: auto;
  min-height: 104px;
  padding: 8px 10px 9px;
  width: 100% !important;
}

.calendar-day-column.is-today .calendar-day-capacity.timeline-header-cell-progress {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(236, 245, 255, 0.92));
}

.calendar-assignee-picker.calendar-day-capacity.timeline-header-cell-progress {
  min-height: 114px;
}

.calendar-day-capacity .timeline-progress-stepper--capacity {
  align-items: center;
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 19px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  justify-content: stretch;
  max-width: 100%;
  min-height: 19px;
  position: relative;
}

.calendar-day-capacity .timeline-progress-stepper--capacity::before {
  display: none;
}

.calendar-capacity-step-slot {
  align-items: center;
  display: flex;
  justify-content: stretch;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.calendar-capacity-duration {
  align-items: center;
  background: #ffffff;
  border: 2px solid #172b4d;
  border-radius: 999px;
  color: #172b4d;
  display: flex;
  height: 16px;
  justify-content: center;
  margin-right: 7px;
  min-width: 24px;
  overflow: visible;
  padding: 0 16px 0 6px;
  position: relative;
  width: 100%;
}

.calendar-capacity-duration__label {
  display: block;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-capacity-duration--early {
  background: #20bf22;
  border-color: #20bf22;
  color: #ffffff;
}

.calendar-capacity-duration--on-time {
  background: #95a3b3;
  border-color: #7c8da6;
  color: #ffffff;
}

.calendar-capacity-duration--late {
  background: #bf6a1f;
  border-color: #9b4f10;
  color: #ffffff;
}

.calendar-capacity-duration--incomplete {
  background: #ffffff;
  border-color: #172b4d;
  color: #172b4d;
}

.calendar-day-capacity .timeline-progress-stepper--capacity .timeline-progress-step {
  background: #ffffff;
  height: 14px;
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  z-index: 2;
}

.calendar-day-capacity .timeline-progress-stepper--capacity .timeline-progress-step.is-complete {
  background: #20bf22;
  border-color: #20bf22;
  color: #ffffff;
}

.calendar-day-capacity .timeline-capacity-heading {
  font-size: 11px;
  margin-top: 4px;
}

.calendar-day-capacity .timeline-extra-progress-summary {
  font-size: 10px;
}

.calendar-day-capacity .timeline-capacity-meter { margin: 5px 4px 2px; }
.calendar-day-capacity .timeline-capacity-warning { font-size: 10px; margin-top: 4px; }

.calendar-time-bands {
  display: grid;
  grid-template-columns: 4fr 1fr 4fr;
  border-bottom: 1px solid #d4e3f1;
}

.calendar-band {
  color: #172b4d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 10px 8px;
  text-align: center;
}

.calendar-band--morning {
  background: #dff3ff;
}

.calendar-band--lunch {
  background: #f3f6f9;
  border-left: 1px solid #d4e3f1;
  border-right: 1px solid #d4e3f1;
}

.calendar-band--afternoon {
  background: #ffe2b9;
}

.calendar-hour-row {
  background: #f8fbff;
  border-bottom: 1px solid #dfe8f3;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.calendar-hour-row span {
  border-right: 1px solid #dfe8f3;
  color: #91a4bf;
  font-size: 10px;
  font-weight: 850;
  padding: 8px 4px;
  text-align: center;
}

.calendar-hour-row span:last-child {
  border-right: 0;
}

.calendar-day-progress {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #dfe8f3;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.calendar-day-progress span {
  color: #4285f4;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-day-progress strong {
  color: #526581;
  font-size: 12px;
  font-weight: 850;
  text-align: right;
}

.calendar-day-grid {
  display: grid;
  gap: 12px;
  min-height: 360px;
  padding: 14px 12px 18px;
  position: relative;
}

.calendar-view-empty-day {
  align-self: start;
  color: #7c8da6;
  font-size: 15px;
  font-weight: 850;
  grid-column: 1 / -1;
  justify-self: center;
  padding-top: 52px;
}

.calendar-assignee-lane {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(244, 250, 255, 0.52));
  border: 1px solid rgba(190, 207, 224, 0.68);
  border-radius: 12px;
  display: block;
  min-height: 118px;
  overflow: hidden;
  padding: 8px 0;
}

.calendar-assignee-lane--joint {
  background:
    linear-gradient(145deg, rgba(237, 250, 255, 0.9), rgba(255, 255, 255, 0.64));
  border-color: rgba(48, 171, 210, 0.34);
}

.calendar-assignee-lane__label {
  align-items: center;
  align-self: stretch;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(231, 246, 255, 0.68));
  border: 1px solid rgba(190, 207, 224, 0.74);
  border-radius: 10px;
  color: #172b4d;
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 900;
  gap: 5px;
  justify-content: center;
  line-height: 1.15;
  min-width: 0;
  padding: 8px 6px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-assignee-lane__label--rail {
  min-height: 118px;
}

.calendar-assignee-lane__label .calendar-assignee-avatar {
  height: 30px;
  width: 30px;
}

.calendar-assignee-lane__label span:not(.calendar-assignee-avatar):not(.calendar-assignee-lane__joint-avatars):not(.calendar-assignee-lane__joint-icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.calendar-assignee-lane__label strong {
  align-items: center;
  background: #e9f2ff;
  border: 1px solid #cce0ff;
  border-radius: 999px;
  color: #0c66e4;
  display: inline-flex;
  font-size: 10px;
  justify-content: center;
  min-width: 22px;
  padding: 2px 6px;
}

.calendar-assignee-lane__joint-avatars {
  align-items: center;
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: center;
}

.calendar-assignee-lane__joint-avatars .calendar-assignee-avatar {
  border: 2px solid #ffffff;
  box-shadow: 0 2px 7px rgba(23, 43, 77, 0.18);
  margin-left: -8px;
}

.calendar-assignee-lane__joint-avatars .calendar-assignee-avatar:first-child {
  margin-left: 0;
}

.calendar-assignee-lane__joint-icon {
  align-items: center;
  background: linear-gradient(145deg, #e6f7ff, #ffffff);
  border: 1px solid rgba(48, 171, 210, 0.28);
  border-radius: 999px;
  display: inline-flex;
  font-size: 16px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.calendar-assignee-lane__grid {
  background:
    linear-gradient(to right, rgba(223, 232, 243, 0.86) 1px, transparent 1px);
  background-size: calc(100% / 9) 100%;
  display: grid;
  gap: 8px 0;
  grid-auto-rows: minmax(54px, auto);
  grid-template-columns: repeat(9, minmax(0, 1fr));
  min-height: 96px;
  min-width: 0;
  padding: 8px 0;
  position: relative;
}

.calendar-assignee-lane__empty {
  align-self: center;
  color: #8a9bb2;
  font-size: 12px;
  font-weight: 850;
  grid-column: 1 / -1;
  justify-self: center;
}

.calendar-task-chip {
  align-items: flex-start;
  align-self: start;
  background: #eef3f9;
  border: 1px solid #d2deeb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(23, 43, 77, 0.08);
  color: #172b4d;
  display: flex;
  gap: 8px;
  min-height: 58px;
  min-width: 120px;
  overflow: hidden;
  padding: 10px;
  position: relative;
  text-decoration: none;
}

.calendar-task-chip:hover {
  border-color: rgba(66, 133, 244, 0.5);
  box-shadow: 0 6px 18px rgba(66, 133, 244, 0.14);
  transform: translateY(-1px);
}

.calendar-task-chip.is-complete {
  opacity: 0.72;
}

.calendar-task-chip.is-overdue {
  border-color: rgba(235, 90, 70, 0.38);
  background: #fff0ed;
}

.calendar-task-status {
  flex: 0 0 auto;
  margin-top: 2px;
}

.calendar-task-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-right: 30px;
}

.calendar-task-copy strong {
  color: #172b4d;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-task-chip.is-complete .calendar-task-copy strong {
  text-decoration: line-through;
}

.calendar-task-copy span {
  color: #7c8da6;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-task-assignees {
  align-items: center;
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  max-width: 54px;
  position: absolute;
  right: 7px;
  top: 7px;
  z-index: 2;
}

.calendar-task-assignee-avatar {
  align-items: center;
  background: linear-gradient(145deg, #ffffff, #e8f5ff);
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(23, 43, 77, 0.18);
  color: #0747a6;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 950;
  height: 22px;
  justify-content: center;
  line-height: 1;
  margin-left: -7px;
  overflow: hidden;
  width: 22px;
}

.calendar-task-assignee-avatar:first-child {
  margin-left: 0;
}

.calendar-task-assignee-avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.calendar-task-assignee-avatar--initials {
  background: linear-gradient(145deg, #dff3ff, #ffffff);
}

@media (max-width: 980px) {
  .calendar-day-column {
    flex-basis: min(420px, calc(100vw - 48px));
  }

  .calendar-view-header {
    align-items: flex-start;
    flex-direction: column;
  }
}


.task-board-header--baseline-only,
.task-group-header--baseline-only,
.task-row--baseline-only {
  opacity: 0.88;
}

.task-board-header.is-unscheduled,
.task-group-header.is-unscheduled,
.task-row--item.is-unscheduled {
  background: #fff4a3;
}

.task-row--item.is-unscheduled:hover {
  background: #ffef82;
}

.task-board-header--baseline-only {
  background: #f1e9ff;
  border-bottom-color: #d7c5ff;
}

.task-board-header--baseline-only.is-unscheduled {
  background: #f1e9ff;
  border-bottom-color: #d7c5ff;
}

.task-group-header--baseline-only {
  background: #f1e9ff;
  border-bottom: 1px solid #d7c5ff;
}

.task-group-header--baseline-only.is-unscheduled {
  background: #f1e9ff;
  border-bottom: 1px solid #d7c5ff;
}

.task-row--item.task-row--baseline-only {
  background: #f7f0ff;
}

.task-row--item.task-row--baseline-only:hover {
  background: #ede2ff;
}

.task-row--baseline-only .task-row-badge {
  background: #d7c5ff;
  color: #2f1b63;
}

.task-row--baseline-only .task-row-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-group-header-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 8px;
  background: #dfe1e6;
  color: #344563;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}

.task-group-header-badge + .task-group-header-badge {
  margin-left: 4px;
}

.task-group-header-badge--no-dates {
  background: #d7c5ff;
  color: #2f1b63;
}

.task-row-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  background: #dfe1e6;
  color: #344563;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.timeline-row--baseline-only {
  background: rgba(137, 99, 198, 0.18);
}

.timeline-bar.timeline-bar--baseline {
  position: absolute;
  top: 8px;
  height: 16px;
  border-radius: 6px;
  background: rgba(66, 82, 110, 0.22);
  border: 2px dashed rgba(66, 82, 110, 0.85);
  pointer-events: auto;
  box-sizing: border-box;
  z-index: 3;
  overflow: hidden;
}

.timeline-bar.timeline-bar--baseline-board {
  top: 4px;
  height: 28px;
  border-width: 3px;
}

.timeline-bar.timeline-bar--baseline-list {
  top: 4px;
  height: 26px;
  border-width: 2px;
}

.timeline-bar.timeline-bar--baseline-task {
  top: 8px;
}


.timeline-bar.timeline-bar--baseline > .baseline-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  background: rgba(9, 30, 66, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.timeline-bar.timeline-bar--baseline > .baseline-progress > .baseline-progress__fill {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 0;
  background: linear-gradient(90deg, #4c9aff, #0052cc);
  opacity: 0.68;
  border-radius: inherit;
  width: 0;
}

.baseline-progress__label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  color: #04235c;
  text-align: center;
  line-height: 1.2;
  padding: 0 8px;
  pointer-events: none;
}

.timeline-row .timeline-bar:not(.timeline-bar--baseline) {
  z-index: 2;
}

.baseline-modal__details-row--active {
  font-weight: 600;
  color: #0747a6;
}

.baseline-modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 43, 77, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}
.employee-modal {
  position: fixed;
  inset: 0;
  background: rgba(23, 43, 77, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 250;
}
.employee-modal__dialog {
  background: #ffffff;
  border-radius: 10px;
  width: min(420px, 92vw);
  max-height: min(560px, 92vh);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 18px 36px rgba(9, 30, 66, 0.28);
}
.employee-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 22px;
  font-weight: 600;
  color: #5e6c84;
  cursor: pointer;
}
.employee-modal__close:hover {
  color: #172b4d;
}
.employee-modal__header {
  padding: 24px 24px 12px;
}
.employee-modal__header h2 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #091e42;
}
.employee-modal__summary {
  font-size: 12px;
  color: #6b778c;
  line-height: 1.4;
}
.employee-modal__actions {
  display: flex;
  gap: 8px;
  padding: 0 24px 12px;
}
.employee-modal__actions button {
  padding: 6px 12px;
  background: #f4f5f7;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  font-size: 12px;
  color: #172b4d;
  cursor: pointer;
}
.employee-modal__actions button:hover {
  background: #dfe1e6;
}
.employee-modal__empty {
  padding: 12px 24px;
  font-size: 13px;
  color: #6b778c;
}
.employee-modal__list {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 24px 12px;
  margin: 0;
}
.employee-modal__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ebecf0;
  cursor: pointer;
}
.employee-modal__item:last-child {
  border-bottom: none;
}
.employee-modal__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.employee-modal__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}
.employee-modal__name {
  font-size: 14px;
  font-weight: 600;
  color: #172b4d;
  overflow: hidden;
  text-overflow: ellipsis;
}
.employee-modal__meta {
  font-size: 11px;
  color: #6b778c;
}
.employee-modal__footer {
  padding: 12px 24px 24px;
  display: flex;
  justify-content: flex-end;
  background: #f4f5f7;
  border-top: 1px solid #ebecf0;
}
.employee-modal__button {
  padding: 8px 16px;
  background: #0079bf;
  color: #ffffff;
  border: 1px solid #0079bf;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}
.employee-modal__button:hover {
  background: #005a8b;
}
.employee-modal__list::-webkit-scrollbar {
  width: 8px;
}
.employee-modal__list::-webkit-scrollbar-thumb {
  background: #c1c7d0;
  border-radius: 4px;
}
.employee-modal__list::-webkit-scrollbar-track {
  background: transparent;
}

.points-rewards-button {
  align-items: center;
  appearance: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(235, 252, 255, 0.62)),
    rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(66, 135, 168, 0.22);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 20px rgba(17, 58, 93, 0.08);
  color: #10294b;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  gap: 7px;
  min-height: 36px;
  padding: 7px 13px;
}

.points-rewards-button:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(221, 250, 255, 0.76)),
    rgba(255, 255, 255, 0.8);
  border-color: rgba(48, 171, 210, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 24px rgba(21, 104, 146, 0.12);
}

.points-rewards-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.points-rewards-button__icon {
  font-size: 16px;
  line-height: 1;
}

.my-week-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.my-week-strip-row {
  --my-week-row-timeline-width: clamp(520px, 34vw, 690px);
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
  margin: 8px 0 12px;
  position: sticky;
  top: 8px;
  width: 100%;
  z-index: 90;
}

.my-week-strip-row .toolbar-group--view-overview {
  margin: 0;
  min-width: 0;
  padding: 10px;
  width: 100%;
}

.my-week-strip-row .toolbar-group--view-overview .toolbar-group__controls {
  gap: 8px;
}

.my-week-strip-row .toolbar-group--view-overview .layout-view {
  gap: 4px;
}

.my-week-strip-row .toolbar-group--view-overview .layout-view__button {
  flex: 1 1 86px;
  font-size: 0.82rem;
  min-height: 32px;
  padding: 5px 7px;
}

.my-week-strip-row .toolbar-group--view-overview .button-icon {
  height: 20px;
  width: 20px;
}

.my-week-strip-row .toolbar-group--view-overview .chronological-sort {
  flex: 1 1 100%;
  min-height: 31px;
  width: 100%;
}

.my-week-strip-row .toolbar-group--timeline-overview {
  bottom: 0;
  margin: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: var(--my-week-row-timeline-width);
  z-index: 2;
}

.my-week-strip-row .toolbar-group--timeline-overview .toolbar-group__controls {
  align-content: flex-start;
  gap: 8px;
}

.my-week-strip {
  align-items: stretch;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(230, 250, 255, 0.76)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(66, 135, 168, 0.22);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 12px 30px rgba(17, 58, 93, 0.1);
  display: flex;
  gap: 10px;
  margin: 0 calc(var(--my-week-row-timeline-width) + 10px) 0 0;
  padding: 10px;
  position: relative;
  width: auto;
}

.my-week-strip.is-hidden {
  display: none;
}

.my-week-strip--overloaded {
  border-color: rgba(222, 53, 11, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(222, 53, 11, 0.08),
    0 12px 30px rgba(17, 58, 93, 0.1);
}

.my-week-strip__selector {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(9, 30, 66, 0.08);
  border-radius: 14px;
  display: flex;
  flex: 0 0 188px;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  padding: 8px 10px;
}

.my-week-strip__selector label {
  color: #6b778c;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.my-week-strip__member-select {
  appearance: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 255, 0.84));
  border: 1px solid rgba(66, 135, 168, 0.22);
  border-radius: 10px;
  color: #172b4d;
  font-size: 12px;
  font-weight: 850;
  min-height: 30px;
  overflow: hidden;
  padding: 5px 28px 5px 8px;
  text-overflow: ellipsis;
}

.my-week-strip__member-select:disabled {
  opacity: 0.72;
}

.my-week-strip__summary {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(9, 30, 66, 0.08);
  border-radius: 14px;
  color: #172b4d;
  cursor: pointer;
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  grid-template-columns: minmax(190px, 0.72fr) minmax(300px, 1.1fr) minmax(170px, 0.55fr);
  min-width: 0;
  padding: 8px 10px;
  text-align: left;
}

.my-week-strip__summary:hover,
.my-week-strip__summary:focus-visible {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(48, 171, 210, 0.32);
  outline: none;
}

.my-week-strip__identity {
  align-items: center;
  display: flex;
  gap: 9px;
  min-width: 0;
}

.my-week-strip__avatar {
  align-items: center;
  background: linear-gradient(145deg, #e9f7ff, #ffffff);
  border: 2px solid rgba(76, 154, 255, 0.32);
  border-radius: 50%;
  color: #0747a6;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 11px;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  width: 34px;
}

.my-week-strip__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.my-week-strip__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.my-week-strip__name {
  color: #10294b;
  font-size: 14px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-week-strip__week {
  color: #526581;
  font-size: 11px;
  font-weight: 800;
}

.my-week-strip__metrics {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.my-week-strip__metric {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(9, 30, 66, 0.07);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
}

.my-week-strip__metric--good {
  border-color: rgba(97, 189, 79, 0.26);
}

.my-week-strip__metric--danger {
  background: rgba(255, 235, 230, 0.8);
  border-color: rgba(222, 53, 11, 0.24);
}

.my-week-strip__metric-label {
  color: #6b778c;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.my-week-strip__metric-value {
  color: #172b4d;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-week-strip__metric--danger .my-week-strip__metric-value {
  color: #bf2600;
}

.my-week-strip__reward-dots.my-week-reward-dots {
  align-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: flex-end;
  min-width: 0;
}

.my-week-strip__reward-dots.my-week-reward-dots .timeline-progress-step.my-week-reward-dot {
  flex-basis: 7px;
  height: 7px;
  min-width: 7px;
  width: 7px;
}

.my-week-strip__empty {
  color: #526581;
  font-size: 12px;
  font-weight: 850;
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .my-week-strip {
    flex-direction: column;
  }

  .my-week-strip__selector {
    flex: 1 1 auto;
  }

  .my-week-strip__summary {
    grid-template-columns: 1fr;
  }

  .my-week-strip__metrics {
    grid-template-columns: 1fr;
  }

  .my-week-strip__reward-dots.my-week-reward-dots {
    justify-content: flex-start;
  }
}

.my-week-modal {
  z-index: 268;
}

.my-week-modal__dialog {
  max-height: min(760px, 92vh);
  width: min(1180px, 94vw);
}

.my-week-modal__header h2 {
  font-size: 22px;
}

.my-week-list {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  overflow-y: auto;
  padding: 0 24px 18px;
}

.my-week-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 250, 255, 0.82));
  border: 1px solid rgba(93, 135, 168, 0.2);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 26px rgba(17, 58, 93, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.my-week-card--overloaded {
  border-color: rgba(222, 53, 11, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 3px rgba(222, 53, 11, 0.08),
    0 10px 26px rgba(17, 58, 93, 0.08);
}

.my-week-card__header {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.my-week-card__avatar {
  align-items: center;
  background: linear-gradient(145deg, #e9f7ff, #ffffff);
  border: 2px solid rgba(76, 154, 255, 0.32);
  border-radius: 50%;
  color: #0747a6;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 12px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  overflow: hidden;
  width: 38px;
}

.my-week-card__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.my-week-card__title-block {
  min-width: 0;
}

.my-week-card__name {
  color: #172b4d;
  font-size: 17px;
  font-weight: 950;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-week-card__subtitle {
  color: #526581;
  font-size: 12px;
  font-weight: 750;
  margin: 2px 0 0;
}

.my-week-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.my-week-calendar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-week-calendar h4 {
  color: #172b4d;
  font-size: 13px;
  font-weight: 950;
  margin: 0;
}

.my-week-calendar__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.my-week-calendar-day {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(9, 30, 66, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 142px;
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.my-week-calendar-day.is-empty {
  background: rgba(244, 250, 255, 0.72);
}

.my-week-calendar-day__header {
  align-items: center;
  border-bottom: 1px solid rgba(9, 30, 66, 0.07);
  display: flex;
  justify-content: space-between;
  padding: 9px 12px;
}

.my-week-calendar-day__name {
  color: #526581;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.my-week-calendar-day__date {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: #172b4d;
  display: inline-flex;
  font-size: 16px;
  font-weight: 950;
  height: auto;
  justify-content: center;
  min-width: 0;
  padding: 0;
}

.my-week-calendar-day__time-header {
  background:
    linear-gradient(90deg, rgba(218, 242, 255, 0.82), rgba(218, 242, 255, 0.82) 37.5%, rgba(255, 231, 196, 0.82) 37.5%, rgba(255, 231, 196, 0.82));
  border-bottom: 1px solid rgba(9, 30, 66, 0.08);
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.my-week-calendar-day__time-header span {
  border-right: 1px solid rgba(9, 30, 66, 0.08);
  color: #7a869a;
  font-size: 9px;
  font-weight: 950;
  padding: 7px 2px;
  text-align: center;
}

.my-week-calendar-day__time-header span:last-child {
  border-right: none;
}

.my-week-calendar-day__slots {
  background:
    repeating-linear-gradient(
      to right,
      rgba(9, 30, 66, 0.08) 0,
      rgba(9, 30, 66, 0.08) 1px,
      transparent 1px,
      transparent 12.5%
    ),
    linear-gradient(90deg, rgba(235, 248, 255, 0.52), rgba(255, 246, 232, 0.44));
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  min-height: 88px;
  padding: 8px;
  position: relative;
}

.my-week-calendar-slot {
  border: 1px solid rgba(97, 189, 79, 0.28);
  border-radius: 9px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.56),
    0 0 12px rgba(97, 189, 79, 0.16);
  margin: 2px;
  min-height: 72px;
}

.my-week-calendar-day__task-layer {
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.my-week-calendar-task {
  align-items: center;
  background: linear-gradient(145deg, rgba(231, 244, 255, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(76, 154, 255, 0.2);
  border-radius: 9px;
  color: #172b4d;
  display: flex;
  gap: 5px;
  height: 26px;
  min-width: 0;
  overflow: hidden;
  padding: 4px 6px;
  pointer-events: auto;
}

.my-week-calendar-task.is-complete {
  background: linear-gradient(145deg, rgba(235, 255, 239, 0.96), rgba(255, 255, 255, 0.92));
  border-color: rgba(49, 146, 43, 0.24);
}

.my-week-calendar-task.is-auto-slotted {
  border-style: dashed;
}

.my-week-calendar-task--empty {
  align-self: center;
  background: rgba(236, 255, 240, 0.72);
  border-color: rgba(49, 146, 43, 0.18);
  color: #0f7a4d;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  pointer-events: none;
}

.my-week-calendar-task--more {
  background: rgba(244, 245, 247, 0.82);
  border-color: rgba(127, 141, 159, 0.22);
  color: #526581;
  font-size: 10px;
  font-weight: 900;
  justify-content: center;
}

.my-week-calendar-task__icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(97, 117, 138, 0.28);
  border-radius: 50%;
  color: #61bd4f;
  display: inline-flex;
  flex: 0 0 14px;
  font-size: 9px;
  font-weight: 950;
  height: 14px;
  justify-content: center;
  width: 14px;
}

.my-week-calendar-task__label {
  font-size: 10px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-week-stat {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(9, 30, 66, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px;
}

.my-week-stat__label {
  color: #6b778c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.my-week-stat__value {
  color: #172b4d;
  font-size: 14px;
  font-weight: 950;
}

.my-week-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.my-week-panel h4,
.my-week-task-list h4 {
  color: #172b4d;
  font-size: 13px;
  font-weight: 950;
  margin: 0;
}

.my-week-progress-bar {
  height: 20px;
}

.my-week-progress-bar--workload .reward-progress-bar__reward-marker {
  display: none;
}

.my-week-progress-fill--workload {
  background: linear-gradient(90deg, #36b37e, #00875a);
}

.my-week-progress-fill--danger {
  background: linear-gradient(90deg, #ff7452, #de350b);
}

.my-week-panel__meta {
  color: #526581;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.32;
  margin: 0;
}

.my-week-panel__meta--danger {
  color: #bf2600;
}

.my-week-reward-dots {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.my-week-reward-dots .timeline-progress-step.my-week-reward-dot {
  border-width: 1px;
  box-shadow: none;
  flex: 0 0 8px;
  font-size: 0;
  height: 8px;
  min-width: 8px;
  width: 8px;
}

.my-week-task-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.my-week-task-list ul {
  display: flex;
  flex-direction: column;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.my-week-task {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(9, 30, 66, 0.08);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  padding: 6px 8px;
}

.my-week-task.is-complete {
  background: rgba(235, 255, 239, 0.78);
}

.my-week-task__status {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(97, 117, 138, 0.36);
  border-radius: 50%;
  color: #61bd4f;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  height: 16px;
  justify-content: center;
  width: 16px;
}

.my-week-task__text {
  color: #172b4d;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-week-task__date {
  color: #6b778c;
  font-size: 10px;
  font-weight: 850;
}

.my-week-task-list__empty {
  color: #6b778c;
  font-size: 12px;
  font-weight: 750;
  margin: 0;
}

body.standalone-app .my-week-modal {
  zoom: 2;
}

.points-rewards-modal {
  padding: 16px;
  z-index: 270;
}

body.standalone-app .points-rewards-modal {
  zoom: 2;
}

.points-rewards-modal__dialog {
  max-height: calc(100vh - 32px);
  min-height: min(860px, calc(100vh - 32px));
  width: min(1760px, calc(100vw - 32px));
}

.points-rewards-modal__header h2 {
  font-size: 20px;
}

.points-rewards-modal__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 0 24px 18px;
}

.points-rewards-section {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 250, 255, 0.82));
  border: 1px solid rgba(93, 135, 168, 0.18);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  padding: 12px;
}

.points-rewards-section h3 {
  color: #172b4d;
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 8px;
}

.points-rewards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.points-reward-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(9, 30, 66, 0.08);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.points-reward-row__avatar {
  align-items: center;
  background: linear-gradient(145deg, #e9f7ff, #ffffff);
  border: 2px solid rgba(76, 154, 255, 0.32);
  border-radius: 50%;
  color: #0747a6;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 10px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  overflow: hidden;
  width: 28px;
}

.points-reward-row__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.points-reward-row__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.points-reward-row__topline {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.points-reward-row__name {
  color: #172b4d;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-reward-row__points {
  color: #0747a6;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
}

.points-reward-row__meta,
.team-rewards-panel__meta,
.team-rewards-panel__detail {
  color: #526581;
  font-size: 11px;
  font-weight: 750;
}

.reward-milestone-stepper {
  align-items: stretch;
  display: flex;
  gap: 0;
  max-width: 100%;
  margin-top: 6px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 2px 2px;
  scroll-snap-type: x proximity;
}

.reward-milestone-step {
  align-items: center;
  display: flex;
  flex: 0 0 520px;
  flex-direction: column;
  gap: 6px;
  min-width: 520px;
  position: relative;
  scroll-snap-align: start;
}

.reward-milestone-step--big-reward {
  flex-basis: 180px;
  min-width: 180px;
}

.reward-milestone-step__connector {
  align-items: center;
  background: transparent;
  display: flex;
  gap: 2px;
  height: 38px;
  justify-content: space-between;
  left: calc(50% + 10px);
  padding: 0 8px;
  position: absolute;
  right: calc(-50% + 10px);
  top: 27px;
  width: auto;
}

.reward-milestone-step__connector::before {
  background: rgba(76, 154, 255, 0.28);
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: calc(100% - 7px);
  z-index: 0;
}

.reward-milestone-step:last-child .reward-milestone-step__connector {
  display: none;
}

.reward-milestone-step.is-complete .reward-milestone-step__connector::before {
  background: rgba(97, 189, 79, 0.55);
}

.reward-milestone-step--future .reward-milestone-step__connector::before {
  background: rgba(127, 141, 159, 0.24);
}

.reward-milestone-step--big-reward .reward-milestone-step__connector::before {
  background: rgba(245, 158, 11, 0.42);
}

.reward-milestone-step__task-point {
  align-items: center;
  display: inline-flex;
  flex: 0 0 25px;
  flex-direction: column;
  gap: 2px;
  justify-content: flex-end;
  min-width: 25px;
  position: relative;
  z-index: 1;
}

.reward-milestone-step__task-point-label {
  color: #0f7a4d;
  font-size: 6.5px;
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  width: 26px;
}

.reward-milestone-step--future .reward-milestone-step__task-point-label {
  color: #8c98a8;
}

.reward-milestone-step__connector .timeline-progress-step.reward-milestone-step__task-dot {
  border-width: 1px;
  box-shadow: none;
  box-sizing: border-box;
  flex: 0 0 5.5px;
  font-size: 0;
  height: 5.5px;
  min-width: 5.5px;
  width: 5.5px;
  z-index: 1;
}

.reward-milestone-step__marker-award {
  align-items: center;
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-height: 38px;
  text-align: center;
  width: 150px;
  z-index: 1;
}

.reward-milestone-step__marker-award-points {
  color: #0747a6;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.reward-milestone-step__marker-award-meta {
  color: #7a869a;
  font-size: 7.5px;
  font-weight: 850;
  line-height: 1.05;
}

.reward-milestone-step--future .reward-milestone-step__marker-award-points,
.reward-milestone-step--future .reward-milestone-step__marker-award-meta {
  color: #8c98a8;
}

.reward-milestone-step__marker {
  align-items: center;
  background: #ffffff;
  border: 2px solid rgba(76, 154, 255, 0.72);
  border-radius: 50%;
  color: #0747a6;
  display: inline-flex;
  font-size: 9px;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  position: relative;
  width: 20px;
  z-index: 1;
}

.reward-milestone-step.is-complete .reward-milestone-step__marker {
  background: #61bd4f;
  border-color: #31922b;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(49, 146, 43, 0.16);
}

.reward-milestone-step.is-in-progress .reward-milestone-step__marker {
  border-style: dashed;
}

.reward-milestone-step--future .reward-milestone-step__marker {
  background: #f4f5f7;
  border-color: #c1c7d0;
  color: #7a869a;
}

.reward-milestone-step--big-voucher.is-complete .reward-milestone-step__marker {
  background: linear-gradient(145deg, #61bd4f, #0f7a4d);
  border-color: #f59e0b;
  box-shadow:
    0 0 0 2px rgba(245, 158, 11, 0.16),
    0 4px 12px rgba(49, 146, 43, 0.18);
}

.reward-milestone-step--big-reward .reward-milestone-step__marker {
  background: linear-gradient(145deg, #fff7d6, #f59e0b);
  border-color: #b45309;
  color: #713f12;
  font-size: 11px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
}

.reward-milestone-step--big-reward.reward-milestone-step--future .reward-milestone-step__marker {
  background: linear-gradient(145deg, #f4f5f7, #dfe1e6);
  border-color: #c1c7d0;
  color: #7a869a;
  box-shadow: none;
}

.reward-milestone-step__details {
  align-items: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(9, 30, 66, 0.08);
  border-radius: 8px;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-height: 68px;
  padding: 5px;
  text-align: center;
  width: 118px;
}

.reward-milestone-step--future .reward-milestone-step__details {
  background: rgba(244, 245, 247, 0.76);
  border-color: rgba(127, 141, 159, 0.2);
}

.reward-milestone-step--big-reward .reward-milestone-step__details {
  background:
    linear-gradient(145deg, rgba(255, 248, 219, 0.92), rgba(255, 255, 255, 0.78));
  border-color: rgba(245, 158, 11, 0.34);
}

.reward-milestone-step--big-reward.reward-milestone-step--future .reward-milestone-step__details {
  background:
    linear-gradient(145deg, rgba(244, 245, 247, 0.88), rgba(255, 255, 255, 0.72));
  border-color: rgba(127, 141, 159, 0.22);
}

.reward-milestone-step__range {
  color: #526581;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reward-milestone-step__text {
  color: #172b4d;
  font-size: 8.2px;
  font-weight: 850;
  line-height: 1.06;
  min-width: 0;
}

.reward-milestone-step--future .reward-milestone-step__range,
.reward-milestone-step--future .reward-milestone-step__text {
  color: #7a869a;
}

.reward-milestone-step--big-reward .reward-milestone-step__range,
.reward-milestone-step--big-reward .reward-milestone-step__text {
  color: #713f12;
}

.reward-milestone-step--big-reward.reward-milestone-step--future .reward-milestone-step__range,
.reward-milestone-step--big-reward.reward-milestone-step--future .reward-milestone-step__text {
  color: #6b778c;
}

.reward-milestone-step__redeem {
  align-items: center;
  appearance: none;
  background: linear-gradient(145deg, #ffffff, #e7f8ff);
  border: 2px solid rgba(48, 171, 210, 0.42);
  border-radius: 50%;
  color: #0747a6;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 8.5px;
  font-weight: 950;
  height: 32px;
  justify-content: center;
  line-height: 1.05;
  margin-top: auto;
  padding: 3px;
  text-align: center;
  width: 32px;
}

.reward-milestone-step__redeem:hover {
  background: linear-gradient(145deg, #ffffff, #d8f6ff);
  border-color: rgba(10, 132, 189, 0.68);
  box-shadow: 0 6px 14px rgba(21, 104, 146, 0.14);
}

.reward-milestone-step__redeem:disabled {
  background: linear-gradient(145deg, #ebfff0, #d9f7df);
  border-color: rgba(49, 146, 43, 0.38);
  color: #0f7a4d;
  cursor: default;
}

.reward-progress-bar {
  background: rgba(9, 30, 66, 0.08);
  border: 1px solid rgba(9, 30, 66, 0.16);
  border-radius: 999px;
  height: 22px;
  overflow: hidden;
  position: relative;
}

.reward-progress-bar__fill {
  background: linear-gradient(90deg, #4c9aff, #0747a6);
  border-radius: inherit;
  bottom: 0;
  left: 0;
  min-width: 0;
  position: absolute;
  top: 0;
  transition: width 0.22s ease;
}

.reward-progress-bar__fill--team {
  background: linear-gradient(90deg, #36b37e, #00875a);
}

.reward-progress-bar__fill--complete {
  background: linear-gradient(90deg, #61bd4f, #0f7a4d);
}

.reward-progress-bar__reward-marker {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(7, 71, 166, 0.24);
  border-radius: 999px;
  box-shadow: 0 2px 7px rgba(9, 30, 66, 0.14);
  color: #0747a6;
  display: inline-flex;
  font-size: 10px;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  padding: 0 8px;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.team-rewards-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-rewards-panel__summary {
  color: #172b4d;
  font-size: 14px;
  font-weight: 900;
}

.reward-pot-section {
  scroll-margin-top: 16px;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.reward-pot-section--highlight {
  border-color: rgba(49, 146, 43, 0.65);
  box-shadow:
    0 0 0 4px rgba(97, 189, 79, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.reward-pot-section__copy {
  color: #526581;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  margin: -4px 0 12px;
}

.reward-pot-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reward-pot-empty {
  background: rgba(255, 255, 255, 0.66);
  border: 1px dashed rgba(93, 135, 168, 0.35);
  border-radius: 14px;
  color: #526581;
  font-size: 12px;
  font-weight: 750;
  padding: 14px;
  text-align: center;
}

.reward-pot-summary {
  color: #0f7a4d;
  font-size: 14px;
  font-weight: 950;
}

.reward-pot-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.reward-pot-card {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(236, 255, 240, 0.9), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(49, 146, 43, 0.24);
  border-radius: 16px;
  display: grid;
  gap: 10px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 12px;
}

.reward-pot-card__value {
  align-items: center;
  background: linear-gradient(145deg, #61bd4f, #0f7a4d);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
  color: #ffffff;
  display: inline-flex;
  font-size: 17px;
  font-weight: 950;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.reward-pot-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.reward-pot-card__title {
  color: #172b4d;
  font-size: 13px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-pot-card__meta {
  color: #526581;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
}

.reward-redeem-modal {
  z-index: 290;
}

.reward-redeem-modal__dialog {
  max-height: min(620px, 92vh);
  width: min(620px, 94vw);
}

.reward-provider-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow-y: auto;
  padding: 0 24px 18px;
}

.reward-provider-card {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 250, 255, 0.82));
  border: 1px solid rgba(93, 135, 168, 0.2);
  border-radius: 16px;
  display: grid;
  gap: 2px 10px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 12px;
}

.reward-provider-card__logo {
  align-items: center;
  border-radius: 12px;
  color: #ffffff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 950;
  grid-row: span 2;
  height: 40px;
  justify-content: center;
  letter-spacing: -0.03em;
  width: 40px;
}

.reward-provider-card__logo--tremendous {
  background: linear-gradient(145deg, #5b5ff0, #232685);
}

.reward-provider-card__logo--runa {
  background: linear-gradient(145deg, #111827, #4b5563);
}

.reward-provider-card__logo--giftbit {
  background: linear-gradient(145deg, #ff8a00, #f04438);
}

.reward-provider-card__logo--bhn {
  background: linear-gradient(145deg, #0072ce, #004b8d);
  font-size: 11px;
}

.reward-provider-card__name {
  color: #172b4d;
  font-size: 13px;
  font-weight: 950;
}

.reward-provider-card__meta {
  color: #526581;
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 720px) {
  .reward-milestone-step {
    flex-basis: 190px;
    min-width: 190px;
  }

  .reward-milestone-step__details {
    min-height: 122px;
  }

  .reward-milestone-step__redeem {
    height: 42px;
    width: 42px;
  }

  .reward-provider-list {
    grid-template-columns: 1fr;
  }

  .reward-pot-list {
    grid-template-columns: 1fr;
  }
}

.baseline-modal__dialog {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(9, 30, 66, 0.26);
  padding: 28px;
  position: relative;
}

.baseline-modal__dialog h2 {
  font-size: 20px;
  font-weight: 600;
  color: #172b4d;
}

.baseline-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.baseline-modal__copy {
  font-size: 14px;
  color: #44546f;
  line-height: 1.5;
}

.baseline-modal__warning {
  background: rgba(255, 171, 0, 0.15);
  border: 1px solid rgba(255, 171, 0, 0.4);
  color: #7f5f00;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.baseline-modal__label {
  font-size: 13px;
  font-weight: 600;
  color: #172b4d;
}

.baseline-modal__label-optional {
  font-weight: 400;
  color: #6b778c;
}

.baseline-modal__input,
.baseline-modal__textarea {
  width: 100%;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: #172b4d;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.baseline-modal__input:focus,
.baseline-modal__textarea:focus {
  border-color: #0079bf;
  box-shadow: 0 0 0 2px rgba(0, 121, 191, 0.2);
  outline: none;
}

.baseline-modal__textarea {
  resize: vertical;
  min-height: 84px;
}

.baseline-modal__status {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 6px;
  line-height: 1.4;
}

.baseline-modal__status--info {
  background: rgba(0, 121, 191, 0.12);
  color: #0747a6;
}

.baseline-modal__status--success {
  background: rgba(81, 232, 152, 0.18);
  color: #006644;
}

.baseline-modal__status--error {
  background: rgba(235, 90, 70, 0.14);
  color: #b04632;
}

.baseline-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.baseline-modal__button {
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.baseline-modal__button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.baseline-modal__button--primary {
  background: #0079bf;
  color: #ffffff;
}

.baseline-modal__button--primary:hover:not(:disabled) {
  background: #005a8b;
}

.baseline-modal__button--secondary {
  background: #f4f5f7;
  color: #172b4d;
}

.baseline-modal__button--secondary:hover:not(:disabled) {
  background: #ebecf0;
}

.baseline-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: #6b778c;
  cursor: pointer;
  line-height: 1;
}

.baseline-modal__close:hover {
  color: #42526e;
}

.baseline-modal__close:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 121, 191, 0.3);
  border-radius: 50%;
}

.baseline-modal__dialog h2 + .baseline-modal__copy {
  margin-top: -2px;
}

.baseline-modal__dialog label + .baseline-modal__input,
.baseline-modal__dialog label + .baseline-modal__textarea {
  margin-top: -4px;
}

.baseline-modal__dialog .baseline-modal__textarea + .baseline-modal__status {
  margin-top: -2px;
}

.baseline-modal__select {
  width: 100%;
  border: 1px solid #dfe1e6;
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 14px;
  color: #172b4d;
  min-height: 160px;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.baseline-modal__select:focus {
  border-color: #0079bf;
  box-shadow: 0 0 0 2px rgba(0, 121, 191, 0.2);
  outline: none;
}

.baseline-modal__details {
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  padding: 12px 14px;
  background: #f8f9fb;
  color: #42526e;
  font-size: 13px;
  line-height: 1.5;
}

.baseline-modal__details-row + .baseline-modal__details-row {
  margin-top: 6px;
}

.baseline-modal__muted {
  font-size: 13px;
  color: #6b778c;
}

.baseline-modal__button--danger {
  background: #eb5a46;
  color: #ffffff;
}

.baseline-modal__button--danger:hover:not(:disabled) {
  background: #cf513d;
}

.legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.legend-color.not-started {
    background: #dfe1e6;
}

.legend-color.in-progress {
    background: #ff9500;
}

.legend-color.complete {
    background: #61bd4f;
}

.legend-color.overdue {
    background: #eb5a46;
}

.legend-color.baseline {
  background: repeating-linear-gradient(
    135deg,
    rgba(80, 95, 121, 0.35),
    rgba(80, 95, 121, 0.35) 6px,
    rgba(80, 95, 121, 0.15) 6px,
    rgba(80, 95, 121, 0.15) 12px
  );
  border: 1px dashed rgba(80, 95, 121, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls {
        justify-content: center;
    }
    
    .task-column {
        width: 250px;
    }
    
    .task-list {
        width: 250px;
    }
    
    .legend {
        justify-content: center;
    }
}

/* Loading States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #6b778c;
}

.error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #eb5a46;
    background: #fdf2f2;
    border-radius: 8px;
    margin: 20px 0;
}

/* Drag to scroll */
.timeline-content {
    cursor: grab;
}

.timeline-content:active {
    cursor: grabbing;
}

/* Animation for timeline updates */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.task-bar {
    animation: slideIn 0.3s ease;
}

/* --- Gantt layout --- */

.gantt-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header row: "Tasks" + timeline header */
.gantt-header-row {
  display: flex;
  border-bottom: 1px solid #dcdcdc;
}

/* Fixed-width "Tasks" column in header and body */
.task-column {
  flex: 0 0 320px;           /* adjust width to taste */
  padding: 8px 12px;
  font-weight: 600;
  background: #f5f6f8;
  border-right: 1px solid #dcdcdc;
}

/* Timeline header area (scrollable horizontally) */
.timeline-header {
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 8px 0;
}

/* Main content row: task list + timeline body */
.gantt-content {
  display: flex;
  flex: 1 1 auto;
  overflow: hidden;
}

/* Left task list */
.task-list {
  flex: 0 0 320px;           /* same width as .task-column */
  padding: 8px 12px;
  border-right: 1px solid #dcdcdc;
  overflow-y: auto;
}

/* Right timeline column */
.timeline-column {
  flex: 1 1 auto;
  overflow: auto;
}

/* The scrollable container that holds rows + bars */
.timeline-content {
  position: relative;
}

/* --- Header cells (dates) --- */

.timeline-header-cell {
  display: inline-block;
  width: 24px;               /* must match PX_PER_DAY in JS */
  font-size: 10px;
  text-align: center;
  border-left: none;
}

.timeline-header-cell.timeline-header-cell--year-divider {
  position: relative;
}

.timeline-header-cell.timeline-header-cell--year-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  border-left: 2px solid #97a0b8;
}

.timeline-header-row-minor .timeline-header-cell {
  position: relative;
}

.timeline-header-row-minor .timeline-header-cell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-left: 1px solid #e0e0e0;
}

.timeline-header-row-minor .timeline-header-cell:first-child::after {
  display: none;
}

.timeline-header-row-minor .timeline-header-cell.timeline-header-cell--year-divider::after {
  display: none;
}

.timeline-header-row-major .timeline-header-cell {
  border-left: 1px solid #e0e0e0;
}

.timeline-header-row-major .timeline-header-cell:first-child {
  border-left: none;
}

.timeline-header-row-major--sticky-months .timeline-header-cell {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #f4f5f7;
  box-shadow: 1px 0 0 rgba(9, 30, 66, 0.12);
  padding-left: 8px;
  padding-right: 8px;
  text-align: left;
}

.timeline-header-cell.timeline-header-cell--year-divider {
  border-left: none;
}

.timeline-header-row-extra {
  font-size: 9px;
  color: #6b778c;
  padding-top: 2px;
  padding-bottom: 2px;
  border-top: 1px solid #e0e0e0;
}

.timeline-header-row-extra .timeline-header-cell {
  border-left: 1px solid #e0e0e0;
  min-height: 14px;
  line-height: 14px;
}

.timeline-header-row-extra .timeline-header-cell:first-child {
  border-left: none;
}

.timeline-header-cell--week-start {
  box-shadow: inset 4px 0 0 rgba(23, 43, 77, 0.72);
}

.timeline-header-cell--week-end {
  box-shadow: inset -4px 0 0 rgba(23, 43, 77, 0.72);
}

.timeline-header-cell--week-start.timeline-header-cell--week-end {
  box-shadow:
    inset 4px 0 0 rgba(23, 43, 77, 0.72),
    inset -4px 0 0 rgba(23, 43, 77, 0.72);
}

.timeline-header-cell-extra {
  color: #6b778c;
  font-size: 9px;
  text-transform: none;
}

/* --- Rows & bars --- */

.timeline-row {
  position: relative;
  height: 32px;
  border-bottom: 1px solid #f0f0f0;
}

.timeline-row.timeline-row-group {
  height: 56px;
  border-bottom: 1px solid #e5e8ec;
  background: #f8f9fb;
}

.timeline-row.timeline-row-board {
  height: 60px;
  border-bottom: 1px solid #ccd2dc;
  background: #f1f3f7;
}

/* Base bar appearance */
.timeline-bar {
  position: absolute;
  top: 8px;
  height: 16px;
  border-radius: 3px;
  background: #cfd4da;
}


.timeline-bar--task {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 0;
  padding: 0;
  background: inherit;
  font: inherit;
  appearance: none;
  transition: box-shadow 0.15s ease;
}

.timeline-bar--task:hover {
  box-shadow: 0 4px 10px rgba(4, 17, 28, 0.18);
}

.timeline-bar--task:focus {
  text-decoration: none;
}

.timeline-bar--task:focus-visible {
  outline: 2px solid #0747a6;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(7, 71, 166, 0.2), 0 4px 10px rgba(4, 17, 28, 0.2);
}

.date-edit-status {
  align-items: center;
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(66, 135, 168, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 7px 18px rgba(17, 58, 93, 0.08);
  color: #315f7d;
  display: flex;
  font-size: 12px;
  font-weight: 750;
  margin: -4px 0 8px;
  max-width: min(680px, 100%);
  min-height: 30px;
  padding: 6px 10px;
}

.date-edit-status.is-success {
  background: rgba(235, 250, 232, 0.94);
  border-color: rgba(66, 155, 74, 0.28);
  color: #216e2d;
}

.date-edit-status.is-error {
  background: rgba(255, 239, 237, 0.96);
  border-color: rgba(201, 55, 44, 0.28);
  color: #a3261d;
}

.timeline-bar__resize-handle {
  bottom: -2px;
  cursor: ew-resize;
  display: block;
  position: absolute;
  top: -2px;
  /* Leave the middle draggable even on a single-day bar at a broad scale. */
  width: min(14px, calc(30% + 4px));
  touch-action: none;
  z-index: 8;
}

.timeline-bar__resize-handle::after {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 43, 77, 0.45);
  bottom: 3px;
  content: "";
  position: absolute;
  top: 3px;
  width: 2px;
}

.timeline-bar__resize-handle--start {
  left: -4px;
}

.timeline-bar__resize-handle--start::after {
  right: 3px;
}

.timeline-bar__resize-handle--end {
  right: -4px;
}

.timeline-bar__resize-handle--end::after {
  left: 3px;
}

.timeline-bar--task[data-date-editable="true"] {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.timeline-bar--task.is-date-dragging {
  cursor: grabbing !important;
  opacity: 0.92;
  z-index: 20;
  box-shadow:
    0 0 0 2px rgba(46, 199, 221, 0.42),
    0 10px 24px rgba(4, 17, 28, 0.28) !important;
  transition: none !important;
}

.timeline-row--schedulable {
  cursor: crosshair;
  touch-action: pan-y;
}

.timeline-row--schedulable::before {
  content: "Drag to schedule";
  position: sticky;
  left: 12px;
  display: inline-block;
  margin: 11px 12px 0;
  color: #527080;
  font-size: 11px;
  pointer-events: none;
}

.timeline-row--schedulable:hover {
  background-color: rgba(46, 199, 221, 0.08);
}

.timeline-row--schedulable.is-scheduling::before {
  visibility: hidden;
}

.timeline-bar--schedule-preview {
  background: #24a5bd;
  pointer-events: none;
}

body.is-dragging-task-date,
body.is-dragging-task-date * {
  cursor: grabbing !important;
  user-select: none !important;
}

.date-drag-preview {
  background: rgba(16, 41, 75, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(4, 17, 28, 0.24);
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  max-width: 320px;
  overflow: hidden;
  padding: 7px 10px;
  pointer-events: none;
  position: fixed;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 10000;
}

/* Colors by status */
.timeline-bar.not-started { background: #cfd4da; }
.timeline-bar.in-progress { background: #ffab4a; }
.timeline-bar.complete    { background: #61bd4f; }
.timeline-bar.overdue     { background: #eb5a46; }

.timeline-bar.timeline-bar--list {
  top: 30px;
  height: 26px;
  background: #f8f9fb;
  border: 2px solid #04111c;
  box-sizing: border-box;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #04111c;
  padding: 0 8px;
}

.timeline-bar.timeline-bar--board {
  top: 32px;
  height: 28px;
  background: #ebf2ff;
  border: 3px solid #04111c;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #04111c;
  padding: 0 10px;
  overflow: visible;
}
.employee-allocation-bar {
  position: absolute;
  height: 12px;
  border-radius: 6px;
  background: rgba(4, 17, 28, 0.08);
  border: 1px solid rgba(4, 17, 28, 0.2);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 10px;
  color: #04111c;
  padding-right: 10px;
  box-sizing: border-box;
  z-index: 1;
}
.employee-allocation-bar__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #a5d8ff, #4c9aff);
  opacity: 0.8;
  width: 0;
  transition: width 0.2s ease;
}
.employee-allocation-bar__content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
}
.employee-allocation-bar__percent {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.employee-allocation-bar__summary {
  font-size: 9px;
  color: #0b2d53;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.employee-allocation-bar--empty {
  background: rgba(4, 17, 28, 0.03);
  border-color: rgba(4, 17, 28, 0.08);
}
.employee-allocation-bar--empty .employee-allocation-bar__percent,
.employee-allocation-bar--empty .employee-allocation-bar__summary {
  color: #6b778c;
}
.employee-allocation-bar--empty .employee-allocation-bar__fill {
  opacity: 0.25;
}
.employee-progress-bar {
  position: absolute;
  height: 20px;
  border-radius: 10px;
  background: rgba(4, 17, 28, 0.05);
  border: 1px solid rgba(4, 17, 28, 0.15);
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 11px;
  color: #0b2d53;
  padding-right: 12px;
  box-sizing: border-box;
  z-index: 1;
}
.employee-progress-bar__plan {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(145, 160, 182, 0.6), rgba(99, 114, 138, 0.45));
  width: 0;
  transition: width 0.2s ease;
  z-index: 0;
}
.employee-progress-bar__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #4c9aff, #0747a6);
  opacity: 0.75;
  width: 0;
  transition: width 0.2s ease;
  z-index: 1;
}
.employee-progress-bar__fill--ahead {
  background: linear-gradient(90deg, #45c486, #0f7a4d);
}
.employee-progress-bar__fill--on-track {
  background: linear-gradient(90deg, #4c9aff, #0747a6);
}
.employee-progress-bar__fill--slightly-behind {
  background: linear-gradient(90deg, #ffb454, #c77700);
}
.employee-progress-bar__fill--behind {
  background: linear-gradient(90deg, #f87171, #c53030);
}
.employee-progress-bar__fill--no-plan {
  background: linear-gradient(90deg, #9fbadf, #476ea6);
  opacity: 0.6;
}
.employee-progress-bar__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
}
.employee-progress-bar__name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-progress-bar__count {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.employee-progress-bar__count--ahead {
  color: #0b6e4f;
}
.employee-progress-bar__count--on-track {
  color: #0b2d53;
}
.employee-progress-bar__count--slightly-behind {
  color: #a45a00;
}
.employee-progress-bar__count--behind {
  color: #b91c1c;
}
.employee-progress-bar__count--no-plan {
  color: #6b778c;
}
.employee-progress-bar__status {
  font-size: 10px;
  color: #6b778c;
}
.employee-progress-bar--ahead {
  border-color: rgba(17, 96, 66, 0.4);
}
.employee-progress-bar--on-track {
  border-color: rgba(7, 71, 166, 0.35);
}
.employee-progress-bar--slightly-behind {
  border-color: rgba(176, 106, 0, 0.45);
}
.employee-progress-bar--behind {
  border-color: rgba(185, 28, 28, 0.45);
}
.employee-progress-bar--no-plan {
  border-color: rgba(4, 17, 28, 0.12);
}
.employee-progress-bar--empty {
  background: rgba(4, 17, 28, 0.03);
  border-color: rgba(4, 17, 28, 0.08);
}
.employee-progress-bar--empty .employee-progress-bar__name {
  color: #6b778c;
}
.employee-progress-bar--empty .employee-progress-bar__count {
  color: #6b778c;
}

.timeline-bar.timeline-bar--delay {
  background: #f87171;
  border: 2px solid #b91c1c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 2;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.4);
}

.timeline-bar.timeline-bar--delay-warning {
  background: #facc15;
  border-color: #b45309;
  color: #172b4d;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.55);
}

.timeline-bar.timeline-bar--delay-critical {
  background: #f87171;
  border-color: #b91c1c;
  color: #ffffff;
}

.timeline-bar.timeline-bar--delay-board {
  top: 32px;
  height: 28px;
  border-width: 3px;
  font-size: 11px;
  padding: 0 10px;
}

.timeline-bar.timeline-bar--delay-list {
  top: 30px;
  height: 26px;
  border-width: 2px;
  font-size: 11px;
  padding: 0 8px;
}

.timeline-bar.timeline-bar--lead {
  background: #34d399;
  border: 2px solid #047857;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px 0 6px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 2;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.3);
}

.timeline-bar.timeline-bar--lead-board {
  top: 32px;
  height: 28px;
  border-width: 3px;
  font-size: 11px;
  padding: 0 10px;
}

.timeline-bar.timeline-bar--lead-list {
  top: 30px;
  height: 26px;
  border-width: 2px;
  font-size: 11px;
  padding: 0 8px;
}

.timeline-bar__delay-label {
  pointer-events: none;
  white-space: nowrap;
}

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

.timeline-bar__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: #61bd4f;
  pointer-events: none;
  transition: width 0.3s ease;
  border-radius: inherit;
  z-index: 1;
}

.timeline-bar__time-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(9, 30, 66, 0.15), rgba(9, 30, 66, 0.35));
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.timeline-bar__time-label {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: #0f274a;
  white-space: nowrap;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  z-index: 2;
}

.timeline-bar__progress-count {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
  color: #04111c;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-bar__progress-percent {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 6px;
  transform: translateY(-50%);
  pointer-events: none;
  color: #253858;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-deadline {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 6;
}

.timeline-deadline__line {
  width: 2px;
  height: 52px;
  background: #c9372c;
  box-shadow: 0 0 0 1px rgba(9, 30, 66, 0.12);
  position: relative;
}

.timeline-deadline__label {
  position: absolute;
  bottom: 100%;
  margin-bottom: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #c9372c;
  box-shadow: 0 4px 12px rgba(9, 30, 66, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #172b4d;
  pointer-events: auto;
  white-space: nowrap;
  transform: translateY(3px);
  z-index: 0;
}

.timeline-deadline__label-title {
  color: #c9372c;
  text-transform: none;
  letter-spacing: normal;
}

.timeline-deadline__label-date {
  font-size: 11px;
  font-weight: 600;
  color: #253858;
}

.timeline-deadline__line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #c9372c;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 1px;
  border: 1px solid #04111c;
  box-shadow: 0 0 0 1px rgba(9, 30, 66, 0.12);
  z-index: 1;
}

.timeline-deadline--board .timeline-deadline__line {
  height: 30px;
}

.timeline-deadline--list .timeline-deadline__line {
  height: 64px;
}

.timeline-deadline--task .timeline-deadline__line {
  height: 48px;
}

/* Gantt layout + timeline */

.gantt-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gantt-header-row {
  display: flex;
  border-bottom: 1px solid #dcdcdc;
}

/* Left "Tasks" header column and task list share width */
.task-column {
  flex: 0 0 320px;
  padding: 8px 12px;
  font-weight: 600;
  background: #f5f6f8;
  border-right: 1px solid #dcdcdc;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  align-content: center;
}

.gantt-content {
  display: flex;
  flex: 1 1 auto;
  overflow: hidden;
}

.task-list {
  flex: 0 0 320px;
  padding: 4px 12px;
  border-right: 1px solid #dcdcdc;
  overflow-y: auto;
}

/* draggable divider */
.gantt-resizer {
  flex: 0 0 4px;
  width: 4px;
  cursor: col-resize;
  background: #dcdcdc;
  align-self: stretch;
}

.gantt-resizer:hover {
  background: #b5b9bf;
}

/* Fixed task panel: keep every user/device seeing the same left-side width. */
.task-column,
.task-list {
  flex: 0 0 var(--gantt-task-panel-width) !important;
  max-width: var(--gantt-task-panel-width);
  min-width: var(--gantt-task-panel-width);
  width: var(--gantt-task-panel-width) !important;
}

.task-column *,
.task-list * {
  min-width: 0;
}

.task-column-title,
.task-board-header-label,
.task-group-header-label,
.task-row-title,
.task-row-main,
.task-row-meta,
.task-group-header-label-wrapper,
.task-board-header-label-wrapper {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-resizer {
  display: none !important;
  flex-basis: 0 !important;
  pointer-events: none;
  width: 0 !important;
}

/* Timeline header + body */
.timeline-header {
  flex: 1 1 auto;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f4f5f7;
  border-bottom: 1px solid #dfe1e6;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 8px 0;
}

.timeline-header-inner {
  display: inline-block;
  min-width: 100%;
  position: relative;
}

.timeline-header-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 2px solid #eb5a46;
  pointer-events: none;
  z-index: 6;
}

.timeline-column {
  flex: 1 1 auto;
  position: relative;
  padding: 8px 0 16px;
  overflow-x: auto;
  overflow-y: auto;
}

.timeline-content {
  position: relative;
  display: inline-block;
  min-height: 100%;
}

.timeline-content-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 2px solid #eb5a46;
  pointer-events: none;
  z-index: 12;
}

.timeline-header-row {
  white-space: nowrap;
}

.timeline-header-row-major {
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 2px;
}

.timeline-header-row-minor {
  font-size: 10px;
  padding-top: 2px;
}

.timeline-header-cell {
  display: inline-block;
  width: 24px; /* default width, overwritten inline based on scale */
  font-size: 10px;
  text-align: center;
  border-left: 1px solid #eee;
}

.timeline-row {
  position: relative;
  height: 32px;
  border-bottom: 1px solid #f0f0f0;
}

.timeline-deadline-spine {
  position: absolute;
  width: 2px;
  background: #c9372c;
  box-shadow: 0 0 0 1px rgba(9, 30, 66, 0.12);
  pointer-events: none;
  z-index: 7;
  transform: translateX(-50%);
}

/* Bars */
.timeline-bar {
  position: absolute;
  top: 8px;
  height: 16px;
  border-radius: 3px;
  background: #cfd4da;
}

.timeline-bar.not-started { background: #cfd4da; }
.timeline-bar.in-progress { background: #ffab4a; }
.timeline-bar.complete    { background: #61bd4f; }
.timeline-bar.overdue     { background: #eb5a46; }

/* Task rows & title */

.task-row {
  display: flex;
  align-items: center;
  height: 32px;
  border-bottom: 1px solid #f0f0f0;
}

.task-row--item {
  padding-left: calc(12px + 18px + 6px);
}

.task-row--newly-created {
  animation: newly-created-task-highlight 2.6s ease-out;
}

.inline-new-task-button,
.inline-new-project-button {
  flex: 0 0 auto; min-height: 26px; padding: 3px 8px;
  border: 1px solid; border-radius: 7px;
  font: inherit; font-size: 11px; font-weight: 650;
  text-transform: none; letter-spacing: 0; cursor: pointer;
}
.inline-task-row { min-height: 42px; height: auto; }
.inline-task-form { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; max-width: calc(100vw - 80px); min-width: 0; }
.inline-task-form input {
  flex: 1 1 100px; min-width: 0; width: 100px; padding: 6px 8px;
  border: 1px solid #79bdd1; border-radius: 7px; background: #fff;
  color: #18344e; font: inherit; font-size: 13px;
}
.inline-task-form button {
  flex: 0 0 28px; width: 28px; height: 28px; padding: 0;
  border: 1px solid #bcdde9; border-radius: 7px; background: #f1fcff;
  color: #24647e; font-size: 17px; cursor: pointer;
}
.inline-task-form .inline-task-cancel { color: #6a7581; background: #fff; }
.inline-task-form :disabled { opacity: .6; cursor: wait; }
.inline-task-form input[aria-invalid="true"] { border-color: #b83232; }
.inline-task-status { flex: 1 0 100%; color: #994719; font-size: 11px; line-height: 1.4; white-space: normal; }
.inline-task-status:empty { display: none; }
.inline-new-task-button:focus-visible, .inline-new-project-button:focus-visible, .inline-task-form :focus-visible { outline: 2px solid #27aecf; outline-offset: 2px; }

@keyframes newly-created-task-highlight {
  0%,
  35% {
    background: rgba(55, 183, 255, 0.24);
    box-shadow: inset 4px 0 0 #37b7ff;
  }
  100% {
    background: transparent;
    box-shadow: inset 4px 0 0 transparent;
  }
}

.layout-mode-chronological .task-column-controls {
  display: none;
}
.layout-mode-chronological .task-column-controls:has(.inline-new-project-button) { display: flex; }
.layout-mode-chronological .task-column-controls > :not(.inline-new-project-button) { display: none; }

.layout-mode-chronological .task-context-bar {
  display: none;
}

.layout-mode-chronological .task-row--item {
  padding-left: 12px;
}

.task-row--chronological {
  min-height: 32px;
}

.task-row-context {
  flex: 0 1 auto;
  min-width: 72px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-left: 1px solid #dfe1e6;
  color: #6b778c;
  font-size: 11px;
  margin-left: 2px;
  padding-left: 8px;
}

.task-row-badge--unscheduled {
  background: #fff0b3;
  color: #7a4d00;
}

.task-group-header {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b778c;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid #e5e8ec;
  flex-wrap: wrap;
}

.layout-mode-hierarchy .task-group-header.is-active-sticky-list:not(.is-hidden) {
  position: sticky;
  top: 0;
  z-index: 6;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 255, 0.98)),
    #ffffff;
  box-shadow:
    0 1px 0 rgba(193, 199, 208, 0.72),
    0 5px 12px rgba(9, 30, 66, 0.08);
}

.layout-mode-hierarchy .task-board-header {
  position: relative;
  z-index: 7;
}

.task-group-header-label-wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: nowrap;
}

.task-board-header-label-wrapper {
  gap: 10px;
}

.task-column-title {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 56px;
}

.task-column-controls {
  display: flex;
  gap: 8px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.task-context-bar {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(230, 250, 255, 0.64)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(66, 135, 168, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 5px 14px rgba(17, 58, 93, 0.05);
  color: #315f7d;
  display: flex;
  flex: 0 0 100%;
  font-size: 11px;
  font-weight: 850;
  gap: 5px;
  letter-spacing: 0.01em;
  line-height: 1.1;
  min-height: 24px;
  min-width: 0;
  overflow: hidden;
  padding: 5px 8px;
  text-transform: none;
}

.task-context-bar.is-empty {
  color: #6b778c;
  opacity: 0.72;
}

.task-context-bar__icon {
  flex: 0 0 auto;
  line-height: 1;
}

.task-context-bar__label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-hierarchy-toggle {
  align-items: center;
  border: 1px solid rgba(66, 135, 168, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 253, 255, 0.58)),
    rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 5px 14px rgba(17, 58, 93, 0.06);
  color: #253858;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  justify-content: center;
  line-height: 1;
  min-height: 28px;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.global-hierarchy-toggle:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(215, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.74);
  border-color: rgba(48, 171, 210, 0.34);
}

.global-hierarchy-toggle:focus {
  outline: 2px solid #4c9aff;
  outline-offset: 1px;
}

.global-hierarchy-toggle__icon {
  flex: 0 0 auto;
  line-height: 1;
}

.global-hierarchy-toggle--add-task,
.inline-new-task-button,
.inline-new-project-button {
  background: linear-gradient(135deg, #2ec7dd, #37b7ff 48%, #5268d9);
  border-color: rgba(42, 157, 219, 0.5);
  color: #ffffff;
}

.global-hierarchy-toggle--add-task {
  margin-left: auto;
}

.global-hierarchy-toggle--add-task:hover,
.inline-new-task-button:hover,
.inline-new-project-button:hover {
  background: linear-gradient(135deg, #25b7ce, #249fe6 48%, #4558c6);
  border-color: rgba(42, 157, 219, 0.68);
}

.global-hierarchy-toggle--add-task:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.task-group-header-label {
  flex: 0 1 38%;
  min-width: 100px;
  width: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-group-header-label-wrapper > .task-group-header-progress {
  flex: 1 1 260px;
  min-width: 192px;
  width: auto;
}

.task-group-header-label-wrapper > .task-group-header-pace {
  flex: 0 0 auto;
}

.task-group-header-progress {
  flex: 0 1 auto;
  margin-left: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  width: 100%;
}

.task-group-header-progress__main {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}

.task-group-header-progress__bar {
  position: relative;
  display: inline-flex;
  flex: 1 1 192px;
  align-items: center;
  justify-content: center;
  min-width: 192px;
  height: 38px;
  padding: 0 6px;
  border-radius: 0;
  border: 2px solid #c1c7d0;
  background: #ffffff;
  color: #172b4d;
  overflow: hidden;
}

.task-group-header-progress__bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: #61bd4f;
  border-radius: inherit;
}

.task-group-header-progress__bar-text {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.task-group-header-progress__percent {
  flex: 0 0 auto;
  color: #0b3d1c;
  white-space: nowrap;
}

.assignee-summary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  overflow: visible;
}

.assignee-summary--board,
.assignee-summary--list {
  padding-top: 0;
}

.assignee-summary__progress-status-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  align-items: stretch;
}

.assignee-summary__progress-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid #c1c7d0;
  background: #ffffff;
  color: #172b4d;
  flex: 1 1 calc(50% - 3px);
  min-width: 260px;
}

.assignee-summary__progress-status-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(193, 199, 208, 0.7);
  box-shadow: none;
  background: #f4f5f7;
}

.assignee-summary__progress-status .employee-progress-bar__content {
  padding: 0;
  gap: 10px;
}

.assignee-summary__progress-status .employee-progress-bar {
  position: relative;
  flex: 1 1 auto;
  height: 22px;
  font-size: 10px;
  padding-right: 10px;
}

.employee-progress-bar--embedded {
  position: relative;
  width: 100%;
  margin-left: 0;
}

.assignee-summary__entry {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  white-space: nowrap;
}

.assignee-summary__entry--combined {
  width: 100%;
  gap: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.assignee-summary__entry--combined .assignee-summary__bar-wrapper,
.assignee-summary__entry--combined .assignee-summary__bar-wrapper--completion {
  width: 100%;
}

.assignee-summary__percent-spacer {
  display: none !important;
}

.assignee-summary__bar-wrapper {
  position: relative;
  flex: 1 1 180px;
  min-width: 160px;
  height: 38px;
  display: flex;
}

.assignee-summary__entry--combined .assignee-summary__bar-wrapper + .assignee-summary__bar-wrapper {
  margin-top: 4px;
}

.assignee-summary__avatar {
  width: 18px;
  height: 18px;
  font-size: 9px;
  box-shadow: 0 0 0 1px rgba(9, 30, 66, 0.15);
}

.assignee-summary__bar {
  position: relative;
  flex: 1 1 auto;
  height: 100%;
  border-radius: 0;
  border: 1px solid #c5c9d2;
  background: #ffffff;
  display: flex;
  overflow: visible;
}

.assignee-summary__bar--combined {
  flex: 1 1 auto;
}

.assignee-summary__bar--completion {
  border-style: dashed;
}

.assignee-summary__segment {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 6px;
  height: 100%;
  background-image: linear-gradient(135deg, var(--segment-color-light, #6c798f), var(--segment-color, #42526e));
  color: #172b4d;
  transition: flex-basis 0.15s ease, flex-grow 0.15s ease;
}

.assignee-summary__bar--combined .assignee-summary__segment {
  background-image: linear-gradient(135deg, rgba(38, 132, 255, 0.95), rgba(0, 82, 204, 0.95));
  color: #0b1f4c;
}

.assignee-summary__bar--combined .assignee-summary__segment--empty {
  background-image: linear-gradient(135deg, rgba(38, 132, 255, 0.25), rgba(0, 82, 204, 0.35));
}

.assignee-summary__bar--combined .assignee-summary__segment--unassigned {
  background-image: none;
  background-color: rgba(9, 30, 66, 0.08);
}

.assignee-summary__segment--completion {
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--segment-color-light, #6c798f), var(--segment-color, #42526e));
}

.assignee-summary__segment + .assignee-summary__segment::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
}

.assignee-summary__segment--unassigned {
  background-image: none;
  background-color: #ffffff;
  color: #172b4d;
}

.assignee-summary__bar--combined .assignee-summary__segment-content {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.assignee-summary__bar--combined .assignee-summary__segment-text {
  color: #f6f9ff;
  text-shadow: 0 1px 2px rgba(9, 30, 66, 0.45);
}

.assignee-summary__bar--combined .assignee-summary__segment--unassigned .assignee-summary__segment-content {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(197, 201, 210, 0.6);
}

.assignee-summary__bar--combined .assignee-summary__segment--unassigned .assignee-summary__segment-text {
  color: #172b4d;
  text-shadow: none;
}

.assignee-summary__segment--empty {
  background-image: linear-gradient(135deg, rgba(9, 30, 66, 0.05), rgba(9, 30, 66, 0.08));
}

.assignee-summary__segment-content {
  position: absolute;
  inset: 3px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 2px 4px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(197, 201, 210, 0.6);
  pointer-events: none;
  white-space: normal;
  min-width: 0;
  overflow: hidden;
  z-index: 1;
}

.assignee-summary__segment--unassigned .assignee-summary__segment-content {
  background: rgba(255, 255, 255, 0.95);
}

.assignee-summary__percent-spacer {
  visibility: hidden;
  pointer-events: none;
  flex: 0 0 auto;
}

.assignee-summary__segment--unassigned .assignee-summary__segment-avatar {
  background: #fdecec;
  border-color: rgba(224, 72, 72, 0.35);
  box-shadow: 0 0 0 1px rgba(224, 72, 72, 0.2);
  color: #c9372c;
}

.assignee-summary__segment--unassigned .assignee-summary__segment-avatar.task-row-avatar--placeholder {
  border-color: rgba(224, 72, 72, 0.35);
}

.assignee-summary__segment-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(9, 30, 66, 0.2);
  background: rgba(255, 255, 255, 0.8);
  color: #172b4d;
  font-size: 9px;
  font-weight: 600;
  pointer-events: none;
}

.assignee-summary__segment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.assignee-summary__segment-avatar.task-row-avatar--placeholder {
  border-color: rgba(255, 255, 255, 0.85);
}

.assignee-summary__segment-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.05;
  color: #172b4d;
  text-shadow: none;
  text-align: center;
  overflow-wrap: anywhere;
}

.assignee-summary__segment-line {
  display: block;
  max-width: 100%;
}

.assignee-summary__segment-line--primary {
  font-weight: 700;
}

.assignee-summary__segment-line--secondary {
  font-size: 8.5px;
  opacity: 0.92;
}

.task-group-header-pace {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f0f3ff;
  color: #253858;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  margin-left: 0;
  margin-top: 2px;
  white-space: nowrap;
  cursor: pointer;
}

.task-group-header-pace:focus-visible {
  outline: 2px solid #4c9aff;
  outline-offset: 2px;
}

.task-group-header-pace.task-group-header-pace--behind {
  background: #fff1e6;
  color: #8f2f00;
}

.task-group-header-pace.task-group-header-pace--ahead {
  background: #e3fcef;
  color: #0b3d1c;
}

.task-group-header-pace.task-group-header-pace--urgent {
  background: #fdecea;
  color: #b72c27;
}

.pace-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 30, 66, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
}

.pace-popup-overlay.is-visible {
  display: flex;
}

.pace-popup {
  width: min(420px, 90vw);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(9, 30, 66, 0.32);
  color: #172b4d;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.pace-popup__header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid #e0e6ee;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.pace-popup__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  grid-column: 1 / 2;
}

.pace-popup__subtitle {
  margin: 0;
  grid-column: 1 / 2;
  font-size: 12px;
  color: #5e6c84;
}

.pace-popup__subtitle.is-hidden {
  display: none;
}

.pace-popup__close {
  align-self: start;
  grid-column: 2 / 3;
  border: none;
  background: none;
  color: #0747a6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
}

.pace-popup__close:hover,
.pace-popup__close:focus {
  text-decoration: underline;
}

.pace-popup__body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}

.pace-popup__section + .pace-popup__section {
  margin-top: 18px;
}

.pace-popup__section-title {
  margin: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5e6c84;
}

.pace-popup__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.pace-popup__item {
  border-left: 3px solid #dfe1e6;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pace-popup__item--plan {
  border-left-color: #4c9aff;
}

.pace-popup__item--actual {
  border-left-color: #79f2c0;
}

.pace-popup__item--ahead {
  border-left-color: #36b37e;
}

.pace-popup__item--behind {
  border-left-color: #ff7452;
}

.pace-popup__item--neutral {
  border-left-color: #998dd9;
}

.pace-popup__item--muted {
  border-left-color: #dfe1e6;
  opacity: 0.8;
}

.pace-popup__item-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b778c;
}

.pace-popup__item-value {
  font-size: 13px;
  font-weight: 600;
  color: #172b4d;
}

.pace-popup__empty {
  margin: 0;
  font-size: 12px;
  color: #6b778c;
}

.pace-popup__list {
  margin: 0;
  padding-left: 18px;
  color: #172b4d;
  font-size: 12px;
  line-height: 1.45;
}

.pace-popup__list li + li {
  margin-top: 6px;
}

.task-board-header {
  font-size: 13px;
  font-weight: 700;
  color: #253858;
  background: #eef1f6;
  border-bottom: 1px solid #d0d6e0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 12px;
}

.task-header-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  flex: 0 1 540px;
  margin-left: auto;
  width: auto;
  min-width: 320px;
  max-width: 100%;
}

.task-header-meta--board {
  font-size: 11px;
}

.task-header-meta--list {
  font-size: 11px;
}

.task-board-header-progress {
  flex: 0 1 auto;
  margin-left: 0;
  margin-top: 0;
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex-wrap: wrap;
}

.task-board-header-label {
  display: block;
  flex: 0 1 38%;
  min-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: auto;
}

.hierarchy-toggle {
  align-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  height: 20px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 20px;
  color: #253858;
}

.hierarchy-toggle:focus {
  outline: none;
}

.hierarchy-toggle:hover {
  color: #0747a6;
}

.task-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  flex: 1 1 auto;
  min-width: 0;
}

/* link: clickable but not underlined by default */
.task-row-title a {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  color: inherit;
}
.task-row-title a:hover {
  text-decoration: underline;
}

.task-row-assignees {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding-left: 4px;
}

.task-row-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dfe1e6;
  color: #172b4d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  overflow: hidden;
}

.task-row-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.task-row-avatar--initials {
  text-transform: uppercase;
}

.task-row-avatar--placeholder {
  background: #fdf4f4;
  color: #c92a2a;
  border: 1px solid #f5c2c2;
}

.timeline-bar-assignees {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  z-index: 2;
}

.timeline-bar-avatar {
  width: 14px;
  height: 14px;
  font-size: 8px;
  box-shadow: 0 0 0 1px rgba(9, 30, 66, 0.25);
}

.timeline-bar-assignees .task-row-avatar--placeholder {
  border-color: #f07171;
  color: #c92a2a;
}

.timeline-bar-assignees .task-row-avatar img {
  border-radius: 50%;
}

.task-status-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c1c7d0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
}

button.task-status-icon {
  appearance: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

button.task-status-icon:hover {
  box-shadow: 0 0 0 3px rgba(55, 183, 255, 0.22);
}

.task-status-icon::before {
  content: "";
}

.task-status-icon--not-started {
  background: #ffffff;
}

.task-status-icon--in-progress {
  border-color: #ff9f1a;
  background: linear-gradient(90deg, #ff9f1a 50%, #ffffff 50%);
}

.task-status-icon--complete {
  background: #61bd4f;
  border-color: #61bd4f;
  color: #ffffff;
}

.task-status-icon--complete::before {
  content: "\2713";
  color: #ffffff;
}

.timeline-bar__status-icon {
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-width: 2px;
  font-size: 10px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65);
}

/* Cells already exist, this just keeps them flexible */
.timeline-header-cell {
  display: inline-block;
  text-align: center;
}

/* --- Local standalone timeline upgrades --- */

.timeline-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #dfe1e6;
  border-radius: 6px;
  padding: 3px;
}

.timeline-controls select {
  border: 0;
  min-width: 102px;
  padding: 5px 7px;
}

.controls .timeline-icon-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
}

.controls .button-icon,
.baseline-view__button .button-icon,
.layout-view__button .button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  line-height: 1;
}

.controls .employee-switch-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 4px 6px 4px 10px;
  font-weight: 700;
}

.employee-switch-label {
  white-space: nowrap;
}

.employee-switch-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.employee-switch-icon img {
  display: block;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.employee-switch {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #d9dde3;
  box-shadow: inset 0 0 0 1px rgba(9, 30, 66, 0.08);
  transition: background 0.2s ease;
}

.employee-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(9, 30, 66, 0.22);
  transition: transform 0.2s ease;
}

.employee-switch-button[aria-pressed="true"] .employee-switch {
  background: #61bd4f;
}

.employee-switch-button[aria-pressed="true"] .employee-switch::after {
  transform: translateX(18px);
}

.timeline-header {
  padding-top: 6px;
  padding-bottom: 6px;
}

.timeline-header-inner {
  isolation: isolate;
}

.timeline-header-row-progress {
  position: relative;
  z-index: 3;
  font-size: 9px;
  color: #172b4d;
  border-top: 1px solid #c9d3df;
  background: rgba(244, 247, 251, 0.9);
}

.timeline-header-cell-progress {
  position: relative;
  height: 32px;
  line-height: 1;
  overflow: hidden;
  border-left: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.72);
  padding: 3px 4px 2px;
  vertical-align: top;
}

.timeline-header-cell-progress:first-child {
  border-left: none;
}

.timeline-progress-label {
  position: relative;
  z-index: 1;
  display: block;
  color: #172b4d;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.05;
  margin-top: 2px;
  padding: 0 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-header-cell-progress--capacity {
  height: 58px;
}

.timeline-header-cell-progress--utilization {
  height: 76px;
}

.timeline-header-cell-progress--with-summary {
  height: 94px;
}

.timeline-capacity-heading,
.timeline-extra-progress-heading {
  color: #253858;
  display: block;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.05;
  margin-top: 2px;
  overflow: hidden;
  padding: 0 3px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-extra-progress-summary {
  color: #526581;
  display: block;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.1;
  overflow: hidden;
  padding: 0 3px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-header-cell-progress--capacity.is-over-capacity {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 238, 236, 0.94));
  box-shadow: inset 0 -3px 0 rgba(201, 55, 44, 0.72);
}

.timeline-progress-stepper--capacity {
  gap: 3px;
  max-width: calc(100% - 8px);
}

.timeline-progress-stepper--capacity .timeline-progress-step {
  height: 11px;
  width: 11px;
}

.timeline-capacity-note,
.timeline-capacity-warning {
  display: block;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 2px;
  overflow: hidden;
  padding: 0 3px;
  position: relative;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 1;
}

.timeline-capacity-note {
  color: #526581;
}

.timeline-capacity-warning {
  align-items: center;
  color: #c9372c;
  display: flex;
  gap: 3px;
  justify-content: center;
}

.timeline-capacity-task-square {
  background: #c9372c;
  border: 1px solid #8f2119;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: inline-block;
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.timeline-capacity-meter {
  align-items: center;
  container-name: timeline-capacity-meter;
  container-type: inline-size;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 3px 3px 1px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.timeline-daily-capacity-bar {
  align-items: stretch;
  background: #d0d9df;
  border: 1px solid #c6d0d9;
  border-radius: 8px;
  display: block;
  min-height: 30px;
  min-width: 0;
  overflow: hidden;
  padding: 3px;
}

.timeline-daily-capacity-bar__track {
  align-items: stretch;
  border-radius: 5px;
  display: flex;
  min-height: 22px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.timeline-capacity-slots {
  display: grid;
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.timeline-capacity-slot {
  background: #d0d9df;
  border-right: 1px solid rgba(90, 113, 131, .3);
  min-width: 0;
}

.timeline-capacity-slot.is-filled {
  background: #009db5;
  border-right-color: rgba(255, 255, 255, .7);
}

.timeline-capacity-slot:last-child { border-right: 0; }

.timeline-daily-capacity-bar__fill {
  align-items: center;
  container-type: inline-size;
  display: flex;
  flex: 0 0 auto;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.timeline-daily-capacity-bar__label {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: clamp(6px, 14cqi, 11px);
  font-weight: 900;
  gap: clamp(1px, 5cqi, 3px);
  justify-content: center;
  line-height: 1.15;
  min-width: 0;
  padding: 2px clamp(1px, 5cqi, 4px);
  position: relative;
  width: 100%;
  z-index: 1;
}

.timeline-daily-capacity-bar__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-capacity-battery { display: block; flex: 0 0 auto; height: 15px; width: 26px; }
.timeline-daily-capacity-bar__label .timeline-capacity-battery { height: auto; width: clamp(10px, 32cqi, 26px); }
.timeline-capacity-total { align-items: center; color: #172b4d; display: flex; font-size: 14px; font-weight: 900; gap: 3px; white-space: nowrap; }
.timeline-capacity-meter .timeline-capacity-note { align-self: center; color: #172b4d; container-type: inline-size; flex: 1 1 auto; font-size: 10px; line-height: 1.15; margin: 0; min-width: 0; padding: 2px 4px; white-space: normal; }
.timeline-capacity-note__text { font-size: clamp(6px, 12cqi, 10px); }
.timeline-capacity-meter.is-empty .timeline-daily-capacity-bar__fill { background: transparent; }
.timeline-capacity-meter.is-empty .timeline-daily-capacity-bar__label { color: #172b4d; container-type: inline-size; font-size: 11px; left: 0; position: absolute; top: 50%; transform: translateY(-50%); width: 84px; }
.timeline-capacity-meter.is-empty .timeline-capacity-note { padding-left: 88px; }

.timeline-header-cell-progress--utilization { height: 96px; }
.timeline-header-cell-progress--with-summary { height: 114px; }
.timeline-header-cell-progress--utilization.is-over-capacity .timeline-capacity-slot.is-filled { background: linear-gradient(90deg, #e55344, #c9372c); }

@container timeline-capacity-meter (max-width: 170px) {
  .timeline-daily-capacity-bar { min-height: 28px; padding: 2px; }
  .timeline-daily-capacity-bar__label { font-size: 7px; gap: 2px; padding: 2px; }
  .timeline-capacity-battery { width: 16px; height: 10px; }
  .timeline-capacity-total { font-size: 9px; gap: 2px; }
  .timeline-capacity-meter .timeline-capacity-note { font-size: 7px; padding: 2px; }
  .timeline-capacity-note__text { font-size: clamp(6px, 12cqi, 7px); }
  .timeline-capacity-meter.is-empty .timeline-daily-capacity-bar__label { width: 52px; }
  .timeline-capacity-meter.is-empty .timeline-capacity-note { padding-left: 54px; }
}

@container timeline-capacity-meter (max-width: 100px) {
  .timeline-daily-capacity-bar__label { font-size: 6px; }
  .timeline-capacity-battery { width: 12px; height: 8px; }
  .timeline-capacity-total { font-size: 7px; }
  .timeline-capacity-meter .timeline-capacity-note { font-size: 6px; }
  .timeline-capacity-note__text { font-size: 6px; }
  .timeline-capacity-meter.is-empty .timeline-daily-capacity-bar__label { width: 42px; }
  .timeline-capacity-meter.is-empty .timeline-capacity-note { padding-left: 44px; }
}

.timeline-progress-stepper {
  --timeline-stepper-progress: 0%;
  align-items: center;
  display: flex;
  gap: 4px;
  height: 15px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: min(100%, 92px);
  min-width: 24px;
  position: relative;
  z-index: 1;
}

.timeline-progress-stepper::before,
.timeline-progress-stepper::after {
  content: "";
  height: 3px;
  left: 7px;
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-progress-stepper::before {
  background: rgba(97, 117, 138, 0.28);
}

.timeline-progress-stepper::after {
  background:
    linear-gradient(90deg, rgba(89, 190, 72, 0.94), rgba(70, 174, 82, 0.94)),
    #59be48;
  width: var(--timeline-stepper-progress);
}

.timeline-progress-stepper.is-empty::before,
.timeline-progress-stepper.is-empty::after {
  display: none;
}

.timeline-progress-step {
  align-items: center;
  background: #ffffff;
  border: 2px solid rgba(97, 117, 138, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 950;
  height: 13px;
  justify-content: center;
  line-height: 1;
  position: relative;
  width: 13px;
  z-index: 1;
}

.timeline-progress-step.is-complete {
  background:
    linear-gradient(135deg, rgba(89, 190, 72, 0.96), rgba(70, 174, 82, 0.96)),
    #59be48;
  border-color: rgba(70, 174, 82, 0.96);
}

.timeline-month-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(235, 242, 255, 0.16);
  border-left: 2px solid rgba(23, 43, 77, 0.3);
  border-right: 1px solid rgba(23, 43, 77, 0.18);
}

.timeline-month-zone--header {
  z-index: 0;
  background: rgba(235, 242, 255, 0.24);
}

.timeline-current-week-highlight {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  background: rgba(0, 121, 191, 0.12);
  border-left: 2px solid rgba(0, 121, 191, 0.45);
  border-right: 2px solid rgba(0, 121, 191, 0.35);
}

.timeline-current-week-highlight--header {
  z-index: 1;
  background: rgba(0, 121, 191, 0.16);
}

.timeline-grid {
  z-index: 2;
}

.timeline-grid-line {
  border-left-color: rgba(9, 30, 66, 0.12);
}

.timeline-grid-line.major {
  border-left-width: 2px;
  border-left-color: rgba(23, 43, 77, 0.36);
}

.timeline-grid-line.week-boundary {
  border-left-width: 4px;
  border-left-color: rgba(23, 43, 77, 0.62);
  z-index: 6;
}

.timeline-row {
  height: 40px;
}

.task-row {
  height: 40px;
  min-height: 40px;
}

.timeline-row.timeline-row-group {
  height: 64px;
}

.timeline-row.timeline-row-board {
  height: 68px;
}

.timeline-row.timeline-row--compact > .timeline-bar--board,
.timeline-row.timeline-row--compact > .timeline-bar--list {
  top: 8px;
}

.timeline-bar {
  top: 9px;
  height: 22px;
}

.timeline-bar.timeline-bar--list {
  top: 34px;
  height: 28px;
}

.timeline-bar.timeline-bar--board {
  top: 36px;
  height: 30px;
}

.timeline-bar__status-icon {
  width: 18px;
  height: 18px;
}

/* --- Liquid Glass toolbar polish --- */

:root {
  --glass-ink: #10294b;
  --glass-muted: #5f6f89;
  --glass-border: rgba(80, 143, 178, 0.26);
  --glass-border-strong: rgba(30, 132, 180, 0.42);
  --glass-surface: rgba(255, 255, 255, 0.58);
  --glass-surface-bright: rgba(255, 255, 255, 0.78);
  --glass-aqua: #2ec7dd;
  --glass-cyan: #37b7ff;
  --glass-mint: #64e3c3;
  --glass-indigo: #5268d9;
  --glass-pink: #ff8abd;
}

.toolbar-group,
.timeline-controls,
.controls select,
.controls button:not(.baseline-view__button),
.baseline-view,
.layout-view {
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
}

.toolbar-group {
  position: relative;
  overflow: hidden;
  border-color: var(--glass-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(231, 252, 255, 0.46) 48%, rgba(236, 255, 248, 0.38)),
    rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(53, 184, 210, 0.08),
    0 12px 28px rgba(18, 66, 99, 0.08);
}

.toolbar-group::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16px 10px, rgba(255, 255, 255, 0.95), transparent 22px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.42), transparent 36%);
  opacity: 0.7;
}

.toolbar-group__label,
.toolbar-group__controls {
  position: relative;
  z-index: 1;
}

.toolbar-group__label {
  color: var(--glass-muted);
  letter-spacing: 0.12em;
}

.toolbar-group__icon {
  color: #0b76a2;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(205, 246, 255, 0.72)),
    rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(68, 185, 217, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 4px 10px rgba(29, 117, 160, 0.1);
}

.controls select,
.controls button:not(.baseline-view__button),
.timeline-controls,
.baseline-view,
.layout-view {
  border-color: rgba(66, 135, 168, 0.22);
  background:
    linear-gradient(145deg, var(--glass-surface-bright), rgba(238, 253, 255, 0.5)),
    var(--glass-surface);
  color: var(--glass-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(32, 154, 194, 0.07),
    0 5px 14px rgba(17, 58, 93, 0.07);
}

.controls select:hover,
.controls button:not(.baseline-view__button):hover,
.baseline-view__button:not(:disabled):hover,
.layout-view__button:not(.is-active):hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(225, 252, 255, 0.64)),
    rgba(255, 255, 255, 0.7);
  border-color: rgba(48, 171, 210, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 7px 18px rgba(21, 104, 146, 0.1);
}

.controls .toolbar-button-primary,
.controls .modern-button.toolbar-button-primary,
.controls .layout-view__button.is-active,
.baseline-view__button.is-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.62), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 138, 189, 0.28), transparent 18%),
    linear-gradient(135deg, var(--glass-aqua), var(--glass-cyan) 48%, var(--glass-indigo));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(8, 52, 98, 0.24),
    0 8px 20px rgba(26, 135, 197, 0.24);
  text-shadow: 0 1px 1px rgba(7, 38, 72, 0.22);
}

.controls .toolbar-button-primary:hover,
.controls .modern-button.toolbar-button-primary:hover,
.controls .layout-view__button.is-active:hover,
.baseline-view__button.is-active:hover {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.7), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 138, 189, 0.32), transparent 18%),
    linear-gradient(135deg, #36d6e9, #32bfff 46%, #5d73e6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 24px rgba(27, 146, 206, 0.28);
}

.controls .toolbar-button-secondary,
.controls .layout-view__button:not(.is-active),
.baseline-view__button:not(.is-active) {
  color: var(--glass-ink);
}

.baseline-view__button:disabled {
  background:
    linear-gradient(145deg, rgba(245, 249, 252, 0.72), rgba(234, 241, 247, 0.56)),
    rgba(255, 255, 255, 0.4);
  color: rgba(94, 108, 132, 0.62);
}

.timeline-controls {
  border-radius: 8px;
}

.controls .timeline-icon-button {
  border-radius: 7px;
  font-weight: 800;
}

.employee-switch {
  background:
    linear-gradient(145deg, rgba(214, 224, 233, 0.9), rgba(245, 249, 252, 0.7)),
    rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(97, 117, 138, 0.16);
  box-shadow:
    inset 0 1px 2px rgba(38, 52, 74, 0.18),
    0 2px 8px rgba(17, 58, 93, 0.06);
}

.employee-switch::after {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.78) 55%, rgba(226, 242, 248, 0.92)),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 3px 8px rgba(18, 66, 99, 0.22);
}

.employee-switch-button[aria-pressed="true"] .employee-switch {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.58), transparent 24%),
    linear-gradient(135deg, var(--glass-mint), var(--glass-aqua));
  border-color: rgba(255, 255, 255, 0.42);
}

/* --- Consistent app corner radius --- */

:root {
  --app-radius: 10px;
  --gantt-task-panel-width: 320px;
}

#gantt-container,
.standalone-toolbar,
.toolbar-group,
.toolbar-group__icon,
.toolbar-group__controls,
.timeline-controls,
.layout-view,
.baseline-view,
.gantt-wrapper,
.gantt-header-row,
.gantt-content,
.task-column,
.task-list,
.timeline-header,
.timeline-column,
.legend,
.legend-color,
.timeline-header-cell,
.timeline-header-cell-progress,
.timeline-progress-fill,
.timeline-month-zone,
.timeline-current-week-highlight,
.timeline-row,
.timeline-bar,
.timeline-bar__progress-fill,
.timeline-bar__time-fill,
.timeline-bar--baseline,
.baseline-progress,
.baseline-progress__fill,
.timeline-deadline__label,
.task-row,
.task-board-header,
.task-group-header,
.task-row-avatar,
.task-status-icon,
.employee-modal__dialog,
.employee-modal__close,
.employee-modal__actions button,
.employee-modal__item,
.employee-modal__button,
.baseline-modal__dialog,
.baseline-modal__close,
.baseline-modal__input,
.baseline-modal__textarea,
.baseline-modal__select,
.baseline-modal__button,
.baseline-modal__details,
.baseline-modal__status,
.baseline-modal__warning,
.pace-popup,
.pace-popup__close,
.pace-badge,
.member-filter-chip,
.member-progress-card,
.member-progress-bar,
.member-progress-bar__fill,
.controls select,
.controls button,
button,
select,
input,
textarea {
  border-radius: var(--app-radius) !important;
}

.layout-view__button,
.baseline-view__button {
  border-radius: var(--app-radius) !important;
}

.layout-view__button + .layout-view__button,
.baseline-view__button + .baseline-view__button {
  margin-left: 3px;
}

.employee-switch,
.employee-switch::after,
.timeline-bar-avatar,
.task-row-avatar img {
  border-radius: var(--app-radius) !important;
}

/* --- Workspace overview, search, and focus controls --- */

.header {
  position: relative;
}

.header-control-strip {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  max-width: 100%;
  width: 100%;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-end;
  margin: 0;
}

.header-action-button {
  appearance: none;
  border: 1px solid rgba(66, 135, 168, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(231, 250, 255, 0.62)),
    rgba(255, 255, 255, 0.58);
  color: var(--glass-ink, #172b4d);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 36px;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 5px 14px rgba(17, 58, 93, 0.07);
}

.header-action-button:hover,
.header-action-button[aria-pressed="true"] {
  border-color: rgba(48, 171, 210, 0.38);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.56), transparent 28%),
    linear-gradient(145deg, rgba(235, 253, 255, 0.96), rgba(255, 255, 255, 0.72));
}

.header-action-button--primary,
.header-action-button--primary[aria-pressed="true"] {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.62), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 138, 189, 0.28), transparent 18%),
    linear-gradient(135deg, var(--glass-aqua, #31c8df), var(--glass-cyan, #2788d9) 48%, var(--glass-indigo, #5967d8));
  text-shadow: 0 1px 1px rgba(7, 38, 72, 0.22);
}

.task-search {
  appearance: none;
  border: 1px solid rgba(66, 135, 168, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 253, 255, 0.58)),
    rgba(255, 255, 255, 0.7);
  color: var(--glass-ink, #172b4d);
  font: inherit;
  font-weight: 650;
  min-height: 42px;
  min-width: 190px;
  padding: 8px 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 5px 14px rgba(17, 58, 93, 0.06);
}

.task-search::placeholder {
  color: rgba(94, 108, 132, 0.72);
}

.task-search--title {
  flex: 0 1 320px;
  min-width: 220px;
}

.board-filter-native {
  display: none !important;
}

.board-picker {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(229, 248, 255, 0.58)),
    rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(66, 135, 168, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 5px 14px rgba(17, 58, 93, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  inline-size: max-content;
  max-height: 88px;
  max-width: min(860px, 62vw);
  min-width: 640px;
  overflow: auto;
  padding: 8px;
}

.board-picker__item {
  align-items: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(66, 135, 168, 0.12);
  color: var(--glass-ink, #172b4d);
  cursor: pointer;
  display: grid;
  font-weight: 750;
  gap: 9px;
  grid-template-columns: 18px minmax(0, 1fr);
  max-width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  width: max-content;
  min-width: 100%;
}

.board-picker__item:hover {
  background: rgba(235, 252, 255, 0.84);
  border-color: rgba(48, 171, 210, 0.28);
}

.board-picker__checkbox {
  appearance: none;
  grid-column: 1;
  grid-row: 1;
  height: 18px;
  margin: 0;
  opacity: 0;
  width: 18px;
}

.board-picker__box {
  align-items: center;
  background: #ffffff;
  border: 2px solid rgba(70, 91, 121, 0.34);
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.board-picker__checkbox:checked + .board-picker__box {
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.76), transparent 34%),
    linear-gradient(135deg, var(--glass-aqua, #31c8df), var(--glass-indigo, #5967d8));
  border-color: rgba(48, 171, 210, 0.52);
}

.board-picker__checkbox:checked + .board-picker__box::after {
  color: #ffffff;
  content: "✓";
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.board-picker__checkbox:focus-visible + .board-picker__box {
  outline: 2px solid rgba(52, 152, 219, 0.55);
  outline-offset: 2px;
}

.board-picker__name {
  max-width: min(780px, 56vw);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-picker__empty {
  color: var(--glass-muted, #5e6c84);
  font-weight: 750;
  padding: 8px;
}

.project-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 16px;
}

.overview-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 16px;
  width: 100%;
}

.overview-control-row .project-overview {
  margin: 0;
  min-width: 0;
}

.toolbar-group--timeline-overview {
  align-self: stretch;
  justify-content: flex-start;
  width: 690px;
}

.toolbar-group--timeline-overview .toolbar-group__controls {
  align-content: flex-start;
  flex-wrap: nowrap;
}

.toolbar-group--timeline-overview select,
.toolbar-group--timeline-overview button:not(.baseline-view__button) {
  appearance: none;
  border: 1px solid rgba(66, 135, 168, 0.22);
  background:
    linear-gradient(145deg, var(--glass-surface-bright, rgba(255, 255, 255, 0.78)), rgba(238, 253, 255, 0.5)),
    var(--glass-surface, rgba(255, 255, 255, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(32, 154, 194, 0.07),
    0 5px 14px rgba(17, 58, 93, 0.07);
  color: var(--glass-ink, #10294b);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 32px;
  padding: 6px 10px;
}

.toolbar-group--timeline-overview select:hover,
.toolbar-group--timeline-overview button:not(.baseline-view__button):hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(225, 252, 255, 0.64)),
    rgba(255, 255, 255, 0.7);
  border-color: rgba(48, 171, 210, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 7px 18px rgba(21, 104, 146, 0.1);
}

.toolbar-group--timeline-overview .timeline-controls {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(238, 253, 255, 0.48)),
    rgba(255, 255, 255, 0.56);
  border-color: rgba(66, 135, 168, 0.22);
  display: inline-flex;
  gap: 4px;
  padding: 3px;
}

.toolbar-group--timeline-overview .timeline-controls select {
  border: 0;
  box-shadow: none;
  min-width: 112px;
  padding: 5px 30px 5px 8px;
}

.timeline-scale-select-wrapper {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.timeline-scale-hour-icon,
.timeline-scale-day-icon,
.timeline-scale-week-icon,
.timeline-scale-month-icon,
.timeline-scale-quarter-icon,
.timeline-scale-year-icon {
  display: none;
  height: 22px;
  left: 8px;
  pointer-events: none;
  position: absolute;
  width: 22px;
  z-index: 1;
}

.timeline-scale-hour-icon img,
.timeline-scale-day-icon img,
.timeline-scale-week-icon img,
.timeline-scale-month-icon img,
.timeline-scale-quarter-icon img,
.timeline-scale-year-icon img {
  display: block;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.timeline-scale-select-wrapper:has(option[value="hours"]:checked) .timeline-scale-hour-icon {
  display: block;
}

.timeline-scale-select-wrapper:has(option[value="days"]:checked) .timeline-scale-day-icon {
  display: block;
}

.timeline-scale-select-wrapper:has(option[value="weeks"]:checked) .timeline-scale-week-icon {
  display: block;
}

.timeline-scale-select-wrapper:has(option[value="months"]:checked) .timeline-scale-month-icon {
  display: block;
}

.timeline-scale-select-wrapper:has(option[value="quarters"]:checked) .timeline-scale-quarter-icon {
  display: block;
}

.timeline-scale-select-wrapper:has(option[value="years"]:checked) .timeline-scale-year-icon {
  display: block;
}

.toolbar-group--timeline-overview
  .timeline-scale-select-wrapper:has(option[value="hours"]:checked)
  select,
.toolbar-group--timeline-overview
  .timeline-scale-select-wrapper:has(option[value="days"]:checked)
  select,
.toolbar-group--timeline-overview
  .timeline-scale-select-wrapper:has(option[value="weeks"]:checked)
  select,
.toolbar-group--timeline-overview
  .timeline-scale-select-wrapper:has(option[value="months"]:checked)
  select,
.toolbar-group--timeline-overview
  .timeline-scale-select-wrapper:has(option[value="quarters"]:checked)
  select,
.toolbar-group--timeline-overview
  .timeline-scale-select-wrapper:has(option[value="years"]:checked)
  select {
  padding-left: 36px;
}

.toolbar-group--timeline-overview .timeline-icon-button {
  align-items: center;
  display: inline-flex;
  font-size: 19px;
  font-weight: 850;
  height: 30px;
  justify-content: center;
  line-height: 1;
  min-width: 30px;
  padding: 0;
  width: 30px;
}

.toolbar-group--timeline-overview .toolbar-button-primary,
.toolbar-group--timeline-overview .modern-button.toolbar-button-primary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.62), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 138, 189, 0.28), transparent 18%),
    linear-gradient(135deg, var(--glass-aqua, #2ec7dd), var(--glass-cyan, #37b7ff) 48%, var(--glass-indigo, #5268d9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(8, 52, 98, 0.24),
    0 8px 20px rgba(26, 135, 197, 0.24);
  text-shadow: 0 1px 1px rgba(7, 38, 72, 0.22);
}

.toolbar-group--timeline-overview .toolbar-button-primary:hover,
.toolbar-group--timeline-overview .modern-button.toolbar-button-primary:hover {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.7), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 138, 189, 0.32), transparent 18%),
    linear-gradient(135deg, #36d6e9, #32bfff 46%, #5d73e6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 10px 24px rgba(27, 146, 206, 0.28);
}

.toolbar-group--timeline-overview .toolbar-button-secondary {
  color: var(--glass-ink, #10294b);
  font-weight: 750;
}

.toolbar-group--timeline-overview .button-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  margin-right: 6px;
}

.toolbar-group--view-overview {
  align-self: stretch;
  justify-content: flex-start;
  width: 410px;
}

.toolbar-group--view-overview .toolbar-group__controls {
  align-content: flex-start;
  flex-wrap: nowrap;
}

.toolbar-group--view-overview select {
  appearance: none;
  border: 1px solid rgba(66, 135, 168, 0.22);
  background:
    linear-gradient(145deg, var(--glass-surface-bright, rgba(255, 255, 255, 0.78)), rgba(238, 253, 255, 0.5)),
    var(--glass-surface, rgba(255, 255, 255, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(32, 154, 194, 0.07),
    0 5px 14px rgba(17, 58, 93, 0.07);
  color: var(--glass-ink, #10294b);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  min-height: 32px;
  padding: 6px 30px 6px 10px;
}

.toolbar-group--view-overview select:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(225, 252, 255, 0.64)),
    rgba(255, 255, 255, 0.7);
  border-color: rgba(48, 171, 210, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 7px 18px rgba(21, 104, 146, 0.1);
}

.toolbar-group--view-overview .layout-view {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(238, 253, 255, 0.48)),
    rgba(255, 255, 255, 0.56);
  border-color: rgba(66, 135, 168, 0.22);
}

.toolbar-group--view-overview .layout-view__button {
  align-items: center;
  border: 0;
  color: var(--glass-ink, #10294b);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 750;
  justify-content: center;
  min-height: 32px;
  padding: 6px 10px;
}

.toolbar-group--view-overview .layout-view__button.is-active {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.62), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 138, 189, 0.28), transparent 18%),
    linear-gradient(135deg, var(--glass-aqua, #2ec7dd), var(--glass-cyan, #37b7ff) 48%, var(--glass-indigo, #5268d9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(8, 52, 98, 0.24),
    0 8px 20px rgba(26, 135, 197, 0.24);
  text-shadow: 0 1px 1px rgba(7, 38, 72, 0.22);
}

.toolbar-group--view-overview .layout-view__button.is-active .button-icon {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

.toolbar-group--view-overview .layout-view__button:not(.is-active):hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(225, 252, 255, 0.64)),
    rgba(255, 255, 255, 0.7);
}

.toolbar-group--view-overview .button-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  margin-right: 6px;
}

.button-icon--chronological,
.button-icon--layout-image {
  flex: 0 0 22px;
  height: 22px;
  width: 22px;
}

.button-icon--chronological img,
.button-icon--layout-image img {
  display: block;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.button-icon--controls-image,
.button-icon--focus-image,
.button-icon--load-boards-image,
.button-icon--today-image {
  align-items: center;
  display: inline-flex;
  flex: 0 0 22px;
  height: 22px;
  justify-content: center;
  margin-right: 6px;
  width: 22px;
}

.button-icon--controls-image img,
.button-icon--focus-image img,
.button-icon--load-boards-image img,
.button-icon--today-image img {
  display: block;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.project-overview:empty {
  display: none;
}

.project-overview__main {
  border: 1px solid rgba(66, 135, 168, 0.16);
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 255, 255, 0.86), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(239, 250, 255, 0.58)),
    rgba(255, 255, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 22px rgba(17, 58, 93, 0.07);
  padding: 14px;
}

.project-overview__main {
  align-items: center;
  display: grid;
  gap: 8px 10px;
  grid-template-columns: minmax(0, 1fr) fit-content(40%);
  width: var(--gantt-task-panel-width);
  min-width: 0;
}

.project-overview__main > .project-overview__label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.overview-control-row .project-overview {
  grid-template-columns: minmax(0, 1fr);
}

.jump-date-modal {
  align-items: center;
  background: rgba(9, 30, 66, 0.38);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 20px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 12000;
}

.jump-date-modal__dialog {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 250, 255, 0.94));
  border: 1px solid rgba(66, 135, 168, 0.3);
  box-shadow: 0 24px 60px rgba(7, 38, 72, 0.28);
  max-width: 420px;
  padding: 24px;
  position: relative;
  width: 100%;
}

.jump-date-modal__close {
  background: transparent;
  border: 0;
  color: #526581;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 10px;
}

.jump-date-modal__form {
  display: grid;
  gap: 12px;
}

.jump-date-modal__form h2 {
  color: #10294b;
  font-size: 22px;
}

.jump-date-modal__form p {
  color: #526581;
  font-size: 13px;
  line-height: 1.45;
}

.jump-date-modal__form label {
  color: #253858;
  font-size: 12px;
  font-weight: 800;
}

.jump-date-modal__form input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(66, 135, 168, 0.34);
  color: #10294b;
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
}

.jump-date-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.jump-date-modal__button {
  border: 1px solid rgba(66, 135, 168, 0.28);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 14px;
}

.jump-date-modal__button--secondary {
  background: rgba(255, 255, 255, 0.74);
  color: #253858;
}

.jump-date-modal__button--primary {
  background: linear-gradient(135deg, #2ec7dd, #37b7ff 48%, #5268d9);
  color: #ffffff;
}

.add-task-modal {
  align-items: flex-start;
  background: rgba(9, 30, 66, 0.24);
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  left: 0;
  padding: 86px 28px 28px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 12000;
}

.add-task-modal__dialog {
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.98), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(232, 250, 255, 0.96));
  border: 1px solid rgba(66, 135, 168, 0.3);
  box-shadow: 0 24px 60px rgba(7, 38, 72, 0.28);
  max-width: 430px;
  padding: 24px;
  position: relative;
  width: 100%;
}

.add-task-modal__close {
  background: transparent;
  border: 0;
  color: #526581;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 10px;
}

.add-task-modal__form {
  display: grid;
  gap: 12px;
}

.add-task-modal__form h2 {
  color: #10294b;
  font-size: 22px;
}

.add-task-modal__form > p {
  color: #526581;
  font-size: 13px;
  line-height: 1.45;
}

.add-task-modal__step {
  display: grid;
  gap: 8px;
}

.add-task-modal__step label {
  color: #253858;
  font-size: 12px;
  font-weight: 800;
}

.add-task-modal__step input,
.add-task-modal__step select {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(66, 135, 168, 0.34);
  color: #10294b;
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.add-task-modal__step input:focus,
.add-task-modal__step select:focus {
  border-color: #2a9ddb;
  box-shadow: 0 0 0 2px rgba(42, 157, 219, 0.18);
  outline: none;
}

.add-task-modal__step-indicator {
  color: #5268d9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.add-task-modal__hint {
  color: #6b778c;
  font-size: 11px;
  line-height: 1.4;
}

.add-task-modal__status {
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  padding: 9px 11px;
}

.add-task-modal__status.is-info {
  background: rgba(0, 121, 191, 0.12);
  color: #0747a6;
}

.add-task-modal__status.is-error {
  background: rgba(235, 90, 70, 0.14);
  color: #b04632;
}

.add-task-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.add-task-modal__button {
  border: 1px solid rgba(66, 135, 168, 0.28);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 14px;
}

.add-task-modal__button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.add-task-modal__button--secondary {
  background: rgba(255, 255, 255, 0.78);
  color: #253858;
}

.add-task-modal__button--primary {
  background: linear-gradient(135deg, #2ec7dd, #37b7ff 48%, #5268d9);
  color: #ffffff;
}

.label-editor-modal {
  align-items: center;
  background: rgba(9, 30, 66, 0.38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 12000;
}

.label-editor-modal__dialog {
  background: #ffffff;
  border: 1px solid rgba(66, 135, 168, 0.3);
  box-shadow: 0 24px 60px rgba(7, 38, 72, 0.28);
  max-height: min(720px, 90vh);
  max-width: 520px;
  overflow: hidden;
  padding: 24px;
  position: relative;
  width: 100%;
}

.label-editor-modal__close {
  background: transparent;
  border: 0;
  color: #526581;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  right: 12px;
  top: 10px;
}

.label-editor-modal__form {
  display: grid;
  gap: 12px;
}

.label-editor-modal__form h2 {
  color: #10294b;
  font-size: 21px;
}

.label-editor-modal__form > p {
  color: #526581;
  font-size: 13px;
}

.label-editor-modal__form > label {
  color: #253858;
  font-size: 12px;
  font-weight: 800;
}

.label-editor-modal__form > input {
  border: 1px solid rgba(66, 135, 168, 0.34);
  font: inherit;
  min-height: 42px;
  padding: 8px 10px;
}

.label-editor-modal__list {
  display: grid;
  gap: 8px;
  max-height: min(430px, 55vh);
  overflow-y: auto;
  padding-right: 4px;
}

.label-editor-modal__item {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 22px minmax(0, 1fr);
}

.label-editor-modal__item input {
  height: 18px;
  width: 18px;
}

.label-editor-modal__label {
  background: var(--label-color, #dfe1e6);
  border-radius: 5px;
  color: var(--label-text, #172b4d);
  font-weight: 750;
  min-height: 38px;
  overflow: hidden;
  padding: 9px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.label-editor-modal__empty,
.label-editor-modal__status {
  color: #526581;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 0;
}

.label-editor-modal__status.is-error {
  color: #b04632;
}

.label-editor-modal__status.is-info {
  color: #0747a6;
}

.label-editor-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.label-editor-modal__button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 14px;
}

.label-editor-modal__button--secondary {
  background: #f4f5f7;
  color: #253858;
}

.label-editor-modal__button--primary {
  background: linear-gradient(135deg, #2ec7dd, #37b7ff 48%, #5268d9);
  color: #ffffff;
}

@media (max-width: 720px) {
  .add-task-modal {
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
}

.project-overview__label {
  color: var(--glass-muted, #5e6c84);
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.project-overview__bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(97, 117, 138, 0.28);
  display: flex;
  container-type: inline-size;
  height: 42px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.project-overview__bar-fill {
  align-self: stretch;
  background:
    linear-gradient(90deg, rgba(89, 190, 72, 0.94), rgba(70, 174, 82, 0.94)),
    #59be48;
  display: block;
  min-width: 0;
  transition: width 180ms ease;
}

.project-overview__bar-text {
  color: #10264c;
  font-size: 18px;
  font-weight: 900;
  left: 50%;
  position: absolute;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 1.1;
  padding: 0 4px;
  white-space: normal;
  width: 100%;
}

@container (max-width: 220px) {
  .project-overview__bar-text {
    font-size: 14px;
  }
}

.project-overview__meta {
  color: #0d4f25;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.empty-state {
  align-items: center;
  color: #5e6c84;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 220px;
  padding: 28px;
  text-align: center;
}

.empty-state__icon {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(225, 248, 255, 0.72)),
    rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(66, 135, 168, 0.18);
  color: #0b76a2;
  display: flex;
  font-size: 28px;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.empty-state h2 {
  color: #172b4d;
  font-size: 20px;
  margin: 0;
}

.empty-state p {
  font-size: 14px;
  margin: 0;
}

.layout-mode-chronological .task-column::after {
  background:
    linear-gradient(145deg, rgba(216, 244, 255, 0.9), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(66, 135, 168, 0.16);
  color: #315f7d;
  content: "Chronological task list";
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  margin-left: 10px;
  padding: 5px 8px;
  vertical-align: middle;
}

body.controls-collapsed .infrequently-modified-controls,
body.focus-mode .toolbar-groups,
body.focus-mode .overview-control-row > .project-overview,
body.focus-mode .legend,
body.focus-mode #render-limit-message {
  display: none !important;
}

body.focus-mode #gantt-container {
  padding-top: 12px;
}

body.focus-mode .header {
  margin-bottom: 8px;
}

body.focus-mode .header h1 {
  font-size: 22px;
  margin-bottom: 8px;
}

body.focus-mode .header-actions {
  margin-bottom: 10px;
}

body.focus-mode .header-control-strip {
  width: auto;
}

body.focus-mode .gantt-wrapper {
  min-height: calc(100vh - 140px);
}

@media (max-width: 1100px) {
  .overview-control-row {
    grid-template-columns: 1fr;
  }

  .toolbar-group--view-overview,
  .toolbar-group--timeline-overview {
    width: 100%;
  }

  .toolbar-group--view-overview .toolbar-group__controls,
  .toolbar-group--timeline-overview .toolbar-group__controls {
    flex-wrap: wrap;
  }

  .project-overview,
  .overview-control-row .project-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-control-strip {
    flex-direction: column;
  }

  .header-actions {
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 0;
  }

  .task-search {
    min-width: 100%;
  }
}

/* --- Collapsible board/list detail panels --- */

.task-board-header,
.task-group-header {
  transition: min-height 160ms ease, padding 160ms ease;
}

.task-board-header[data-meta-state="collapsed"],
.task-group-header[data-meta-state="collapsed"] {
  align-items: center;
  flex-wrap: nowrap;
}

.task-board-header[data-meta-state="collapsed"] .task-group-header-label-wrapper,
.task-group-header[data-meta-state="collapsed"] .task-group-header-label-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.task-board-header[data-meta-state="collapsed"] .task-board-header-label,
.task-group-header[data-meta-state="collapsed"] .task-group-header-label {
  flex: 0 1 auto;
  min-width: 0;
}

.task-board-header[data-meta-state="collapsed"] .task-group-header-progress,
.task-group-header[data-meta-state="collapsed"] .task-group-header-progress {
  flex: 1 1 112px;
  min-width: 112px;
}

.task-board-header[data-meta-state="collapsed"] .task-group-header-progress__bar,
.task-group-header[data-meta-state="collapsed"] .task-group-header-progress__bar {
  flex-basis: 112px;
  height: 30px;
  min-width: 112px;
}

.task-header-meta[hidden],
.task-header-meta.is-collapsed {
  display: none !important;
}

.header-meta-toggle {
  appearance: none;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(229, 248, 255, 0.6)),
    rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(66, 135, 168, 0.18);
  color: #315f7d;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  gap: 5px;
  line-height: 1;
  min-height: 26px;
  padding: 5px 8px;
  text-transform: none;
  letter-spacing: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 3px 8px rgba(17, 58, 93, 0.05);
}

.header-meta-toggle:hover,
.header-meta-toggle[aria-expanded="true"] {
  border-color: rgba(48, 171, 210, 0.34);
  color: #0b5f8c;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(215, 247, 255, 0.72)),
    rgba(255, 255, 255, 0.74);
}

.header-meta-toggle__icon {
  font-size: 12px;
  line-height: 1;
}

.task-board-header-label + .header-meta-toggle,
.task-group-header-label-wrapper + .header-meta-toggle {
  margin-left: auto;
}

.task-board-header[data-meta-state="collapsed"] .task-board-header-label,
.task-group-header[data-meta-state="collapsed"] .task-group-header-label-wrapper {
  flex: 1 1 auto;
}

.task-board-header[data-meta-state="expanded"],
.task-group-header[data-meta-state="expanded"] {
  align-items: flex-start;
}

.task-board-header[data-meta-state="expanded"] .task-header-meta,
.task-group-header[data-meta-state="expanded"] .task-header-meta {
  flex-basis: 100%;
  margin-left: 28px;
}

/* Keep all View mode buttons visible at browser zoom levels and narrow widths. */
.toolbar-group--view-overview {
  min-width: min(100%, 410px);
  width: auto;
}

.toolbar-group--view-overview .toolbar-group__controls {
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

.toolbar-group--view-overview .layout-view {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  overflow: visible;
}

.toolbar-group--view-overview .layout-view__button {
  flex: 1 1 120px;
  min-width: max-content;
  white-space: nowrap;
}

.toolbar-group--view-overview #layout-view-calendar {
  flex-basis: 112px;
}

.toolbar-group--view-overview .chronological-sort {
  flex: 1 1 160px;
  min-width: 0;
}

/* Anchored Assignee filter dropdown. */
.toolbar-group--filters {
  overflow: visible;
  z-index: 120;
}

.toolbar-group--filters .toolbar-group__controls {
  overflow: visible;
}

.assignee-filter {
  display: inline-flex;
  position: relative;
  z-index: 130;
}

.assignee-filter__button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.assignee-filter__button.is-active,
.assignee-filter__button[aria-expanded="true"] {
  border-color: rgba(48, 171, 210, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(48, 171, 210, 0.12),
    0 7px 18px rgba(21, 104, 146, 0.1);
}

.assignee-filter__panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 252, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(66, 135, 168, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 34px rgba(17, 58, 93, 0.18);
  color: #10294b;
  left: 0;
  min-width: 280px;
  padding: 12px;
  position: absolute;
  top: calc(100% + 8px);
  width: min(320px, 86vw);
  z-index: 100000;
}

.assignee-filter__panel::before {
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(66, 135, 168, 0.24);
  border-top: 1px solid rgba(66, 135, 168, 0.24);
  content: "";
  height: 12px;
  left: 24px;
  position: absolute;
  top: -7px;
  transform: rotate(45deg);
  width: 12px;
}

.assignee-filter__panel.is-hidden {
  display: none;
}

.assignee-filter__header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.assignee-filter__header h3 {
  color: #10294b;
  font-size: 15px;
  font-weight: 950;
  margin: 0;
}

.assignee-filter__close {
  align-items: center;
  appearance: none;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(66, 135, 168, 0.16);
  color: #526581;
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 950;
  height: 26px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 26px;
}

.assignee-filter__summary {
  color: #526581;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  margin: 0 0 10px;
}

.assignee-filter__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}

.assignee-filter__option {
  align-items: center;
  appearance: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(239, 251, 255, 0.68));
  border: 1px solid rgba(66, 135, 168, 0.16);
  color: #10294b;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  min-height: 48px;
  padding: 7px 9px;
  text-align: left;
  width: 100%;
}

.assignee-filter__option:hover {
  border-color: rgba(48, 171, 210, 0.32);
  transform: translateY(-1px);
}

.assignee-filter__option.is-selected {
  background:
    linear-gradient(145deg, rgba(230, 255, 244, 0.96), rgba(240, 252, 255, 0.84));
  border-color: rgba(49, 146, 43, 0.38);
  box-shadow: 0 0 0 2px rgba(97, 189, 79, 0.12);
}

.assignee-filter__avatar {
  align-items: center;
  background: linear-gradient(145deg, #e9f7ff, #ffffff);
  border: 2px solid rgba(76, 154, 255, 0.3);
  color: #0747a6;
  display: inline-flex;
  font-size: 11px;
  font-weight: 950;
  height: 32px;
  justify-content: center;
  overflow: hidden;
  width: 32px;
}

.assignee-filter__avatar img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.assignee-filter__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.assignee-filter__name {
  color: #10294b;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignee-filter__meta,
.assignee-filter__empty {
  color: #6b778c;
  font-size: 10px;
  font-weight: 750;
}

.assignee-filter__check {
  align-items: center;
  background: #61bd4f;
  color: #ffffff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.assignee-filter__option:not(.is-selected) .assignee-filter__check {
  background: transparent;
}

.assignee-filter__footer {
  border-top: 1px solid rgba(9, 30, 66, 0.08);
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
}

.assignee-filter__clear {
  appearance: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(66, 135, 168, 0.2);
  color: #0b5f8c;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  padding: 6px 9px;
}

.assignee-filter__clear:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Task bars and their edges remain interactive after global overrides. */
.timeline-row .timeline-bar--task,
.timeline-bar--task[data-date-editable="true"] .timeline-bar__resize-handle {
  pointer-events: auto !important;
}

.timeline-bar--task.is-date-resizing {
  cursor: ew-resize !important;
}

/* Company Events: local-only context rows for launches, meetings, milestones, and Date TBC items. */
.global-hierarchy-toggle--add-event {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(237, 250, 255, 0.9));
  border-color: rgba(48, 171, 210, 0.28);
  color: #0f4f7d;
}

.global-hierarchy-toggle--add-event:hover {
  border-color: rgba(48, 171, 210, 0.42);
  box-shadow: 0 10px 22px rgba(48, 171, 210, 0.12);
}

.add-event-modal__dialog {
  max-width: 520px;
}

.add-event-modal__fieldset {
  border: 1px solid rgba(66, 135, 168, 0.18);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
}

.add-event-modal__fieldset legend {
  color: #10294b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 0 6px;
  text-transform: uppercase;
}

.add-event-modal__radio {
  align-items: flex-start;
  background: rgba(239, 251, 255, 0.62);
  border: 1px solid rgba(66, 135, 168, 0.14);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 9px;
  padding: 9px 10px;
}

.add-event-modal__radio input {
  margin-top: 2px;
}

.add-event-modal__radio strong {
  color: #10294b;
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.add-event-modal__radio span {
  color: #526581;
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.add-event-modal__date-fields {
  display: grid;
  gap: 8px;
}

.add-event-modal__date-fields.is-hidden {
  display: none;
}

.add-event-modal textarea {
  min-height: 78px;
  resize: vertical;
}

.company-event-section-row {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(241, 249, 255, 0.92), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(9, 30, 66, 0.08);
  border-top: 1px solid rgba(66, 135, 168, 0.16);
  color: #10294b;
  display: flex;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
}

.company-event-section-row__icon {
  font-size: 15px;
  line-height: 1;
}

.company-event-section-row__label {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.company-event-section-row__detail {
  color: #6b778c;
  font-size: 10px;
  font-weight: 800;
  margin-left: auto;
}

.company-event-row {
  background:
    linear-gradient(135deg, rgba(255, 250, 239, 0.9), rgba(255, 255, 255, 0.92));
  border-left: 3px solid rgba(255, 171, 0, 0.7);
}

.company-event-row--tbc {
  background:
    linear-gradient(135deg, rgba(245, 248, 252, 0.94), rgba(255, 255, 255, 0.9));
  border-left-style: dashed;
  border-left-color: rgba(82, 101, 129, 0.58);
}

.company-event-row__title {
  align-items: center;
  display: flex;
  gap: 7px;
  min-width: 0;
}

.company-event-icon {
  align-items: center;
  background: #fff7df;
  border: 1px solid rgba(255, 171, 0, 0.34);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 24px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.company-event-row__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-event-row__meta {
  flex: 0 0 auto;
  margin-left: auto;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-row-event-section {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(241, 249, 255, 0.7), rgba(255, 255, 255, 0.48));
  border-bottom: 1px solid rgba(9, 30, 66, 0.07);
  color: #10294b;
  display: flex;
  gap: 8px;
  min-height: 30px;
  padding-left: 14px;
  position: relative;
}

.timeline-event-section-label {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-event-section-detail {
  color: #6b778c;
  font-size: 10px;
  font-weight: 800;
}

.timeline-row-event {
  min-height: 32px;
  position: relative;
}

.timeline-event {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 245, 218, 0.98), rgba(255, 255, 255, 0.96));
  border: 2px solid rgba(255, 171, 0, 0.7);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(255, 171, 0, 0.12);
  color: #10294b;
  display: flex;
  gap: 6px;
  height: 24px;
  left: 0;
  max-width: calc(100% - 4px);
  overflow: hidden;
  padding: 0 9px 0 5px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  z-index: 4;
}

.timeline-event--tbc {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96) 0,
      rgba(255, 255, 255, 0.96) 8px,
      rgba(237, 243, 249, 0.96) 8px,
      rgba(237, 243, 249, 0.96) 16px
    );
  border-color: rgba(82, 101, 129, 0.58);
  border-style: dashed;
  box-shadow: none;
}

.timeline-event--marker {
  justify-content: center;
}

.timeline-event__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 18px;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.timeline-event__name {
  font-size: 11px;
  font-weight: 950;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timeline-event__meta {
  color: #526581;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Rename is a separate, name-only action; reserve its space to avoid hover jumps. */
.quick-rename-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #bcdde9;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #eafaff);
  color: #285879;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease, background 120ms ease;
}
.task-row--item:hover .quick-rename-button,
.task-row--item:focus-within .quick-rename-button,
.task-board-header:hover .quick-rename-button,
.task-board-header:focus-within .quick-rename-button,
.calendar-task-chip:hover .quick-rename-button,
.calendar-task-chip:focus-within .quick-rename-button {
  opacity: 1;
  pointer-events: auto;
}
.quick-rename-button:hover { background: #dff6ff; }
.task-board-header-label-wrapper { position: relative; }
.task-board-header-label-wrapper > .quick-rename-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.quick-rename-button:focus-visible,
.quick-rename-dialog :focus-visible { outline: 3px solid #27aecf; outline-offset: 2px; }
.calendar-task-open {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.calendar-task-chip > .quick-rename-button {
  position: absolute;
  right: 6px;
  bottom: 4px;
  width: 24px;
  height: 24px;
}
.quick-rename-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #102a4855;
  backdrop-filter: blur(4px);
}
.quick-rename-dialog {
  box-sizing: border-box;
  width: min(420px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #c6e0e9;
  border-radius: 18px;
  background: #fff;
  color: #18344e;
  box-shadow: 0 20px 60px #102a4833;
}
.quick-rename-dialog h2 { margin: 0; font-size: 22px; }
#quick-rename-hint { margin: 8px 0 20px; color: #61768c; font-size: 14px; }
.quick-rename-dialog label { display: block; margin-bottom: 8px; font-weight: 650; font-size: 14px; }
.quick-rename-dialog input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #bcd5e0;
  border-radius: 9px;
  background: #fafeff;
  color: inherit;
  font: inherit;
}
.quick-rename-dialog input[aria-invalid="true"] { border-color: #b26026; }
#quick-rename-error { margin: 10px 0; color: #994719; font-size: 14px; }
.quick-rename-dialog footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.quick-rename-dialog button {
  padding: 9px 14px;
  border: 1px solid #c5dfe9;
  border-radius: 9px;
  background: #fff;
  color: #18344e;
  cursor: pointer;
  font: inherit;
}
.quick-rename-dialog .quick-rename-save { border-color: transparent; background: linear-gradient(120deg, #28bcd2, #527de0); color: #fff; font-weight: 650; }
.quick-rename-dialog :disabled { opacity: .6; cursor: wait; }
@media (hover: none), (pointer: coarse) {
  .quick-rename-button { opacity: 1; pointer-events: auto; }
}

/* Project names open an overview; the adjacent chevron still only expands the tree. */
button.task-board-header-label {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}
button.task-board-header-label:hover { color: #087f9e; text-decoration: underline; text-underline-offset: 3px; }
button.task-board-header-label:focus-visible,
.project-overview-dialog :focus-visible { outline: 3px solid #27aecf; outline-offset: 3px; }
.project-overview-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #102a4855;
  backdrop-filter: blur(4px);
}
.project-overview-dialog {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100dvh - 40px);
  border: 1px solid #c6e0e9;
  border-radius: 20px;
  background: #fff;
  color: #18344e;
  font-size: 16px;
  line-height: 1.45;
  box-shadow: 0 20px 60px #102a4833;
  overflow: hidden;
}
.project-overview-dialog *, .project-overview-dialog *::before, .project-overview-dialog *::after { box-sizing: border-box; min-width: 0; }
.project-overview__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px 20px;
  background: linear-gradient(120deg, #fff, #eefbff);
  border-bottom: 1px solid #e0ebf1;
}
#project-overview-label { margin: 0 0 6px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: #56818f; font-weight: 700; }
.project-overview__title-row { display: flex; align-items: center; gap: 10px; }
#project-overview-title { margin: 0; font-size: 25px; line-height: 1.25; overflow-wrap: anywhere; }
.project-overview-dialog .quick-rename-button { opacity: 1; pointer-events: auto; }
.project-overview-dialog [hidden] { display: none !important; }
.project-overview-dialog button { font: inherit; cursor: pointer; }
.project-overview-dialog [data-overview-close] { flex: 0 0 34px; width: 34px; height: 34px; padding: 0; border: 1px solid #c5dfe9; border-radius: 10px; color: #456c83; background: #fff; }
.project-overview__body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 24px 28px; }
.project-overview__body > section + section { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e6eef3; }
.project-overview-dialog h3 { margin: 0; font-size: 16px; font-weight: 700; }
.project-overview__section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.project-overview__section-heading > strong { font-size: 22px; color: #15965e; }
.project-overview__completion { margin: 5px 0 12px; font-size: 20px; font-weight: 650; }
.project-overview__completion-bar { height: 22px; border: 1px solid #d2e6e7; border-radius: 8px; background: #edf4f7; overflow: hidden; }
.project-overview__completion-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #1bbd8c, #52bd58); }
.project-overview__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.project-overview__stats > div { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid #e0eaf0; border-radius: 12px; background: #f8fbfd; }
.project-overview__stats strong { font-size: 23px; }
.project-overview__stats span, .project-overview__hint { font-size: 13px; color: #60788e; }
.project-overview__stats .project-overview__overdue { background: #fff7ed; border-color: #f1d2a7; color: #995516; }
.project-overview__stats .project-overview__overdue span { color: #995516; }
.project-overview__hint { margin: 6px 0 10px; }
.project-overview__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 14px 0 0; }
.project-overview__dates dt { font-size: 13px; color: #60788e; }
.project-overview__dates dd { margin: 4px 0 0; font-weight: 650; }
.project-overview__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.project-overview__person { display: flex; align-items: center; gap: 10px; }
.project-overview__person strong, .project-overview__person div > span { display: block; overflow-wrap: anywhere; }
.project-overview__person strong { font-size: 14px; }
.project-overview__person div > span { font-size: 13px; color: #60788e; }
.project-overview__avatar { display: inline-flex; flex: 0 0 38px; width: 38px; height: 38px; align-items: center; justify-content: center; border: 2px solid #d9eeef; border-radius: 50%; background: #eaf6fb; color: #356680; font-size: 12px; overflow: hidden; }
.project-overview__avatar img { width: 100%; height: 100%; object-fit: cover; }
.project-overview__tasks { list-style: none; padding: 0; margin: 12px 0 0; }
.project-overview__tasks li + li { border-top: 1px solid #e9eff4; }
.project-overview__tasks button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 12px 0; border: 0; border-radius: 6px; text-align: left; background: transparent; color: inherit; box-shadow: none; }
.project-overview__tasks button:hover { background: #f0faff; }
.project-overview__task-copy { flex: 1; }
.project-overview__task-copy strong, .project-overview__task-copy > span { display: block; overflow-wrap: anywhere; }
.project-overview__task-copy strong { font-size: 14px; }
.project-overview__task-copy > span, .project-overview__task-detail { font-size: 12px; color: #60788e; }
.project-overview__task-detail { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.project-overview__status { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #eaf3fb; color: #426582; font-weight: 600; }
.project-overview__status.is-overdue { background: #fff0dc; color: #995516; }
.project-overview__empty { margin: 12px 0 0; font-size: 14px; color: #60788e; }
.project-overview__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; border-top: 1px solid #e0ebf1; background: #f9fcfe; }
.project-overview__footer > span { font-size: 12px; color: #60788e; }
.project-overview-dialog [data-overview-add] { flex-shrink: 0; padding: 10px 16px; border: 0; border-radius: 10px; background: linear-gradient(120deg, #22b6ce, #527de0); color: #fff; font-weight: 650; }
@media (max-width: 560px) {
  .project-overview-modal { padding: 10px; }
  .project-overview-dialog { max-height: calc(100dvh - 20px); }
  .project-overview__header, .project-overview__body { padding: 18px; }
  #project-overview-title { font-size: 22px; }
  .project-overview__stats { gap: 6px; }
  .project-overview__stats > div { padding: 9px; }
  .project-overview__people { grid-template-columns: 1fr; }
  .project-overview__tasks button { flex-direction: column; align-items: flex-start; gap: 7px; }
  .project-overview__task-detail { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
  .project-overview__footer { padding: 14px 18px; flex-wrap: wrap; }
}
