.mobile-project-switch {
  display: none;
}
@media (max-width: 650px) {
  .mobile-project-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #fff;
    font-size: 13px;
    color: #46515a;
  }
  .mobile-project-switch .project-picker {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 70%;
    margin: 0;
  }
}
.service-selection {
  border: 1px solid #e0e2e6;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
  min-width: 0;
}
.service-selection legend {
  font-weight: 650;
  padding: 0 5px;
}
.service-selection label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
}
.service-selection input {
  width: 17px;
  height: 17px;
  accent-color: #9b7500;
}
.services:has(> .service:nth-child(4)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.board-service {
  background: #eae3f4;
  color: #72578c;
}
#project-board {
  min-width: 0;
  overflow-wrap: anywhere;
}
.plan-heading,
.plan-controls,
.plan-toolbar,
.plan-filters,
.plan-tools,
.plan-task-top,
.plan-task footer,
.plan-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-heading,
.plan-controls,
.plan-toolbar,
.plan-tools,
.plan-filters {
  flex-wrap: wrap;
}
.plan-heading h2 {
  margin: 6px 0;
  font-size: clamp(22px, 2.3vw, 32px);
}
.plan-heading p {
  color: #586471;
  margin: 4px 0;
}
.plan-tools {
  justify-content: flex-start;
}
.plan-tools label {
  font-size: 13px;
}
.plan-controls,
.plan-toolbar {
  margin: 16px 0;
}
.plan-controls {
  padding: 12px 0;
  border-block: 1px solid #dce1e5;
}
.plan-overview,
.plan-milestones,
.plan-changes {
  background: white;
  border: 1px solid #dee3e6;
  border-radius: 14px;
}
.plan-overview {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(290px, 1fr);
  gap: 16px 28px;
  padding: 20px;
  margin-top: 16px;
}
.plan-focus h3,
.plan-milestones h3 {
  margin: 0 0 7px;
  font-size: 16px;
}
.plan-focus p,
.plan-note {
  white-space: pre-wrap;
}
.plan-focus textarea {
  width: 100%;
  resize: vertical;
}
.plan-overview dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  align-self: center;
}
.plan-overview dl div {
  border-left: 1px solid #dce1e5;
  padding-left: 12px;
}
.plan-overview dt {
  font-size: 12px;
  color: #5c6571;
}
.plan-overview dd {
  margin: 2px 0;
  font:
    600 clamp(20px, 2vw, 32px)/1.25 Consolas,
    monospace;
}
.plan-overview progress {
  width: 100%;
  height: 7px;
  grid-column: 1/-1;
  accent-color: #548235;
}
.plan-changes {
  margin: 12px 0;
  padding: 12px 16px;
  font-size: 14px;
}
.plan-changes summary {
  cursor: pointer;
  font-weight: 600;
}
.plan-changes ul {
  max-height: 240px;
  overflow: auto;
}
.plan-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.plan-column {
  --tone: #6b7788;
  background: #f0f2f4;
  border: 1px solid #d9dfe2;
  border-radius: 12px;
  min-width: 0;
}
.plan-column[data-drop='inProgress'] {
  --tone: #2e75b6;
  background: #edf5f9;
}
.plan-column[data-drop='completed'] {
  --tone: #548235;
  background: #f1f6ed;
}
.plan-column[data-drop='delayed'] {
  --tone: #ae3b35;
  background: #fcf1ef;
}
.plan-column[data-drop='blocked'] {
  --tone: #82511e;
  background: #fbf4e9;
}
@media (min-width: 1201px) {
  .plan-columns:has([data-drop='blocked']) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.plan-task-detail,
.plan-edit-details {
  margin-top: 8px;
}
.plan-task-detail summary,
.plan-edit-details summary {
  cursor: pointer;
  font-weight: 600;
}
.plan-task-detail {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.plan-task-detail dl {
  margin: 8px 0 0;
}
.plan-task-detail dt {
  margin-top: 8px;
  color: #596674;
}
.plan-task-detail dd {
  margin: 2px 0;
  white-space: pre-line;
}
.plan-column-head {
  padding: 12px;
  color: var(--tone);
}
.plan-column-head h3 {
  margin: 0;
  font-size: 16px;
}
.plan-column-head h3:before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--tone);
}
.plan-column-head span {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.plan-stack {
  display: grid;
  gap: 9px;
  padding: 0 8px 10px;
}
.plan-task {
  background: #fff;
  border: 1px solid #dce0e2;
  border-radius: 9px;
  padding: 12px;
  min-width: 0;
}
.plan-task-top {
  font-size: 12px;
  align-items: baseline;
}
.plan-task-top b {
  font-family: Consolas, monospace;
  color: var(--tone);
}
.plan-task h4 {
  font-size: 15px;
  margin: 9px 0;
}
.plan-task h4 button {
  font: inherit;
  text-align: left;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.plan-task time,
.plan-task-top small,
.plan-empty {
  color: #616c77;
  font-size: 12px;
}
.plan-task footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e7e9ea;
  font-size: 13px;
  flex-wrap: wrap;
}
.plan-task footer select {
  max-width: 100%;
  min-height: 32px;
}
.plan-empty {
  padding: 0 4px;
}
.plan-milestones {
  margin-top: 16px;
  padding: 16px;
}
.plan-milestones ol {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  gap: 16px;
}
.plan-milestones li {
  border-left: 3px solid #d3ae55;
  padding-left: 10px;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.plan-milestones li button {
  justify-self: start;
}
.plan-filters input,
.plan-filters select,
.plan-tools select,
.plan-focus textarea {
  font: inherit;
  border: 1px solid #cbd1d6;
  border-radius: 7px;
  padding: 7px 10px;
  max-width: 100%;
}
.plan-filters input {
  width: 280px;
}
.plan-note {
  font-size: 13px;
  color: #46515a;
}
@media (max-width: 1200px) {
  .services:has(> .service:nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .services:has(> .service:nth-child(4)),
  .plan-overview,
  .plan-columns {
    grid-template-columns: 1fr;
  }
  .plan-overview {
    padding: 14px;
  }
  .plan-tools,
  .plan-filters {
    gap: 8px;
    max-width: 100%;
  }
  .plan-filters label {
    max-width: 100%;
  }
  .plan-milestones ol {
    display: grid;
  }
  .plan-overview dl div {
    padding-left: 6px;
  }
  .plan-controls .btn {
    min-height: 40px;
  }
  .plan-heading h2 {
    font-size: 23px;
  }
}
