:root {
  --bg: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.58);
  --line: rgba(23, 23, 26, 0.1);
  --accent: #e2502f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.cr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(348px, 100%); padding: 18px 16px 16px; border-radius: 26px; background: #ffffff; box-shadow: inset 0 0 0 1.500px var(--line), 0 30px 44px -30px rgba(23, 23, 26, 0.4); }
.cr__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 2px; }
.cr__head strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; }
.cr__week { display: block; height: 16px; overflow: hidden; font-size: 12.500px; line-height: 16px; font-weight: 660; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr__week span { display: block; }

/* the chores are a list; the people sit on top of it in their own layer, one per row, and the script moves them */
.cr__board { position: relative; }
.cr__list { display: grid; grid-template-columns: minmax(0, 1fr); list-style: none; }
.cr__row { display: grid; align-content: center; gap: 1px; height: 44px; padding: 0 124px 0 2px; box-shadow: inset 0 -1px 0 var(--line); }
.cr__row:last-child { box-shadow: none; }
.cr__row b { font-size: 13.500px; line-height: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr__row i { font-style: normal; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cr__people { position: absolute; right: 0; top: 0; width: 116px; height: 100%; pointer-events: none; }
.cr__who { position: absolute; right: 0; top: 7px; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 4px; border-radius: 15px; background: rgba(23, 23, 26, 0.06); font-size: 12.500px; font-weight: 680; white-space: nowrap; }
.cr__who span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(23, 23, 26, 0.12); font-size: 11px; line-height: 1; font-weight: 740; }
.cr__who.is-you { background: var(--accent); color: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 12px -8px var(--accent); }
.cr__who.is-you span { background: rgba(255, 255, 255, 0.26); }

.cr__note { padding: 10px 12px; border-radius: 14px; background: rgba(23, 23, 26, 0.045); }
.cr__clip { display: block; height: 18px; overflow: hidden; white-space: nowrap; font-size: 13px; line-height: 18px; font-weight: 660; }
.cr__clip span { display: block; overflow: hidden; text-overflow: ellipsis; }

.cr__acts { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.cr__btn { display: flex; justify-content: center; align-items: center; gap: 6px; height: 44px; border-radius: 22px; font-size: 14px; font-weight: 720; white-space: nowrap; }
.cr__btn svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cr__btn--back { box-shadow: inset 0 0 0 1.500px rgba(23, 23, 26, 0.2); }
.cr__btn--next { background: var(--ink); color: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 16px -10px rgba(23, 23, 26, 0.7); }
.cr__btn:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #17171a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }

@media (hover: hover) { .cr__btn--back:hover { box-shadow: inset 0 0 0 1.500px var(--ink); } }
@media (max-width: 350px) { .cr { padding: 16px 13px 14px; } .cr__row { padding-right: 112px; } .cr__people { width: 106px; } .cr__who { font-size: 12px; padding-right: 10px; } .cr__clip { font-size: 12.500px; } }
