/* V2.12 fixes the weekly-focus grid and adds the daily closure workbench. */
.v211-focus {
  grid-template-columns: 18px minmax(0, 1fr);
}

.v211-focus-copy {
  display: block;
  min-width: 0;
}

.v211-focus textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.v212-cycle {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}

.v212-cycle-head,
.v212-quick-head,
.v212-carry-head,
.v212-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.v212-cycle-head h3,
.v212-quick-head h3,
.v212-carry-head h4,
.v212-result-head h3 {
  margin: 0 0 4px;
}

.v212-cycle-head p,
.v212-quick-head p,
.v212-carry-head p,
.v212-result-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.v212-cycle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(112px, .55fr));
  gap: 10px;
  margin-top: 14px;
}

.v212-outcomes,
.v212-cycle-metric {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e5e3dc;
  border-radius: 13px;
  background: #faf9f6;
}

.v212-outcomes b,
.v212-cycle-metric b,
.v212-cycle-metric span {
  display: block;
}

.v212-outcome-list {
  display: grid;
  gap: 7px;
  margin-top: 9px;
}

.v212-outcome-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.v212-outcome-row span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 10px;
}

.v212-outcome-row input {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.v212-cycle-metric {
  display: flex;
  min-height: 114px;
  flex-direction: column;
  justify-content: space-between;
}

.v212-cycle-metric b {
  font-size: 25px;
}

.v212-cycle-metric span {
  color: var(--muted);
  font-size: 11px;
}

.v212-cycle-metric button {
  align-self: flex-start;
  padding: 0;
  border: 0;
  color: var(--green);
  background: none;
  font-size: 11px;
}

.v212-quick {
  padding: 18px;
}

.v212-quick-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px 160px auto;
  gap: 8px;
  margin-top: 14px;
}

.v212-quick-form input,
.v212-quick-form select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbf9;
}

.v212-original-capture {
  display: none;
}

.v212-carry {
  margin: 0 0 12px;
  padding: 13px;
  border: 1px solid #e8d7bf;
  border-radius: 14px;
  background: #fffaf2;
}

.v212-carry-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.v212-carry-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: white;
}

.v212-carry-item b,
.v212-carry-item small {
  display: block;
}

.v212-carry-item b {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.v212-carry-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.v212-carry-actions {
  display: flex;
  gap: 6px;
}

.v212-result-modal .modal-card {
  width: min(560px, calc(100vw - 28px));
}

.v212-result-task {
  margin: 14px 0 10px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f2f5f1;
  font-size: 13px;
  font-weight: 700;
}

.v212-result-modal textarea {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
}

.v212-result-next {
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

@media (max-width: 1120px) {
  .v212-cycle-grid {
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(100px, .45fr));
  }

  .v212-quick-form {
    grid-template-columns: minmax(0, 1fr) 120px 150px;
  }

  .v212-quick-form .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .v211-focus {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .v212-cycle-head,
  .v212-quick-head,
  .v212-carry-head {
    flex-direction: column;
  }

  .v212-cycle-grid {
    grid-template-columns: 1fr 1fr;
  }

  .v212-outcomes {
    grid-column: 1 / -1;
  }

  .v212-quick-form {
    grid-template-columns: 1fr;
  }

  .v212-quick-form .btn {
    grid-column: auto;
  }

  .v212-carry-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .v212-cycle-grid {
    grid-template-columns: 1fr;
  }

  .v212-outcomes {
    grid-column: auto;
  }

  .v212-cycle-metric {
    min-height: 92px;
  }
}
