
:root {
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #262824;
  background: #f7f7f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --red: #dd827c;
  --blue: #7e9ec5;
  --green: #83aa8c;
  --yellow: #d9b85f;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button { font: inherit; }
.app { width: min(100% - 36px, 900px); margin: 0 auto; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7e7e1; }
.profile-button { border: 1px solid #e2e2dc; background: #fff; border-radius: 999px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; color: #333; cursor: pointer; font-size: 13px; }
.profile-button svg { width: 15px; height: 15px; }
.overview { display: flex; flex-direction: column; align-items: center; padding: 34px 0 28px; }
.wheel { width: min(290px, 76vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; grid-template: 1fr 1fr / 1fr 1fr; border: 4px solid #fff; box-shadow: 0 2px 14px #2528190c; margin-top: 15px; position: relative; }
.wheel::before, .wheel::after { content: ""; position: absolute; background: #ffffffc7; z-index: 1; }
.wheel::before { width: 3px; height: 100%; left: calc(50% - 1.5px); }
.wheel::after { height: 3px; width: 100%; top: calc(50% - 1.5px); }
.wheel-cell { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 8px; }
.kitchen { background: #e3ebf4; }
.floor { background: #f4e4e1; }
.garbage { background: #f3edda; }
.sink { background: #e3eee5; }
.task-name { font-size: 14px; font-weight: 600; }
.person-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); }
.dot-green { background: var(--green); }
.dot-yellow { background: var(--yellow); }
.week-label { margin: 12px 0 0; color: #878980; font-size: 12px; }
.chores { border-top: 1px solid #e7e7e1; padding-top: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.section-heading h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.person-card { background: #fff; border: 1px solid #ebebe6; border-radius: 9px; padding: 15px 16px 12px; min-width: 0; }
.person-red { --person-color: var(--red); }
.person-blue { --person-color: var(--blue); }
.person-green { --person-color: var(--green); }
.person-yellow { --person-color: var(--yellow); }
.person-card.is-current { border: 2px solid var(--person-color); padding: 14px 15px 11px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 11px; border-bottom: 1px solid #f0f0ec; }
.card-person { display: flex; align-items: center; gap: 9px; }
.card-person .person-dot { width: 9px; height: 9px; }
.card-person h2 { font-size: 13px; line-height: 1.2; margin: 0 0 3px; font-weight: 600; }
.card-person p { margin: 0; color: #888a82; font-size: 11px; }
.progress { color: #8d8f87; font-size: 11px; font-variant-numeric: tabular-nums; }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; }
.checklist li label { min-height: 28px; display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; color: #454741; font-size: 11px; line-height: 1.4; }
.checklist input { appearance: none; width: 14px; height: 14px; margin: 0; flex: 0 0 14px; border: 1px solid #d1d2ca; border-radius: 4px; background: white; cursor: pointer; }
.checklist input:checked { background: #819b84; border-color: #819b84; }
.checklist input:checked::after { content: "✓"; color: white; display: block; text-align: center; line-height: 12px; font-size: 10px; }
.checklist input:disabled { cursor: default; }
.checklist input:checked + span { color: #a1a39b; text-decoration: line-through; }
footer { color: #a1a29b; font-size: 10px; text-align: center; padding: 20px 0 26px; }
dialog { border: 0; padding: 0; width: min(360px, calc(100vw - 32px)); border-radius: 12px; box-shadow: 0 18px 70px #2020182b; }
dialog::backdrop { background: #25271f66; }
.dialog-inner { padding: 24px; }
.person-options { display: grid; gap: 7px; }
.person-option { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid #e8e8e2; border-radius: 7px; background: white; padding: 11px 12px; text-align: left; cursor: pointer; font-size: 14px; }
.person-option span:last-child { margin-left: auto; color: #9a9b95; }
.person-option:hover { background: #f8f8f5; }

@media (max-width: 600px) {
  .app { width: min(100% - 28px, 440px); }
  .topbar { height: 56px; }
  .profile-button { min-height: 40px; padding: 8px 12px; }
  .overview { padding: 19px 0 22px; }
  .wheel { width: min(230px, 67vw); margin-top: 0; }
  .people-grid { grid-template-columns: 1fr; gap: 9px; }
  .person-card { padding: 13px 14px 10px; }
  .person-card.is-current { padding: 12px 13px 9px; }
  .checklist li label { font-size: 12px; min-height: 36px; padding: 8px 0; }
  .checklist input { width: 18px; height: 18px; flex-basis: 18px; }
  .checklist input:checked::after { line-height: 16px; }
}
