:root {
  --ink: #101817;
  --muted: #52615e;
  --surface: #ffffff;
  --line: #dce5e2;
  --wash: #f3f7f5;
  --green: #006b5f;
  --green-dark: #063f39;
  --gold: #d6b03d;
  --coral: #dc6b57;
  --mint: #8dd7c6;
}

/* Сквозная диспетчерская общего плана */
.capacity-page .direction-snapshot {
  position: relative;
  overflow: hidden;
  gap: 18px;
  border: 0;
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at 86% 12%, rgba(105, 209, 190, .2), transparent 28%),
    linear-gradient(145deg, #07584f 0%, #06483f 100%);
  box-shadow: 0 20px 50px rgba(7, 70, 62, .16);
  color: #fff;
}

.capacity-page .direction-snapshot::after {
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

.direction-command-head,
.overall-attention-head,
.direction-card-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.direction-command-head {
  position: relative;
  z-index: 1;
  align-items: flex-start;
}

.direction-command-head .eyebrow {
  color: #e0bf4a;
}

.direction-command-head h2 {
  margin: 4px 0 5px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
}

.direction-command-head p:last-child {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
}

.direction-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  padding: 8px 11px;
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.direction-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62dac6;
  box-shadow: 0 0 0 5px rgba(98, 218, 198, .12);
}

.direction-command-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.direction-command-summary article {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .07);
  padding: 12px 14px;
}

.direction-command-summary span,
.direction-command-summary em {
  overflow: hidden;
  color: rgba(255, 255, 255, .62);
  font-size: .68rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction-command-summary strong {
  font-size: 1.45rem;
  line-height: 1.1;
}

.direction-command-summary article.is-warning strong {
  color: #f0cf66;
}

.direction-command-summary article.is-risk strong {
  color: #ff847d;
}

.direction-month-summary,
.direction-card-months {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.direction-month-summary {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
}

.direction-card-months {
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  padding-top: 2px;
}

.direction-month-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  min-width: 0;
  border: 1px solid rgba(0, 107, 95, .14);
  border-radius: 10px;
  background: #f1f7f5;
  padding: 8px 9px;
}

.direction-month-item > div {
  display: grid;
  min-width: 0;
}

.direction-month-item strong {
  overflow: hidden;
  font-size: .72rem;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.direction-month-item b {
  color: var(--green-dark);
  font-size: 1rem;
  line-height: 1.1;
}

.direction-month-item > span,
.direction-month-item em,
.direction-month-item div span {
  overflow: hidden;
  color: var(--muted);
  font-size: .58rem;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction-month-item > span,
.direction-month-item em {
  grid-column: 1 / -1;
}

.direction-month-item.is-warning {
  border-color: rgba(211, 173, 53, .42);
  background: #fff9e9;
}

.direction-month-item.is-warning b {
  color: #947017;
}

.direction-month-item.is-risk {
  border-color: rgba(213, 90, 81, .42);
  background: #fff1ef;
}

.direction-month-item.is-risk b {
  color: #b84139;
}

.direction-month-summary .direction-month-item {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
}

.direction-month-summary .direction-month-item strong,
.direction-month-summary .direction-month-item b {
  color: #ffffff;
}

.direction-month-summary .direction-month-item > span,
.direction-month-summary .direction-month-item em,
.direction-month-summary .direction-month-item div span {
  color: rgba(255, 255, 255, .68);
}

.direction-month-summary .direction-month-item.is-warning b {
  color: #f0cf66;
}

.direction-month-summary .direction-month-item.is-risk b {
  color: #ff847d;
}

.capacity-page .direction-snapshot-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}

.capacity-page .direction-snapshot-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  padding: 15px;
  color: var(--ink);
}

.capacity-page .direction-snapshot-card:last-child {
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.capacity-page .direction-snapshot-card.is-warning {
  box-shadow: inset 0 3px 0 #d3ad35;
}

.capacity-page .direction-snapshot-card.is-risk {
  box-shadow: inset 0 3px 0 #d55a51;
}

.direction-card-title {
  align-items: center;
}

.direction-card-title span {
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 950;
}

.direction-card-title em {
  color: var(--muted);
  font-size: .66rem;
  font-style: normal;
  font-weight: 800;
}

.direction-load-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.direction-load-value strong {
  font-size: 1.75rem;
  line-height: 1;
}

.direction-snapshot-card.is-risk .direction-load-value strong {
  color: #b84139;
}

.direction-load-value span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.direction-load-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: #dfe9e6;
}

.direction-load-track i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b8d7a, #55c5b4);
}

.direction-snapshot-card.is-warning .direction-load-track i {
  background: #d3ad35;
}

.direction-snapshot-card.is-risk .direction-load-track i {
  background: #d55a51;
}

.direction-load-track b {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
  transform: translate(-50%, -50%);
}

.direction-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.direction-card-metrics div {
  display: grid;
  gap: 3px;
  border-radius: 9px;
  background: #eef5f3;
  padding: 8px;
}

.direction-card-metrics span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
}

.direction-card-metrics strong {
  font-size: .88rem;
}

.direction-card-metrics .is-warning strong {
  color: #9a7313;
}

.direction-card-metrics .is-risk strong {
  color: #b84139;
}

.direction-card-unplanned {
  margin: 10px 0 0;
  padding: 7px 9px;
  border-left: 3px solid #d7aa23;
  border-radius: 4px;
  background: #fff8e6;
  color: #755709;
  font-size: 12px;
  line-height: 1.35;
}

.direction-rotation-details {
  overflow: hidden;
  margin: -4px 0 0;
  border: 1px solid #efcbc7;
  border-radius: 9px;
  background: #fff7f6;
}

.direction-rotation-details > summary {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px;
  color: #a43b34;
  cursor: pointer;
  font-size: .66rem;
  font-weight: 900;
  list-style: none;
}

.direction-rotation-details > summary::-webkit-details-marker {
  display: none;
}

.direction-rotation-details > summary::before {
  content: '›';
  font-size: 1rem;
  line-height: 1;
}

.direction-rotation-details[open] > summary::before {
  transform: rotate(90deg);
}

.direction-rotation-details.is-controlled {
  border-color: rgba(12, 123, 75, .30);
  background: #f1faf6;
}

.direction-rotation-details.is-controlled > summary {
  color: #087b4b;
}

.direction-rotation-list {
  display: grid;
  gap: 5px;
  border-top: 1px solid #eadbb4;
  padding: 6px;
}

.direction-rotation-item {
  position: relative;
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid rgba(125, 97, 23, .16);
  border-radius: 7px;
  background: #fff;
  padding: 8px;
  color: var(--ink);
  text-align: left;
}

.direction-rotation-item.is-overdue {
  border-color: #efcbc7;
  background: #fff7f6;
}

.direction-rotation-item.is-upcoming {
  border-color: #efcbc7;
  background: #fff7f6;
}

.direction-rotation-item.is-controlled {
  border-color: rgba(12, 123, 75, .25);
  background: #f5fcf8;
}

.direction-rotation-item strong {
  font-size: .67rem;
}

.direction-rotation-item span,
.direction-rotation-item em {
  color: var(--muted);
  font-size: .6rem;
  font-style: normal;
  line-height: 1.3;
}

.direction-rotation-item.is-overdue em,
.direction-rotation-item.is-upcoming em {
  color: #a43b34;
  font-weight: 800;
}

.direction-overstay-controlled {
  width: fit-content;
  margin-top: 3px;
  border-radius: 999px;
  background: #dff3e8;
  color: #087b4b;
  padding: 3px 6px;
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
}

.direction-overstay-project {
  width: fit-content;
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 2px 0;
  font: inherit;
  font-size: .58rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.direction-overstay-outcome,
.direction-overstay-pending {
  margin: 3px 0 0;
  border-top: 1px solid rgba(20, 54, 49, .10);
  padding-top: 5px;
  font-size: .6rem;
  font-weight: 850;
  line-height: 1.35;
}

.direction-overstay-outcome {
  color: #087b4b;
}

.direction-overstay-pending {
  color: #a43b34;
}

.direction-open {
  display: flex;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 10px 0 0;
  color: var(--green-dark);
  font: inherit;
  font-size: .72rem;
  font-weight: 900;
  cursor: pointer;
}

.overall-attention {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(20, 54, 49, .12);
  border-radius: 18px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 14px 35px rgba(15, 38, 35, .06);
}

.overall-attention-head {
  align-items: center;
}

.overall-attention-head h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

.overall-attention-count {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border-radius: 12px;
  background: #e7f3f0;
  color: var(--green-dark);
  font-weight: 950;
}

.overall-attention-count.has-issues {
  background: #fff0df;
  color: #9a6013;
}

.overall-attention-groups {
  display: grid;
  gap: 8px;
}

.overall-attention-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfc;
}

.overall-attention-group summary {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--green-dark);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 950;
  list-style: none;
  user-select: none;
}

.overall-attention-group summary::-webkit-details-marker {
  display: none;
}

.overall-attention-group summary::before {
  content: '›';
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  transform-origin: center;
  transition: transform .15s ease;
}

.overall-attention-group[open] summary::before {
  transform: rotate(90deg);
}

.overall-attention-group.is-shmr summary {
  box-shadow: inset 4px 0 0 #347baa;
}

.overall-attention-group.is-smr summary {
  box-shadow: inset 4px 0 0 #4d9b83;
}

.overall-attention-group.is-pnr summary {
  box-shadow: inset 4px 0 0 #d2a22f;
}

.overall-attention-group.is-cross summary {
  box-shadow: inset 4px 0 0 #d85c53;
}

.overall-attention-group-count {
  display: grid;
  min-width: 26px;
  min-height: 24px;
  margin-left: auto;
  place-items: center;
  border-radius: 8px;
  background: #e7f3f0;
  color: var(--green-dark);
  font-size: .68rem;
}

.overall-attention-group .overall-attention-list {
  border-top: 1px solid var(--line);
  padding: 8px;
}

.overall-attention-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-right: 3px;
}

.overall-attention-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid #eadbb4;
  border-radius: 12px;
  background: #fffaf0;
  padding: 10px;
  text-align: left;
}

.overall-attention-item[data-overall-process] {
  cursor: pointer;
}

.overall-attention-item.is-danger {
  border-color: #efcbc7;
  background: #fff7f6;
}

.overall-attention-item i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #dfb737;
  color: #3e3210;
  font-style: normal;
  font-weight: 950;
}

.overall-attention-item.is-danger i {
  background: #d85c53;
  color: #fff;
}

.overall-attention-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.overall-attention-item strong,
.overall-attention-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overall-attention-item strong {
  font-size: .75rem;
}

.overall-attention-item em,
.overall-attention-item b,
.overall-attention-empty,
.overall-attention-more {
  color: var(--muted);
  font-size: .64rem;
  font-style: normal;
}

.overall-attention-item b {
  color: var(--green-dark);
  white-space: nowrap;
}

.project-resource-label.is-focused {
  position: relative;
  z-index: 1;
  background: #fff5cf;
  box-shadow: inset 4px 0 0 #d9aa20, 0 0 0 1px rgba(217, 170, 32, .28);
}

.overall-attention-empty,
.overall-attention-more {
  margin: 0;
}

.capacity-page .overall-plan {
  --portfolio-label-width: 240px;
  border-radius: 14px;
}

.capacity-page .overall-project-label,
.capacity-page .overall-project-track {
  min-height: 112px;
}

.capacity-page .overall-project-label {
  gap: 5px;
  padding: 10px 12px;
}

.capacity-page .overall-project-label strong {
  font-size: .86rem;
}

.overall-project-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.overall-project-meta span {
  display: block;
  overflow: hidden;
  color: #506a66;
  font-size: .58rem !important;
  font-weight: 850 !important;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overall-project-state {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: .57rem !important;
  font-weight: 900 !important;
}

.overall-project-state.is-ok {
  background: #e4f4ef;
  color: #087363;
}

.overall-project-state.is-warning {
  background: #fff2d1;
  color: #8a6212;
}

.overall-project-state.is-risk {
  background: #fde8e6;
  color: #a43b34;
}

.capacity-page .overall-project-track {
  background-image:
    linear-gradient(to bottom,
      transparent 29px, rgba(20, 54, 49, .06) 29px 30px,
      transparent 30px 57px, rgba(20, 54, 49, .06) 57px 58px,
      transparent 58px);
}

.capacity-page .overall-phase {
  display: flex;
  align-items: center;
  height: 17px;
  border-radius: 5px;
  padding: 0 5px;
  color: #fff;
  opacity: 1;
  cursor: pointer;
}

.capacity-page .overall-phase.is-plan {
  opacity: .88;
}

.capacity-page .overall-phase.has-deficit {
  box-shadow: inset 0 0 0 2px #e5655c, 0 0 0 1px rgba(255, 255, 255, .8);
}

.capacity-page .overall-phase > span {
  display: flex;
  gap: 4px;
  min-width: 0;
  align-items: center;
}

.capacity-page .overall-phase b,
.capacity-page .overall-phase em {
  overflow: hidden;
  font-size: .55rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capacity-page .overall-phase em {
  opacity: .78;
}

.capacity-page .overall-phase.is-fact {
  display: none !important;
}

@media (max-width: 860px) {
  .capacity-page .direction-snapshot {
    gap: 14px;
    border-radius: 18px;
    padding: 18px;
  }

  .direction-command-head {
    display: grid;
  }

  .direction-live {
    width: max-content;
  }

  .direction-command-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capacity-page .direction-snapshot-grid {
    grid-template-columns: none;
    grid-auto-columns: minmax(245px, 84%);
    grid-auto-flow: column;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x proximity;
  }

  .capacity-page .direction-snapshot-card {
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    scroll-snap-align: start;
  }

  .overall-attention-list {
    grid-template-columns: 1fr;
  }

  .capacity-page .overall-plan {
    --portfolio-label-width: 145px;
  }

  .capacity-page .overall-project-label strong {
    font-size: .72rem;
  }

  .overall-attention-item strong,
  .overall-attention-item em {
    white-space: normal;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Segoe UI", sans-serif;
  background: var(--wash);
  color: var(--ink);
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.topbar {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 28px));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.brand {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(17, 25, 23, .1);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-radius: 8px;
  gap: 10px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 800;
}

.brand span {
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 4px;
  box-shadow: 8px 8px 0 var(--gold);
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 96px 24px 92px;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(4, 35, 32, .96) 0%, rgba(4, 35, 32, .76) 44%, rgba(4, 35, 32, .18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .06));
}

.hero-content {
  position: relative;
  width: min(780px, 100%);
  margin-left: max(0px, calc((100vw - 1180px) / 2));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: 3.35rem;
  line-height: 1.05;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.12rem;
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.login-panel button {
  min-height: 46px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.primary-action {
  padding: 0 20px;
  background: var(--gold);
  color: #17201c;
}

.secondary-action {
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .46);
  color: #fff;
}

.signin-band,
.statement,
.states,
.flow {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.signin-band {
  transform: translateY(-46px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 24px;
  align-items: stretch;
}

.signin-copy,
.login-panel,
.states article,
.flow {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signin-copy {
  padding: 28px;
}

.signin-copy h2,
.statement h2,
.flow h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.16;
}

.signin-copy p,
.statement p,
.states p,
.flow span {
  color: var(--muted);
  line-height: 1.62;
}

.login-panel {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.login-panel label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--green-dark);
}

.login-panel input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  font: inherit;
  outline: none;
}

.login-panel input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 107, 95, .14);
}

.login-panel button,
.ghost-button {
  border: 0;
  background: var(--green);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.ghost-button,
.ghost-link {
  min-height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 700;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.metrics-page {
  min-height: 100vh;
}

.metrics-page .topbar {
  position: static;
  transform: none;
  margin: 12px auto 0;
}

.metrics-page main {
  padding: 18px 0 64px;
}

.login-panel button:disabled {
  background: #8aa69d;
  cursor: default;
}

.form-note {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}

.workspace {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 52px;
}

.workspace[hidden] {
  display: none;
}

.workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.workspace-head h2 {
  margin: 0;
  font-size: 2.3rem;
  line-height: 1.08;
}

.workspace-head h1 {
  margin: 0;
  max-width: 820px;
  font-size: 2.8rem;
  line-height: 1.04;
  color: var(--ink);
}

.workspace-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.workspace-action-primary {
  min-height: 42px;
  padding: 0 14px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.signal-strip article,
.project-panel,
.project-stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.signal-strip article {
  min-height: 96px;
  padding: 18px;
  display: grid;
  align-content: space-between;
}

.signal-strip span,
.panel-title span,
.search-box span,
.metric-label,
.project-meta,
.stage-note,
.empty-state p,
.milestone-meta {
  color: var(--muted);
}

.signal-strip strong {
  font-size: 2rem;
  color: var(--green-dark);
}

.metrics-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.project-panel {
  padding: 16px;
  position: sticky;
  top: 12px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title h3 {
  margin: 0;
  font-size: 1.25rem;
}

.group-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.group-pill {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  border-radius: 8px;
  padding: 0 11px;
  font: inherit;
  cursor: pointer;
}

.group-pill.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.search-box {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.project-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  max-height: 620px;
  overflow: auto;
  padding-right: 3px;
}

.project-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 13px;
  cursor: pointer;
  font: inherit;
}

.project-item.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 107, 95, .12);
}

.project-item strong {
  display: block;
  color: var(--ink);
}

.project-meta {
  display: block;
  margin-top: 5px;
  font-size: .92rem;
  line-height: 1.35;
}

.project-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.project-badges span,
.status-pill {
  border-radius: 8px;
  background: #edf5f2;
  color: var(--green-dark);
  padding: 4px 8px;
  font-size: .82rem;
  font-weight: 700;
}

.project-stage {
  min-height: 560px;
  padding: 22px;
}

.empty-state {
  min-height: 512px;
  display: grid;
  align-content: center;
  max-width: 620px;
}

.empty-state h3 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.1;
}

.empty-action {
  width: fit-content;
  margin-top: 18px;
}

.state-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.project-title-card {
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #073f39, #0f675c);
  color: #fff;
}

.project-title-card h3 {
  margin: 8px 0 10px;
  font-size: 2.15rem;
  line-height: 1.08;
}

.project-title-card p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  line-height: 1.55;
}

.project-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fact-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.fact-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.fact-card strong {
  font-size: 1.18rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.process-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.process-card h4,
.milestones-panel h4 {
  margin: 0;
  font-size: 1.25rem;
}

.metric-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
}

.metric-value {
  font-weight: 800;
  color: var(--green-dark);
}

.bar {
  height: 7px;
  border-radius: 8px;
  background: #e2e8e5;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--green);
}

.milestones-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.milestone-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.milestone-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.milestone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.milestone-top strong {
  font-size: 1.04rem;
}

.milestone-meta {
  margin-top: 10px;
  line-height: 1.45;
}

.stage-note {
  margin-top: 12px;
  line-height: 1.55;
}

.danger {
  color: #b44936;
}

.good {
  color: #178249;
}

.loading-line {
  padding: 16px;
  color: var(--muted);
}

.planner-page {
  min-height: 100vh;
  background: var(--wash);
}

.planner-page .topbar {
  position: static;
  transform: none;
  margin: 12px auto 0;
}

.planner-topbar {
  justify-content: space-between;
  gap: 14px;
}

.planner-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.planner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.planner-hero {
  min-height: 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.planner-hero h1 {
  color: var(--ink);
  max-width: none;
  font-size: 2rem;
  line-height: 1.02;
}

.planner-total {
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf5f2;
  padding: 18px;
}

.planner-total span,
.planner-field span,
.directory-select span,
.result-stack span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.planner-total strong {
  display: block;
  margin-top: 8px;
  font-size: 2.2rem;
  color: var(--green-dark);
}

.capacity-planner {
  gap: 20px;
}

.capacity-hero {
  align-items: center;
}

.capacity-controls {
  display: grid;
  grid-template-columns: 140px 170px auto;
  gap: 12px;
  align-items: end;
  min-width: min(100%, 460px);
}

.capacity-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.direction-snapshot {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.direction-snapshot-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.direction-snapshot-head h2 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.direction-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.direction-snapshot-card {
  min-width: 0;
  padding: 8px 12px 2px;
  border-right: 1px solid var(--line);
}

.direction-snapshot-card:last-child {
  border-right: 0;
}

.direction-snapshot-card > strong {
  color: var(--green-dark);
  font-size: 1rem;
}

.direction-snapshot-card dl {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
}

.direction-snapshot-card dl div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.direction-snapshot-card dt {
  color: var(--muted);
  font-size: .78rem;
}

.direction-snapshot-card dd {
  margin: 0;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 900;
}

.snapshot-metric {
  border: 0;
  border-bottom: 1px dotted currentColor;
  background: transparent;
  color: var(--green-dark);
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: help;
}

.snapshot-metric:hover,
.snapshot-metric:focus-visible {
  color: #0b7f70;
  outline: none;
}

.direction-snapshot-card .is-deficit {
  margin-top: 3px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

.capacity-summary article {
  border: 1px solid rgba(0, 107, 95, 0.16);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(15, 38, 35, 0.06);
}

.capacity-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.capacity-summary strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.45rem;
}

.capacity-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.capacity-board-card--main {
  min-height: 420px;
}

.capacity-bottom {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(280px, .8fr) minmax(320px, .9fr);
  gap: 18px;
  align-items: start;
}

.capacity-board-wrap,
.capacity-balance-wrap {
  overflow-x: auto;
  padding-bottom: 4px;
}

.capacity-board {
  --capacity-columns: 12;
  display: grid;
  grid-template-columns: 190px repeat(var(--capacity-columns), minmax(94px, 1fr));
  gap: 6px;
  min-width: calc(190px + var(--capacity-columns) * 94px);
}

.capacity-board-corner,
.capacity-board-head,
.capacity-drop-label,
.capacity-drop-cell,
.capacity-project-label,
.capacity-project-line {
  min-height: 42px;
}

.capacity-board-corner,
.capacity-board-head,
.capacity-drop-label {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.capacity-board-head {
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.capacity-drop-label {
  color: #3f5b55;
  text-transform: none;
  letter-spacing: 0;
}

.capacity-drop-cell {
  border: 1px dashed rgba(0, 107, 95, 0.22);
  border-radius: 8px;
  background: #f8fbfa;
}

.capacity-drop-cell::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  min-height: 40px;
}

.capacity-board-head.is-drop-target,
.capacity-drop-cell.is-drop-target,
.capacity-project-line.is-drop-target {
  outline: 2px solid #0f8f75;
  outline-offset: 2px;
  background: #e8f5f1;
}

.capacity-project-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 38, 35, 0.08);
  border-radius: 8px;
  background: #f8fbfa;
}

.capacity-project-label strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.capacity-project-label span {
  color: var(--muted);
  font-size: 0.78rem;
}

.capacity-project-line {
  display: flex;
  align-items: center;
  min-width: 0;
}

.capacity-bar {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--green-dark);
  color: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  padding: 8px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.capacity-bar.is-manual {
  background: #7b5f00;
}

[data-project-drag-id] {
  cursor: grab;
}

[data-project-drag-id].is-dragging {
  opacity: .55;
}

.capacity-unscheduled {
  margin-top: 16px;
}

.capacity-unscheduled-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.capacity-unscheduled-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.capacity-unscheduled-list article,
.capacity-list-items article {
  border: 1px solid rgba(123, 95, 0, 0.24);
  border-radius: 8px;
  background: #fffaf0;
  padding: 12px;
}

.capacity-unscheduled-list strong,
.capacity-unscheduled-list span {
  display: block;
}

.capacity-unscheduled-list span {
  margin-top: 4px;
  color: #6c6250;
  font-size: 0.84rem;
}

.capacity-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 10px;
}

.capacity-list-items {
  display: grid;
  gap: 10px;
}

.capacity-list-items article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  background: #ffffff;
  border-color: var(--line);
}

.capacity-list-items strong,
.capacity-list-items span {
  min-width: 0;
}

.capacity-list-items span {
  color: var(--muted);
  font-size: .84rem;
}

.capacity-roles,
.capacity-manual-resources {
  display: grid;
  gap: 10px;
}

.capacity-role-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: center;
}

.capacity-role-field span {
  color: #2f3c39;
  font-size: 0.9rem;
  font-weight: 700;
}

.capacity-role-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
}

.capacity-balance {
  --capacity-columns: 12;
  display: grid;
  grid-template-columns: 190px repeat(var(--capacity-columns), minmax(78px, 1fr));
  gap: 6px;
  min-width: calc(190px + var(--capacity-columns) * 78px);
}

.capacity-balance-role,
.capacity-balance-head,
.capacity-balance-cell {
  min-height: 48px;
  border-radius: 8px;
}

.capacity-balance-head {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.capacity-balance-role {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  background: #f8fbfa;
  border: 1px solid rgba(15, 38, 35, 0.08);
}

.capacity-balance-role strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.capacity-balance-role span,
.capacity-balance-cell span {
  color: var(--muted);
  font-size: 0.75rem;
}

.capacity-balance-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f7f6;
  border: 1px solid rgba(15, 38, 35, 0.06);
}

.capacity-balance-cell.is-used {
  background: #e8f5f1;
  border-color: rgba(0, 107, 95, 0.2);
}

.capacity-balance-cell.is-short {
  background: #fff1ed;
  border-color: rgba(180, 59, 27, 0.26);
}

.capacity-balance-cell.is-short span {
  color: #b43b1b;
  font-weight: 800;
}

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

.planner-layer-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.planner-layer-tab {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font: inherit;
  font-weight: 900;
}

.planner-layer-tab.is-active {
  background: var(--green-dark);
  color: #ffffff;
}

.planner-layer-tab:disabled {
  opacity: .48;
}

.lifecycle-section {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 24px 0 8px;
}

.lifecycle-section[hidden],
.lifecycle-form[hidden] {
  display: none;
}

.lifecycle-head,
.lifecycle-toolbar,
.lifecycle-form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.lifecycle-head h2 {
  margin: 2px 0 0;
}

.lifecycle-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.lifecycle-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
}

.lifecycle-dates {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.lifecycle-dates legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.lifecycle-process-dates {
  display: grid;
  grid-template-columns: 110px minmax(130px, 180px) minmax(130px, 180px);
  gap: 8px;
  align-items: center;
}

.lifecycle-process-dates input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  font: inherit;
}

.lifecycle-required {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.lifecycle-form-actions span {
  color: var(--muted);
  font-size: .78rem;
  margin-right: auto;
}

.lifecycle-toolbar {
  align-items: end;
}

.lifecycle-toolbar .planner-field {
  width: min(360px, 100%);
}

.lifecycle-toolbar > span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.lifecycle-board {
  display: grid;
  gap: 18px;
}

.lifecycle-group {
  display: grid;
  gap: 8px;
}

.lifecycle-group-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.lifecycle-group-head h3 {
  margin: 0;
  font-size: .9rem;
}

.lifecycle-group-head span {
  color: var(--muted);
  font-size: .75rem;
}

.lifecycle-list {
  display: grid;
  gap: 6px;
}

.lifecycle-item {
  display: grid;
  grid-template-columns: minmax(190px, .85fr) minmax(200px, 1.2fr) minmax(160px, .7fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid #6e8f89;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
}

.lifecycle-item.is-attention {
  border-left-color: #c99428;
}

.lifecycle-item.is-ready {
  border-left-color: #237b63;
}

.lifecycle-project strong,
.lifecycle-project span,
.lifecycle-meta span,
.lifecycle-dates-summary span {
  display: block;
}

.lifecycle-project small,
.lifecycle-meta,
.lifecycle-dates-summary {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}

.lifecycle-note {
  color: var(--ink);
  font-size: .8rem;
}

.lifecycle-item-actions {
  display: flex;
  gap: 6px;
}

.lifecycle-empty {
  color: var(--muted);
  padding: 18px 0;
}

.fact-board-card {
  min-height: 520px;
}

.fact-board {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 380px;
  padding: 8px 0 4px;
}

.project-jump-list {
  display: block;
  margin: -4px 0 12px;
  padding: 2px 2px 6px;
}

.portfolio-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .55fr) minmax(160px, .55fr) auto;
  gap: 8px;
  align-items: end;
}

.portfolio-toolbar label {
  display: grid;
  gap: 4px;
}

.portfolio-toolbar label > span {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-toolbar input,
.portfolio-toolbar select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 9px;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
}

.portfolio-collapse {
  min-height: 34px;
}

.load-view-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfa;
}

.load-view-tab {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font: inherit;
  font-size: .8rem;
  font-weight: 900;
}

.load-view-tab.is-active {
  background: var(--green-dark);
  color: #ffffff;
}

.fact-pulse-card {
  position: relative;
  width: var(--fact-width);
  margin-left: var(--fact-left);
  min-width: 180px;
  min-height: 112px;
  border: 1px solid rgba(0, 107, 95, 0.2);
  border-radius: 8px 18px 8px 18px;
  background:
    linear-gradient(135deg, transparent 0 15px, #ffffff 16px),
    linear-gradient(315deg, transparent 0 15px, #ffffff 16px);
  box-shadow: 0 16px 40px rgba(15, 38, 35, 0.08);
  padding: 12px 14px;
}

.fact-pulse-card::before,
.fact-pulse-card::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 107, 95, 0.18);
  background: #eef8f5;
}

.fact-pulse-card::before {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 18px 0 8px;
}

.fact-pulse-card::after {
  left: -1px;
  bottom: -1px;
  border-top: 0;
  border-right: 0;
  border-radius: 0 8px 0 18px;
}

.fact-pulse-top,
.fact-pulse-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fact-pulse-top strong {
  color: var(--ink);
  font-size: 1rem;
}

.fact-pulse-top span,
.fact-pulse-bottom span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.fact-pulse {
  display: block;
  width: 100%;
  height: 54px;
  margin: 8px 0 6px;
  overflow: visible;
}

.fact-pulse polygon {
  fill: rgba(0, 107, 95, 0.1);
}

.fact-pulse polyline {
  fill: none;
  stroke: #006b5f;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fact-bottom {
  grid-template-columns: minmax(0, 1fr);
}

.fact-project-list {
  display: grid;
  gap: 10px;
}

.manual-plan-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 107, 95, .14);
  border-radius: 8px;
  background: rgba(0, 107, 95, .035);
  padding: 12px;
}

.manual-plan-form[hidden] {
  display: none;
}

.manual-plan-collapsible {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.manual-plan-collapsible > summary {
  color: var(--green-dark);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 900;
  list-style-position: inside;
  text-transform: uppercase;
}

.manual-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.manual-plan-people {
  display: grid;
  gap: 8px;
}

.manual-plan-people > span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

#manual-project-people {
  display: grid;
  gap: 9px;
  max-height: none;
  overflow: visible;
}

.resource-workbench-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.resource-workbench-head > div {
  display: grid;
  gap: 2px;
}

.resource-workbench-head strong {
  color: var(--ink);
  font-size: .84rem;
}

.resource-workbench-head span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.normative-plan-comparison {
  display: grid;
  gap: 9px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.normative-comparison-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.normative-comparison-head strong {
  color: var(--ink);
  font-size: .86rem;
}

.normative-comparison-head span {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}

.normative-comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.normative-comparison-metric {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.normative-comparison-metric span,
.normative-comparison-metric em {
  color: var(--muted);
  font-size: .65rem;
  font-style: normal;
  font-weight: 800;
}

.normative-comparison-metric strong {
  color: var(--ink);
  font-size: .78rem;
  white-space: nowrap;
}

.normative-comparison-metric i {
  color: var(--muted);
  font-style: normal;
}

.normative-comparison-metric.is-up em {
  color: #a04828;
}

.normative-comparison-metric.is-down em {
  color: var(--brand);
}

.resource-assigned-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 30px;
}

.resource-assigned-person {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 6px;
  align-items: center;
  max-width: 260px;
  border: 1px solid rgba(0, 107, 95, .2);
  border-radius: 6px;
  background: #edf8f5;
  color: var(--ink);
  padding: 4px 6px 4px 8px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.resource-assigned-person span {
  min-width: 0;
  display: grid;
}

.resource-assigned-person strong,
.resource-assigned-person em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-assigned-person strong {
  font-size: .72rem;
}

.resource-assigned-person em {
  color: var(--muted);
  font-size: .62rem;
  font-style: normal;
}

.resource-assigned-person b {
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}

.resource-empty {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  line-height: 30px;
}

.resource-candidate-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.resource-candidate-toolbar input[type="search"] {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 6px 9px;
  font: inherit;
  font-size: .78rem;
}

.resource-candidate-toolbar label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.resource-role-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.resource-role-tabs button {
  flex: 0 0 auto;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 5px 7px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.resource-role-tabs button.is-active {
  border-color: rgba(0, 107, 95, .45);
  background: #edf8f5;
  color: var(--green-dark);
}

.resource-role-tabs span {
  font-size: .68rem;
  font-weight: 900;
}

.resource-role-tabs em {
  color: var(--muted);
  font-size: .58rem;
  font-style: normal;
  font-weight: 800;
}

.resource-candidate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
}

.resource-role-blocks {
  display: grid;
  gap: 7px;
}

.resource-role-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
  gap: 8px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
}

.resource-role-block.is-open {
  border-color: rgba(0, 107, 95, .35);
  background: rgba(0, 107, 95, .025);
}

.resource-role-summary {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(220px, 1fr) 18px;
  gap: 10px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.resource-role-summary strong {
  font-size: .8rem;
}

.resource-role-summary span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.resource-role-summary b {
  color: var(--green-dark);
  font-size: 1rem;
  text-align: center;
}

.resource-role-need-input {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 7px;
  align-items: center;
}

.resource-role-need-input span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
}

.resource-role-need-input input {
  width: 54px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
}

.resource-role-assigned,
.resource-role-candidates,
.resource-show-all {
  grid-column: 1 / -1;
}

.resource-role-assigned {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.resource-role-assigned button {
  border: 1px solid rgba(0, 107, 95, .2);
  border-radius: 999px;
  background: #edf7f4;
  color: var(--green-dark);
  padding: 4px 7px;
  font-size: .7rem;
  font-weight: 800;
}

.resource-role-assigned button span {
  margin-left: 4px;
}

.resource-role-candidates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.resource-show-all {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 2px 0;
  font-size: .7rem;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 700px) {
  .resource-role-block {
    grid-template-columns: 1fr;
  }

  .resource-role-summary {
    grid-template-columns: 1fr 18px;
  }

  .resource-role-summary span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .resource-role-need-input {
    grid-template-columns: 1fr 64px;
  }

  .resource-role-candidates {
    grid-template-columns: 1fr;
  }
}

.resource-candidate {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 22px;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 5px 7px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.resource-candidate > span:first-child {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.resource-candidate strong,
.resource-candidate em,
.resource-candidate small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-candidate strong {
  font-size: .72rem;
}

.resource-candidate em {
  color: var(--muted);
  font-size: .62rem;
  font-style: normal;
}

.resource-candidate-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
  justify-items: end;
}

.resource-candidate small {
  max-width: 150px;
  color: #087b4b;
  font-size: .6rem;
  font-weight: 800;
}

.resource-candidate b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf8f5;
  color: var(--green-dark);
  font-size: .8rem;
}

.resource-candidate.is-selected {
  border-color: rgba(0, 107, 95, .5);
  background: #edf8f5;
}

.resource-candidate.is-replacement {
  border-color: rgba(190, 126, 25, .32);
}

.resource-candidate.is-replacement small {
  color: #986313;
}

.resource-candidate.is-warning {
  border-color: rgba(190, 126, 25, .34);
  background: #fffaf0;
}

.resource-candidate.is-warning b {
  background: #fff1c8;
  color: #8a5a00;
}

.resource-candidate.is-warning small {
  color: #986313;
}

.resource-candidate.is-busy {
  opacity: .58;
  background: #f4f5f5;
}

.resource-candidate.is-busy small {
  color: var(--muted);
}

.resource-candidate:disabled {
  cursor: not-allowed;
}

@media (max-width: 560px) {
  .normative-comparison-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .normative-comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-workbench-head,
  .resource-candidate-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .resource-workbench-head .ghost-button {
    width: 100%;
  }

  .resource-candidate-toolbar label {
    min-height: 30px;
  }

  .resource-candidate-list {
    grid-template-columns: 1fr;
  }
}


.manual-person-group {
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(20, 54, 49, .08);
  border-radius: 8px;
  background: #f8fbfa;
}

.manual-person-group h4 {
  margin: 0;
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.manual-person-group > div {
  display: grid;
  gap: 4px;
}

.manual-person-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  padding: 4px 7px;
}

.manual-person-option span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manual-person-option em {
  color: var(--muted);
  font-size: .68rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.manual-person-option.is-available em {
  color: #087b4b;
}

.manual-person-option.is-busy em {
  color: #a06812;
}

.manual-person-option.is-replacement {
  border-color: rgba(180, 64, 48, .34);
  background: #fff6f2;
}

.manual-person-option.is-replacement em {
  color: #a33929;
}

.manual-plan-competencies {
  display: grid;
  gap: 8px;
}

.manual-plan-competencies > span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

#manual-project-competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.manual-project-competency {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 5px 7px;
  font-size: .7rem;
  font-weight: 800;
}

.manual-plan-section {
  display: grid;
  gap: 8px;
}

.manual-plan-list {
  display: grid;
  gap: 8px;
}

.fact-list-project {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.manual-plan-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.manual-plan-actions,
.manual-plan-item-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.manual-fact-fill {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.manual-fact-fill[hidden] {
  display: none;
}

.manual-fact-fill span {
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.3;
}

.manual-plan-item-actions {
  align-self: start;
}

.manual-plan-closed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 900;
}

.manual-plan-edit {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 107, 95, .18);
  border-radius: 8px;
  background: #f7fbfa;
  color: var(--green-dark);
  padding: 0 10px;
  font: inherit;
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.manual-plan-edit:hover,
.manual-plan-edit:focus-visible {
  border-color: rgba(0, 107, 95, .42);
  outline: none;
}

.manual-plan-delete {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(91, 99, 113, .22);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.manual-plan-delete:hover,
.manual-plan-delete:focus-visible {
  border-color: rgba(180, 64, 48, .35);
  color: #9f332b;
  outline: none;
}

.manual-plan-item.is-replan-needed {
  border-color: rgba(190, 90, 30, .36);
  background: #fff7ed;
}

.manual-plan-item.is-starting-soon {
  border-color: rgba(0, 107, 95, .28);
  background: #f0faf7;
}

.manual-plan-item.is-active-project {
  border-color: rgba(0, 107, 95, .3);
  background: #f3faf8;
}

.manual-plan-item.is-rotation-needed {
  border-color: rgba(185, 126, 24, .38);
  background: #fff9ed;
}

.rotation-warning {
  display: block;
  width: fit-content;
  margin-top: 6px;
  border-left: 3px solid rgba(185, 126, 24, .55);
  background: rgba(255, 248, 232, .86);
  color: #7a4c09 !important;
  padding: 4px 8px;
  line-height: 1.25;
  font-size: .72rem;
  font-weight: 850;
}

.rotation-schedule {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.rotation-lane {
  display: grid;
  grid-template-columns: minmax(112px, 160px) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.rotation-lane > strong {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
}

.rotation-waves {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.rotation-wave {
  flex: 0 0 auto;
  min-width: 176px;
  border: 1px solid rgba(80, 72, 170, .24);
  border-radius: 6px;
  background: #f5f4ff;
  padding: 5px 6px;
  color: #332c86;
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
}

.rotation-wave > span {
  display: block;
  margin-bottom: 3px;
  color: inherit;
  font-size: inherit;
}

.rotation-wave select {
  width: 100%;
  min-height: 28px;
  border: 1px solid rgba(51, 44, 134, .24);
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: .7rem;
}

.rotation-wave.is-assigned {
  border-color: rgba(12, 123, 75, .28);
  background: #edf9f3;
  color: #087b4b;
}

.rotation-wave.is-warning {
  border-color: rgba(190, 126, 25, .38);
  background: #fff8e8;
  color: #986313;
}

.rotation-wave.is-critical {
  border-color: rgba(179, 57, 41, .42);
  background: #fff1ee;
  color: #a33929;
}

.rotation-decision-status {
  display: block;
  margin-top: 4px;
  border-radius: 5px;
  background: #dff3e8;
  color: #087b4b;
  padding: 4px 5px;
  font-size: .62rem;
  font-style: normal;
  font-weight: 900;
}

.project-assurance {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-top: 5px;
  border-left: 3px solid #0b7f70;
  padding-left: 7px;
}

.project-assurance strong {
  color: #0b6c61;
  font-size: .7rem;
}

.project-assurance span {
  color: var(--muted);
  font-size: .66rem;
}

.project-assurance.is-near {
  border-left-color: #c88720;
}

.project-assurance.is-near strong {
  color: #986313;
}

.project-assurance.is-critical {
  border-left-color: #b33929;
}

.project-assurance.is-critical strong {
  color: #a33929;
}

.project-assurance.is-future {
  border-left-color: #7169bf;
}

.manual-plan-item.is-process-risk {
  border-color: rgba(185, 126, 24, .32);
  background: #fffaf0;
}

.process-risk-note {
  color: #9a6816 !important;
  font-weight: 900;
}

.fact-list-project strong {
  color: var(--ink);
}

.manual-plan-group {
  color: var(--muted);
  font-weight: 500;
}

.fact-list-project span,
.fact-list-project em {
  color: var(--muted);
  font-size: .86rem;
  font-style: normal;
}

.fact-tooltip {
  position: fixed;
  z-index: 50;
  width: min(360px, calc(100vw - 24px));
  border: 1px solid rgba(0, 107, 95, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 38, 35, 0.22);
  padding: 12px;
  pointer-events: none;
}

.fact-tooltip-head,
.fact-tooltip-day {
  display: grid;
  gap: 2px;
}

.fact-tooltip-head strong {
  color: var(--ink);
  font-size: 1rem;
}

.fact-tooltip-head span,
.fact-tooltip p,
.fact-tooltip-day span {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.35;
}

.fact-tooltip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-tooltip-grid span {
  color: var(--muted);
  font-size: .82rem;
}

.fact-tooltip-grid strong,
.fact-tooltip-day strong {
  color: var(--ink);
  font-size: .86rem;
}

.fact-tooltip-day {
  margin-top: 7px;
}

.snapshot-tooltip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.snapshot-tooltip-list span {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f6faf9;
  color: var(--ink);
  padding: 4px 7px;
  font-size: .78rem;
  font-weight: 800;
}

.snapshot-rotation-list {
  display: grid;
  gap: 8px;
  max-height: min(460px, calc(100vh - 100px));
  margin-top: 10px;
  overflow: auto;
}

.snapshot-rotation-project {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.snapshot-rotation-project > strong {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
  line-height: 24px;
  white-space: nowrap;
}

.snapshot-rotation-needs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.snapshot-rotation-needs span {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 107, 95, .16);
  border-radius: 5px;
  background: #f6faf9;
  color: var(--muted);
  padding: 4px 6px;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.snapshot-tooltip-groups {
  display: grid;
  gap: 9px;
  max-height: min(460px, calc(100vh - 100px));
  margin-top: 10px;
  overflow: auto;
}

.snapshot-tooltip-groups section {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.snapshot-tooltip-groups section > div {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.snapshot-tooltip-groups section strong {
  color: var(--ink);
  font-size: .82rem;
}

.snapshot-tooltip-groups section em {
  color: var(--green-dark);
  font-size: .82rem;
  font-style: normal;
  font-weight: 900;
}

.snapshot-tooltip-groups p {
  margin: 4px 0 0;
}

.resource-matrix-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.resource-matrix {
  --resource-columns: 12;
  min-width: calc(210px + var(--resource-columns) * 82px);
  display: grid;
  grid-template-columns: 210px repeat(var(--resource-columns), minmax(82px, 1fr));
  align-items: stretch;
}

.resource-corner,
.resource-ruler {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  background: #f6faf9;
}

.resource-corner {
  left: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-ruler {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 7px 6px;
  border-left: 1px solid rgba(20, 54, 49, .08);
}

.resource-ruler strong {
  color: var(--ink);
  font-size: .78rem;
  line-height: 1.05;
}

.resource-ruler span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}

.resource-project-label,
.resource-period {
  min-height: 88px;
  border-bottom: 1px solid var(--line);
}

.resource-project-label {
  position: sticky;
  left: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 12px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.resource-project-label strong {
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.12;
}

.resource-project-label span,
.resource-project-label em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  font-style: normal;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-period {
  display: grid;
  align-content: stretch;
  gap: 0;
  padding: 4px 5px;
  border-left: 1px solid rgba(20, 54, 49, .07);
  background:
    linear-gradient(90deg, rgba(20, 54, 49, .035), transparent 1px),
    #ffffff;
}

.resource-lane {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 25px;
}

.resource-lane small {
  color: var(--muted);
  font-size: .56rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.resource-cell {
  --fill: 0%;
  width: 100%;
  min-width: 0;
  min-height: 17px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--cell-color) var(--fill), rgba(237, 242, 241, .9) var(--fill));
  color: var(--cell-text);
  padding: 0 4px;
  font: inherit;
  cursor: default;
}

.resource-cell span {
  display: block;
  overflow: hidden;
  font-size: .66rem;
  font-weight: 900;
  line-height: 17px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-cell.is-plan {
  --cell-color: #68717d;
  --cell-text: #101817;
}

.resource-cell.is-pnr {
  --cell-color: #1f649a;
  --cell-text: #101817;
}

.resource-cell.is-zpi {
  --cell-color: #b44030;
  --cell-text: #101817;
}

.resource-empty {
  display: block;
  min-height: 17px;
  border-radius: 4px;
  background: rgba(237, 242, 241, .55);
}

.load-plan {
  --bucket-width: 88px;
  overflow-x: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.load-plan.is-day {
  --bucket-width: 54px;
}

.load-plan.is-week {
  --bucket-width: 104px;
}

.load-plan.is-month {
  --bucket-width: 118px;
}

.load-ruler {
  --resource-columns: 12;
  position: sticky;
  top: 0;
  z-index: 4;
  display: block;
  width: 100%;
  min-width: 100%;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  background: #f4f7f8;
}

.load-legend {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.load-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #34423f;
  font-size: .76rem;
  font-weight: 900;
}

.load-legend span::before {
  content: "";
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: var(--legend-color);
}

.person-load-legend {
  position: static;
  gap: 6px 10px;
  min-height: 28px;
  padding: 5px 8px;
  flex-wrap: wrap;
}

.person-load-legend span {
  gap: 4px;
  font-size: .64rem;
  line-height: 1.1;
}

.person-load-legend span::before {
  width: 12px;
  height: 7px;
}

.load-legend .is-plan {
  --legend-color: #5048aa;
}

.load-legend .is-pnr {
  --legend-color: #1f649a;
}

.load-legend .is-zpi {
  --legend-color: #b44030;
}

.load-legend .is-reserved {
  --legend-color: repeating-linear-gradient(135deg, #7069b8 0 4px, #b9b5dd 4px 8px);
}

.load-legend .is-confirmed {
  --legend-color: #5048aa;
}

.load-legend .is-unfilled {
  --legend-color: transparent;
}

.load-legend .is-unfilled::before {
  border: 2px dashed #b44030;
  background: transparent;
}

.process-load-chart {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 0 12px;
}

.process-load-chart[hidden] {
  display: none;
}

.process-load-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
}

.process-load-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.1;
}

.process-load-meta,
.process-load-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.process-load-meta span,
.process-load-meta em,
.process-load-legend span {
  color: var(--muted);
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
}

.process-load-meta strong {
  color: var(--ink);
}

.process-load-meta em {
  color: #9f382f;
}

.process-load-plot {
  --capacity-line: 50%;
  position: relative;
  display: block;
  height: 144px;
  min-height: 144px;
  border-top: 1px solid rgba(20, 54, 49, .08);
  border-bottom: 1px solid rgba(20, 54, 49, .08);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(20, 54, 49, .055) 1px, transparent 1px) 0 0 / 100% 25%,
    #fbfcfd;
  overflow: hidden;
}

.process-load-capacity-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--capacity-line);
  z-index: 2;
  height: 0;
  border-top: 2px solid rgba(159, 56, 47, .76);
  pointer-events: none;
}

.process-load-capacity-line strong {
  position: absolute;
  right: 10px;
  bottom: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #9f382f;
  font-size: .7rem;
  font-weight: 900;
  padding: 3px 7px;
}

.process-load-capacity-hit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--capacity-line) - 10px);
  z-index: 4;
  height: 20px;
  cursor: help;
}

.process-load-bucket {
  position: absolute;
  inset: 0 auto 0 var(--left);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
  width: var(--width);
  max-width: calc(100% - var(--left));
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 18px 5px 10px;
}

.process-load-bucket::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(20, 54, 49, .06);
}

.process-load-bucket:first-of-type::before {
  display: none;
}

.process-load-bar {
  position: relative;
  z-index: 3;
  display: block;
  width: min(34px, 42%);
  min-width: 9px;
  height: var(--bar-height);
  min-height: 4px;
  block-size: var(--bar-height);
  border-radius: 6px 6px 0 0;
  background: var(--bar-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 -1px 0 rgba(15, 38, 35, .08);
  cursor: help;
}

.process-load-bar.is-fact {
  --bar-color: linear-gradient(180deg, #2e83cf, #1e5f9d);
}

.process-load-bar.is-plan {
  --bar-color: linear-gradient(180deg, rgba(95, 101, 117, .72), rgba(68, 73, 86, .72));
  outline: 1px solid rgba(68, 73, 86, .22);
}

.process-load-chart.is-resource-load .process-load-bucket {
  gap: 3px;
}

.process-load-chart.is-resource-load {
  --person-label-width: 270px;
}

.process-load-track-row {
  display: grid;
  grid-template-columns: var(--person-label-width) minmax(0, 1fr);
  min-width: 0;
}

.process-load-track-label {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 144px;
  padding: 18px 16px;
  border-top: 1px solid rgba(20, 54, 49, .08);
  border-right: 1px solid var(--line);
  background: linear-gradient(135deg, #f5f8f7, #edf4f2);
}

.process-load-track-label strong {
  color: var(--ink);
  font-size: .84rem;
  line-height: 1.2;
}

.process-load-track-label span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.35;
}

.process-load-track-row .process-load-plot {
  min-width: 0;
}

.process-load-chart.is-resource-load .process-load-bar {
  width: min(28px, 27%);
}

.process-load-bar.is-assigned {
  --bar-color: linear-gradient(180deg, #209b83, #087264);
}

.process-load-bar.is-demand {
  --bar-color: repeating-linear-gradient(135deg, #d99b3d 0 6px, #f2c97c 6px 12px);
  outline: 1px solid rgba(158, 91, 8, .35);
}

.process-load-stack {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: min(34px, 42%);
  min-width: 12px;
  height: var(--bar-height);
  min-height: 4px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  outline: 1px solid rgba(20, 54, 49, .14);
  box-shadow: 0 -1px 0 rgba(15, 38, 35, .08);
  cursor: help;
}

.process-load-chart.is-resource-load .process-load-stack {
  width: min(34px, 42%);
}

.process-load-stack > i {
  display: block;
  width: 100%;
  min-height: 0;
}

.process-load-stack > .is-deficit {
  height: calc(100% - var(--assigned-share));
  background: repeating-linear-gradient(135deg, #d99b3d 0 6px, #f2c97c 6px 12px);
}

.process-load-stack > .is-assigned {
  height: var(--assigned-share);
  background: linear-gradient(180deg, #209b83, #087264);
}

.process-load-stack.is-empty {
  display: none;
}

.process-load-stack.is-over {
  overflow: visible;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .48), 0 -2px 0 rgba(159, 56, 47, .75);
}

.process-load-stack > .is-overflow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: max(var(--overflow-share), 4px);
  border-bottom: 2px solid rgba(159, 56, 47, .88);
  border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(135deg, rgba(182, 61, 51, .92) 0 5px, rgba(239, 139, 124, .9) 5px 10px);
  pointer-events: none;
}

.process-load-overflow-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 5px);
  z-index: 6;
  transform: translateX(-50%);
  color: #9f382f;
  font-size: .64rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.process-load-bar.is-empty {
  display: none;
}

.process-load-bar.is-over {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .48), 0 -2px 0 rgba(159, 56, 47, .75);
}

.process-load-bar em {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  color: var(--ink);
  font-size: .62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.process-load-legend {
  justify-content: flex-end;
  padding: 0 12px;
}

.process-load-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.process-load-legend span::before {
  content: "";
  width: 16px;
  height: 9px;
  border-radius: 999px;
  background: var(--legend-color);
}

.process-load-legend .is-fact {
  --legend-color: #2e83cf;
}

.process-load-legend .is-plan {
  --legend-color: rgba(104, 113, 125, .72);
}

.process-load-legend .is-assigned {
  --legend-color: #13806f;
}

.process-load-legend .is-demand {
  --legend-color: repeating-linear-gradient(135deg, #d99b3d 0 4px, #f2c97c 4px 8px);
}

.process-load-legend .is-deficit {
  --legend-color: repeating-linear-gradient(135deg, #d99b3d 0 4px, #f2c97c 4px 8px);
}

.process-load-legend .is-capacity {
  --legend-color: #9f382f;
}

.load-ruler > div {
  position: absolute;
  inset: 0 auto 0 var(--left);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  width: var(--width);
  max-width: calc(100% - var(--left));
  min-height: 54px;
  padding: 7px 6px;
  border-left: 1px solid rgba(20, 54, 49, .08);
}

.load-ruler > div:first-child {
  border-left: 0;
}

.load-ruler strong {
  color: var(--ink);
  font-size: .78rem;
  line-height: 1.05;
}

.load-ruler span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
}

.load-rows {
  position: relative;
  width: 100%;
  min-width: 100%;
  background: #fbfcfd;
}

.load-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.load-grid-lines span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(20, 54, 49, .07);
}

.load-row {
  position: relative;
  min-height: 42px;
  border-bottom: 1px solid rgba(20, 54, 49, .08);
}

.load-row.is-jump-highlight {
  background: rgba(216, 193, 106, .18);
  box-shadow: inset 0 0 0 2px rgba(216, 193, 106, .55);
}

.portfolio-plan {
  --portfolio-label-width: 250px;
  max-height: min(72vh, 820px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.overall-plan {
  --portfolio-label-width: 210px;
  max-height: min(72vh, 820px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.overall-plan .load-legend {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #fff;
}

.overall-plan .load-ruler {
  position: sticky;
  top: 34px;
  z-index: 14;
  width: calc(100% - var(--portfolio-label-width));
  margin-left: var(--portfolio-label-width);
  background: #f5f8f7;
}

.overall-rows {
  display: grid;
  grid-template-columns: var(--portfolio-label-width) minmax(0, 1fr);
}

.overall-rows .load-grid-lines {
  left: var(--portfolio-label-width);
}

.overall-project-label,
.overall-project-track {
  min-height: 72px;
  border-bottom: 1px solid rgba(20, 54, 49, .08);
  background: #fff;
}

.overall-project-label {
  position: sticky;
  left: 0;
  z-index: 7;
  display: grid;
  align-content: center;
  gap: 4px;
  border-right: 1px solid var(--line);
  padding: 8px 10px;
}

.overall-project-label strong {
  overflow: hidden;
  color: var(--ink);
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overall-project-label span,
.overall-project-count,
.overall-legend em {
  color: var(--muted);
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
}

.overall-project-track {
  position: relative;
  background-image:
    linear-gradient(to bottom,
      transparent 22px, rgba(20, 54, 49, .06) 22px 23px,
      transparent 23px 44px, rgba(20, 54, 49, .06) 44px 45px,
      transparent 45px);
}

.overall-phase {
  position: absolute;
  top: var(--overall-top);
  left: var(--left);
  width: var(--width);
  min-width: 10px;
  max-width: calc(100% - var(--left));
  height: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  padding: 0 4px;
  color: #10211f;
  font: inherit;
  font-size: .52rem;
  font-weight: 900;
}

.overall-phase.is-plan {
  opacity: .45;
}

.overall-phase.is-fact {
  display: none !important;
}

.overall-phase.is-shmr,
.load-legend .is-shmr::before {
  background: #d5a92c;
}

.overall-phase.is-smr,
.load-legend .is-smr::before {
  background: #258570;
}

.overall-phase.is-pnr {
  background: #1f649a;
}

.portfolio-dependency {
  position: absolute;
  top: 4px;
  right: 6px;
  border-radius: 4px;
  background: #fff1d5;
  color: #795213;
  padding: 2px 5px;
  font-size: .58rem;
  font-weight: 900;
}

.project-dependency-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
}

.project-dependency-note strong,
.project-dependency-note span {
  font-size: .72rem;
}

.project-dependency-note span {
  color: var(--muted);
}

.project-dependency-note.is-risk {
  border-color: rgba(180, 64, 48, .3);
  background: rgba(180, 64, 48, .05);
}

@media (max-width: 700px) {
  .overall-plan {
    --portfolio-label-width: 125px;
  }

  .overall-project-label strong {
    font-size: .7rem;
  }
}

.portfolio-plan .load-legend {
  position: sticky;
  top: 0;
  z-index: 15;
  background: #ffffff;
}

.portfolio-plan .load-ruler {
  position: sticky;
  top: 34px;
  z-index: 14;
  width: calc(100% - var(--portfolio-label-width));
  margin-left: var(--portfolio-label-width);
  background: #f5f8f7;
}

.portfolio-rows {
  display: grid;
  grid-template-columns: var(--portfolio-label-width) minmax(0, 1fr);
}

.portfolio-rows .load-grid-lines {
  left: var(--portfolio-label-width);
}

.portfolio-group-label,
.portfolio-group-track {
  min-height: 30px;
  border-bottom: 1px solid rgba(20, 54, 49, .1);
  background: #eef5f3;
}

.portfolio-group-label {
  position: sticky;
  left: 0;
  z-index: 8;
  border-right: 1px solid var(--line);
}

.portfolio-group-label button {
  width: 100%;
  min-height: 30px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  padding: 0 9px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portfolio-group-label button.has-nomenclature {
  grid-template-columns: 14px minmax(0, 1fr) auto auto;
}

.portfolio-group-label strong {
  overflow: hidden;
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-group-label em {
  color: var(--muted);
  font-size: .62rem;
  font-style: normal;
  font-weight: 800;
}

.portfolio-group-label small {
  border: 1px solid rgba(0, 107, 95, .18);
  border-radius: 4px;
  background: #ffffff;
  color: var(--green-dark);
  padding: 2px 5px;
  font-size: .6rem;
  font-weight: 900;
  line-height: 1;
}

.portfolio-project-label,
.portfolio-project-track {
  min-height: 52px;
  border-bottom: 1px solid rgba(20, 54, 49, .08);
  background: #ffffff;
}

.portfolio-project-label {
  position: sticky;
  left: 0;
  z-index: 7;
  display: grid;
  gap: 3px;
  align-content: center;
  border-right: 1px solid var(--line);
  padding: 5px 9px;
}

.portfolio-project-label.is-critical {
  box-shadow: inset 4px 0 #b33929;
}

.portfolio-project-label.is-near {
  box-shadow: inset 4px 0 #c88720;
}

.portfolio-project-label.is-future {
  box-shadow: inset 4px 0 #7169bf;
}

.portfolio-project-title {
  min-width: 0;
  display: block;
  align-items: center;
}

.portfolio-project-open {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.portfolio-project-open strong {
  display: block;
  overflow: hidden;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-project-open em {
  color: var(--muted);
  font-size: .64rem;
  font-style: normal;
  font-weight: 700;
}

.portfolio-project-label > div {
  display: flex;
  gap: 6px;
  align-items: baseline;
  justify-content: space-between;
  padding-left: 0;
}

.portfolio-search {
  position: relative;
  min-width: 0;
}

.portfolio-search label {
  display: grid;
  gap: 4px;
}

.portfolio-search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 54, 49, .16);
  padding: 4px;
}

.portfolio-search-suggestions[hidden] {
  display: none;
}

.portfolio-search-suggestions button {
  min-height: 30px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 4px 8px;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.portfolio-search-suggestions button:hover,
.portfolio-search-suggestions button:focus-visible {
  background: #eef5f3;
  color: var(--green-dark);
}

.portfolio-project-label > div span,
.portfolio-project-label > div em {
  overflow: hidden;
  font-size: .62rem;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-project-label > div span {
  color: var(--green-dark);
}

.portfolio-project-label > div em {
  color: var(--muted);
}

.portfolio-project-track {
  position: relative;
  background-image:
    linear-gradient(to bottom, transparent 16px, rgba(20, 54, 49, .06) 16px 17px, transparent 17px 33px, rgba(20, 54, 49, .06) 33px 34px, transparent 34px);
}

.portfolio-project-track.is-critical {
  background: rgba(179, 57, 41, .035);
}

.portfolio-segment {
  position: absolute;
  left: var(--left);
  width: var(--width);
  min-width: 8px;
  max-width: calc(100% - var(--left));
  height: 10px;
  border: 0;
  border-radius: 3px;
  padding: 0;
  cursor: help;
}

.portfolio-segment.is-plan {
  top: 6px;
  border: 2px solid #5048aa;
  background: rgba(80, 72, 170, .10);
}

.portfolio-segment.is-pnr,
.portfolio-segment.is-shmr,
.portfolio-segment.is-smr {
  top: 21px;
  background: #1f649a;
}

.portfolio-segment.is-zpi {
  top: 36px;
  background: #b44030;
}

.portfolio-phase {
  position: absolute;
  top: var(--phase-top);
  left: var(--left);
  width: var(--width);
  min-width: 16px;
  max-width: calc(100% - var(--left));
  height: 12px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 4px;
  color: #10211f;
  font: inherit;
  font-size: .54rem;
  font-weight: 900;
  line-height: 10px;
  text-align: left;
  cursor: pointer;
}

.portfolio-phase.is-shmr {
  border-color: rgba(45, 118, 106, .58);
  background: rgba(76, 159, 142, .48);
}

.portfolio-phase.is-smr {
  border-color: rgba(168, 119, 35, .58);
  background: rgba(222, 174, 77, .52);
}

.portfolio-phase.is-pnr {
  border-color: rgba(80, 72, 170, .58);
  background: rgba(111, 101, 194, .48);
}

.portfolio-phase span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-phase-fact {
  position: absolute;
  top: var(--phase-top);
  left: var(--left);
  width: var(--width);
  min-width: 16px;
  max-width: calc(100% - var(--left));
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 95, .7);
  border-radius: 4px;
  background: #2d87c8;
  color: #10211f;
  padding: 0 4px;
  font: inherit;
  font-size: .54rem;
  font-weight: 900;
  line-height: 10px;
  text-align: left;
  cursor: pointer;
  z-index: 4;
}

.portfolio-phase-fact span,
.portfolio-phase-forecast span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-phase-forecast {
  position: absolute;
  top: var(--phase-top);
  left: var(--left);
  width: var(--width);
  min-width: 16px;
  max-width: calc(100% - var(--left));
  height: 12px;
  overflow: hidden;
  border: 1px dashed rgba(168, 119, 35, .86);
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(222, 174, 77, .62) 0 6px, rgba(222, 174, 77, .22) 6px 12px);
  color: #49320d;
  padding: 0 4px;
  font: inherit;
  font-size: .54rem;
  font-weight: 900;
  line-height: 10px;
  text-align: left;
  cursor: pointer;
  z-index: 3;
}

.portfolio-phase-history {
  position: absolute;
  top: var(--phase-top);
  left: var(--left);
  width: var(--width);
  min-width: 12px;
  max-width: calc(100% - var(--left));
  height: 11px;
  overflow: hidden;
  border: 1px dashed rgba(80, 72, 170, .78);
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(80, 72, 170, .38) 0 7px, rgba(80, 72, 170, .10) 7px 14px);
  padding: 0 4px;
  color: #35305f;
  font: inherit;
  font-size: .5rem;
  font-weight: 800;
  line-height: 9px;
  text-align: left;
  cursor: pointer;
  opacity: 1;
  z-index: 2;
}

.portfolio-phase-history span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portfolio-signal {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: .68rem;
  font-weight: 900;
  z-index: 5;
}

.portfolio-signal.is-deficit {
  background: #b33929;
}

.portfolio-signal.is-rotation {
  top: 27px;
  background: #c88720;
}

.portfolio-detail-label,
.portfolio-detail-track {
  min-height: 34px;
  border-bottom: 1px solid rgba(20, 54, 49, .1);
  background: #f8fafb;
}

.portfolio-detail-label {
  position: sticky;
  left: 0;
  z-index: 7;
  display: flex;
  align-items: flex-start;
  border-right: 1px solid var(--line);
  padding: 8px 12px 0 28px;
}

.portfolio-detail-label span {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-detail-track {
  position: relative;
}

.portfolio-detail-track .load-row {
  min-height: 38px;
}

.project-drawer[hidden] {
  display: none;
}

.project-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.project-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 38, 35, .28);
  cursor: default;
}

.project-drawer-panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(520px, 94vw);
  overflow-y: auto;
  background: #ffffff;
  padding: 18px;
  box-shadow: -18px 0 46px rgba(15, 38, 35, .18);
}

.project-drawer-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.project-drawer-head h2 {
  margin: 2px 0 0;
  font-size: 1.22rem;
}

.project-drawer-head h2 span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.project-drawer-status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  border-left: 4px solid #0b7f70;
  background: #f3faf8;
  padding: 10px 12px;
}

.project-drawer-status.is-critical {
  border-left-color: #b33929;
  background: #fff5f2;
}

.project-drawer-status.is-near {
  border-left-color: #c88720;
  background: #fffaf0;
}

.project-drawer-status.is-future {
  border-left-color: #7169bf;
  background: #f7f6ff;
}

.project-drawer-status span {
  color: var(--muted);
  font-size: .76rem;
}

.project-phase-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.project-phase-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-top: 4px solid #0b7f70;
  border-radius: 6px;
  background: #ffffff;
  padding: 8px;
}

.project-phase-card:nth-child(2) {
  border-top-color: #c88720;
}

.project-phase-card:nth-child(3) {
  border-top-color: #665cc0;
}

.project-phase-card.is-risk,
.project-phase-card.is-missing {
  background: #fff7ed;
}

.project-phase-card strong,
.project-phase-card span,
.project-phase-card em,
.project-phase-card small {
  display: block;
}

.project-phase-card span {
  margin-top: 4px;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
}

.project-phase-card em,
.project-phase-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .66rem;
  font-style: normal;
}

.project-phase-card small {
  color: #986313;
}

.project-drawer-section {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.project-drawer-section h3 {
  margin: 0 0 8px;
  font-size: .84rem;
}

.project-drawer-section p {
  margin: 4px 0;
  color: var(--muted);
  font-size: .76rem;
}

.project-drawer-section.is-risk p {
  color: #986313;
  font-weight: 800;
}

.project-schedule-forecast {
  border-left: 4px solid #0b7f70;
  background: #f5faf8;
  padding: 10px 12px;
}

.project-schedule-forecast.is-risk {
  border-left-color: #b33929;
  background: #fff5f2;
}

.project-forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.project-forecast-grid span {
  color: var(--muted);
  font-size: .72rem;
}

.project-forecast-grid strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: .9rem;
}

.project-schedule-forecast p,
.project-schedule-forecast em {
  display: block;
  margin: 8px 0 0;
  font-size: .76rem;
}

.project-schedule-forecast em {
  color: #9b3528;
  font-style: normal;
  font-weight: 800;
}

.project-drawer-people,
.project-drawer-needs {
  display: grid;
  gap: 5px;
}

.project-drawer-people span,
.project-drawer-needs span {
  border-radius: 5px;
  background: #f4f7f6;
  padding: 6px 8px;
  font-size: .72rem;
  font-weight: 800;
}

.project-drawer-needs {
  margin-top: 10px;
}

.project-drawer-needs span {
  background: #fff5e5;
  color: #8b5b14;
}

.project-drawer-rotation {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 5px;
  border-left: 3px solid #c88720;
  background: #fffaf0;
  padding: 6px 8px;
  font-size: .72rem;
}

.project-drawer-rotation.is-assigned {
  border-left-color: #0b7f70;
  background: #f3faf8;
}

.project-drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .portfolio-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-search {
    grid-column: 1 / -1;
  }

  .portfolio-plan {
    --portfolio-label-width: 190px;
  }

  .portfolio-collapse {
    width: 100%;
  }

  .project-phase-flow {
    grid-template-columns: 1fr;
  }

  .project-drawer-actions {
    flex-direction: column;
  }
}

.person-load-plan {
  --person-label-width: 270px;
}

.person-load-plan .load-ruler {
  width: calc(100% - var(--person-label-width));
  min-width: 0;
  margin-left: var(--person-label-width);
}

.person-load-rows {
  position: relative;
  display: grid;
  grid-template-columns: var(--person-label-width) minmax(0, 1fr);
  width: 100%;
  min-width: 100%;
  background: #fbfcfd;
}

.person-load-rows .load-grid-lines {
  left: var(--person-label-width);
}

.person-load-group-label,
.person-load-group-track {
  min-height: 28px;
  border-bottom: 1px solid rgba(20, 54, 49, .1);
  background: #eef5f3;
}

.person-load-group-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 12px;
  border-right: 1px solid var(--line);
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.person-load-group-label span {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: 0;
}

.person-load-group-track {
  position: relative;
}

.person-load-label,
.person-load-track {
  min-height: 44px;
  border-bottom: 1px solid rgba(20, 54, 49, .08);
}

.person-load-label {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 7px 12px;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.person-load-label-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 6px;
}

.person-load-label strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-current-activity {
  min-width: 0;
  overflow: hidden;
  color: var(--green-dark);
  font-size: .74rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-current-activity.is-ready {
  color: #087b4b;
}

.person-current-activity.is-free {
  color: #b47a12;
}

.resource-attention {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4f3b00;
  font-size: .72rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.resource-attention::before {
  content: "";
  position: absolute;
  inset: 1px 0 0;
  z-index: -1;
  background: #f3c94e;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 1px 1px rgba(15, 38, 35, .18));
}

.resource-profile-gear {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(20, 54, 49, .12);
  border-radius: 6px;
  background: #f7fbfa;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1;
}

.resource-profile-gear:hover,
.resource-profile-gear:focus-visible {
  border-color: rgba(0, 107, 95, .4);
  color: var(--green-dark);
  outline: none;
}

.person-load-label span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.person-load-track {
  position: relative;
}

.project-resource-layer-label,
.project-resource-layer-track {
  background: #f3f6f7;
}

.project-resource-layer-label {
  color: #243b38;
}

.project-resource-layer-track {
  display: flex;
  align-items: center;
  padding: 6px 8px;
}

.project-resource-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.project-resource-view-controls {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-left: auto;
}

.project-resource-view-controls label {
  display: grid;
  gap: 2px;
}

.project-resource-view-controls label > span {
  padding-left: 2px;
  font-size: .55rem;
}

.project-resource-view-controls select {
  min-height: 28px;
  border: 1px solid rgba(20, 54, 49, .16);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 3px 24px 3px 7px;
  font: inherit;
  font-size: .66rem;
  font-weight: 850;
}

.project-resource-view-controls label:first-child select {
  min-width: 190px;
}

.project-resource-view-controls label:last-child select {
  min-width: 170px;
}

.project-resource-view-controls select:focus-visible {
  border-color: rgba(0, 107, 95, .48);
  outline: 2px solid rgba(0, 107, 95, .1);
}

.project-resource-add {
  min-height: 28px;
  border: 1px solid rgba(0, 107, 95, .22);
  border-radius: 7px;
  background: #e9f6f3;
  color: var(--green-dark);
  padding: 5px 10px;
  font: inherit;
  font-size: .72rem;
  font-weight: 950;
  cursor: pointer;
  white-space: nowrap;
}

.project-resource-add:hover,
.project-resource-add:focus-visible {
  border-color: rgba(0, 107, 95, .46);
  background: #dff1ed;
  outline: none;
}

.project-resource-toolbar span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.15;
}

.project-resource-label,
.project-resource-track {
  min-height: 42px;
}

.project-resource-label {
  padding-top: 5px;
  padding-bottom: 4px;
  background: #fbfdfd;
}

.project-resource-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
}

.project-resource-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-resource-title > span {
  display: inline-flex;
  gap: 3px;
}

.project-resource-title button {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(20, 54, 49, .14);
  border-radius: 5px;
  background: #ffffff;
  color: var(--green-dark);
  font: inherit;
  font-size: .72rem;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
}

.project-resource-title button:hover,
.project-resource-title button:focus-visible {
  border-color: rgba(0, 107, 95, .38);
  background: #e9f6f3;
  outline: none;
}

.project-resource-archived-mark {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 900;
  white-space: nowrap;
}

.project-resource-title strong {
  font-size: .76rem;
}

.project-resource-title strong span {
  display: inline;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 800;
}

.project-resource-label em {
  overflow: hidden;
  color: var(--muted);
  font-size: .61rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-resource-archive-head,
.project-resource-archive-head-track,
.project-resource-label.is-archived,
.project-resource-archive-track {
  background: #f5f7f7;
}

.project-resource-archive-head {
  min-height: 38px;
  padding: 0;
}

.project-resource-archive-head > button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 37px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 5px 12px;
  text-align: left;
  cursor: pointer;
}

.project-resource-archive-head > button > span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(20, 54, 49, .14);
  border-radius: 5px;
  background: #fff;
  color: var(--green-dark);
  font-size: .75rem;
}

.project-resource-archive-head > button > strong {
  font-size: .72rem;
}

.project-resource-archive-head > button > em {
  color: var(--muted);
  font-size: .66rem;
  font-style: normal;
  font-weight: 900;
}

.project-resource-archive-head-track,
.project-resource-archive-track {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
}

.project-resource-archive-head-track span,
.project-resource-archive-track span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
}

.project-resource-label.is-archived {
  opacity: .86;
}

.project-resource-filter-empty,
.project-resource-filter-empty-track {
  min-height: 42px;
  background: #fbfdfd;
}

.project-resource-filter-empty-track {
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.project-resource-filter-empty-track span {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 800;
}

.project-resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}

.project-resource-actions button {
  min-height: 18px;
  border: 1px solid rgba(0, 107, 95, .18);
  border-radius: 5px;
  background: #ffffff;
  color: var(--green-dark);
  padding: 2px 5px;
  font: inherit;
  font-size: .55rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.project-resource-actions button:hover,
.project-resource-actions button:focus-visible {
  border-color: rgba(0, 107, 95, .42);
  background: #e9f6f3;
  outline: none;
}

.project-resource-person {
  display: grid;
  grid-template-columns: minmax(0, .8fr) auto;
  gap: 5px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: #eef8f5;
  color: #174943;
  padding: 2px 5px;
  font: inherit;
  text-align: left;
}

.project-resource-person span,
.project-resource-person em {
  overflow: hidden;
  font-size: .56rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-resource-person span {
  font-weight: 900;
}

.project-resource-person em {
  color: #53716d;
  font-style: normal;
  font-weight: 800;
}

.project-resource-person em.is-overlimit {
  color: #b52f2a;
}

.project-resource-profile-warning {
  color: #9a6500;
  cursor: pointer;
  font-size: inherit;
  font-style: normal;
  font-weight: 950;
  text-decoration: underline dotted rgba(154, 101, 0, .52);
  text-underline-offset: 2px;
}

.resource-profile-warning {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  flex: 0 0 17px;
  width: 17px;
  height: 15px;
  border: 0;
  background: transparent;
  color: #6f4800;
  cursor: pointer;
  font-size: .55rem;
  font-weight: 950;
  line-height: 1;
  padding: 0;
}

.resource-profile-warning::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #efc14d;
}

.resource-profile-warning:hover,
.resource-profile-warning:focus-visible {
  filter: brightness(.94);
  outline: none;
}

.project-resource-trip-warning {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  flex: 0 0 15px;
  width: 15px;
  height: 13px;
  margin-right: 2px;
  color: #6f4800;
  font-size: .48rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
}

.project-resource-trip-warning::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: #efc14d;
}

.project-resource-person:hover,
.project-resource-person:focus-visible {
  background: #dcefeb;
  outline: 1px solid rgba(0, 107, 95, .22);
}

.project-resource-person.is-ended {
  background: #f3f5f5;
  color: #60706d;
  cursor: default;
}

.project-resource-person.is-ended:hover,
.project-resource-person.is-ended:focus-visible {
  background: #f3f5f5;
  outline: none;
}

.project-resource-ended-label,
.project-resource-ended-track {
  min-height: 25px;
  border-top: 1px solid rgba(20, 54, 49, .07);
  background: #f7f9f9;
}

.project-resource-ended-label {
  padding: 2px 7px 2px 16px;
}

.project-resource-ended-label button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  width: 100%;
  min-height: 20px;
  border: 0;
  background: transparent;
  color: #49625e;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.project-resource-ended-label button:hover,
.project-resource-ended-label button:focus-visible {
  color: var(--green-dark);
  outline: none;
}

.project-resource-ended-label span,
.project-resource-ended-label em {
  overflow: hidden;
  font-size: .56rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-resource-ended-label span {
  font-weight: 900;
}

.project-resource-ended-label span b {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  margin-right: 3px;
  border: 1px solid rgba(20, 54, 49, .14);
  border-radius: 4px;
  background: #ffffff;
  color: var(--green-dark);
  font-size: .58rem;
  line-height: 1;
}

.project-resource-ended-label em {
  color: #778783;
  font-style: normal;
  font-weight: 800;
}

.project-resource-ended-track {
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.project-resource-ended-track span {
  color: #8a9895;
  font-size: .54rem;
  font-weight: 800;
}

.project-resource-track {
  background: #fbfdfd;
}

.project-resource-person-label,
.project-resource-person-track {
  min-height: 28px;
  background: #ffffff;
}

.project-resource-person-label {
  padding: 3px 7px 3px 16px;
}

.project-resource-person-label .project-resource-person {
  background: transparent;
  padding: 0;
}

.project-resource-person-label .project-resource-person:hover,
.project-resource-person-label .project-resource-person:focus-visible {
  background: transparent;
}

.project-resource-person-track {
  position: relative;
}

.project-resource-person-bar {
  position: absolute;
  left: var(--left);
  width: var(--width);
  min-width: 18px;
  max-width: calc(100% - var(--left));
  overflow: hidden;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
}

.project-resource-person-bar.is-fact {
  top: 8px;
  height: 12px;
  background: linear-gradient(180deg, #24a28e, #087567);
  z-index: 2;
}

.project-resource-person-bar.is-plan {
  top: 8px;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(92, 83, 183, .78) 0 7px, rgba(92, 83, 183, .38) 7px 14px);
  z-index: 1;
}

.project-resource-person-bar.is-plan.is-confirmed {
  background:
    repeating-linear-gradient(90deg, rgba(0, 107, 95, .72) 0 7px, rgba(0, 107, 95, .34) 7px 14px);
}

.project-resource-person-bar.is-plan.is-continuation {
  border-radius: 0 999px 999px 0;
  background:
    repeating-linear-gradient(90deg, rgba(15, 139, 119, .72) 0 7px, rgba(15, 139, 119, .30) 7px 14px);
}

.project-resource-person-bar.is-plan.is-overlimit {
  background:
    repeating-linear-gradient(90deg, rgba(201, 55, 48, .88) 0 7px, rgba(201, 55, 48, .46) 7px 14px);
  box-shadow: inset 0 0 0 1px rgba(145, 32, 27, .72);
}

.project-resource-person-bar b {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(4, 55, 49, .58);
  color: #ffffff;
  font-size: .54rem;
  font-weight: 950;
  line-height: 8px;
  padding: 0 6px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .48);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-resource-person-bar.is-plan b {
  background: transparent;
  line-height: 12px;
}

.project-resource-person-bar.is-plan.is-continuation b {
  margin-left: auto;
}

.project-resource-need-label,
.project-resource-need-track {
  min-height: 30px;
  background: #fffaf4;
}

.project-resource-need-label {
  padding: 3px 7px 3px 16px;
}

.project-resource-need-label > button {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 1px;
  border: 0;
  background: transparent;
  color: #75420b;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.project-resource-need-label span,
.project-resource-need-label em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-resource-need-label span {
  font-size: .6rem;
  font-weight: 950;
}

.project-resource-need-label em {
  color: #9a661f;
  font-size: .52rem;
  font-style: normal;
  font-weight: 800;
}

.project-resource-need-track {
  position: relative;
}

.project-resource-need-bar {
  position: absolute;
  top: 8px;
  left: var(--left);
  width: var(--width);
  min-width: 18px;
  max-width: calc(100% - var(--left));
  height: 14px;
  overflow: hidden;
  border: 1px dashed rgba(165, 91, 15, .72);
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(224, 158, 69, .48) 0 7px, rgba(255, 242, 221, .88) 7px 14px);
  color: #673804;
  padding: 0 6px;
  text-align: left;
  cursor: pointer;
}

.project-resource-need-bar b {
  display: block;
  overflow: hidden;
  font-size: .52rem;
  line-height: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-resource-need-label > button:hover span,
.project-resource-need-label > button:focus-visible span,
.project-resource-need-bar:hover,
.project-resource-need-bar:focus-visible {
  color: #9b4e00;
}

.project-resource-row-edit {
  margin-left: 4px;
  color: #6e817d;
  font-size: .55rem;
  font-style: normal;
}

.project-resource-notice-label,
.project-resource-notice-track {
  min-height: 30px;
  background: #fbfdfd;
}

.project-resource-notice-label {
  padding: 4px 7px 4px 16px;
}

.project-resource-notice-label > span {
  display: block;
  overflow: hidden;
  color: #456661;
  font-size: .56rem;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-resource-notice-label.is-warning > span {
  color: #9b5d00;
  font-weight: 900;
}

.project-resource-segment {
  position: absolute;
  left: var(--left);
  width: var(--width);
  min-width: 20px;
  max-width: calc(100% - var(--left));
  border: 0;
  border-radius: 6px;
  padding: 0 6px;
  color: #ffffff;
  font: inherit;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1;
  text-align: left;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
}

.project-resource-segment.is-fact {
  top: 16px;
  height: 13px;
  background: linear-gradient(180deg, #1f9a86, #0c7468);
}

.project-resource-segment.is-plan {
  top: 32px;
  height: 13px;
  background:
    repeating-linear-gradient(90deg, rgba(80, 72, 170, .82) 0 8px, rgba(80, 72, 170, .48) 8px 16px);
}

.project-resource-segment.is-plan.is-confirmed {
  background:
    repeating-linear-gradient(90deg, rgba(0, 107, 95, .76) 0 8px, rgba(0, 107, 95, .42) 8px 16px);
}

.project-resource-segment span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-availability {
  position: absolute;
  inset: 6px auto 6px var(--left);
  width: var(--width);
  max-width: calc(100% - var(--left));
  border-radius: 6px;
  pointer-events: none;
}

.person-availability.is-free {
  background:
    repeating-linear-gradient(135deg, rgba(31, 100, 154, .16) 0 5px, rgba(31, 100, 154, .055) 5px 10px);
}

.person-availability.is-ready {
  background:
    radial-gradient(circle at 6px 50%, rgba(0, 107, 95, .24) 0 2px, transparent 2px 9px),
    rgba(0, 107, 95, .045);
  background-size: 18px 100%, auto;
}

.person-availability.is-office {
  background:
    repeating-linear-gradient(135deg, rgba(90, 96, 110, .16) 0 5px, rgba(90, 96, 110, .045) 5px 10px);
}

.person-absence {
  position: absolute;
  inset: 9px auto 9px var(--left);
  width: var(--width);
  max-width: calc(100% - var(--left));
  border-radius: 6px;
  pointer-events: none;
  z-index: 4;
}

.person-absence.is-vacation {
  background:
    repeating-linear-gradient(90deg, rgba(120, 83, 174, .48) 0 7px, rgba(120, 83, 174, .18) 7px 14px);
}

.person-absence.is-sick {
  background:
    repeating-linear-gradient(45deg, rgba(190, 59, 59, .48) 0 6px, rgba(190, 59, 59, .16) 6px 12px);
}

.person-current-segment {
  position: absolute;
  inset: 11px auto 11px var(--left);
  width: var(--width);
  max-width: calc(100% - var(--left));
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(198, 153, 55, .56) 0 8px, rgba(198, 153, 55, .24) 8px 16px);
  cursor: help;
  z-index: 2;
}

.person-office-project-segment {
  position: absolute;
  inset: 12px auto 12px var(--left);
  width: var(--width);
  max-width: calc(100% - var(--left));
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(89, 99, 182, .52) 0 7px, rgba(89, 99, 182, .20) 7px 14px);
  cursor: help;
  z-index: 2;
}

.person-assumed-onsite {
  position: absolute;
  inset: 10px auto 10px var(--left);
  width: var(--width);
  max-width: calc(100% - var(--left));
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(46, 131, 207, .28) 0 6px, rgba(46, 131, 207, .10) 6px 12px);
  pointer-events: none;
  z-index: 1;
}

.person-plan-segment {
  position: absolute;
  inset: 15px auto 15px var(--left);
  width: var(--width);
  min-width: 14px;
  max-width: calc(100% - var(--left));
  border: 1px solid rgba(80, 72, 170, .24);
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(80, 72, 170, .52) 0 8px, rgba(80, 72, 170, .30) 8px 16px);
  color: #ffffff;
  padding: 0 6px;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  text-align: left;
  overflow: hidden;
  z-index: 5;
}

.person-plan-segment.is-conflict {
  border-color: rgba(179, 101, 34, .36);
  background:
    repeating-linear-gradient(90deg, rgba(198, 126, 47, .78) 0 8px, rgba(198, 126, 47, .42) 8px 16px);
}

.person-plan-segment.is-continuation {
  inset: 8px auto 8px var(--left);
  border-color: rgba(0, 107, 95, .28);
  background:
    repeating-linear-gradient(90deg, rgba(31, 143, 122, .70) 0 8px, rgba(31, 143, 122, .30) 8px 16px);
  border-radius: 6px;
  z-index: 2;
}

.person-plan-segment > span {
  display: block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(4, 55, 49, .58);
  color: #ffffff;
  padding: 1px 5px;
  font-weight: 950;
  line-height: 1.25;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .48);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-plan-segment.is-continuation.is-conflict {
  border-color: rgba(179, 101, 34, .36);
  background:
    repeating-linear-gradient(90deg, rgba(198, 126, 47, .78) 0 8px, rgba(198, 126, 47, .42) 8px 16px);
}

.person-plan-segment.is-overlimit {
  border-color: rgba(162, 38, 32, .72);
  background:
    repeating-linear-gradient(90deg, rgba(201, 55, 48, .88) 0 8px, rgba(201, 55, 48, .48) 8px 16px);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 207, .44);
}

.person-plan-segment.is-rotation {
  border-color: rgba(0, 107, 95, .34);
  background:
    repeating-linear-gradient(90deg, rgba(0, 107, 95, .70) 0 8px, rgba(0, 107, 95, .42) 8px 16px);
}

.person-plan-segment.is-rotation.is-conflict {
  border-color: rgba(179, 101, 34, .36);
  background:
    repeating-linear-gradient(90deg, rgba(198, 126, 47, .78) 0 8px, rgba(198, 126, 47, .42) 8px 16px);
}

.person-plan-segment.is-rotation.is-overlimit,
.person-plan-segment.is-conflict.is-overlimit {
  border-color: rgba(162, 38, 32, .72);
  background:
    repeating-linear-gradient(90deg, rgba(201, 55, 48, .88) 0 8px, rgba(201, 55, 48, .48) 8px 16px);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 207, .44);
}

.person-load-label--need {
  background: #fbf8ff;
}

.person-current-activity.is-need {
  color: #5048aa;
}

.person-plan-assign {
  width: 100%;
  min-height: 28px;
  margin-top: 5px;
  border: 1px solid rgba(80, 72, 170, .24);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: .7rem;
}

.person-plan-need-segment {
  position: absolute;
  inset: 11px auto 11px var(--left);
  width: var(--width);
  min-width: 18px;
  max-width: calc(100% - var(--left));
  border: 1px dashed rgba(80, 72, 170, .42);
  border-radius: 6px;
  background:
    repeating-linear-gradient(90deg, rgba(80, 72, 170, .30) 0 8px, rgba(80, 72, 170, .12) 8px 16px);
  color: #332c86;
  padding: 0 6px;
  font: inherit;
  font-size: .72rem;
  font-weight: 900;
  text-align: left;
  overflow: hidden;
  z-index: 4;
}

.person-load-segment {
  position: absolute;
  inset: 8px auto 8px var(--left);
  width: var(--width);
  min-width: 10px;
  max-width: calc(100% - var(--left));
  border: 0;
  border-radius: 6px;
  background: var(--load-color);
  color: #ffffff;
  padding: 0 6px;
  font: inherit;
  text-align: left;
  overflow: hidden;
  z-index: 3;
}

.person-load-segment.is-pnr {
  --load-color: #1f8f7a;
}

.person-load-segment.is-zpi {
  --load-color: #d27c3f;
}

.load-legend .is-person-plan::before {
  background:
    repeating-linear-gradient(90deg, rgba(80, 72, 170, .52) 0 7px, rgba(80, 72, 170, .30) 7px 14px);
}

.load-legend .is-need::before {
  background:
    repeating-linear-gradient(90deg, rgba(80, 72, 170, .30) 0 7px, rgba(80, 72, 170, .12) 7px 14px);
}

.load-legend .is-free::before {
  background:
    repeating-linear-gradient(135deg, rgba(31, 100, 154, .42) 0 4px, rgba(31, 100, 154, .12) 4px 8px);
}

.load-legend .is-ready::before {
  background:
    radial-gradient(circle, rgba(0, 107, 95, .45) 0 2px, transparent 2px 7px),
    rgba(0, 107, 95, .08);
  background-size: 12px 12px, auto;
}

.load-legend .is-vacation::before {
  background: rgba(120, 83, 174, .55);
}

.load-legend .is-sick::before {
  background: rgba(190, 59, 59, .55);
}

.load-legend .is-office::before {
  background: rgba(90, 96, 110, .35);
}

.load-legend .is-current::before {
  background:
    repeating-linear-gradient(90deg, rgba(198, 153, 55, .56) 0 7px, rgba(198, 153, 55, .24) 7px 14px);
}

.load-legend .is-office-project::before {
  background:
    repeating-linear-gradient(135deg, rgba(89, 99, 182, .52) 0 6px, rgba(89, 99, 182, .20) 6px 12px);
}

.load-legend .is-assumed::before {
  background:
    repeating-linear-gradient(135deg, rgba(46, 131, 207, .36) 0 5px, rgba(46, 131, 207, .12) 5px 10px);
}

.resource-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 38, 35, .28);
}

.resource-profile-modal[hidden] {
  display: none;
}

.resource-profile-card {
  width: min(620px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(15, 38, 35, .24);
}

.resource-profile-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
}

.resource-profile-card select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 7px 10px;
}

.resource-project-card {
  width: min(720px, 100%);
}

.resource-project-form-grid {
  display: grid;
  grid-template-columns: minmax(130px, .75fr) minmax(190px, 1.25fr) 96px;
  gap: 12px;
}

.resource-project-form-grid .planner-field:nth-child(4) {
  grid-column: span 2;
}

.resource-project-form-grid .planner-field {
  position: relative;
}

.resource-project-form-grid input,
.resource-project-form-grid select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 7px 10px;
}

.resource-project-form-grid input:focus-visible,
.resource-project-form-grid select:focus-visible {
  border-color: rgba(0, 107, 95, .44);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 107, 95, .08);
}

.resource-customer-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.resource-customer-control > button {
  min-height: 38px;
  border: 1px solid rgba(153, 55, 55, .18);
  border-radius: 8px;
  background: #fff8f7;
  color: #8d3630;
  padding: 7px 10px;
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}

.resource-customer-control > button:hover,
.resource-customer-control > button:focus-visible {
  border-color: rgba(153, 55, 55, .4);
  background: #fff0ee;
  outline: none;
}

.resource-project-suggest {
  position: absolute;
  z-index: 4;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(20, 54, 49, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 38, 35, .16);
}

.resource-project-suggest[hidden] {
  display: none;
}

.resource-project-suggest button,
.resource-project-suggest span {
  display: grid;
  gap: 2px;
  min-height: 38px;
  border: 0;
  border-bottom: 1px solid rgba(20, 54, 49, .08);
  background: #fff;
  color: var(--ink);
  padding: 7px 10px;
  font: inherit;
  text-align: left;
}

.resource-project-suggest button:last-child {
  border-bottom: 0;
}

.resource-project-suggest button:hover,
.resource-project-suggest button:focus-visible {
  background: #eef8f5;
  outline: none;
}

.resource-customer-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  border-bottom: 1px solid rgba(20, 54, 49, .08);
}

.resource-customer-option:last-child {
  border-bottom: 0;
}

.resource-customer-option > button {
  min-width: 0;
  border-bottom: 0;
}

.resource-customer-option > .resource-customer-delete {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-left: 1px solid rgba(153, 55, 55, .12);
  background: #fffafa;
  color: #a03f38;
  padding: 0;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.resource-customer-option > .resource-customer-delete:hover,
.resource-customer-option > .resource-customer-delete:focus-visible {
  background: #fff0ee;
  color: #7e2924;
}

.resource-customer-option > .resource-customer-delete:disabled {
  cursor: wait;
  opacity: .45;
}

.resource-project-suggest strong {
  font-size: .82rem;
  font-weight: 950;
  line-height: 1.1;
}

.resource-project-suggest em,
.resource-project-suggest span {
  color: var(--muted);
  font-size: .68rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.15;
}

.resource-assignment-card {
  width: min(860px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.resource-assignment-summary {
  display: grid;
  gap: 3px;
  border-left: 3px solid #0b7f70;
  background: #f2faf8;
  padding: 8px 10px;
}

.resource-assignment-summary strong {
  font-size: .92rem;
}

.resource-assignment-summary span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
}

.resource-assignment-summary em {
  margin-top: 5px;
  border-top: 1px solid rgba(188, 132, 15, .24);
  color: #7a5707;
  font-size: .75rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  padding-top: 6px;
}

.resource-assignment-dates {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
}

.resource-assignment-dates input,
.resource-assignment-dates select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 6px 9px;
}

.resource-assignment-dates input[readonly] {
  background: #f4f6f6;
  color: #60706d;
}

.resource-assignment-competencies {
  display: grid;
  gap: 7px;
}

.resource-assignment-competencies > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-transform: uppercase;
}

#resource-assignment-competencies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resource-assignment-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 5px 8px;
  color: #2d4642;
  font-size: .68rem;
  font-weight: 850;
}

.resource-assignment-body,
.resource-assignment-roles {
  display: grid;
  gap: 8px;
}

.resource-assignment-rotation {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(179, 57, 41, .28);
  border-radius: 10px;
  background: #fff8f6;
  padding: 12px;
}

.resource-assignment-rotation[hidden] {
  display: none;
}

.resource-assignment-rotation-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.resource-assignment-rotation-head > div,
.resource-assignment-rotation-result {
  display: grid;
  gap: 3px;
}

.resource-assignment-rotation-head span,
.resource-assignment-rotation-result span {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-assignment-rotation-head strong {
  color: #a43b34;
  font-size: .9rem;
}

.resource-assignment-rotation-head em {
  color: var(--muted);
  font-size: .68rem;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.resource-assignment-rotation > p {
  margin: 0;
  color: #72453f;
  font-size: .73rem;
  font-weight: 750;
  line-height: 1.4;
}

.resource-assignment-rotation-result {
  border-left: 3px solid #087b4b;
  border-radius: 6px;
  background: #edf9f3;
  padding: 8px 10px;
}

.resource-assignment-rotation-result strong {
  color: #087b4b;
  font-size: .76rem;
}

.resource-assignment-rotation-actions button {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(0, 107, 95, .24);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  padding: 7px 9px;
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
}

.resource-assignment-rotation-choices {
  display: grid;
  gap: 8px;
}

.resource-assignment-rotation-choices > section {
  overflow: hidden;
  border: 1px solid rgba(20, 54, 49, .12);
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
}

.resource-assignment-rotation-choices h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  border-bottom: 1px solid rgba(20, 54, 49, .09);
  background: #f3f8f7;
  padding: 7px 9px;
  color: #284b45;
  font-size: .7rem;
}

.resource-assignment-rotation-choices h3 b {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  border-radius: 999px;
  background: #dceeea;
  color: var(--green-dark);
  font-size: .64rem;
}

.resource-assignment-rotation-choices section.is-deficit h3 {
  background: #fff7e5;
  color: #875c08;
}

.resource-assignment-rotation-choices section.is-deficit h3 b {
  background: #f6e3b5;
  color: #875c08;
}

.resource-assignment-rotation-choices section > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
}

.resource-assignment-rotation-choice {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(0, 107, 95, .17);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 9px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.resource-assignment-rotation-choice > span {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  justify-content: space-between;
}

.resource-assignment-rotation-choice strong {
  min-width: 0;
  font-size: .73rem;
  line-height: 1.2;
}

.resource-assignment-rotation-choice i {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e6f3f0;
  color: #087b6e;
  padding: 3px 5px;
  font-size: .56rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.resource-assignment-rotation-choice em {
  color: var(--muted);
  font-size: .63rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.resource-assignment-rotation-choice:hover,
.resource-assignment-rotation-choice:focus-visible,
.resource-assignment-rotation-choice.is-selected {
  border-color: rgba(0, 107, 95, .48);
  background: #edf9f6;
  box-shadow: inset 3px 0 0 #087b6e;
  outline: none;
}

.resource-assignment-rotation-choice.is-deficit {
  border-color: rgba(190, 126, 25, .24);
  background: #fffdf7;
}

.resource-assignment-rotation-choice.is-deficit i {
  background: #f8e9c5;
  color: #8a5a00;
}

.resource-assignment-rotation-choice.is-deficit:hover,
.resource-assignment-rotation-choice.is-deficit:focus-visible,
.resource-assignment-rotation-choice.is-deficit.is-selected {
  border-color: rgba(190, 126, 25, .52);
  background: #fff7e6;
  box-shadow: inset 3px 0 0 #c28119;
}

.resource-assignment-rotation-choices > p {
  margin: 0;
  border-radius: 7px;
  background: #fff3d9;
  color: #80580a;
  padding: 8px 10px;
  font-size: .7rem;
  font-weight: 800;
}

.resource-assignment-rotation-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.resource-assignment-stage-decision {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(49, 44, 134, .18);
  border-radius: 9px;
  background: #f7f6ff;
  padding: 10px;
}

.resource-assignment-stage-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.resource-assignment-stage-head strong {
  color: #373184;
  font-size: .75rem;
}

.resource-assignment-stage-head span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
}

.resource-assignment-stage-fields {
  display: grid;
  grid-template-columns: minmax(140px, .7fr) minmax(220px, 1.3fr);
  gap: 7px;
}

.resource-assignment-stage-fields label {
  display: grid;
  gap: 4px;
}

.resource-assignment-stage-fields label > span {
  color: var(--muted);
  font-size: .63rem;
  font-weight: 900;
}

.resource-assignment-stage-fields label i {
  font-style: normal;
  font-weight: 700;
}

.resource-assignment-stage-fields input {
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(49, 44, 134, .18);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
  font: inherit;
  font-size: .72rem;
}

.resource-assignment-stage-decision > button {
  min-height: 36px;
  border: 1px solid rgba(49, 44, 134, .3);
  border-radius: 7px;
  background: #fff;
  color: #373184;
  padding: 7px 9px;
  font: inherit;
  font-size: .7rem;
  font-weight: 900;
  cursor: pointer;
}

.resource-assignment-stage-decision > button:hover,
.resource-assignment-stage-decision > button:focus-visible {
  background: #eeecff;
  outline: none;
}

.resource-assignment-rotation-actions button {
  cursor: pointer;
}

.resource-assignment-rotation-actions button.is-clear {
  grid-column: 1 / -1;
  border-color: rgba(164, 59, 52, .25);
  color: #a43b34;
}

.resource-assignment-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.resource-assignment-selected button {
  border: 1px solid rgba(0, 107, 95, .16);
  border-radius: 999px;
  background: #eaf6f3;
  color: var(--green-dark);
  padding: 5px 8px;
  font: inherit;
  font-size: .68rem;
  font-weight: 900;
}

.resource-assignment-role {
  overflow: hidden;
  border: 1px solid rgba(20, 54, 49, .1);
  border-radius: 8px;
  background: #fff;
}

.resource-assignment-role.is-primary-deficit-role {
  border-color: rgba(0, 107, 95, .24);
}

.resource-assignment-other-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px dashed rgba(0, 107, 95, .28);
  border-radius: 8px;
  background: #f4faf8;
  color: var(--green-dark);
  padding: 9px 11px;
  font: inherit;
  text-align: left;
}

.resource-assignment-other-toggle span {
  font-size: .74rem;
  font-weight: 900;
}

.resource-assignment-other-toggle em {
  color: var(--muted);
  font-size: .64rem;
  font-style: normal;
  font-weight: 850;
}

.resource-assignment-other-toggle b {
  font-size: 1rem;
}

.resource-assignment-other-roles {
  display: grid;
  gap: 7px;
  padding-left: 10px;
  border-left: 2px solid rgba(0, 107, 95, .14);
}

.resource-assignment-role-head {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(112px, auto);
  gap: 8px;
  align-items: center;
  background: #f7faf9;
  padding: 7px 9px;
}

.resource-assignment-role-head strong {
  font-size: .76rem;
}

.resource-assignment-role-head span,
.resource-assignment-role-head em {
  color: var(--muted);
  font-size: .64rem;
  font-style: normal;
  font-weight: 850;
}

.resource-assignment-role-head label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}

.resource-assignment-role-head label[hidden] {
  display: none;
}

.resource-assignment-role-head input {
  width: 54px;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 6px;
  font: inherit;
}

.resource-assignment-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 5px;
  padding: 7px;
}

.resource-assignment-person {
  display: grid;
  gap: 2px;
  min-height: 38px;
  border: 1px solid rgba(20, 54, 49, .1);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 6px 8px;
  font: inherit;
  text-align: left;
}

.resource-assignment-person span,
.resource-assignment-person em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.resource-assignment-person span {
  font-size: .72rem;
  font-weight: 900;
}

.resource-assignment-person em {
  color: var(--muted);
  font-size: .62rem;
  font-style: normal;
  font-weight: 800;
}

.resource-assignment-person.is-selected {
  border-color: rgba(0, 107, 95, .38);
  background: #e9f6f3;
}

.resource-assignment-person.is-warning,
.resource-assignment-person.is-replacement,
.resource-assignment-person.is-deferred {
  border-color: rgba(190, 126, 25, .28);
  background: #fffaf0;
}

.resource-assignment-person.is-deferred {
  border-style: dashed;
  cursor: pointer;
}

.resource-assignment-person.is-deferred em {
  color: #8a5a00;
}

.resource-assignment-person.is-busy {
  opacity: .58;
}

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

  .project-resource-view-controls {
    align-items: stretch;
    margin-left: 0;
  }

  .project-resource-view-controls label,
  .project-resource-view-controls select {
    min-width: 0 !important;
    width: 100%;
  }

  .resource-project-form-grid {
    grid-template-columns: 1fr;
  }

  .resource-project-form-grid .planner-field:nth-child(4) {
    grid-column: auto;
  }

  .resource-assignment-dates,
  .resource-assignment-role-head,
  .resource-assignment-other-toggle,
  .resource-assignment-rotation-actions {
    grid-template-columns: 1fr;
  }

  .resource-assignment-rotation-head {
    display: grid;
  }

  .resource-assignment-rotation-head em {
    text-align: left;
  }

  .resource-assignment-rotation-choices section > div {
    grid-template-columns: 1fr;
  }

  .resource-assignment-stage-head {
    display: grid;
  }

  .resource-assignment-stage-fields {
    grid-template-columns: 1fr;
  }

  .resource-assignment-role-head label {
    justify-self: stretch;
    justify-content: space-between;
  }
}

.resource-profile-competencies {
  display: grid;
  gap: 8px;
}

.resource-profile-competencies > span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

#resource-profile-competencies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.resource-profile-competency {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfdfc;
}

.resource-profile-competency span {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 800;
}

.resource-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.resource-assignment-delete {
  margin-right: auto;
  border-color: rgba(171, 66, 51, .35);
  color: #9b3d31;
}

.resource-assignment-delete:hover {
  border-color: rgba(171, 66, 51, .55);
  background: #fff4f1;
}

.resource-assignment-complete {
  margin-right: auto;
  border-color: rgba(188, 132, 15, .42);
  background: #fff9e8;
  color: #7a5707;
}

.resource-assignment-complete:hover {
  border-color: rgba(188, 132, 15, .65);
  background: #fff3c9;
}

.resource-assignment-complete:not([hidden]) + .resource-assignment-delete {
  margin-right: 0;
}

.primary-action {
  background: var(--green-dark);
  color: #ffffff;
}

.person-load-segment span {
  display: block;
  overflow: hidden;
  font-size: .68rem;
  font-weight: 900;
  line-height: 28px;
  opacity: .94;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.load-row-shade {
  position: absolute;
  inset: 7px auto 7px 0;
  width: var(--shade);
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(31, 100, 154, .12) 0 5px, rgba(31, 100, 154, .035) 5px 10px);
}

.load-bar {
  position: absolute;
  inset: 7px auto 7px var(--left);
  width: var(--width);
  min-width: 112px;
  max-width: calc(100% - var(--left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--load-density, var(--load-color));
  color: var(--load-text);
  padding: 0 12px;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 8px 22px rgba(15, 38, 35, .12);
  z-index: 2;
}

.load-bar strong,
.load-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.load-bar strong {
  font-size: .86rem;
  font-weight: 900;
}

.load-bar span {
  opacity: .86;
  font-size: .72rem;
  font-weight: 800;
}

.load-bar.is-plan {
  --load-color: #5048aa;
  --load-text: #101817;
}

.load-bar.is-replan-needed {
  --load-color: #c57928;
  --load-text: #101817;
  background:
    repeating-linear-gradient(90deg, rgba(198, 121, 40, .88) 0 10px, rgba(190, 70, 44, .72) 10px 20px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .38), 0 8px 22px rgba(130, 60, 25, .18);
}

.load-row.is-replan-needed {
  background: rgba(198, 121, 40, .08);
}

.load-bar.is-starting-soon {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .34), 0 0 0 2px rgba(0, 107, 95, .20), 0 8px 22px rgba(0, 107, 95, .14);
}

.load-row.is-starting-soon {
  background: rgba(0, 107, 95, .055);
}

.load-row.is-process-risk {
  background: rgba(185, 126, 24, .065);
}

.load-row.is-process-risk .load-bar.is-plan {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .34), 0 0 0 2px rgba(185, 126, 24, .22), 0 8px 22px rgba(115, 75, 15, .14);
}

.load-bar.is-plan-history {
  --load-color: rgba(80, 72, 170, .16);
  --load-text: #353b44;
  border: 1px dashed rgba(80, 72, 170, .38);
  background:
    repeating-linear-gradient(90deg, rgba(80, 72, 170, .22) 0 9px, rgba(80, 72, 170, .08) 9px 18px);
  box-shadow: none;
  opacity: .82;
  z-index: 1;
}

.load-row--plan .load-bar.is-plan-history {
  inset: 7px auto 7px var(--left);
}

.load-row--plan .load-bar.is-plan {
  inset: 7px auto 7px var(--left);
  z-index: 3;
}

.load-row--plan.is-assignment-reserved .load-bar.is-plan,
.portfolio-phase.is-assignment-reserved {
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .32) 0 5px, transparent 5px 10px),
    var(--load-density, linear-gradient(90deg, #6b64b8, #5048aa));
}

.load-row--plan.is-assignment-confirmed .load-bar.is-plan,
.portfolio-phase.is-assignment-confirmed {
  box-shadow: inset 0 0 0 2px rgba(20, 54, 49, .28);
}

.load-row--plan.is-unfilled .load-bar.is-plan,
.portfolio-phase.is-unfilled {
  outline: 2px dashed #b44030;
  outline-offset: 2px;
}

.load-row--plan .load-bar.is-plan-history strong,
.load-row--plan .load-bar.is-plan-history span {
  font-size: inherit;
}

.load-bar.is-pnr {
  --load-color: #1f649a;
  --load-text: #101817;
}

.load-bar.is-zpi {
  --load-color: #b44030;
  --load-text: #101817;
}

.planner-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.planner-main-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.planner-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.result-card {
  grid-column: 2;
  position: sticky;
  top: 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.card-head h2,
.create-title {
  margin: 0;
  font-size: 1.45rem;
}

.planner-field,
.source-card,
.result-card {
  display: grid;
  gap: 8px;
}

.project-picker {
  position: relative;
}

.calculation-objects-card {
  display: grid;
  gap: 12px;
}

.calculation-object-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(220px, 1.2fr) auto auto;
  gap: 10px;
  align-items: end;
}

.calculation-object-plan {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.section-plan-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.section-plan-card summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.section-plan-list {
  display: grid;
  gap: 8px;
}

.section-plan-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(0, 107, 95, .16);
  border-radius: 8px;
  background: #f5fbf9;
}

.section-plan-toolbar > div {
  display: grid;
  gap: 3px;
}

.section-plan-toolbar strong {
  color: var(--ink);
}

.section-plan-toolbar span {
  color: var(--muted);
  font-size: .82rem;
}

.section-plan-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(130px, .7fr) minmax(140px, .7fr);
  gap: 10px;
  align-items: end;
  padding: 8px;
  border: 1px solid rgba(0, 107, 95, .14);
  border-radius: 8px;
  background: #fff;
}

.section-plan-row.has-recommendation {
  border-color: rgba(188, 102, 35, .38);
  background: #fffaf2;
}

.section-plan-title {
  display: grid;
  gap: 3px;
}

.section-plan-title strong {
  color: var(--ink);
}

.section-plan-title span {
  color: var(--muted);
  font-size: .82rem;
}

.section-plan-title em {
  color: #7a5a15;
  font-size: .8rem;
  font-style: normal;
  font-weight: 800;
}

.calculation-object-summary {
  display: grid;
  gap: 10px;
}

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

.project-summary-grid article {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.project-summary-grid span,
.project-summary-grid em {
  color: var(--muted);
  font-size: .82rem;
  font-style: normal;
}

.project-summary-grid strong {
  color: var(--ink);
  font-size: 1rem;
}

.object-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.object-summary-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.object-summary-item.is-active {
  border-color: rgba(0, 107, 95, .5);
  background: #eef8f5;
}

.object-summary-item span {
  font-weight: 800;
}

.object-summary-item strong,
.object-summary-item em,
.object-summary-item small {
  color: var(--muted);
  font-size: .85rem;
  font-style: normal;
}

.object-summary-item small {
  color: #8a4d16;
}

.object-summary-warning {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(188, 102, 35, 0.22);
  border-radius: 8px;
  background: #fff4ec;
  color: #8a4d16;
  font-size: .86rem;
}

.project-master-timeline {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.project-master-timeline > summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  font-weight: 900;
}

.project-master-timeline > summary strong {
  color: var(--green-dark);
  font-size: .9rem;
}

.project-master-timeline .timeline-panel {
  margin-top: 10px;
  padding: 10px;
}

@media (max-width: 860px) {
  .lifecycle-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lifecycle-item {
    grid-template-columns: 1fr;
  }

  .lifecycle-item-actions {
    justify-content: flex-start;
  }

  .lifecycle-process-dates {
    grid-template-columns: 78px 1fr 1fr;
  }
  .calculation-object-toolbar,
  .calculation-object-plan,
  .section-plan-toolbar,
  .section-plan-row,
  .project-summary-grid {
    grid-template-columns: 1fr;
  }

  .section-plan-toolbar {
    display: grid;
  }

}

.version-panel__note {
  margin: 0;
}

.version-list {
  display: grid;
  gap: 8px;
  max-height: 56vh;
  overflow: auto;
  padding-right: 4px;
}

.version-section-title {
  margin-top: 8px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.version-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.version-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.version-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.version-item__title {
  font-weight: 800;
  color: var(--green-dark);
}

.version-item__meta {
  color: var(--muted);
  line-height: 1.45;
}

.version-item__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.version-chip--approved {
  background: #eef7ef;
  color: #1d6a35;
}

.version-chip--reapproved {
  background: #fff5e8;
  color: #a56000;
}

.version-trigger {
  width: 100%;
}

.version-modal[hidden] {
  display: none !important;
}

.version-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.version-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 34, 32, 0.44);
}

.version-modal__dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: min(78vh, 920px);
  margin: 48px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(8, 35, 34, 0.18);
}

.version-modal__dialog--narrow {
  width: min(560px, calc(100vw - 32px));
}

.version-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.version-modal__head h3 {
  margin: 2px 0 0;
  font-size: 22px;
}

.version-modal__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.selection-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--green-dark);
}

.selection-option--compact {
  padding: 2px 0;
}

.section-selection-list {
  display: grid;
  gap: 8px;
  padding: 8px 0 4px;
}

.section-selection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fbfa;
}

.planner-field-project {
  position: relative;
}

.planner-field input,
.planner-field textarea,
.directory-select select,
.source-card textarea,
.new-project-grid input,
.result-stack input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  font: inherit;
  background: #fff;
}

.planner-field textarea,
.source-card textarea {
  resize: vertical;
  line-height: 1.45;
}

.inline-details {
  margin-top: 12px;
}

.inline-details summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 800;
}

.new-project-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.directory-select {
  min-width: 260px;
  display: grid;
  gap: 6px;
}

.systems-box {
  min-width: 320px;
  display: grid;
  gap: 6px;
}

.operations-card .card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.operations-card .systems-box {
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.systems-box > span {
  color: var(--green-dark);
  font-size: .92rem;
  font-weight: 700;
}

.systems-selector {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.system-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.system-pill[open] {
  gap: 12px;
}

.system-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  cursor: pointer;
  list-style: none;
}

.system-summary::-webkit-details-marker {
  display: none;
}

.system-summary::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--muted);
  font-size: .85rem;
  transition: transform .16s ease;
}

.system-pill {
  position: relative;
}

.system-pill[open] .system-summary::after {
  transform: rotate(180deg);
}

.system-summary-text {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
  padding-right: 20px;
}

.system-selected {
  display: grid;
  gap: 6px;
}

.system-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 20px;
}

.system-selected-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(0, 107, 95, .18);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
}

.system-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.system-pill input {
  margin: 0;
}

.system-pill.is-active {
  border-color: rgba(0, 107, 95, .28);
  background: #eef8f4;
  color: var(--green-dark);
}

.system-library-set {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.system-library-set.is-disabled {
  opacity: .55;
}

.system-library-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
}

.system-library-option input {
  margin: 0;
}

.work-parts {
  display: grid;
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.part-head,
.part-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 128px;
  align-items: center;
  gap: 12px;
}

.part-head {
  min-height: auto;
  padding: 9px 14px;
  background: #f7fbfa;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.part-optional-head {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-top: 1px solid #e3d98a;
  background: #fff9bf;
  color: #4f4a15;
}

.part-optional-head strong {
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.part-optional-head span {
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
}

.part-row {
  min-height: 42px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.3;
}

.part-row--optional {
  background: #fffde5;
}

.part-row .zpi-part {
  width: auto;
  min-height: auto;
  justify-self: center;
  transform: scale(.92);
}

.part-norm {
  display: grid;
  gap: 4px;
}

.part-norm input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.part-row em {
  color: var(--muted);
  font-style: normal;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
}

.operations-table {
  display: grid;
  gap: 14px;
}

.heat-asset-card {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #9fc8be;
  border-radius: 8px;
  background: #f4faf8;
}

.heat-asset-card[hidden] {
  display: none;
}

.heat-asset-card__head,
.heat-asset-card__footer,
.heat-asset-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.heat-asset-card__head span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.heat-asset-card__head h3 {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.heat-asset-card__head > strong {
  color: var(--green-dark);
  font-size: .84rem;
}

.heat-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.heat-asset-options {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 14px;
}

.heat-asset-card__footer {
  align-items: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #cfe1dc;
}

.heat-asset-card__footer p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.heat-asset-card__footer button {
  flex: 0 0 auto;
}

.operations-group {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.operations-group span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.operations-group strong {
  color: var(--ink);
  font-size: .98rem;
}

.operations-group--system {
  background: #edf3f7;
}

.operations-group--system[data-system="kipia-customer"],
.operations-group--system[data-system="ovik-pnr"] {
  background: #eef6f3;
}

.operations-group--system[data-system="power-supply"] {
  background: #edf4ff;
}

.operations-group--system[data-system="ops-pnr"] {
  background: #fff3df;
}

.operations-group--library {
  background: #f8fbfa;
}

.operations-group--library[data-system="ops-pnr"] {
  background: #fff8ec;
}

.operations-subgroup {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.operations-subgroup-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.operations-subgroup-summary::-webkit-details-marker {
  display: none;
}

.operations-subgroup-summary span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.operations-subgroup-summary strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: .94rem;
}

.operations-subgroup-summary em {
  color: var(--muted);
  font-style: normal;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

.operations-subgroup-body {
  display: grid;
  gap: 14px;
  padding: 0 0 14px;
}

.operation-row {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.operation-row[data-system="ops-pnr"] {
  background: #fffdfa;
}

.operation-row[data-system="power-supply"] {
  background: #fbfdff;
}

.operation-system {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef6f3;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.operation-library {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.operation-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.operation-head span {
  display: inline-grid;
  place-items: center;
  min-width: 76px;
  min-height: 34px;
  border-radius: 8px;
  background: #eef3f1;
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
}

.operation-head strong {
  display: block;
  font-size: 1.08rem;
  color: var(--ink);
}

.operation-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.operation-head small {
  display: block;
  margin-top: 6px;
  color: var(--green-dark);
  font-size: .82rem;
  font-weight: 700;
}

.operation-head em {
  justify-self: end;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 10px;
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.operation-main details {
  margin-top: 0;
}

.operation-main summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--green-dark);
}

.operation-main ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.operation-calc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 110px 110px 96px;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border-radius: 8px;
  background: #f7fbfa;
}

.operation-calc label {
  display: grid;
}

.operation-calc label span,
.zpi-status span,
.remaining-total span,
.line-total span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.operation-calc label,
.zpi-status,
.remaining-total,
.line-total {
  display: grid;
  gap: 5px;
}

.zpi-status strong,
.remaining-total strong,
.line-total strong {
  min-height: 29px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  padding: 2px 4px;
}

.zpi-status strong {
  color: var(--ink);
}

.remaining-total strong {
  color: var(--ink);
}

.line-total strong {
  color: var(--ink);
}

.result-stack {
  display: grid;
  gap: 10px;
}

.schedule-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
  display: grid;
  gap: 4px;
}

.schedule-status__label {
  color: var(--muted);
  font-size: 13px;
}

.schedule-status__value {
  color: var(--green-dark);
  font-size: 1.25rem;
  line-height: 1.25;
}

.result-stack article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.result-stack strong {
  display: block;
  margin-top: 6px;
  font-size: 1.55rem;
  color: var(--green-dark);
}

.schedule-card {
  display: grid;
  gap: 16px;
}

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

.project-suggestions {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% - 4px);
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 40, 34, 0.1);
}

.project-suggestions[hidden] {
  display: none;
}

.project-suggestion {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}

.project-suggestion:hover,
.project-suggestion:focus-visible {
  border-color: var(--green-dark);
  background: #eef6f3;
  outline: none;
}

.resource-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.resource-head .stage-note {
  margin: 0;
}

.reset-resources {
  flex: 0 0 auto;
  min-height: 38px;
  padding-inline: 14px;
  color: var(--green-dark);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.shift-field {
  align-content: start;
}

.shift-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  width: fit-content;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-size: .92rem;
  font-weight: 700;
}

.shift-toggle input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.shift-toggle span {
  min-height: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.shift-factor-field {
  gap: 6px;
}

.shift-factor-field span {
  min-height: 0;
}

.shift-note {
  margin: 10px 0 0;
}

.resource-live-summary {
  margin-top: 12px;
}

.schedule-planning-controls {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.schedule-planning-controls .resource-live-summary {
  margin-top: 0;
}

.resource-live-summary__head {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.resource-manual {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.resource-manual__summary {
  cursor: pointer;
  list-style: none;
  color: var(--green-dark);
  font-size: .9rem;
  font-weight: 800;
}

.resource-manual__summary::-webkit-details-marker {
  display: none;
}

.resource-manual[open] .resource-manual__summary {
  margin-bottom: 10px;
}

.resource-field {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.resource-field--warning {
  border-color: #d0624b;
  background: #fff5f2;
}

.resource-field span {
  min-height: 34px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.25;
}

.resource-field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font: inherit;
  font-weight: 800;
  background: #fff;
}

.resource-onsite-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0 !important;
  color: var(--green-dark) !important;
  font-size: .74rem !important;
  font-weight: 700 !important;
}

.resource-onsite-toggle input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.resource-onsite-toggle em {
  font-style: normal;
}

.resource-warning-note {
  min-height: 18px;
  margin: 10px 0 0;
  color: #b13f2a;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.4;
}

.schedule-output {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-view-switcher {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-view-button {
  min-height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-dark);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.schedule-view-button.is-active {
  border-color: var(--green);
  background: #eef8f4;
  color: var(--green);
}

.schedule-view-note {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
}

.schedule-result {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.schedule-result.is-active {
  border-color: var(--green);
  background: #f5fbf8;
}

.schedule-result span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.schedule-result strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.08rem;
}

.schedule-warning {
  padding: 10px 12px;
  border: 1px solid rgba(188, 102, 35, 0.22);
  border-radius: 8px;
  background: #fff4ec;
  color: #8a4d16;
  font-size: .92rem;
  line-height: 1.45;
}

.schedule-warning.is-blocking {
  border-color: rgba(170, 35, 35, .42);
  background: #fff0f0;
  color: #7a1f1f;
  font-weight: 800;
}

.schedule-scenario-table {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(0, 107, 95, .22);
  border-radius: 8px;
  background: #f7fcfa;
  padding: 12px;
  overflow: visible;
}

.schedule-scenario-title {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 2px;
}

.schedule-scenario-title span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.schedule-scenario-title strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 1rem;
}

.schedule-scenario-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) repeat(4, minmax(86px, .48fr)) minmax(180px, 1fr) minmax(86px, auto);
  column-gap: 12px;
  row-gap: 10px;
  align-items: stretch;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.schedule-scenario-row.is-selected {
  border-color: rgba(0, 107, 95, .48);
  background: #eef8f4;
}

.schedule-scenario-row:not(.is-disabled) {
  cursor: pointer;
}

.schedule-scenario-row:not(.is-disabled):hover {
  border-color: rgba(0, 107, 95, .42);
  background: #f1faf7;
}

.schedule-scenario-row.is-disabled {
  cursor: default;
}

.schedule-scenario-row strong {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font-size: .94rem;
}

.schedule-scenario-row small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.25;
}

.schedule-scenario-row > span {
  display: grid;
  align-content: center;
  gap: 3px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
}

.schedule-scenario-row > span small {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
}

.schedule-scenario-row em {
  color: var(--green-dark);
  font-size: .82rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.schedule-scenario-row em.is-risk {
  color: #8a4d16;
}

.schedule-scenario-row button {
  min-width: 86px;
  min-height: 34px;
  align-self: center;
}

@media (max-width: 1180px) {
  .schedule-scenario-title,
  .schedule-scenario-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .schedule-scenario-row button {
    justify-self: start;
  }
}

.schedule-diagnostics {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 12px 10px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.schedule-roles {
  display: grid;
  gap: 10px;
}

.crew-narrative {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
}

.crew-line {
  display: grid;
  gap: 6px;
}

.crew-line > span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.crew-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crew-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 700;
}

.crew-chip--accent {
  background: #eef8f4;
  border-color: #cbe7d9;
  color: var(--green-dark);
}

.crew-chip--muted {
  background: #f6f8fa;
  color: var(--muted);
}

.efficiency-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
}

.efficiency-option {
  display: grid;
  gap: 2px;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.efficiency-option span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.efficiency-option strong {
  color: var(--ink);
  font-size: 1rem;
}

.efficiency-option em {
  color: var(--green-dark);
  font-size: .78rem;
  font-style: normal;
  font-weight: 800;
}

.efficiency-option small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.25;
}

.efficiency-option:hover,
.efficiency-option:focus-visible {
  border-color: #0f8f75;
  outline: none;
}

.efficiency-option.is-selected {
  border-color: #8ac7aa;
  background: #eef8f4;
}

.schedule-role-group {
  display: grid;
  gap: 6px;
}

.schedule-role-group h4 {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-role {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(76px, auto) minmax(150px, 1.2fr);
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 7px 0 0;
}

.schedule-role span {
  font-size: .78rem;
  font-weight: 700;
  text-transform: none;
  color: var(--ink);
  line-height: 1.25;
}

.schedule-role strong,
.schedule-role em {
  margin: 0;
  color: var(--green-dark);
  font-size: .9rem;
  line-height: 1.25;
}

.schedule-role em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.support-role strong {
  color: var(--ink);
}

.timeline-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.timeline-head h3 {
  margin: 0;
  font-size: 1rem;
}

.timeline-context {
  margin-top: 8px;
}

.timeline-summary {
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafdfc;
  padding: 8px 10px;
}

.timeline-summary span,
.timeline-deviation span,
.timeline-row label span,
.timeline-date span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.timeline-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--green-dark);
}

.timeline-list {
  display: grid;
  gap: 6px;
}

.timeline-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline-matrix {
  min-width: calc(220px + var(--timeline-days) * 58px);
  display: grid;
  grid-template-columns: 220px repeat(var(--timeline-days), minmax(52px, 1fr));
  align-items: stretch;
}

.matrix-corner,
.timeline-day,
.matrix-label,
.matrix-cell,
.matrix-section,
.matrix-section-fill {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.matrix-corner,
.timeline-day {
  min-height: 46px;
  background: #f7faf9;
  padding: 7px 8px;
}

.matrix-corner {
  position: sticky;
  left: 0;
  z-index: 2;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.timeline-day {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.timeline-day strong {
  font-size: .82rem;
}

.timeline-day span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.timeline-day em {
  display: grid;
  gap: 1px;
  width: 100%;
  margin-top: 2px;
  font-style: normal;
}

.timeline-day em b {
  display: block;
  color: var(--muted);
  font-size: .63rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.matrix-label {
  position: sticky;
  left: 0;
  z-index: 1;
  min-height: 38px;
  display: grid;
  gap: 2px;
  align-content: center;
  background: #fff;
  padding: 6px 8px;
}

.matrix-label span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.matrix-label strong {
  color: var(--ink);
  font-size: .82rem;
  line-height: 1.15;
}

.matrix-cell {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: .86rem;
  font-weight: 800;
  background: #fff;
}

.matrix-cell.is-plan {
  background: #eef6f3;
}

.matrix-cell.has-fact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  background: #f8fbfa;
}

.matrix-cell.is-shifted {
  background: #fff8e8;
  color: #8a6200;
}

.matrix-cell.is-split-shift {
  display: block;
  padding: 0;
}

.cell-plan,
.cell-fact {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.cell-plan {
  background: #eef6f3;
}

.cell-fact {
  background: #e9f0ff;
  color: #224d86;
}

.cell-shift {
  display: grid;
  width: 100%;
  min-height: 38px;
}

.cell-shift b {
  display: grid;
  place-items: center;
  min-height: 19px;
  color: var(--ink);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1;
}

.cell-shift b + b {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.32);
}

.matrix-cell.is-resource {
  background: #f5f0fb;
  color: #58406f;
}

.resource-label--external {
  background: #fff8e8;
}

.resource-label--external span,
.resource-label--external strong {
  color: #7a5200;
}

.matrix-cell.is-external-resource {
  background: #fff1cc;
  color: #7a5200;
}

.matrix-section,
.matrix-section-fill {
  min-height: 28px;
  background: #faf7ef;
}

.matrix-system,
.matrix-system-fill {
  min-height: 30px;
  background: #edf3f7;
}

.matrix-system {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 5px 8px;
  color: #30536d;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.matrix-system[data-system="kipia-customer"],
.matrix-system[data-system="ovik-pnr"] {
  background: #eef6f3;
  color: var(--green-dark);
}

.matrix-system[data-system="power-supply"] {
  background: #edf4ff;
  color: #2d5378;
}

.matrix-system[data-system="ops-pnr"] {
  background: #fff3df;
  color: #8a6200;
}

.matrix-system[data-system="project-runtime"] {
  background: #f3f0ff;
  color: #5b4e88;
}

.matrix-system-fill[data-system="power-supply"] {
  background: #edf4ff;
}

.matrix-system-fill[data-system="kipia-customer"],
.matrix-system-fill[data-system="ovik-pnr"] {
  background: #eef6f3;
}

.matrix-system-fill[data-system="ops-pnr"] {
  background: #fff3df;
}

.matrix-system-fill[data-system="project-runtime"] {
  background: #f3f0ff;
}

.matrix-work-section,
.matrix-work-section-fill {
  background: #eef6f3;
}

.matrix-work-section {
  color: var(--green-dark);
}

.matrix-work-section[data-system="ops-pnr"] {
  background: #fff3df;
  color: #8a6200;
}

.matrix-work-section[data-system="ovik-pnr"] {
  background: #edf4ff;
  color: #2d5378;
}

.matrix-work-section[data-system="power-supply"] {
  background: #edf4ff;
  color: #2d5378;
}

.matrix-stage,
.matrix-stage-fill {
  min-height: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7fbf9;
}

.matrix-stage {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 4px 8px 4px 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #4d6863;
  text-transform: uppercase;
}

.matrix-section {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 5px 8px;
  color: #a4770a;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.timeline-facts {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline-facts summary {
  cursor: pointer;
  padding: 9px 10px;
  color: var(--green-dark);
  font-size: .86rem;
  font-weight: 800;
}

.timeline-fact-list {
  display: grid;
  gap: 6px;
  padding: 0 10px 10px;
}

.timeline-fact-row {
  display: grid;
  grid-template-columns: 80px minmax(260px, 1.2fr) minmax(180px, .8fr);
  gap: 6px;
  align-items: start;
}

.timeline-fact-row strong {
  color: var(--ink);
  font-size: .84rem;
}

.timeline-fact-row input {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: .84rem;
}

.fact-work-list {
  display: grid;
  gap: 6px;
}

.fact-work-list label {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 90px;
  gap: 6px;
  align-items: center;
}

.fact-work-list span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.fact-work-list em {
  display: block;
  margin-top: 3px;
  color: #6b7a7a;
  font-size: .72rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}

.timeline-row {
  display: grid;
  grid-template-columns: 112px minmax(260px, 1fr) minmax(130px, .55fr) minmax(150px, .65fr) 92px;
  gap: 6px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.timeline-row.is-late {
  border-color: #e6b8ad;
  background: #fff8f6;
}

.timeline-row.is-ahead {
  border-color: #b8dbc5;
  background: #f6fbf8;
}

.timeline-date strong {
  display: block;
  color: var(--ink);
}

.timeline-work {
  display: grid;
  gap: 3px;
  color: var(--ink);
  font-size: .84rem;
  line-height: 1.25;
}

.timeline-work strong {
  display: inline-flex;
  min-width: 30px;
  justify-content: center;
  margin-right: 6px;
  border-radius: 8px;
  background: #eef6f3;
  color: var(--green-dark);
}

.timeline-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.timeline-row label,
.timeline-deviation {
  display: grid;
  gap: 4px;
}

.timeline-deviation strong {
  min-height: 30px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: #f5f7f7;
  padding: 6px 8px;
  color: var(--ink);
  font-size: .82rem;
}

.timeline-row input {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 7px;
  font: inherit;
  font-size: .84rem;
  background: #fff;
}

.timeline-deviation strong {
  font-weight: 800;
}

.timeline-row.is-late .timeline-deviation strong {
  color: #b44936;
}

.timeline-row.is-ahead .timeline-deviation strong {
  color: var(--green-dark);
}

.competency-panel {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.competency-panel h3 {
  margin: 0;
  font-size: 1.15rem;
}

.competency-list {
  display: grid;
  gap: 8px;
}

.competency-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.competency-row strong {
  display: block;
  color: var(--ink);
}

.competency-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.competency-row em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.overhead-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.overhead-panel h3 {
  margin: 0;
  font-size: 1.15rem;
}

.overhead-output {
  display: grid;
  gap: 8px;
}

.overhead-line,
.overhead-total {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.overhead-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  background: #fff;
}

.overhead-line strong,
.overhead-total strong {
  display: block;
  color: var(--ink);
}

.overhead-line span,
.overhead-total span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.35;
}

.overhead-line em,
.overhead-total em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.overhead-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  background: #f4faf8;
}

.result-save {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 60, 56, 0.04);
}

.result-save:hover {
  border-color: rgba(12, 86, 81, 0.28);
  background: #fbfdfc;
}

.approval-actions {
  display: grid;
  gap: 8px;
}

.approval-actions .primary-action,
.approval-actions .ghost-button {
  width: 100%;
}

.approval-actions .primary-action:disabled,
.approval-actions .ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.15);
}

.action-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .project-picker,
  .source-card,
  .operations-card,
  .result-card,
  .resource-head,
  .schedule-card > .card-head,
  .schedule-grid {
    display: none !important;
  }

  .planner,
  .planner-workbench,
  .schedule-card,
  .timeline-panel {
    display: block;
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .schedule-output {
    display: block;
  }

  .schedule-result {
    display: none;
  }

  .timeline-matrix-wrap {
    overflow: visible;
  }
}

.statement {
  padding: 34px 0 24px;
}

.statement h2 {
  max-width: 920px;
}

.statement p {
  max-width: 820px;
  font-size: 1.05rem;
}

.states {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.states article {
  min-height: 232px;
  padding: 22px;
}

.states span {
  color: var(--coral);
  font-weight: 800;
}

.states h3 {
  margin: 18px 0 10px;
  font-size: 1.16rem;
}

.flow {
  margin-top: 42px;
  margin-bottom: 56px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 28px;
}

.flow ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.flow li {
  display: grid;
  gap: 5px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.flow li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

@media (max-width: 860px) {
  .direction-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .direction-snapshot-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .direction-snapshot-card:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: 88vh;
    padding: 96px 18px 86px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .signin-band,
  .metrics-shell,
  .state-hero,
  .flow,
  .planner-workbench,
  .capacity-shell,
  .capacity-bottom,
  .fact-bottom,
  .operation-row {
    grid-template-columns: 1fr;
  }

  .capacity-summary {
    grid-template-columns: 1fr 1fr;
  }

  .capacity-controls {
    grid-template-columns: 1fr 1fr;
  }

  .planner-topbar {
    align-items: flex-start;
  }

  .states {
    grid-template-columns: 1fr 1fr;
  }

  .signal-strip,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-panel,
  .result-card {
    position: static;
  }

  .project-picker,
  .source-card,
  .operations-card,
  .schedule-card,
  .result-card {
    grid-column: auto;
    grid-row: auto;
  }

  .operation-calc,
  .new-project-grid,
  .resource-grid,
  .heat-asset-grid,
  .schedule-output,
  .timeline-row,
  .schedule-role {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-head {
    display: grid;
  }
}

@media (max-width: 560px) {
  .topbar {
    width: calc(100% - 22px);
  }

  .hero {
    padding: 96px 18px 86px;
  }

  .hero-image {
    object-position: 54% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(4, 35, 32, .94), rgba(4, 35, 32, .72));
  }

  .heat-asset-card__head,
  .heat-asset-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .heat-asset-grid {
    grid-template-columns: 1fr;
  }

  .heat-asset-card__footer button {
    width: 100%;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .primary-action,
  .secondary-action {
    flex: 1 1 0;
    padding: 0 10px;
    font-size: .94rem;
    text-align: center;
  }

  .states {
    grid-template-columns: 1fr;
  }

  .workspace-head,
  .milestone-top {
    display: grid;
  }

  .signal-strip,
  .process-grid,
  .capacity-summary,
  .project-facts {
    grid-template-columns: 1fr;
  }

  .signin-copy,
  .login-panel,
  .project-stage,
  .flow,
  .planner-hero {
    padding: 20px;
  }

  .planner-hero {
    min-height: 300px;
    display: grid;
  }

  .planner-hero h1 {
    font-size: 2.4rem;
  }

  .capacity-hero {
    min-height: 0;
    padding: 16px;
  }

  .capacity-hero h1 {
    font-size: 2rem;
  }

  .fact-board-card > .card-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fact-board-card > .card-head h2 {
    font-size: 1.25rem;
  }

  .load-view-tabs {
    justify-self: start;
  }

  .operation-calc,
  .new-project-grid,
  .schedule-grid,
  .capacity-controls,
  .manual-grid,
  .resource-grid,
  .schedule-output,
  .timeline-row,
  .schedule-role {
    grid-template-columns: 1fr;
  }

  .operation-head,
  .part-head,
  .part-row {
    grid-template-columns: 1fr;
  }

  .operation-head em {
    justify-self: stretch;
    white-space: normal;
  }

  .part-row input {
    justify-self: stretch;
    width: 100%;
  }

  .part-row .zpi-part {
    justify-self: start;
    width: auto;
  }

  .part-row em {
    white-space: normal;
  }
}

/* Compact calculator workbench */
.planner-page .topbar,
.planner {
  width: min(1520px, calc(100% - 24px));
}

.planner-page {
  overflow-x: hidden;
}

.planner-main-column,
.planner-card,
.card-head > *,
.result-card-head > * {
  min-width: 0;
}

.planner-card,
.planner-main-column,
.result-card {
  max-width: 100%;
}

.planner {
  padding: 16px 0 56px;
}

.planner-command-head {
  min-height: 68px;
  padding: 12px 16px;
  background: #ffffff;
  border-color: #cfdad7;
}

.planner-command-head .eyebrow {
  margin-bottom: 4px;
}

.planner-command-head h1 {
  font-size: 1.55rem;
  line-height: 1.1;
}

.planner-command-head .planner-total {
  min-width: 150px;
  padding: 10px 14px;
  background: #f1f6f4;
}

.planner-command-head .planner-total strong {
  margin-top: 3px;
  font-size: 1.45rem;
}

.planner-workbench {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 12px;
  margin-top: 12px;
}

.planner-main-column {
  gap: 12px;
}

.planner-card {
  padding: 14px;
}

.card-head {
  align-items: center;
  margin-bottom: 10px;
}

.card-head h2,
.result-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.card-head .eyebrow,
.result-card .eyebrow {
  margin-bottom: 3px;
}

.planner-project-bar {
  display: grid;
  grid-template-columns: 190px minmax(280px, 1fr);
  gap: 10px 16px;
  align-items: end;
}

.planner-project-bar .card-head {
  margin: 0;
}

.planner-project-bar > .project-picker {
  min-width: 0;
}

.planner-project-bar > #project-auth-note,
.planner-project-bar > .inline-details {
  grid-column: 1 / -1;
}

.planner-project-bar > #project-auth-note:empty {
  display: none;
}

.compact-details {
  min-width: 0;
}

.compact-details > summary,
.result-details > summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  color: var(--green-dark);
  font-size: .88rem;
  font-weight: 800;
}

.compact-details > summary::-webkit-details-marker,
.result-details > summary::-webkit-details-marker {
  display: none;
}

.compact-details > summary::after,
.result-details > summary::after {
  content: '▾';
  float: right;
  color: #72827e;
  transition: transform .16s ease;
}

.compact-details[open] > summary::after,
.result-details[open] > summary::after {
  transform: rotate(180deg);
}

.source-card {
  gap: 10px;
  padding-block: 12px;
}

.source-card[open] textarea,
.object-plan-details[open] .calculation-object-plan,
.schedule-advanced[open] .schedule-advanced-grid {
  margin-top: 12px;
}

.calculation-objects-card {
  gap: 10px;
}

.calculation-object-toolbar {
  grid-template-columns: minmax(160px, .8fr) minmax(220px, 1.4fr) auto auto;
}

.object-plan-details {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.calculation-object-plan {
  padding: 0;
  border: 0;
  background: transparent;
}

.project-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-summary-grid article {
  padding: 8px 10px;
  border-radius: 6px;
}

.object-summary-list {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.operations-card .card-head {
  gap: 8px;
}

.systems-selector {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 6px;
}

.system-pill {
  padding: 8px 10px;
}

.compact-system-note:empty {
  display: none;
}

.operations-table {
  gap: 9px;
}

.operations-subgroup-body {
  gap: 8px;
  padding-bottom: 8px;
}

.operation-row {
  gap: 10px;
  padding: 12px;
}

.operation-head {
  gap: 10px;
  padding-bottom: 10px;
}

.operation-head strong {
  font-size: 1rem;
}

.operation-head p,
.operation-head small,
.operation-library {
  margin-top: 4px;
  font-size: .79rem;
  line-height: 1.35;
}

.operation-calc {
  padding: 9px;
}

.schedule-card {
  gap: 12px;
}

.schedule-primary-settings {
  grid-template-columns: 110px 130px minmax(170px, .8fr) minmax(220px, 1.2fr);
}

.schedule-advanced {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-advanced-grid {
  grid-template-columns: minmax(0, 1fr);
}

.schedule-constraints {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-constraints-grid {
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  margin-top: 10px;
}

.schedule-calculating {
  display: grid;
  gap: 3px;
  margin: 8px 0;
  padding: 10px 12px;
  border-left: 3px solid #1f6f63;
  background: #f2f8f6;
  color: #29443f;
  font-size: 12px;
}

.schedule-calculating span {
  color: #60706d;
}

.schedule-advanced .shift-note:empty {
  display: none;
}

.schedule-planning-controls,
.resource-manual,
.resource-live-summary {
  margin-top: 0;
}

.resource-manual {
  padding: 10px;
}

.resource-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-field {
  padding: 8px;
}

.resource-field span {
  min-height: 28px;
}

.schedule-scenario-table {
  gap: 6px;
  padding: 8px;
}

.schedule-scenario-row {
  grid-template-columns: minmax(170px, 1.15fr) repeat(4, minmax(72px, .42fr)) minmax(150px, .9fr) auto;
  min-height: 50px;
  column-gap: 8px;
  padding: 9px;
}

.timeline-panel {
  padding: 10px;
}

.result-card {
  top: 10px;
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 20px);
  overflow: auto;
  scrollbar-width: thin;
}

.result-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.result-card-head .schedule-status {
  min-width: 100px;
  padding: 7px 9px;
  text-align: right;
}

.result-card-head .schedule-status__value {
  font-size: .95rem;
}

.result-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.result-stack article {
  padding: 8px 9px;
}

.result-stack article:last-child {
  grid-column: 1 / -1;
}

.result-stack strong {
  margin-top: 3px;
  font-size: 1.1rem;
}

.result-actions-primary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.result-actions-primary #save-draft,
.result-actions-primary #export-schedule-excel {
  grid-column: 1 / -1;
}

.result-actions-primary .action-button,
.result-actions-primary .version-trigger {
  min-height: 38px;
  margin: 0;
  padding: 0 10px;
  font-size: .88rem;
}

.result-details {
  display: block;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
}

.result-details[open] > summary {
  margin-bottom: 10px;
}

.result-details .competency-list,
.result-details .overhead-output {
  max-height: 320px;
  overflow: auto;
}

.overhead-panel,
.competency-panel {
  gap: 8px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.result-card #save-note {
  margin: 0;
  font-size: .76rem;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .planner-workbench {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .resource-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .schedule-scenario-row {
    grid-template-columns: 1fr repeat(4, minmax(66px, .45fr));
  }

  .schedule-scenario-row em,
  .schedule-scenario-row button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .planner-page .topbar,
  .planner {
    width: min(760px, calc(100% - 16px));
  }

  .planner-nav {
    flex-wrap: nowrap;
    max-width: 72vw;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .planner-nav .ghost-link {
    flex: 0 0 auto;
  }

  .planner-workbench {
    grid-template-columns: 1fr;
  }

  .result-card {
    grid-column: 1;
    grid-row: 1;
    position: static;
    max-height: none;
  }

  .planner-main-column {
    grid-column: 1;
    grid-row: 2;
  }

  .planner-project-bar {
    grid-template-columns: 1fr;
  }

  .planner-project-bar > #project-auth-note,
  .planner-project-bar > .inline-details {
    grid-column: 1;
  }

  .calculation-object-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .calculation-object-toolbar .planner-field {
    grid-column: span 1;
  }

  .project-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-stack article:last-child {
    grid-column: auto;
  }

  .result-actions-primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .result-actions-primary #save-draft,
  .result-actions-primary #export-schedule-excel {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .planner-page .topbar {
    align-items: center;
  }

  .planner-page .brand {
    flex: 0 0 auto;
  }

  .planner-nav {
    max-width: calc(100vw - 158px);
    gap: 6px;
  }

  .planner-nav .ghost-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: .8rem;
  }

  .planner {
    padding-top: 10px;
  }

  .planner-command-head {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 8px;
    padding: 11px 12px;
  }

  .planner-command-head h1 {
    font-size: 1.2rem;
  }

  .planner-command-head .planner-total {
    min-width: 0;
    width: 92px;
    padding: 8px 10px;
  }

  .planner-command-head .planner-total strong {
    font-size: 1.05rem;
  }

  .planner-card {
    padding: 11px;
  }

  .calculation-object-toolbar,
  .schedule-primary-settings,
  .schedule-advanced-grid,
  .schedule-constraints-grid,
  .project-summary-grid {
    grid-template-columns: 1fr;
  }

  .calculation-object-toolbar .planner-field,
  .result-stack article:last-child,
  .result-actions-primary #save-draft,
  .result-actions-primary #export-schedule-excel {
    grid-column: 1;
  }

  .calculation-object-toolbar > button {
    width: 100%;
  }

  .systems-selector {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-template-columns: 1fr 1fr;
  }

  .operation-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .operation-head em {
    grid-column: 1 / -1;
  }

  .operation-calc {
    grid-template-columns: 1fr 1fr;
  }

  .operation-calc > :last-child {
    grid-column: 1 / -1;
  }

  .schedule-scenario-row {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-scenario-row > strong,
  .schedule-scenario-row em,
  .schedule-scenario-row button {
    grid-column: 1 / -1;
  }

  .result-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    align-items: center;
  }

  .result-card-head .schedule-status {
    flex: 0 0 92px;
    min-width: 92px;
  }

  .result-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-stack article:last-child {
    grid-column: 1 / -1;
  }

  .result-actions-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-actions-primary button {
    min-width: 0;
    padding-inline: 7px;
    white-space: normal;
  }

  .result-actions-primary #save-draft,
  .result-actions-primary #export-schedule-excel {
    grid-column: 1 / -1;
  }
}
