/* =====================================================================
 * HOMECARE — Move In / Move Out (M12 PART 02)
 * Token-driven chooser, request form, summary and confirmation for the
 * active unit, plus the PART 03 request list/history, read-only status
 * stepper and activity timeline. Mobile-first: 320 / 375 / 430px with no
 * horizontal overflow, >=44px touch targets and visible focus rings.
 * =================================================================== */

.hc-mv-page {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-4);
  padding-bottom: var(--hc-space-6);
  min-width: 0;
}

.hc-mv-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--hc-space-3);
  min-width: 0;
}

.hc-mv-heading__requests,
.hc-mv-intro__requests {
  min-height: var(--hc-touch-target);
  overflow-wrap: anywhere;
}

.hc-mv-intro__requests {
  margin-top: var(--hc-space-3);
}

.hc-mv-heading h2 {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-2xl);
  font-weight: var(--hc-font-weight-bold);
  letter-spacing: var(--hc-letter-tight);
  overflow-wrap: anywhere;
}

.hc-mv-heading p {
  margin-top: var(--hc-space-1);
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
}

/* ---- Active-unit hero ---- */
.hc-mv-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hc-space-3);
  padding: var(--hc-space-4);
  background: var(--hc-bg-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-lg);
  box-shadow: var(--hc-shadow-sm);
  min-width: 0;
}

.hc-mv-hero__main {
  min-width: 0;
}

.hc-mv-hero__eyebrow {
  color: var(--hc-text-faint);
  font-size: var(--hc-font-size-xs);
  font-weight: var(--hc-font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hc-mv-hero__property {
  margin-top: var(--hc-space-1);
  color: var(--hc-text-strong);
  font-weight: var(--hc-font-weight-semibold);
  overflow-wrap: anywhere;
}

.hc-mv-hero__location {
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-hero__main > .hc-badge {
  margin-top: var(--hc-space-2);
}

.hc-mv-hero__icon {
  flex: none;
  color: var(--hc-color-accent);
}

.hc-mv-hero__note {
  display: flex;
  align-items: flex-start;
  gap: var(--hc-space-2);
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-hero__note-icon {
  flex: none;
  margin-top: 2px;
}

.hc-mv-view {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-4);
  min-width: 0;
}

.hc-mv-eyebrow {
  color: var(--hc-text-faint);
  font-size: var(--hc-font-size-xs);
  font-weight: var(--hc-font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Chooser ---- */
.hc-mv-chooser {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-4);
  min-width: 0;
}

.hc-mv-intro__title {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-lg);
  font-weight: var(--hc-font-weight-semibold);
  overflow-wrap: anywhere;
}

.hc-mv-intro__text {
  margin-top: var(--hc-space-1);
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
}

.hc-mv-choices {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-3);
  margin-top: var(--hc-space-4);
}

.hc-mv-choice {
  display: flex;
  align-items: center;
  gap: var(--hc-space-3);
  width: 100%;
  min-height: var(--hc-touch-target);
  padding: var(--hc-space-3);
  background: var(--hc-bg-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-md);
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.hc-mv-choice:hover {
  border-color: var(--hc-color-accent);
}

.hc-mv-choice:focus-visible {
  outline: 2px solid var(--hc-border-focus);
  outline-offset: 2px;
  box-shadow: var(--hc-focus-ring);
}

.hc-mv-choice__icon {
  flex: none;
  color: var(--hc-color-accent);
}

.hc-mv-choice__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.hc-mv-choice__label {
  color: var(--hc-text-strong);
  font-weight: var(--hc-font-weight-semibold);
  overflow-wrap: anywhere;
}

.hc-mv-choice__hint {
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-choice__chevron {
  flex: none;
  color: var(--hc-text-faint);
}

.hc-mv-intro__disclaimer,
.hc-mv-form__disclaimer,
.hc-mv-summary__slot-note,
.hc-mv-success__tracking,
.hc-mv-context__note {
  display: flex;
  align-items: flex-start;
  gap: var(--hc-space-2);
  margin-top: var(--hc-space-3);
  overflow-wrap: anywhere;
}

/* ---- Read-only context panel ---- */
.hc-mv-context__title {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-base);
  font-weight: var(--hc-font-weight-semibold);
  overflow-wrap: anywhere;
}

.hc-mv-meta {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-2);
  margin-top: var(--hc-space-3);
  min-width: 0;
}

.hc-mv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--hc-space-2);
  min-width: 0;
}

.hc-mv-row dt {
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-row dd {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-sm);
  font-weight: var(--hc-font-weight-medium);
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}

/* ---- Form ---- */
.hc-mv-form {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-4);
  min-width: 0;
}

.hc-mv-back-btn {
  align-self: flex-start;
  min-height: var(--hc-touch-target);
}

.hc-mv-form__title {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-lg);
  font-weight: var(--hc-font-weight-semibold);
  overflow-wrap: anywhere;
}

.hc-mv-form__hint {
  display: flex;
  align-items: flex-start;
  gap: var(--hc-space-2);
  margin-top: var(--hc-space-2);
  margin-bottom: var(--hc-space-3);
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-type {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hc-space-2);
  min-width: 0;
}

.hc-mv-type__switch {
  min-height: var(--hc-touch-target);
  overflow-wrap: anywhere;
}

.hc-mv-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.hc-mv-checklist {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-2);
  margin-top: var(--hc-space-2);
  min-width: 0;
}

.hc-mv-check__label {
  display: flex;
  align-items: flex-start;
  gap: var(--hc-space-3);
  min-height: var(--hc-touch-target);
  padding: var(--hc-space-2);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-md);
  cursor: pointer;
  min-width: 0;
}

.hc-mv-check__input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--hc-color-accent);
}

.hc-mv-check__input:focus-visible {
  outline: 2px solid var(--hc-border-focus);
  outline-offset: 2px;
  box-shadow: var(--hc-focus-ring);
}

.hc-mv-check__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hc-mv-check__title {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-sm);
  font-weight: var(--hc-font-weight-medium);
  overflow-wrap: anywhere;
}

.hc-mv-check__optional {
  color: var(--hc-text-faint);
  font-weight: var(--hc-font-weight-regular);
}

.hc-mv-check__hint {
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-xs);
  overflow-wrap: anywhere;
}

.hc-mv-form__alert {
  margin-top: var(--hc-space-3);
  color: var(--hc-danger-600);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hc-space-2);
  margin-top: var(--hc-space-4);
  min-width: 0;
}

.hc-mv-actions > .hc-btn {
  flex: 1 1 10rem;
  min-height: var(--hc-touch-target);
  justify-content: center;
}

/* ---- Summary ---- */
.hc-mv-summary {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-4);
  min-width: 0;
}

.hc-mv-summary__title {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-lg);
  font-weight: var(--hc-font-weight-semibold);
  overflow-wrap: anywhere;
}

.hc-mv-summary__section {
  margin-top: var(--hc-space-4);
  min-width: 0;
}

.hc-mv-summary__section-title {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-sm);
  font-weight: var(--hc-font-weight-semibold);
  overflow-wrap: anywhere;
}

.hc-mv-summary__note {
  margin-top: var(--hc-space-1);
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-summary__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-2);
  margin-top: var(--hc-space-2);
  min-width: 0;
}

.hc-mv-summary__check {
  display: flex;
  align-items: flex-start;
  gap: var(--hc-space-2);
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
  min-width: 0;
}

.hc-mv-summary__check-icon {
  flex: none;
  color: var(--hc-color-accent);
}

/* ---- Success ---- */
.hc-mv-success:focus-visible {
  outline: 2px solid var(--hc-border-focus);
  outline-offset: 2px;
  box-shadow: var(--hc-focus-ring);
}

.hc-mv-success__card {
  text-align: left;
  min-width: 0;
}

.hc-mv-success__icon {
  display: inline-flex;
  color: var(--hc-success-600);
}

.hc-mv-success__title {
  margin-top: var(--hc-space-1);
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-lg);
  font-weight: var(--hc-font-weight-bold);
  overflow-wrap: anywhere;
}

.hc-mv-success__message {
  margin-top: var(--hc-space-1);
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-success__status {
  margin-top: var(--hc-space-2);
}

/* ---- My requests: filters, groups and rows (PART 03) ---- */
.hc-mv-requests {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-4);
  min-width: 0;
}

.hc-mv-requests__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hc-space-2);
  min-width: 0;
}

.hc-mv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hc-space-2);
  min-width: 0;
}

.hc-mv-chip {
  min-height: var(--hc-touch-target);
  padding: 0 var(--hc-space-3);
  background: var(--hc-bg-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-pill);
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  cursor: pointer;
  overflow-wrap: anywhere;
}

.hc-mv-chip--active {
  border-color: var(--hc-color-accent);
  color: var(--hc-color-accent);
  font-weight: var(--hc-font-weight-semibold);
}

.hc-mv-chip:focus-visible {
  outline: 2px solid var(--hc-border-focus);
  outline-offset: 2px;
  box-shadow: var(--hc-focus-ring);
}

.hc-mv-list-section {
  min-width: 0;
}

.hc-mv-list-section__title {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-sm);
  font-weight: var(--hc-font-weight-semibold);
  overflow-wrap: anywhere;
}

.hc-mv-list {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-2);
  margin-top: var(--hc-space-2);
  min-width: 0;
}

.hc-mv-row-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hc-space-3);
  width: 100%;
  min-height: var(--hc-touch-target);
  padding: var(--hc-space-3);
  background: var(--hc-bg-surface);
  border: 1px solid var(--hc-border);
  border-radius: var(--hc-radius-md);
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.hc-mv-row-btn:hover {
  border-color: var(--hc-color-accent);
}

.hc-mv-row-btn:focus-visible {
  outline: 2px solid var(--hc-border-focus);
  outline-offset: -2px;
  box-shadow: var(--hc-focus-ring);
}

.hc-mv-row-btn__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hc-mv-row-btn__ref {
  color: var(--hc-text-strong);
  font-weight: var(--hc-font-weight-semibold);
  overflow-wrap: anywhere;
}

.hc-mv-row-btn__type,
.hc-mv-row-btn__time {
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-row-btn__side {
  flex: none;
}

/* ---- Detail: status stepper (read-only) ---- */
.hc-mv-detail {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-4);
  min-width: 0;
}

.hc-mv-detail__title {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-lg);
  font-weight: var(--hc-font-weight-bold);
  overflow-wrap: anywhere;
}

.hc-mv-detail__status {
  margin-top: var(--hc-space-2);
}

.hc-mv-stepper {
  margin-top: var(--hc-space-4);
  min-width: 0;
}

.hc-mv-steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hc-space-2);
  min-width: 0;
}

.hc-mv-step {
  display: flex;
  align-items: center;
  gap: var(--hc-space-2);
  flex: 1 1 8rem;
  color: var(--hc-text-faint);
  font-size: var(--hc-font-size-xs);
  overflow-wrap: anywhere;
  min-width: 0;
}

.hc-mv-step__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hc-border-strong);
}

.hc-mv-step--done {
  color: var(--hc-text-muted);
}

.hc-mv-step--done .hc-mv-step__dot {
  background: var(--hc-color-accent);
}

.hc-mv-step--current {
  color: var(--hc-text-strong);
  font-weight: var(--hc-font-weight-semibold);
}

.hc-mv-stepper__cancelled {
  display: flex;
  align-items: flex-start;
  gap: var(--hc-space-2);
  margin-top: var(--hc-space-3);
  color: var(--hc-danger-600);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-stepper__note {
  display: flex;
  align-items: flex-start;
  gap: var(--hc-space-2);
  margin-top: var(--hc-space-2);
  overflow-wrap: anywhere;
}

/* ---- Detail: activity timeline ---- */
.hc-mv-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-3);
  margin-top: var(--hc-space-2);
  min-width: 0;
}

.hc-mv-timeline__item {
  display: flex;
  align-items: flex-start;
  gap: var(--hc-space-3);
  min-width: 0;
}

.hc-mv-timeline__dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--hc-color-accent);
}

.hc-mv-timeline__body {
  min-width: 0;
}

.hc-mv-timeline__status {
  color: var(--hc-text-strong);
  font-size: var(--hc-font-size-sm);
  font-weight: var(--hc-font-weight-semibold);
  overflow-wrap: anywhere;
}

.hc-mv-timeline__note {
  color: var(--hc-text-muted);
  font-size: var(--hc-font-size-sm);
  overflow-wrap: anywhere;
}

.hc-mv-timeline__meta {
  color: var(--hc-text-faint);
  font-size: var(--hc-font-size-xs);
  overflow-wrap: anywhere;
}

.hc-mv-cancel {
  min-height: var(--hc-touch-target);
}

/* ---- Footer link ---- */
.hc-mv-back {
  display: inline-flex;
  align-items: center;
  gap: var(--hc-space-2);
  align-self: flex-start;
  min-height: var(--hc-touch-target);
  color: var(--hc-color-accent);
  font-size: var(--hc-font-size-sm);
  font-weight: var(--hc-font-weight-medium);
}

.hc-mv-back:focus-visible {
  outline: 2px solid var(--hc-border-focus);
  outline-offset: 2px;
  box-shadow: var(--hc-focus-ring);
}

.hc-mv-back__icon {
  transform: rotate(180deg);
}

/* ---- Narrow phones (320-359px) ---- */
@media (max-width: 359px) {
  .hc-mv-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hc-mv-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hc-mv-row dd {
    text-align: left;
  }

  .hc-mv-actions > .hc-btn {
    flex: 1 1 100%;
  }

  .hc-mv-type {
    align-items: flex-start;
  }

  .hc-mv-row-btn {
    flex-direction: column;
    align-items: flex-start;
  }

  .hc-mv-step {
    flex: 1 1 100%;
  }
}
