.chore-workspace { grid-template-columns: minmax(310px, 370px) minmax(0, 1fr); }
.chore-editor { position: static; }
.chore-group { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.chore-group legend { padding: 0; font-size: 14px; font-weight: 750; }
.chore-hint { margin: 5px 0 11px; color: var(--muted); font-size: 12px; }
.chore-name, .chore-task { min-width: 0; margin-bottom: 11px; }
.chore-name { display: flex; align-items: flex-end; gap: 8px; }
.chore-name .cp-field { flex: 1; margin: 0; }
.chore-task { padding: 12px; border: 1px solid #d4dacf; border-radius: 9px; background: #fcfdfa; }
.chore-task .cp-field { margin-bottom: 10px; }
.chore-order, .chore-task-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.chore-order button { min-width: 36px; min-height: 36px; padding: 5px 9px; background: #fff; color: var(--ink); border: 1px solid #b9c1b5; border-radius: 6px; font-size: 13px; }
.chore-order button:hover:not(:disabled) { background: var(--soft); }
.chore-order button:disabled, .chore-secondary:disabled { cursor: default; }
.chore-task-bottom { justify-content: space-between; gap: 8px; }
.chore-due { margin: 0; color: #49604e; font-size: 11px; overflow-wrap: anywhere; }
.chore-days-label { display: block; margin: 0 0 5px; font-size: 11px; font-weight: 650; }
.chore-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 0 0 10px; }
.chore-days label { display: flex; align-items: center; flex-direction: column; gap: 3px; min-width: 0; padding: 4px 2px; border: 1px solid #d4dacf; border-radius: 5px; background: #fff; font-size: 10px; cursor: pointer; }
.chore-days label:has(input:checked) { background: #edf5ed; color: #244f36; }
.chore-days input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); }
.chore-secondary { width: 100%; }
.chore-rotation { margin: 12px 0 0; }
.chore-date-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: end; margin-bottom: 16px; }
.chore-date-control .cp-field { margin: 0; }
.chore-date-control .cp-button { min-height: 43px; }
.chore-details { margin: 0 0 14px; }
.chore-details summary { cursor: pointer; font-size: 12px; font-weight: 750; }
.chore-details[open] summary { margin-bottom: 11px; }
.chore-presets .cp-check { margin-bottom: 7px; font-size: 12px; }
.chore-notice { padding: 10px 11px; background: #edf4eb; border-radius: 6px; font-size: 12px; }
.chore-notice.is-error { background: #fff4e3; color: #893820; }
.chore-preview-options { display: flex; align-items: center; gap: 8px; padding: 8px 20px; border-bottom: 1px solid #d1d5c8; background: #fff; font-size: 12px; }
.chore-preview-options label { font-weight: 650; }
.chore-preview-options select { min-height: 36px; min-width: 0; border: 1px solid #b9bdb2; border-radius: 6px; background: #fff; }
.chore-stage { display: block; min-height: 0; padding: 18px 16px 14px; }
.chore-viewport { width: 100%; max-width: 100%; overflow: auto; padding: 8px 7px; overscroll-behavior-x: contain; }
.chore-viewport .cp-sheet { margin-inline: auto; width: min(100%, 510px); }
.chore-viewport.is-actual .cp-sheet { width: var(--sheet-preview-width, 816px); max-width: none; }
.chore-stage .cp-preview-caption { margin: 10px auto 0; }
.cp-related nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }

@media (min-width: 1101px) and (min-height: 700px) {
  .chore-output { position: sticky; top: 99px; }
  .chore-viewport:not(.is-actual) .cp-sheet { width: min(100%,510px,calc((100dvh - 306px) * .76)); }
  .chore-viewport.is-actual { max-height: calc(100dvh - 306px); }
}
@media (max-width: 1000px) {
  .chore-workspace { grid-template-columns: minmax(290px, 320px) minmax(0, 1fr); }
}
@media (max-width: 740px) {
  .chore-workspace { grid-template-columns: minmax(0, 1fr); }
  .chore-viewport { padding-inline: 4px; }
  .chore-stage { padding: 12px 8px; }
  .chore-viewport.is-actual { max-height: 60dvh; }
  .cp-related nav { display: grid; }
}
