/* Moving checklist — a local-first relocation operations desk. */
.moving-checklist-builder {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
}

.moving-checklist-setup,
.moving-checklist-workspace {
  border: 1px solid var(--line);
}

.moving-checklist-setup {
  padding: clamp(24px, 4vw, 48px);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.82), rgb(255 255 255 / 0.2)),
    var(--sand-light);
  border-top: 7px solid var(--green);
}

.moving-checklist-setup__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
}

.moving-checklist-setup__heading h2,
.moving-checklist-progress h2 {
  max-width: 15ch;
  margin: 5px 0 0;
  font-size: clamp(2.35rem, 4.7vw, 4.9rem);
  line-height: 0.94;
}

.moving-checklist-setup__heading > p,
.moving-checklist-progress > div:first-child > p:last-child {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
}

.moving-checklist-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
}

.moving-checklist-profile-grid > label,
.moving-checklist-task__fields > label,
.moving-checklist-copy-preview > label {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.moving-checklist-profile-grid label > span,
.moving-checklist-task__fields label > span,
.moving-checklist-copy-preview label > span,
.moving-checklist-progress__meter label,
.moving-checklist-needs legend {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.moving-checklist-profile-grid input,
.moving-checklist-profile-grid select,
.moving-checklist-task__fields input,
.moving-checklist-task__fields textarea,
.moving-checklist-copy-preview textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 0;
}

.moving-checklist-profile-grid small {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.moving-checklist-needs {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.moving-checklist-needs legend {
  margin-bottom: 10px;
}

.moving-checklist-needs > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.moving-checklist-needs label {
  position: relative;
}

.moving-checklist-needs input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.moving-checklist-needs label > span {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--paper-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.moving-checklist-needs label:hover > span,
.moving-checklist-needs label.is-selected > span {
  color: var(--paper-bright);
  background: var(--green);
  border-color: var(--green);
}

.moving-checklist-needs label:focus-within > span {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.moving-checklist-privacy {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding: 15px 16px;
  background: rgb(255 255 255 / 0.66);
  border-left: 4px solid var(--signal);
  font-size: 0.8125rem;
}

.moving-checklist-privacy strong {
  flex: 0 0 auto;
}

.moving-checklist-workspace {
  padding: clamp(20px, 4vw, 46px);
  background: var(--paper-bright);
}

.moving-checklist-progress {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  margin: calc(clamp(20px, 4vw, 46px) * -1);
  margin-bottom: 0;
  padding: clamp(28px, 5vw, 52px);
  color: var(--paper-bright);
  background:
    radial-gradient(circle at 88% 12%, rgb(51 108 196 / 0.28), transparent 28%),
    var(--ink);
  border-top: 7px solid var(--coral);
}

.moving-checklist-progress h2,
.moving-checklist-progress > div:first-child > p:last-child,
.moving-checklist-progress .kicker {
  color: var(--paper-bright);
}

.moving-checklist-progress__meter {
  display: grid;
  gap: 12px;
}

.moving-checklist-progress__meter label {
  color: #d8e2e0;
}

.moving-checklist-progress progress {
  width: 100%;
  height: 13px;
  accent-color: var(--coral);
}

.moving-checklist-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.moving-checklist-actions button,
.moving-checklist-view button,
.moving-checklist-empty button {
  min-height: 44px;
  padding: 9px 12px;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.moving-checklist-actions button {
  color: var(--paper-bright);
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.34);
}

.moving-checklist-actions button:last-child {
  grid-column: 1 / -1;
}

.moving-checklist-actions button:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.moving-checklist-announcement {
  grid-column: 1 / -1;
  min-height: 1.4em;
  margin: -8px 0 0;
  color: #f5b9a9;
  font-family: var(--font-data);
  font-size: 0.75rem;
}

.moving-checklist-view {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.moving-checklist-view button,
.moving-checklist-empty button {
  color: var(--ink);
  background: var(--sand-light);
  border: 1px solid var(--line);
}

.moving-checklist-view button.is-active,
.moving-checklist-view button:hover,
.moving-checklist-empty button:hover {
  color: var(--paper-bright);
  background: var(--green);
  border-color: var(--green);
}

.moving-checklist-phase-list {
  display: grid;
  gap: 18px;
}

.moving-checklist-phase {
  padding: clamp(20px, 3vw, 32px);
  background: var(--sand-light);
  border-left: 5px solid var(--green);
}

.moving-checklist-phase:nth-child(2n) {
  border-left-color: var(--signal);
}

.moving-checklist-phase:nth-child(3n) {
  border-left-color: var(--coral);
}

.moving-checklist-phase > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2px 18px;
  align-items: end;
}

.moving-checklist-phase > header .kicker {
  grid-column: 1 / -1;
}

.moving-checklist-phase > header h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.moving-checklist-phase > header > span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.moving-checklist-phase > header button {
  align-self: center;
}

.moving-checklist-phase > ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.moving-checklist-phase > ol:not([hidden]) {
  margin-top: 18px;
}

.moving-checklist-phase > ol > li {
  min-width: 0;
}

.moving-checklist-task {
  min-height: 100%;
  padding: clamp(18px, 2.5vw, 26px);
  background: var(--paper-bright);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgb(24 35 48 / 0.05);
}

.moving-checklist-task.is-complete {
  background: #edf5f0;
  border-color: #b9d2c7;
}

.moving-checklist-task__toggle {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.moving-checklist-task__toggle input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.moving-checklist-task__toggle > span {
  display: none;
}

.moving-checklist-task__toggle strong {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.25;
}

.moving-checklist-task.is-complete .moving-checklist-task__toggle strong {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.moving-checklist-task > p {
  margin: 12px 0 16px 34px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.moving-checklist-task__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 34px;
}

.moving-checklist-task__meta span {
  padding: 4px 7px;
  color: var(--green-dark);
  background: var(--sand-light);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.moving-checklist-task details {
  margin: 18px 0 0 34px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.moving-checklist-task summary {
  display: list-item;
  min-height: 44px;
  padding: 8px 0;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 28px;
  cursor: pointer;
}

.moving-checklist-task summary::marker,
.moving-checklist-copy-preview summary::marker {
  color: var(--signal);
}

.moving-checklist-task__fields {
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 0.62fr);
  gap: 10px;
  margin-top: 14px;
}

.moving-checklist-task__fields textarea {
  min-height: 86px;
  resize: vertical;
}

.moving-checklist-task__fields small {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.moving-checklist-builder :disabled,
.moving-checklist-conversion .button-link[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.58;
}

.moving-checklist-task__verification {
  margin: 14px 0 10px;
  padding: 12px;
  color: var(--ink);
  background: var(--sand-light);
  border-left: 3px solid var(--coral);
  font-size: 0.8125rem;
}

.moving-checklist-task details > a {
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 850;
}

.moving-checklist-empty,
.moving-checklist-copy-preview,
.moving-checklist-conversion {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
}

.moving-checklist-empty h3 {
  margin: 4px 0 16px;
}

.moving-checklist-copy-preview summary {
  display: list-item;
  min-height: 44px;
  padding: 8px 0;
  font-weight: 850;
  line-height: 28px;
  cursor: pointer;
}

.moving-checklist-copy-preview > label {
  margin-top: 16px;
}

.moving-checklist-conversion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  color: var(--paper-bright);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.moving-checklist-conversion h3 {
  margin: 5px 0 10px;
  color: var(--paper-bright);
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
}

.moving-checklist-conversion p:last-child {
  max-width: 70ch;
  margin: 0;
  color: #d9e8e2;
}

.moving-checklist-conversion .button-link {
  min-width: min(100%, 260px);
  text-align: center;
}

@media (max-width: 1040px) {
  .moving-checklist-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .moving-checklist-setup__heading,
  .moving-checklist-progress,
  .moving-checklist-conversion {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .moving-checklist-phase > ol {
    grid-template-columns: 1fr;
  }

  .moving-checklist-progress h2,
  .moving-checklist-setup__heading h2 {
    max-width: none;
  }
}

@media (max-width: 540px) {
  .moving-checklist-profile-grid,
  .moving-checklist-task__fields {
    grid-template-columns: 1fr;
  }

  .moving-checklist-privacy,
  .moving-checklist-phase > header {
    display: block;
  }

  .moving-checklist-phase-controls {
    display: grid;
  }

  .moving-checklist-phase-controls > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .moving-checklist-privacy strong,
  .moving-checklist-phase > header > span {
    display: block;
    margin-bottom: 6px;
  }

  .moving-checklist-phase > header button {
    width: 100%;
    margin-top: 10px;
  }

  .moving-checklist-actions {
    grid-template-columns: 1fr;
  }

  .moving-checklist-actions button:last-child {
    grid-column: auto;
  }

  .moving-checklist-task > p,
  .moving-checklist-task__meta,
  .moving-checklist-task details {
    margin-left: 0;
  }
}

@media print {
  .moving-checklist-setup,
  .moving-checklist-actions,
  .moving-checklist-view,
  .moving-checklist-phase-controls,
  .moving-checklist-announcement,
  .moving-checklist-copy-preview,
  .moving-checklist-conversion,
  .moving-checklist-task details {
    display: none !important;
  }

  .moving-checklist-builder,
  .moving-checklist-workspace,
  .moving-checklist-progress,
  .moving-checklist-phase-list,
  .moving-checklist-phase {
    display: block;
    width: 100%;
    padding: 0;
    color: #000;
    background: #fff;
    border: 0;
    box-shadow: none;
  }

  .moving-checklist-progress {
    margin: 0 0 18px;
  }

  .moving-checklist-progress h2,
  .moving-checklist-progress > div:first-child > p:last-child,
  .moving-checklist-progress .kicker,
  .moving-checklist-progress__meter label {
    color: #000;
  }

  .moving-checklist-progress progress {
    display: none;
  }

  .moving-checklist-phase {
    margin-top: 18px;
    border-top: 1px solid #888;
  }

  .moving-checklist-phase[hidden],
  .moving-checklist-phase > ol[hidden],
  .moving-checklist-phase > ol > li[hidden] {
    display: block !important;
  }

  .moving-checklist-phase > header > span,
  .moving-checklist-phase > header > button {
    display: none !important;
  }

  .moving-checklist-phase > ol {
    display: block;
  }

  .moving-checklist-task {
    break-inside: avoid;
    margin-top: 10px;
    padding: 10px 0;
    background: #fff;
    border-width: 1px 0 0;
    box-shadow: none;
  }

}
