:root {
  color-scheme: light;
  --ink: #18201b;
  --muted: #667064;
  --soft: #f6f7f2;
  --panel: #ffffff;
  --line: #d9e2d7;
  --green: #116548;
  --green-soft: #dceee4;
  --coral: #b74d3b;
  --coral-soft: #f6dfda;
  --gold: #8a6408;
  --gold-soft: #f6edc9;
  --blue: #255d75;
  --shadow: 0 18px 50px rgba(24, 32, 27, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--soft);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

a {
  color: var(--green);
}

.app-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.top-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.15rem, 4vw, 4rem);
  line-height: 1.02;
}

.subtitle {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.date-pill {
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 9px 14px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.owner-panel {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  margin: 20px 0 24px;
}

.qr-panel,
.meta-panel,
.room-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.qr-panel,
.meta-panel {
  padding: 18px;
}

.qr-stage {
  display: grid;
  place-items: center;
  min-height: 264px;
  margin: 16px 0;
  border: 1px dashed #b8c9b6;
  border-radius: 8px;
  background: #fbfcfa;
}

.qr-code,
.qr-code canvas,
.qr-code img {
  width: 230px;
  height: 230px;
}

.qr-fallback {
  display: none;
  margin: 0;
  color: var(--coral);
  font-weight: 700;
  text-align: center;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 9px 13px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  color: var(--green);
}

.button:focus-visible,
.task-row:focus-within {
  outline: 3px solid rgba(17, 101, 72, 0.22);
  outline-offset: 2px;
}

.link-box {
  overflow-wrap: anywhere;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric {
  border-left: 4px solid var(--green);
  background: var(--green-soft);
  border-radius: 8px;
  padding: 12px;
}

.metric:nth-child(2) {
  border-color: var(--blue);
  background: #e0eef3;
}

.metric:nth-child(3) {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.metric strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.05;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.progress-wrap {
  margin-top: 18px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.progress-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e6ece4;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #2e8a6c);
  transition: width 160ms ease;
}

.section-block {
  margin-top: 28px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.section-count {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.room-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
}

.priority-room {
  border-color: #d7bc59;
}

.deprioritized-room {
  border-color: #cbd4c8;
}

.room-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.room-header h3 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.room-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.tag.light {
  background: var(--gold-soft);
  color: var(--gold);
}

.tag.priority {
  background: var(--gold-soft);
  color: var(--gold);
}

.lower-priority-note {
  margin-top: 12px;
  border-left: 4px solid #9aa89a;
  border-radius: 8px;
  background: #f0f3ed;
  padding: 10px 12px;
}

.lower-priority-title,
.lower-priority-copy {
  margin: 0;
}

.lower-priority-title {
  color: #526052;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lower-priority-copy {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tasks {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.tasks.compact {
  gap: 4px;
  margin-top: 4px;
}

.task-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 34px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2ec;
  cursor: pointer;
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.task-row span {
  overflow-wrap: anywhere;
}

.laundry-note {
  position: relative;
  margin-top: 14px;
  border: 1px solid #dfc46f;
  border-radius: 6px;
  background: #fbf0bd;
  padding: 13px 14px 12px;
  box-shadow: 0 10px 22px rgba(138, 100, 8, 0.12);
}

.laundry-note::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 24px;
  width: 72px;
  height: 15px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1px 2px rgba(138, 100, 8, 0.15);
}

.laundry-note-title {
  margin: 0 0 7px;
  color: #6e5206;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.laundry-note-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 20px;
  color: #584107;
}

.task-groups {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}

.task-group {
  border-top: 1px solid #e6ece4;
  padding-top: 10px;
}

.task-group-title {
  margin: 0;
  color: var(--blue);
  font-size: 0.94rem;
  font-weight: 900;
}

.skip-block {
  margin-top: 12px;
  border-radius: 8px;
  background: var(--coral-soft);
  padding: 12px;
}

.skip-title {
  margin: 0 0 6px;
  color: var(--coral);
  font-size: 0.83rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.skip-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skip-list li {
  color: #6c2e24;
}

.source-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cleaner .top-band {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 calc(50% - 50vw);
  padding: 18px max(16px, calc(50vw - 590px));
  background: rgba(246, 247, 242, 0.96);
  backdrop-filter: blur(12px);
}

.cleaner .room-grid {
  grid-template-columns: 1fr;
}

.cleaner .room-card {
  box-shadow: none;
}

.cleaner .task-row {
  min-height: 46px;
  font-size: 1.02rem;
}

@media (max-width: 820px) {
  .app-shell {
    width: min(100% - 24px, 720px);
    padding-top: 12px;
  }

  .top-band,
  .owner-panel,
  .room-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .top-band {
    align-items: start;
  }

  .date-pill {
    justify-self: start;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .app-shell {
    width: auto;
    padding: 0;
  }

  .owner-panel,
  .button,
  .link-box {
    display: none !important;
  }

  .top-band {
    position: static !important;
    margin: 0 0 16px !important;
    padding: 0 0 12px !important;
    background: #fff !important;
  }

  .room-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
