:root {
  --bg: #F7F3EE;
  --card: #FFFFFF;
  --ink: #2A2540;
  --muted: #6A6480;
  --line: rgba(42, 37, 64, 0.12);
  --needs: #A34718;
  --needs-bg: #FFE6D5;
  --live: #3E9E6E;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1A22;
    --card: #26242F;
    --ink: #F1EEF8;
    --muted: #A9A4BA;
    --line: rgba(241, 238, 248, 0.12);
    --needs: #FFB488;
    --needs-bg: #4A2A1A;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 32px 24px 48px;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
h1 { font-size: 22px; font-weight: 600; margin: 0; }
h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }

.status { margin: 0; font-size: 13px; color: var(--muted); }
.status.live::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--live);
}

.needs {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--needs-bg);
  color: var(--needs);
  font-size: 13px;
  font-weight: 600;
}
.needs[hidden] { display: none; }

#rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.room { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.room ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.who { display: grid; grid-template-columns: 10px auto 1fr; align-items: baseline; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, #999999); align-self: center; }
.name { font-weight: 600; }
.what { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who.needs-you .what { color: var(--needs); font-weight: 600; }
.who.home, .who.done { opacity: 0.5; }

.empty { color: var(--muted); margin: 0; }
.breakroom { margin-top: 24px; }
.breakroom p { margin: 0; color: var(--muted); }
header .back { margin-left: auto; font-size: 13px; color: var(--muted); }
