.v2-acceptance-row {
  grid-template-columns: 80px 70px minmax(0, 1fr);
}

.v2-acceptance-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.v2-log-row {
  display: grid;
  grid-template-columns: minmax(92px, 130px) 70px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border-radius: 6px;
  background: #f8f9fb;
  font-size: 12px;
}

.v2-log-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.v2-task-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 7px;
  background: #f8f9fb;
}

.v2-task-main {
  display: grid;
  grid-template-columns: 80px 80px minmax(0, 1fr);
  gap: 5px 10px;
  align-items: center;
  min-width: 0;
  font-size: 12px;
}

.v2-task-main small {
  grid-column: 1 / -1;
  color: #667085;
  line-height: 1.5;
}

.v2-task-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.v2-task-done {
  color: #067647;
  font-size: 12px;
  font-weight: 600;
}

.v2-task-locked {
  max-width: 150px;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.card-created {
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
}

.v2-dialog input[type="date"] {
  width: 100%;
}

.priority.p0 {
  border: 1px solid #fecdca !important;
  background: #fef3f2 !important;
  color: #b42318 !important;
}

.priority.p1 {
  border: 1px solid #fedf89 !important;
  background: #fffaeb !important;
  color: #b54708 !important;
}

.priority.p2 {
  border: 1px solid #b2ccff !important;
  background: #eef4ff !important;
  color: #245bdb !important;
}

.priority.p3 {
  border: 1px solid #abefc6 !important;
  background: #ecfdf3 !important;
  color: #067647 !important;
}

.delivery-card-owners {
  white-space: normal;
  overflow: visible;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.v2-task-time-hint {
  margin: 12px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.v2-dialog {
  max-height: 92vh;
  overflow: auto;
}

/* 长表单在小屏幕内独立滚动，底部操作始终可见 */
#demandModal,
#deliveryV2Modal,
#v2WorkloadModal,
#v2KeyPlanModal,
#v2TaskModal {
  align-items: flex-start;
  overflow-y: auto;
  padding: 16px 0;
}

#demandModal > .modal,
#deliveryV2Modal > .modal,
#v2WorkloadModal > .modal,
#v2KeyPlanModal > .modal,
#v2TaskModal > .modal {
  width: min(620px, 94vw);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#demandModal .modal-actions,
#deliveryV2Modal .modal-actions,
#v2WorkloadModal .modal-actions,
#v2KeyPlanModal .modal-actions,
#v2TaskModal .modal-actions {
  position: sticky;
  bottom: -22px;
  z-index: 3;
  margin: 16px -22px -22px;
  padding: 14px 22px;
  border-top: 1px solid #e4e7ec;
  background: rgba(255,255,255,.97);
  box-shadow: 0 -6px 16px rgba(16,24,40,.05);
}

.v2-subtitle {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 8px;
  color: #344054;
  font-size: 13px;
}

.v2-subtitle small {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 400;
}

.v2-schedule-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 7px;
}

.v2-schedule-nodes > div {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid #dbe6ff;
  border-radius: 7px;
  background: #f5f8ff;
}

.v2-schedule-nodes span {
  color: #667085;
  font-size: 11px;
}

.v2-schedule-nodes b {
  color: #245bdb;
  font-size: 13px;
}

.v2-section-help {
  margin: 9px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.6;
}

.v2-purpose-note {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f8ff;
  color: #475467;
  font-size: 12px;
}

.v2-purpose-note b {
  color: #245bdb;
}

.v2-workload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fbfcfe;
  color: #667085;
  font-size: 12px;
}

.v2-workload-preview b {
  width: 100%;
  color: #344054;
}

.cycle-overview-head {
  flex-wrap: wrap;
}

.cycle-overview-head > div:first-child {
  min-width: 340px;
  flex: 1 1 420px;
}

.cycle-overview-head > div:first-child p {
  line-height: 1.7;
}

.cycle-workload {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.cycle-ui-date b {
  color: #245bdb;
  font-size: 15px;
}

.delivery-board {
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  align-items: start;
  overflow-x: auto;
  padding-bottom: 10px;
}

.delivery-column {
  min-height: 180px;
  height: auto;
}

.delivery-card-ui-time {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #eef4ff;
  color: #475467;
  font-size: 12px;
}

.delivery-card-ui-time b,
.delivery-card-ui-time button {
  color: #245bdb;
  white-space: nowrap;
}

.delivery-card-ui-time button {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* V2 需求详情：单一信息架构，避免新旧详情重复堆叠。 */
.drawer {
  width: min(820px, 96vw);
}

.drawer-body {
  padding: 18px 22px 28px;
}

.v2-detail-root {
  display: grid;
  gap: 14px;
  color: #172033;
  font-size: 14px;
}

.v2-detail-root .v2-panel {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
}

.v2-detail-hero {
  padding: 17px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
}

.v2-hero-heading,
.v2-panel-title,
.v2-section-actions,
.v2-danger-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.v2-hero-heading > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.v2-phase-badge {
  padding: 5px 9px;
  border-radius: 6px;
  background: #eef4ff;
  color: #245bdb;
  font-size: 12px;
  font-weight: 600;
}

.v2-manage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.v2-key-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.v2-key-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f7f8fa;
}

.v2-key-grid span {
  color: #667085;
  font-size: 12px;
}

.v2-key-grid b {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.v2-key-grid .risk-normal { color: #067647; }
.v2-key-grid .risk-risk,
.v2-key-grid .risk-blocked,
.v2-key-grid .risk-delayed { color: #b42318; }

.v2-progress {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: #475467;
  font-size: 13px;
}

.v2-progress i {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9edf3;
}

.v2-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3370ff;
}

.v2-panel-title h3 {
  margin: 0;
  font-size: 16px;
}

.v2-panel-title span {
  color: #667085;
  font-size: 12px;
}

.v2-primary-panel .v2-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
  overflow: visible;
}

.v2-primary-panel .v2-flow-step {
  min-width: 0;
  padding: 9px 5px;
  font-size: 12px;
}

.v2-action-panel {
  border-color: #cbdcff !important;
  background: #f7f9ff;
}

.v2-action-panel .v2-actions {
  margin-top: 12px;
}

.v2-main-actions .v2-action-btn.primary {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
}

.v2-action-wait,
.v2-action-blocked {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #667085;
  font-size: 13px;
}

.v2-action-blocked {
  border: 1px solid #fda29b;
  background: #fff1f0;
  color: #b42318;
}

.v2-more-actions {
  margin-top: 12px;
  border-top: 1px solid #dbe5ff;
  padding-top: 10px;
}

.v2-more-actions > summary {
  width: max-content;
  cursor: pointer;
  list-style: none;
  color: #667085;
  font-size: 12px;
}

.v2-more-actions > summary::-webkit-details-marker { display: none; }
.v2-more-actions > summary::after { content: ' ▾'; }
.v2-more-actions[open] > summary::after { content: ' ▴'; }

.v2-detail-root .v2-action-btn {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.v2-detail-group {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
}

.v2-detail-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
}

.v2-detail-group > summary::-webkit-details-marker { display: none; }

.v2-detail-group > summary span {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.v2-detail-group > summary b { font-size: 15px; }
.v2-detail-group > summary small,
.v2-detail-group > summary i {
  color: #98a2b3;
  font-size: 12px;
  font-style: normal;
}

.v2-detail-group[open] > summary {
  border-bottom: 1px solid #eef0f3;
  background: #fbfcfe;
}

.v2-detail-content { padding: 15px 16px; }

.v2-detail-content .v2-workload-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 10px;
}

.v2-detail-content .v2-workload-grid div { padding: 10px; }
.v2-detail-content .v2-workload-grid span { font-size: 12px; }
.v2-detail-content .v2-workload-grid b { font-size: 15px; }

.v2-task-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.v2-task-card {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fafbfc;
}

.v2-detail-root .v2-task-row {
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.v2-detail-root .v2-task-main {
  grid-template-columns: 90px 90px minmax(0, 1fr);
  font-size: 14px;
}

.v2-detail-root .v2-task-main small {
  font-size: 13px;
}

.v2-detail-root .v2-section-help {
  font-size: 13px;
}

.v2-subtask-block {
  padding: 10px 12px 12px;
  border-top: 1px solid #e9edf3;
  background: #fff;
}

.v2-subtask-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 13px;
}

.v2-subtask-head .subtask-add {
  padding: 5px 8px;
  border: 1px solid #b2ccff;
  border-radius: 6px;
  background: #eef4ff;
  font-size: 13px;
  font-weight: 600;
}

.v2-subtask-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.drawer .v2-subtask-list .subtask-row {
  grid-template-columns: minmax(160px, 1fr) 95px 125px 28px;
  padding: 8px;
}

.drawer .v2-subtask-list .subtask-row select[data-task-owner] {
  grid-column: auto;
}

.drawer .v2-subtask-list .subtask-delete {
  grid-column: auto;
  grid-row: auto;
}

.v2-copy {
  display: grid;
  gap: 12px;
}

.v2-copy p {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  line-height: 1.65;
}

.v2-copy p > b { color: #475467; }
.v2-copy p > span { overflow-wrap: anywhere; }

.v2-detail-root .v2-acceptance-row,
.v2-detail-root .v2-log-row {
  padding: 10px;
  font-size: 13px;
}

.v2-issue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
}

.v2-issue-row:last-child { border-bottom: 0; }
.v2-issue-row span,
.v2-empty-line { color: #667085; }

.v2-detail-group.danger > summary b { color: #b42318; }
.v2-danger-content span { color: #b42318; }

@media (max-width: 1050px) {
  .delivery-board {
    grid-template-columns: repeat(5, minmax(240px, 1fr));
  }

  .cycle-workload {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 720px) {
  .delivery-board {
    grid-template-columns: repeat(5, minmax(260px, 1fr));
  }

  .cycle-overview-head > div:first-child {
    min-width: 100%;
  }

  .v2-schedule-nodes {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .drawer-body {
    padding: 14px;
  }

  .v2-hero-heading,
  .v2-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .v2-primary-panel .v2-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-detail-content .v2-workload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-detail-group > summary span {
    display: grid;
    gap: 2px;
  }

  .v2-detail-group > summary i {
    display: none;
  }

  .v2-copy p {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .drawer .v2-subtask-list .subtask-row {
    grid-template-columns: minmax(120px, 1fr) 85px 28px;
  }

  .drawer .v2-subtask-list .subtask-row select[data-task-owner] {
    grid-column: 1 / 3;
  }

  .drawer .v2-subtask-list .subtask-delete {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

/* v2.1 当前责任人 + 清晰的排期执行交互 */
.delivery-current-owner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  margin-top: 10px;
  padding: 10px 11px;
  border: 1px solid #b2ccff;
  border-radius: 9px;
  background: #eef4ff;
}

.delivery-current-owner > span {
  align-self: center;
  color: #245bdb;
  font-size: 11px;
  font-weight: 700;
}

.delivery-current-owner > b {
  color: #123b89;
  font-size: 15px;
}

.delivery-current-owner > small {
  grid-column: 1 / -1;
  color: #475467;
  font-size: 12px;
}

.delivery-current-owner.blocked {
  border-color: #fda29b;
  background: #fff1f0;
}

.delivery-current-owner.blocked > span,
.delivery-current-owner.blocked > b { color: #b42318; }

.delivery-card-owners {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  color: #667085;
  font-size: 12px;
}

.delivery-card-owners > span { color: #98a2b3; }
.delivery-card.has-delay { position: relative; border: 2px solid #f04438; background: linear-gradient(180deg,#fffafa 0%,#fff 34%); box-shadow: 0 3px 12px rgba(217,45,32,.12); }
.delivery-card.has-delay::before { content: ''; position: absolute; inset: 10px auto 10px -2px; width: 4px; border-radius: 0 4px 4px 0; background: #f04438; }
.delivery-card.has-delay:hover { border-color: #d92d20; box-shadow: 0 5px 16px rgba(217,45,32,.18); }
.delivery-alert-badge { flex: none; padding: 3px 7px; border-radius: 99px; background: #fee4e2; color: #b42318; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.delivery-alert-badge.blocked { background: #b42318; color: #fff; }
.delivery-card.has-delay .delivery-card-title { color: #7a271a; }
.delivery-card-stage.alert { color: #b42318; }
.delivery-card-stage.alert b { color: #b42318; }
.delivery-current-owner.alert { border-color: #fda29b; background: #fff1f0; }
.delivery-current-owner.alert > span { color: #b42318; }
.delivery-current-owner.alert > b { color: #7a271a; }
.delivery-card.has-delay .delivery-risk { font-weight: 800; }
.delivery-column-head.warning { color: #b42318; }
.delivery-column-head.warning i { background: #f04438; }
.delivery-column-head.warning em { margin-left: auto; padding: 3px 7px; border-radius: 99px; background: #fee4e2; color: #b42318; font-size: 11px; font-style: normal; font-weight: 800; }
.delivery-column-head.warning span { margin-left: 5px; }
.da-panel { overflow: hidden; }
.da-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.da-filters .filter { min-width: 138px; }
.da-summary { margin-bottom: 14px; }
.da-panel .panel-title { align-items: flex-start; }
.da-panel .panel-title > div { display: grid; gap: 4px; }
.da-legend { display: flex; align-items: center; gap: 5px; color: #667085; font-size: 11px; white-space: nowrap; }
.da-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 7px; }
.da-legend .planned { background: #dbe5ff; }
.da-legend .actual { background: #b7ebc6; }
.da-legend .overdue { background: #fda29b; }
.da-table-wrap { overflow-x: auto; }
.da-table { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0 6px; font-size: 12px; }
.da-table th { padding: 8px 10px; color: #667085; text-align: left; font-size: 11px; font-weight: 600; white-space: nowrap; }
.da-table td { padding: 10px; background: #f8f9fb; border-top: 1px solid #eaecf0; border-bottom: 1px solid #eaecf0; vertical-align: middle; }
.da-table td:first-child { border-left: 1px solid #eaecf0; border-radius: 9px 0 0 9px; }
.da-table td:last-child { border-right: 1px solid #eaecf0; border-radius: 0 9px 9px 0; }
.da-table tbody tr { cursor: pointer; transition: .15s ease; }
.da-table tbody tr:hover td { background: #eef4ff; border-color: #b2ccff; }
.da-demand { display: grid; grid-template-columns: auto minmax(160px, 1fr); gap: 3px 7px; min-width: 220px; }
.da-demand .priority { grid-row: span 2; align-self: start; }
.da-demand b { color: #172033; font-size: 13px; line-height: 1.4; }
.da-demand small { grid-column: 2; color: #98a2b3; }
.da-stage { display: grid; gap: 3px; min-width: 110px; }
.da-stage b { color: #245bdb; font-size: 12px; }
.da-stage span { color: #667085; }
.da-phase { display: grid; gap: 3px; min-width: 98px; padding: 7px 8px; border-radius: 7px; background: #fff; border: 1px solid #e4e7ec; }
.da-phase b { color: #245bdb; font-size: 11px; white-space: nowrap; }
.da-phase span { color: #667085; white-space: nowrap; }
.da-phase em { width: max-content; padding: 2px 5px; border-radius: 99px; background: #fee4e2; color: #b42318; font-size: 10px; font-style: normal; font-weight: 800; }
.da-phase.done { border-color: #abefc6; background: #f6fef9; }
.da-phase.done b { color: #067647; }
.da-phase.late { border: 2px solid #f04438; background: #fff1f0; }
.da-phase.late b,.da-phase.late span { color: #b42318; }
.da-target { color: #344054; font-weight: 600; white-space: nowrap; }
.da-empty { padding: 35px !important; text-align: center; color: #98a2b3; }
.da-timeline-panel { margin-top: 14px; }
.da-timeline-note { margin: -5px 0 14px; color: #667085; font-size: 12px; }
.da-timeline { position: relative; display: grid; gap: 0; padding: 5px 0 5px 18px; }
.da-timeline::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: #dbe5ff; }
.da-event { position: relative; display: grid; grid-template-columns: 145px 145px minmax(0,1fr); gap: 10px; align-items: center; min-height: 42px; padding: 7px 10px 7px 14px; border-bottom: 1px solid #f0f2f5; }
.da-event > i { position: absolute; left: -17px; width: 10px; height: 10px; border: 2px solid #3370ff; border-radius: 50%; background: #fff; }
.da-event time { color: #667085; font-size: 12px; }
.da-event b { color: #172033; font-size: 13px; }
.da-event span { color: #667085; font-size: 12px; }
@media (max-width: 760px) {
  .da-filters { width: 100%; }
  .da-filters .filter { flex: 1; min-width: 0; }
  .da-panel .panel-title { align-items: flex-start; flex-direction: column; }
  .da-event { grid-template-columns: 1fr; gap: 2px; padding: 9px 10px 9px 14px; }
}

.v2-current-owner-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 10px;
  margin: 13px 0;
  padding: 11px 12px;
  border: 1px solid #b2ccff;
  border-radius: 9px;
  background: #eef4ff;
}

.v2-current-owner-banner span { color: #245bdb; font-size: 12px; font-weight: 700; }
.v2-current-owner-banner b { color: #123b89; font-size: 16px; }
.v2-current-owner-banner small { grid-column: 1 / -1; color: #475467; font-size: 12px; }
.v2-current-owner-banner.blocked { border-color: #fda29b; background: #fff1f0; }
.v2-current-owner-banner.blocked span,.v2-current-owner-banner.blocked b { color: #b42318; }
.v2-hero-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.v2-type-badge { padding: 4px 7px; border-radius: 6px; background: #ecfdf3; color: #067647; font-size: 11px; font-weight: 700; }
.v2-type-badge.muted { background: #f2f4f7; color: #475467; }
.delivery-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.delivery-card-tags span { padding: 3px 6px; border-radius: 5px; background: #f2f4f7; color: #475467; font-size: 10px; }
.v2-acceptance-focus { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 12px; margin-bottom: 10px; padding: 11px 12px; border: 1px solid #dbe5ff; border-radius: 9px; background: #f7f9ff; }
.v2-acceptance-focus > div { display: grid; align-content: start; gap: 4px; }
.v2-acceptance-focus > div b { color: #172033; font-size: 13px; }
.v2-acceptance-focus > div span { color: #667085; font-size: 11px; }
.v2-acceptance-focus ul { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.v2-acceptance-focus li { border-radius: 99px; background: #fff; padding: 5px 8px; color: #344054; font-size: 11px; }

.v2-workload-section,.v2-plan-section,.v2-execution-section { padding: 2px 0 16px; }
.v2-plan-section,.v2-execution-section { padding-top: 16px; border-top: 1px solid #eaecf0; }
.v2-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.v2-section-title > div { display: grid; gap: 3px; }
.v2-section-title b { color: #172033; font-size: 14px; }
.v2-section-title small { color: #667085; font-size: 12px; }
.v2-plan-section .v2-schedule-nodes { grid-template-columns: repeat(3,minmax(0,1fr)); }

.v2-execution-stage {
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
}

.v2-execution-stage.current { border-color: #84adff; box-shadow: 0 0 0 1px rgba(51,112,255,.05); }
.v2-execution-stage.blocked { border-color: #fda29b; }
.v2-execution-stage.future { background: #fafbfc; }
.v2-execution-stage > summary { display: grid; grid-template-columns: 38px minmax(110px,1fr) 210px 90px 16px; align-items: center; gap: 10px; padding: 12px; cursor: pointer; list-style: none; }
.v2-execution-stage > summary::-webkit-details-marker { display: none; }
.v2-stage-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #f2f4f7; color: #667085; font-size: 11px; font-weight: 700; }
.v2-execution-stage.current .v2-stage-number { background: #eaf0ff; color: #245bdb; }
.v2-execution-stage.done .v2-stage-number { background: #ecfdf3; color: #067647; }
.v2-stage-name { display: grid; gap: 3px; min-width: 0; }
.v2-stage-name b { color: #172033; font-size: 14px; }
.v2-stage-name small,.v2-stage-plan small { color: #667085; font-size: 12px; }
.v2-stage-plan { display: grid; gap: 3px; }
.v2-stage-plan b { color: #344054; font-size: 12px; white-space: nowrap; }
.v2-stage-actual { display: block; color: #667085; font-size: 11px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.v2-stage-status { justify-self: end; padding: 4px 8px; border-radius: 99px; background: #f2f4f7; color: #667085; font-size: 11px; font-weight: 700; }
.v2-stage-status.current { background: #eaf0ff; color: #245bdb; }
.v2-stage-status.planning { background: #fffaeb; color: #b54708; }
.v2-stage-status.done { background: #ecfdf3; color: #067647; }
.v2-stage-status.blocked { background: #fee4e2; color: #b42318; }
.v2-execution-stage > summary > i { color: #98a2b3; font-style: normal; transition: transform .15s ease; }
.v2-execution-stage[open] > summary > i { transform: rotate(180deg); }
.v2-stage-body { padding: 12px; border-top: 1px solid #eaecf0; background: #fbfcfe; }
.v2-actual-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.v2-actual-grid > div { display: grid; gap: 3px; padding: 9px 10px; border-radius: 7px; background: #fff; }
.v2-actual-grid span { color: #667085; font-size: 11px; }
.v2-actual-grid b { color: #344054; font-size: 12px; }
.v2-stage-body > .v2-task-actions { justify-content: flex-end; margin-top: 10px; }
.v2-stage-body .v2-subtask-block { margin-top: 10px; border: 1px solid #e4e7ec; border-radius: 8px; }

@media (max-width: 760px) {
  .v2-section-title { align-items: flex-start; }
  .v2-plan-section .v2-schedule-nodes { grid-template-columns: 1fr; }
  .v2-execution-stage > summary { grid-template-columns: 34px 1fr auto 14px; }
  .v2-stage-plan { grid-column: 2 / -1; }
  .v2-stage-status { grid-column: 3; grid-row: 1; }
  .v2-execution-stage > summary > i { grid-column: 4; grid-row: 1; }
  .v2-actual-grid { grid-template-columns: 1fr; }
  .v2-acceptance-focus { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .v2-log-row {
    grid-template-columns: 1fr 70px;
  }

  .v2-log-row span:last-child {
    grid-column: 1 / -1;
  }

  .v2-task-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .v2-task-main {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}
