:root {
  --bg: #f6f3ee;
  --surface: rgba(255, 255, 255, 0.55);

  --text: #22211f;
  --muted: #77736c;

  --line: rgba(34, 33, 31, 0.12);

  --accent: #5f8f7b;
  --accent-soft: #e2ece7;

  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  min-height: 100vh;

  background: var(--bg);
  color: var(--text);

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}


/* HEADER */

.owner-header {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 84px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;

  font-size: 23px;
  font-weight: 760;

  letter-spacing: -0.04em;
}

.header-right {
  display: flex;
  align-items: center;

  gap: 20px;
}

.portal-label {
  color: var(--muted);

  font-size: 13px;
}

.signout-link {
  text-decoration: none;

  font-size: 13px;
  font-weight: 650;
}


/* PAGE */

.owner-page {
  width: min(calc(100% - 48px), var(--max-width));

  margin: 0 auto;

  padding: 64px 0 90px;
}


/* WELCOME */

.welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;

  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 10px;

  color: var(--accent);

  font-size: 11px;
  font-weight: 750;

  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.welcome h1 {
  margin: 0;

  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;

  letter-spacing: -0.055em;
}

.welcome-text {
  max-width: 570px;

  margin: 18px 0 0;

  color: var(--muted);

  font-size: 16px;
  line-height: 1.6;
}

.property-select {
  width: 210px;

  flex: 0 0 auto;
}

.property-select > span {
  display: block;

  margin-bottom: 7px;

  color: var(--muted);

  font-size: 12px;
}

.property-select select {
  width: 100%;
  min-height: 45px;

  padding: 0 12px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: rgba(255, 255, 255, 0.45);

  color: var(--text);

  font: inherit;
}


/* STATUS */

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-item {
  min-height: 145px;

  padding: 26px 28px;

  display: flex;
  flex-direction: column;

  justify-content: center;
}

.status-item + .status-item {
  border-left: 1px solid var(--line);
}

.status-label {
  margin: 0 0 10px;

  color: var(--muted);

  font-size: 13px;
}

.status-item strong {
  font-size: 25px;
  letter-spacing: -0.035em;
}

.status-item > span:not(.status-pill) {
  margin-top: 4px;

  color: var(--muted);

  font-size: 13px;
}


/* PILLS */

.status-pill {
  width: fit-content;

  padding: 6px 10px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}

.status-pill.scheduled {
  background: var(--accent-soft);
  color: #426556;
}

.status-pill.complete {
  background: var(--accent-soft);
  color: #426556;
}


/* MAIN GRID */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;

  gap: 70px;

  padding: 70px 0;
}

.section-heading {
  min-height: 38px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.section-heading h2 {
  margin: 0;

  font-size: 20px;
  letter-spacing: -0.025em;
}

.section-heading > span {
  color: var(--muted);

  font-size: 13px;
}


/* CHANGEOVER */

.changeover-flow {
  padding: 38px 0 34px;

  display: grid;
  grid-template-columns: auto 1fr auto;

  align-items: center;

  gap: 24px;

  border-bottom: 1px solid var(--line);
}

.flow-point span,
.clean-marker span {
  display: block;

  color: var(--muted);

  font-size: 12px;
}

.flow-point strong {
  display: block;

  margin-top: 5px;

  font-size: 20px;
}

.arrival {
  text-align: right;
}

.flow-line {
  min-width: 150px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;

  align-items: center;
}

.flow-line > span {
  height: 1px;

  background: var(--line);
}

.clean-marker {
  display: flex;
  align-items: center;

  gap: 9px;

  padding: 0 13px;
}

.clean-marker i {
  width: 11px;
  height: 11px;

  display: block;

  border-radius: 50%;

  background: var(--accent);
}

.clean-marker strong {
  display: block;

  font-size: 13px;
}


/* NOTE */

.clean-note {
  margin-top: 24px;

  padding: 18px;

  display: flex;
  align-items: flex-start;

  gap: 12px;

  border-radius: 14px;

  background: var(--accent-soft);
}

.note-dot {
  width: 9px;
  height: 9px;

  margin-top: 6px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--accent);
}

.clean-note strong {
  font-size: 14px;
}

.clean-note p {
  margin: 4px 0 0;

  color: #587064;

  font-size: 13px;
  line-height: 1.5;
}


/* PROPERTY DETAILS */

.property-details {
  min-width: 0;
}

.detail-row {
  padding: 18px 0;

  display: flex;
  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid var(--line);
}

.detail-row span {
  color: var(--muted);

  font-size: 13px;
}

.detail-row strong {
  text-align: right;

  font-size: 13px;
}


/* HISTORY */

.history {
  padding-top: 10px;
}

.history .section-heading {
  padding-bottom: 15px;
}

.history button {
  padding: 0;

  border: 0;

  background: transparent;

  color: var(--accent);

  font: inherit;

  font-size: 13px;
  font-weight: 650;

  cursor: pointer;
}

.history-list {
  border-top: 1px solid var(--line);
}

.history-row {
  min-height: 76px;

  padding: 16px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid var(--line);
}

.history-row strong {
  display: block;

  font-size: 14px;
}

.history-row div > span {
  display: block;

  margin-top: 5px;

  color: var(--muted);

  font-size: 13px;
}


/* FOOTER */

.owner-footer {
  width: min(calc(100% - 48px), var(--max-width));

  margin: 0 auto;

  min-height: 90px;

  border-top: 1px solid var(--line);

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  color: var(--muted);

  font-size: 13px;
}


/* MOBILE */

@media (max-width: 720px) {

  .owner-header,
  .owner-page,
  .owner-footer {
    width: calc(100% - 32px);
  }

  .owner-header {
    min-height: 70px;
  }

  .brand {
    font-size: 21px;
  }

  .portal-label {
    display: none;
  }

  .owner-page {
    padding: 42px 0 60px;
  }


  /* Welcome */

  .welcome {
    display: block;

    margin-bottom: 34px;
  }

  .welcome h1 {
    font-size: 43px;
  }

  .welcome-text {
    font-size: 15px;
  }

  .property-select {
    width: 100%;

    margin-top: 26px;
  }


  /* Status becomes a simple vertical summary */

  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-item {
    min-height: 0;

    padding: 20px 0;
  }

  .status-item + .status-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .status-item strong {
    font-size: 21px;
  }


  /* Main area */

  .dashboard-grid {
    grid-template-columns: 1fr;

    gap: 52px;

    padding: 52px 0;
  }


  /* Changeover flow intentionally becomes vertical */

  .changeover-flow {
    display: flex;
    flex-direction: column;

    align-items: stretch;

    gap: 18px;

    padding: 28px 0;
  }

  .flow-point,
  .arrival {
    text-align: left;
  }

  .flow-line {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;
  }

  .flow-line > span {
    flex: 1;
  }

  .clean-marker {
    padding: 0;
  }


  /* History */

  .history-row {
    align-items: flex-start;
  }

  .history-row div > span {
    max-width: 230px;
  }


  /* Footer */

  .owner-footer {
    min-height: auto;

    padding: 28px 0 34px;

    flex-direction: column;
    align-items: flex-start;

    gap: 6px;
  }
}