:root {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  --bg: #f7f8f4;
  --green: #34745d;
  --art-filter: none;
  --ink: #263e35;
  --muted: #5b695d;
  --green-text: #3f6b4c;
  --warm-text: #8a5636;
  --line: #e8ebe3;
  --card: #fff;
  --soft: #eef3e9;
  --shadow: 0 6px 24px #233f2e05;
  color-scheme: light;
}
/* ---- Colour palette: every colour is a variable, with a dark counterpart (generated, then tuned) ---- */
:root {
  --p-65a88a: #65a88a;
  --p-f0f2eb: #f0f2eb;
  --p-e5e8df: #e5e8df;
  --t-ffffff: #ffffff;
  --p-28604718: #28604718;
  --p-ffffff: #ffffff;
  --p-263e3505: #263e3505;
  --p-ffffff90: #ffffff90;
  --p-eaf0e4: #eaf0e4;
  --p-dfe6d7: #dfe6d7;
  --p-e9eee1: #e9eee1;
  --t-546d49: #546d49;
  --p-dfe4d8: #dfe4d8;
  --p-e7eeda: #e7eeda;
  --t-5e7448: #5e7448;
  --p-f4e7dc: #f4e7dc;
  --p-e7eee8: #e7eee8;
  --p-f7f8f4: #f7f8f4;
  --t-566252: #566252;
  --p-7fa17b: #7fa17b;
  --p-c49d57: #c49d57;
  --p-f0f4e9: #f0f4e9;
  --p-f6f8f2: #f6f8f2;
  --p-eaf0e2: #eaf0e2;
  --p-e1e8d8: #e1e8d8;
  --p-88a36b: #88a36b;
  --p-f0f1eb: #f0f1eb;
  --p-d9e0d0: #d9e0d0;
  --p-8fa978: #8fa978;
  --p-b2c1a1: #b2c1a1;
  --p-d1b394: #d1b394;
  --p-e5eadd: #e5eadd;
  --p-fdfefb: #fdfefb;
  --p-f6f9ef: #f6f9ef;
  --p-fbfcf8: #fbfcf8;
  --p-eff2e8: #eff2e8;
  --p-edf3e5: #edf3e5;
  --p-e2ead7: #e2ead7;
  --p-9bb47d: #9bb47d;
  --p-fcf9f1: #fcf9f1;
  --p-eee8d8: #eee8d8;
  --p-f4f0e7: #f4f0e7;
  --p-34745d14: #34745d14;
  --p-e0e7d8: #e0e7d8;
  --p-374a2805: #374a2805;
  --p-edf2e4: #edf2e4;
  --p-afc89a: #afc89a;
  --p-fbfdf8: #fbfdf8;
  --p-f1f5ea: #f1f5ea;
  --p-faf4e9: #faf4e9;
  --p-dce6d4: #dce6d4;
  --p-00000011: #00000011;
  --p-ffffffd0: #ffffffd0;
  --p-fafcf7: #fafcf7;
  --p-183e3430: #183e3430;
  --p-1c352936: #1c352936;
  --p-dfe5d8: #dfe5d8;
  --p-91b07d: #91b07d;
  --p-324c3f: #324c3f;
  --p-26413420: #26413420;
  --p-e9dec7: #e9dec7;
  --p-fcf6e8: #fcf6e8;
  --p-ffffffc9: #ffffffc9;
  --p-ffffffeb: #ffffffeb;
  --p-2e443614: #2e443614;
  --p-e5eedfbd: #e5eedfbd;
  --p-afc49b: #afc49b;
  --p-263e3580: #263e3580;
  --t-5f7154: #5f7154;
  --p-d7dfd0: #d7dfd0;
  --p-2b634f: #2b634f;
  --p-34745d23: #34745d23;
  --p-f2f6ed: #f2f6ed;
  --p-f1f5eb: #f1f5eb;
  --p-dce5d3: #dce5d3;
  --t-5e7650: #5e7650;
  --t-80683d: #80683d;
  --t-607653: #607653;
  --p-c98a5e: #c98a5e;
  --p-f8ebe3: #f8ebe3;
  --t-9a5a35: #9a5a35;
  --p-edf1f7: #edf1f7;
  --t-46607e: #46607e;
  --p-fdf3dc: #fdf3dc;
  --t-8a6512: #8a6512;
  --p-e3f0ea: #e3f0ea;
  --t-23634b: #23634b;
  --p-34745d: #34745d;
  --p-efefec: #efefec;
  --p-fbfcf9: #fbfcf9;
  --p-e2e9d8: #e2e9d8;
  --p-eaf0df: #eaf0df;
  --p-ffffffc7: #ffffffc7;
  --p-cfe0c3: #cfe0c3;
}
:root[data-theme='dark'] {
  --bg: #121815;
  --green: #2f7458;
  --ink: #e4ece5;
  --muted: #a7b4a9;
  --green-text: #9ccfb0;
  --warm-text: #e2ad8a;
  --line: #2a332d;
  --card: #1a211c;
  --soft: #222b25;
  --shadow: 0 6px 24px #0000004d;
  --art-filter: brightness(0.72) saturate(0.85);
  --p-65a88a: #608775;
  --p-f0f2eb: #151c18;
  --p-e5e8df: #353f38;
  --t-ffffff: #ffffff;
  --p-28604718: #34725718;
  --p-ffffff: #1a201c;
  --p-263e3505: #00000041;
  --p-ffffff90: #1a201c90;
  --p-eaf0e4: #2b3b30;
  --p-dfe6d7: #2b362f;
  --p-e9eee1: #1f2923;
  --t-546d49: #c5cfc0;
  --p-dfe4d8: #3a463e;
  --p-e7eeda: #2e4536;
  --t-5e7448: #c5cfbc;
  --p-f4e7dc: #41342a;
  --p-e7eee8: #2e382f;
  --p-f7f8f4: #111512;
  --t-566252: #c7ccc5;
  --p-7fa17b: #617768;
  --p-c49d57: #8c754d;
  --p-f0f4e9: #26372c;
  --p-f6f8f2: #222b25;
  --p-eaf0e2: #2c3830;
  --p-e1e8d8: #35473b;
  --p-88a36b: #63836e;
  --p-f0f1eb: #2b342e;
  --p-d9e0d0: #3e4e43;
  --p-8fa978: #5b7764;
  --p-b2c1a1: #405246;
  --p-d1b394: #584836;
  --p-e5eadd: #334238;
  --p-fdfefb: #19271e;
  --p-f6f9ef: #203226;
  --p-fbfcf8: #1b2a20;
  --p-eff2e8: #29382e;
  --p-edf3e5: #273b2e;
  --p-e2ead7: #33483a;
  --p-9bb47d: #52715c;
  --p-fcf9f1: #2f2a1e;
  --p-eee8d8: #47402e;
  --p-f4f0e7: #393326;
  --p-34745d14: #41856d14;
  --p-e0e7d8: #36473c;
  --p-374a2805: #00000041;
  --p-edf2e4: #293c2f;
  --p-afc89a: #3c5645;
  --p-fbfdf8: #1d2721;
  --p-f1f5ea: #25362b;
  --p-faf4e9: #352e22;
  --p-dce6d4: #384a3e;
  --p-00000011: #0000007d;
  --p-ffffffd0: #ffffff1a;
  --p-fafcf7: #1b231e;
  --p-183e3430: #000000ff;
  --p-1c352936: #000000ff;
  --p-dfe5d8: #38463d;
  --p-91b07d: #55725f;
  --p-324c3f: #405d4e;
  --p-26413420: #000000c8;
  --p-e9dec7: #564c37;
  --p-fcf6e8: #342f22;
  --p-ffffffc9: #1a201cc9;
  --p-ffffffeb: #1a201ceb;
  --p-2e443614: #0000008c;
  --p-e5eedfbd: #2e4034bd;
  --p-afc49b: #3f5647;
  --p-263e3580: #000000ff;
  --t-5f7154: #c0c8bc;
  --p-d7dfd0: #3f4e44;
  --p-2b634f: #38755f;
  --p-34745d23: #41856d23;
  --p-f2f6ed: #243329;
  --p-f1f5eb: #25352a;
  --p-dce5d3: #394b3f;
  --t-5e7650: #bfcab9;
  --t-80683d: #d3c9b6;
  --t-607653: #bec8b9;
  --p-c98a5e: #856148;
  --p-f8ebe3: #3a2d25;
  --t-9a5a35: #d4b8a8;
  --p-edf1f7: #222934;
  --t-46607e: #b6c1ce;
  --p-fdf3dc: #3b3526;
  --t-8a6512: #e6d9bd;
  --p-e3f0ea: #2b3d35;
  --t-23634b: #cde6dd;
  --p-34745d: #2f7458;
  --p-efefec: #2a352e;
  --p-fbfcf9: #1c2820;
  --p-e2e9d8: #2a362e;
  --p-eaf0df: #1e2822;
  --p-ffffffc7: #1a201cc7;
  --p-cfe0c3: #293d30;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121815;
    --green: #2f7458;
    --ink: #e4ece5;
    --muted: #a7b4a9;
    --green-text: #9ccfb0;
    --warm-text: #e2ad8a;
    --line: #2a332d;
    --card: #1a211c;
    --soft: #222b25;
    --shadow: 0 6px 24px #0000004d;
    --art-filter: brightness(0.72) saturate(0.85);
    --p-65a88a: #608775;
    --p-f0f2eb: #151c18;
    --p-e5e8df: #353f38;
    --t-ffffff: #ffffff;
    --p-28604718: #34725718;
    --p-ffffff: #1a201c;
    --p-263e3505: #00000041;
    --p-ffffff90: #1a201c90;
    --p-eaf0e4: #2b3b30;
    --p-dfe6d7: #2b362f;
    --p-e9eee1: #1f2923;
    --t-546d49: #c5cfc0;
    --p-dfe4d8: #3a463e;
    --p-e7eeda: #2e4536;
    --t-5e7448: #c5cfbc;
    --p-f4e7dc: #41342a;
    --p-e7eee8: #2e382f;
    --p-f7f8f4: #111512;
    --t-566252: #c7ccc5;
    --p-7fa17b: #617768;
    --p-c49d57: #8c754d;
    --p-f0f4e9: #26372c;
    --p-f6f8f2: #222b25;
    --p-eaf0e2: #2c3830;
    --p-e1e8d8: #35473b;
    --p-88a36b: #63836e;
    --p-f0f1eb: #2b342e;
    --p-d9e0d0: #3e4e43;
    --p-8fa978: #5b7764;
    --p-b2c1a1: #405246;
    --p-d1b394: #584836;
    --p-e5eadd: #334238;
    --p-fdfefb: #19271e;
    --p-f6f9ef: #203226;
    --p-fbfcf8: #1b2a20;
    --p-eff2e8: #29382e;
    --p-edf3e5: #273b2e;
    --p-e2ead7: #33483a;
    --p-9bb47d: #52715c;
    --p-fcf9f1: #2f2a1e;
    --p-eee8d8: #47402e;
    --p-f4f0e7: #393326;
    --p-34745d14: #41856d14;
    --p-e0e7d8: #36473c;
    --p-374a2805: #00000041;
    --p-edf2e4: #293c2f;
    --p-afc89a: #3c5645;
    --p-fbfdf8: #1d2721;
    --p-f1f5ea: #25362b;
    --p-faf4e9: #352e22;
    --p-dce6d4: #384a3e;
    --p-00000011: #0000007d;
    --p-ffffffd0: #ffffff1a;
    --p-fafcf7: #1b231e;
    --p-183e3430: #000000ff;
    --p-1c352936: #000000ff;
    --p-dfe5d8: #38463d;
    --p-91b07d: #55725f;
    --p-324c3f: #405d4e;
    --p-26413420: #000000c8;
    --p-e9dec7: #564c37;
    --p-fcf6e8: #342f22;
    --p-ffffffc9: #1a201cc9;
    --p-ffffffeb: #1a201ceb;
    --p-2e443614: #0000008c;
    --p-e5eedfbd: #2e4034bd;
    --p-afc49b: #3f5647;
    --p-263e3580: #000000ff;
    --t-5f7154: #c0c8bc;
    --p-d7dfd0: #3f4e44;
    --p-2b634f: #38755f;
    --p-34745d23: #41856d23;
    --p-f2f6ed: #243329;
    --p-f1f5eb: #25352a;
    --p-dce5d3: #394b3f;
    --t-5e7650: #bfcab9;
    --t-80683d: #d3c9b6;
    --t-607653: #bec8b9;
    --p-c98a5e: #856148;
    --p-f8ebe3: #3a2d25;
    --t-9a5a35: #d4b8a8;
    --p-edf1f7: #222934;
    --t-46607e: #b6c1ce;
    --p-fdf3dc: #3b3526;
    --t-8a6512: #e6d9bd;
    --p-e3f0ea: #2b3d35;
    --t-23634b: #cde6dd;
    --p-34745d: #2f7458;
    --p-efefec: #2a352e;
    --p-fbfcf9: #1c2820;
    --p-e2e9d8: #2a362e;
    --p-eaf0df: #1e2822;
    --p-ffffffc7: #1a201cc7;
    --p-cfe0c3: #293d30;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--p-65a88a);
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--p-65a88a);
  outline-offset: 1px;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  background: var(--p-ffffff);
  z-index: 20;
  padding: 15px;
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  padding: 41px 22px 22px;
  background: var(--p-f0f2eb);
  border-right: 1px solid var(--p-e5e8df);
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 13px;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.8px;
}
.brand-mark {
  height: 37px;
  width: 37px;
  background: var(--green);
  border-radius: 12px;
  color: var(--t-ffffff);
  display: grid;
  place-items: center;
  box-shadow: 0 3px 7px var(--p-28604718);
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
.household-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
  padding: 40px 16px 15px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav a {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  color: var(--muted);
  border-radius: 14px;
}
.nav a.active {
  background: var(--p-ffffff);
  box-shadow: 0 2px 7px var(--p-263e3505);
  color: var(--green);
  font-weight: 650;
}
.nav a:hover {
  background: var(--p-ffffff90);
}
.nav .badge {
  margin-left: auto;
  background: var(--p-eaf0e4);
  color: var(--green);
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 12px;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-note {
  margin: 0 6px 20px;
  padding: 18px;
  border: 1px solid var(--p-dfe6d7);
  border-radius: 17px;
  background: var(--p-e9eee1);
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.sidebar-note svg {
  color: var(--green-text);
  margin-bottom: 5px;
}
.sidebar-note strong {
  display: block;
  color: var(--t-546d49);
  font-size: 13px;
}
.household-switch {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--p-dfe4d8);
  padding: 21px 10px 0;
  width: 100%;
  text-align: left;
}
.household-switch small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.household-switch strong {
  font-size: 13px;
}
.household-switch > svg {
  margin-left: auto;
  width: 17px;
}
.avatars {
  display: flex;
  padding-right: 5px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  background: var(--p-e7eeda);
  color: var(--t-5e7448);
  font-size: 12px;
  font-weight: 650;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}
.avatar.laura {
  background: var(--p-f4e7dc);
  color: var(--warm-text);
}
.avatar.samen {
  background: var(--p-e7eee8);
  color: var(--green);
}
.avatars .avatar {
  border: 2px solid var(--p-f7f8f4);
  width: 33px;
  height: 33px;
}
.avatars .avatar + .avatar {
  margin-left: -8px;
}
.shell {
  margin-left: 244px;
  min-height: 100vh;
}
.topbar {
  height: 93px;
  margin: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.topbar-left svg {
  width: 16px;
  height: 16px;
}
.topbar-left strong {
  font-weight: 500;
  color: var(--t-566252);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 17px;
}
.status {
  font-size: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
}
.status:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--p-7fa17b);
}
.status.offline:before {
  background: var(--p-c49d57);
}
.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--p-ffffff);
  border: 1px solid var(--line);
}
.profile-button {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 0 0 17px;
  border-left: 1px solid var(--line);
  font-size: 13px;
}
.profile-button > svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.mobile-brand {
  display: none;
}
main {
  max-width: 1390px;
  margin: auto;
  padding: 38px 48px 38px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
h1 {
  font-size: 31px;
  letter-spacing: -1.15px;
  line-height: 1.2;
  font-weight: 650;
  margin: 0 0 10px;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 1fr);
  gap: 24px;
  align-items: start;
}
.column {
  display: grid;
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 23px 25px 17px;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-title > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.card h2 {
  font-size: 15px;
  letter-spacing: -0.25px;
  font-weight: 650;
  margin: 0;
}
.count-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--p-f0f4e9);
  padding: 4px 7px;
  border-radius: 6px;
}
.text-link {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  white-space: nowrap;
}
.text-link svg {
  width: 13px;
  height: 13px;
}
.progress-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 25px 18px;
  padding: 16px;
  background: var(--p-f6f8f2);
  border: 1px solid var(--p-eaf0e2);
  border-radius: 13px;
}
.progress-ring {
  width: 43px;
  height: 43px;
  position: relative;
  flex-shrink: 0;
}
.progress-ring svg {
  height: 43px;
  width: 43px;
  transform: rotate(-90deg);
  stroke-width: 3;
  stroke-linecap: round;
}
.progress-ring .track {
  stroke: var(--p-e1e8d8);
}
.progress-ring .fill {
  stroke: var(--p-88a36b);
  transition: stroke-dasharray 0.4s;
}
.progress-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--green-text);
}
.progress-summary strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.progress-summary p {
  font-size: 12px;
  line-height: 1.5;
  margin: 5px 0 0;
  color: var(--muted);
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  min-height: 77px;
  border-top: 1px solid var(--p-f0f1eb);
}
.task-row:first-child {
  border-top: 0;
}
.check {
  position: relative;
  width: 27px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  display: grid;
  place-items: center;
}
.check:before {
  content: '';
  height: 21px;
  width: 21px;
  border: 1.5px solid var(--p-d9e0d0);
  border-radius: 50%;
}
.check.checked:before {
  background: var(--p-8fa978);
  border-color: var(--p-8fa978);
}
.check svg {
  position: absolute;
  width: 13px;
  height: 13px;
  color: var(--t-ffffff);
  stroke-width: 2.5;
}
.task-content {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 5px 0;
  min-height: 44px;
}
.item-name {
  font-size: 13px;
  font-weight: 520;
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.task-row.done .item-name {
  text-decoration: line-through;
  color: var(--muted);
}
.item-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.item-meta svg {
  width: 11px;
  height: 11px;
}
.room-dot {
  width: 5px;
  height: 5px;
  background: var(--p-b2c1a1);
  border-radius: 50%;
  margin-right: 2px;
}
.room-dot.warm {
  background: var(--p-d1b394);
}
.task-row .avatar {
  width: 27px;
  height: 27px;
  font-size: 12px;
}
.row-end {
  display: flex;
  gap: 10px;
  align-items: center;
}
.time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.add-row {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--muted);
  width: 100%;
  min-height: 51px;
  border-top: 1px dashed var(--p-e5eadd);
  background: var(--p-fdfefb);
}
.add-row:hover {
  background: var(--p-f6f9ef);
}
.add-row svg {
  width: 14px;
  height: 14px;
}
.shopping-row {
  min-height: 64px;
  padding: 9px 24px;
  gap: 10px;
}
.shopping-row .check:before {
  border-radius: 6px;
  width: 18px;
  height: 18px;
}
.shopping-row .item-meta {
  margin-top: 3px;
}
.shopping-row .item-name {
  font-size: 13px;
}
.shopping-icon {
  font-size: 18px;
  display: grid;
  place-items: center;
  width: 25px;
  flex-shrink: 0;
}
.shopping-preview .task-row:nth-of-type(n + 5) {
  display: none;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--p-fbfcf8);
  padding: 12px 24px;
  border-top: 1px solid var(--p-eff2e8);
  font-size: 12px;
  color: var(--muted);
}
.card-foot svg {
  width: 12px;
  height: 12px;
}
.card-foot > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin: 0 20px 21px;
}
.day-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 75px;
  border-radius: 13px;
  color: var(--muted);
  border: 1px solid transparent;
  font-size: 11px;
}
.day-button strong {
  font-size: 14px;
  color: var(--muted);
  font-weight: 550;
}
.day-button.selected {
  background: var(--p-edf3e5);
  border-color: var(--p-e2ead7);
  color: var(--muted);
}
.day-button.today strong {
  color: var(--green);
}
.day-dot {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: var(--p-9bb47d);
}
.day-dot.empty {
  background: transparent;
}
.week-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 25px 20px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
}
.week-entry small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.week-entry strong {
  font-size: 13px;
  font-weight: 550;
}
.week-entry .avatar {
  margin-left: auto;
  width: 25px;
  height: 25px;
  font-size: 11px;
}
.note-card {
  background: var(--p-fcf9f1);
  border-color: var(--p-eee8d8);
}
.note-card .card-title > svg {
  color: var(--warm-text);
}
.note-card .card-head {
  padding-bottom: 10px;
}
.note-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--warm-text);
  margin: 0 25px 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.note-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--warm-text);
  margin: 0 25px 20px;
}
.note-author .avatar {
  width: 23px;
  height: 23px;
  font-size: 11px;
}
.note-card .text-link {
  color: var(--warm-text);
}
.meal-content {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 25px 22px;
}
.meal-emoji {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--p-f4f0e7);
  font-size: 29px;
}
.meal-content strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
  line-height: 1.5;
}
.meal-content p {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.5;
}
.bottom-note {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.15px;
  color: var(--muted);
  margin: 29px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.bottom-note svg {
  width: 12px;
  height: 12px;
  color: var(--green-text);
}
.bottom-nav {
  display: none;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  border-radius: 12px;
  color: var(--t-ffffff);
  font-size: 13px;
  font-weight: 550;
  padding: 13px 17px;
  min-height: 44px;
  box-shadow: 0 4px 10px var(--p-34745d14);
}
.primary-button svg {
  width: 17px;
  height: 17px;
}
.secondary-button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--p-ffffff);
  border-radius: 12px;
  padding: 11px 15px;
  font-size: 13px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 23px;
}
.filter {
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 22px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid transparent;
}
.filter.active {
  background: var(--p-ffffff);
  border-color: var(--p-e0e7d8);
  color: var(--green);
  box-shadow: 0 2px 8px var(--p-374a2805);
}
.filter-divider {
  height: 20px;
  width: 1px;
  background: var(--line);
  margin: 0 6px;
}
.group-label {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 25px 0 12px;
}
.full-list .task-row {
  min-height: 83px;
}
.full-list .item-name {
  font-size: 14px;
}
.full-list .item-meta {
  font-size: 12px;
}
.list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 25px;
}
.aside-tip {
  padding: 24px;
  border-radius: 20px;
  background: var(--p-edf2e4);
  border: 1px solid var(--p-e1e8d8);
  align-self: start;
}
.aside-tip h3 {
  font-size: 15px;
  font-weight: 550;
  line-height: 1.5;
  margin: 12px 0;
}
.aside-tip p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.aside-tip > svg {
  color: var(--green-text);
  width: 27px;
  height: 27px;
}
.person-summary {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 21px;
}
.person-summary span:last-child {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.person-summary strong {
  color: var(--muted);
  display: block;
  font-size: 13px;
}
.empty {
  padding: 35px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.empty svg {
  height: 30px;
  width: 30px;
  display: block;
  margin: 0 auto 12px;
  color: var(--green-text);
}
.empty strong {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 5px;
}
.week-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 21px;
}
.week-toolbar strong {
  font-size: 14px;
  font-weight: 550;
  margin-right: auto;
}
.week-toolbar .icon-button {
  width: 40px;
  height: 40px;
}
.planner-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.planner-day {
  min-height: 260px;
  background: var(--p-ffffff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 10px;
}
.planner-day.is-today {
  border-color: var(--p-afc89a);
  background: var(--p-fbfdf8);
}
.planner-date {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 20px;
}
.planner-date strong {
  display: block;
  font-size: 23px;
  color: var(--muted);
  margin-top: 8px;
  font-weight: 500;
}
.planner-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 9px;
  background: var(--p-f1f5ea);
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.planner-item.done {
  opacity: 0.5;
  text-decoration: line-through;
}
.planner-item.meal {
  background: var(--p-faf4e9);
  color: var(--warm-text);
}
.planner-item small {
  font-size: 11px;
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.planner-add {
  width: 100%;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.planner-add svg {
  height: 15px;
  width: 15px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.settings-content {
  padding: 0 25px 25px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.settings-content p {
  margin: 0 0 16px;
}
.settings-content ol {
  padding-left: 18px;
}
.settings-content li {
  padding: 5px 0;
}
.settings-content strong {
  color: var(--muted);
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.settings-row:last-child {
  border: 0;
}
.settings-row > span:last-child {
  margin-left: auto;
}
.settings-row .avatar {
  margin-right: 4px;
}
.switch {
  margin-left: auto;
  width: 44px;
  min-height: 28px;
  border-radius: 20px;
  background: var(--p-dce6d4);
  padding: 4px;
  display: flex;
  justify-content: flex-start;
}
.switch.on {
  background: var(--green);
  justify-content: flex-end;
}
.switch:before {
  content: '';
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: var(--p-ffffff);
  box-shadow: 0 2px 4px var(--p-00000011);
}
dialog {
  padding: 0;
  border: 1px solid var(--p-ffffffd0);
  border-radius: 25px;
  max-width: 460px;
  width: calc(100% - 30px);
  max-height: 90dvh;
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
  background: var(--p-fafcf7);
  box-shadow: 0 20px 100px var(--p-183e3430);
}
dialog::backdrop {
  background: var(--p-1c352936);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.dialog-head {
  padding: 25px 25px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-head h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
  margin: 0;
}
.dialog-head .icon-button {
  width: 36px;
  height: 36px;
}
.dialog-body {
  padding: 4px 25px 25px;
}
.form-field {
  display: block;
  margin-bottom: 17px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  font-size: 16px;
  color: var(--ink);
  background: var(--p-ffffff);
  border: 1px solid var(--p-dfe5d8);
  border-radius: 11px;
  padding: 12px;
  margin-top: 7px;
  min-height: 47px;
  max-width: 100%;
}
.form-field textarea {
  resize: vertical;
  min-height: 100px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 23px;
}
.dialog-actions .danger {
  color: var(--muted);
  margin-right: auto;
  font-size: 12px;
  min-height: 44px;
}
.dialog-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 20px;
}
.form-error {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.profile-choice {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--p-ffffff);
  border: 1px solid var(--line);
  border-radius: 15px;
  width: 100%;
  padding: 16px;
  margin-bottom: 10px;
  text-align: left;
}
.profile-choice .avatar {
  height: 40px;
  width: 40px;
}
.profile-choice strong {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}
.profile-choice small {
  font-size: 12px;
  color: var(--muted);
}
.profile-choice.selected {
  border-color: var(--p-91b07d);
  background: var(--p-f1f5ea);
}
.profile-choice > svg {
  margin-left: auto;
  width: 18px;
  color: var(--green);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 122px);
  transform: translate(-50%, 15px);
  max-width: calc(100vw - 30px);
  background: var(--p-324c3f);
  color: var(--t-ffffff);
  padding: 13px 20px;
  border-radius: 14px;
  box-shadow: 0 5px 25px var(--p-26413420);
  z-index: 100;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.offline-banner {
  padding: 11px 16px;
  border: 1px solid var(--p-e9dec7);
  background: var(--p-fcf6e8);
  color: var(--warm-text);
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.loading-screen {
  display: grid;
  place-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.loading-screen .brand-mark {
  margin: auto;
  height: 58px;
  width: 58px;
  border-radius: 19px;
}
.loading-screen h1 {
  font-size: 24px;
}
.glass {
  background: var(--p-ffffffc9);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--p-ffffffeb);
  box-shadow:
    0 5px 22px var(--p-2e443614),
    inset 0 1px 0 var(--p-ffffff);
}
.reduce-glass .glass {
  background: var(--p-ffffff);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.reduce-glass dialog::backdrop {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.last-sync {
  font-size: 12px;
  color: var(--muted);
}
.loading-dot {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@media (min-width: 1600px) {
  main {
    padding-top: 43px;
  }
  .dashboard-grid {
    gap: 28px;
  }
  .card-head {
    padding-top: 25px;
  }
}
@media (max-width: 1190px) {
  .sidebar {
    width: 213px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .shell {
    margin-left: 213px;
  }
  .topbar {
    margin: 0 30px;
  }
  main {
    padding: 32px 30px;
  }
  .dashboard-grid {
    gap: 18px;
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, 1fr);
  }
  .column {
    gap: 18px;
  }
  .card-head {
    padding: 21px 20px 15px;
  }
  .task-row {
    padding-left: 19px;
    padding-right: 19px;
  }
  .progress-summary {
    margin-left: 20px;
    margin-right: 20px;
  }
  .card-title {
    gap: 7px;
  }
  .card h2 {
    font-size: 14px;
  }
  .time {
    display: none;
  }
  .list-layout {
    grid-template-columns: 1fr;
  }
  .aside-tip {
    display: none;
  }
  .planner-grid {
    gap: 7px;
  }
  .planner-day {
    padding: 14px 7px;
  }
  .planner-item {
    padding: 10px 6px;
  }
  #toast {
    left: calc(50% + 106px);
  }
}
@media (min-width: 701px) and (max-width: 960px) {
  .sidebar {
    width: 84px;
    align-items: center;
    padding: 30px 9px;
  }
  .brand {
    padding: 0;
  }
  .brand > span,
  .household-label,
  .nav a > span,
  .sidebar-note,
  .household-switch > span,
  .household-switch > svg {
    display: none;
  }
  .nav {
    margin-top: 37px;
    width: 100%;
  }
  .nav a {
    justify-content: center;
    padding: 0;
    height: 53px;
  }
  .nav a > svg {
    height: 23px;
    width: 23px;
  }
  .sidebar-bottom {
    width: 100%;
  }
  .household-switch {
    justify-content: center;
    padding: 19px 0 0;
  }
  .household-switch .avatars {
    display: flex;
  }
  .shell {
    margin-left: 84px;
  }
  .topbar {
    margin: 0 25px;
  }
  main {
    padding: 30px 25px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.88fr);
    gap: 16px;
  }
  .card-head {
    padding-left: 17px;
    padding-right: 17px;
  }
  .card h2 {
    font-size: 13px;
  }
  .card-title > svg {
    width: 16px;
  }
  .text-link {
    font-size: 12px;
  }
  .task-row {
    padding-left: 15px;
    padding-right: 15px;
    gap: 9px;
  }
  .item-name {
    font-size: 12px;
  }
  .shopping-row .item-name {
    font-size: 12px;
  }
  .progress-summary {
    margin-left: 16px;
    margin-right: 16px;
    padding: 12px;
    gap: 10px;
  }
  .progress-summary strong {
    font-size: 12px;
  }
  .progress-summary p {
    font-size: 11px;
  }
  .week-days {
    margin-left: 12px;
    margin-right: 12px;
    gap: 2px;
  }
  .week-entry {
    margin-left: 18px;
    margin-right: 18px;
  }
  .note-text {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 13px;
  }
  .card-foot {
    padding-left: 17px;
    padding-right: 17px;
  }
  .meal-content {
    margin-left: 18px;
    margin-right: 18px;
    gap: 10px;
  }
  .meal-emoji {
    width: 42px;
    height: 47px;
    font-size: 25px;
  }
  .planner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .planner-day {
    min-height: 210px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  #toast {
    left: calc(50% + 42px);
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 81px;
    margin: 0 23px;
    padding-top: env(safe-area-inset-top);
    border-bottom: 0;
  }
  .topbar-left {
    display: none;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.6px;
  }
  .mobile-brand .brand-mark {
    height: 31px;
    width: 31px;
    border-radius: 10px;
  }
  .mobile-brand .brand-mark svg {
    width: 20px;
  }
  .topbar-right {
    gap: 12px;
  }
  .topbar-right > .icon-button {
    display: none;
  }
  .profile-button {
    border: 0;
    padding: 0;
  }
  .profile-button > span:not(.avatar),
  .profile-button > svg {
    display: none;
  }
  .profile-button .avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .status {
    font-size: 11px;
  }
  .status:before {
    width: 4px;
    height: 4px;
  }
  main {
    padding: 16px 23px calc(110px + env(safe-area-inset-bottom));
    max-width: 540px;
  }
  .page-head {
    margin-bottom: 24px;
    align-items: flex-start;
  }
  h1 {
    font-size: 28px;
    letter-spacing: -1px;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .subtitle {
    font-size: 12px;
    line-height: 1.8;
  }
  .page-head > .primary-button {
    padding: 11px 13px;
    margin-top: 13px;
    font-size: 12px;
  }
  .page-head > .primary-button svg {
    width: 15px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 21px;
  }
  .column {
    gap: 21px;
  }
  .card {
    border-radius: 18px;
  }
  .card-head {
    padding: 21px 21px 17px;
  }
  .card h2 {
    font-size: 15px;
  }
  .card-title > svg {
    width: 18px;
    height: 18px;
  }
  .text-link {
    font-size: 12px;
  }
  .task-row {
    padding: 12px 21px;
    min-height: 76px;
    gap: 11px;
  }
  .item-name {
    font-size: 13px;
  }
  .item-meta {
    font-size: 12px;
  }
  .time {
    display: block;
    font-size: 12px;
  }
  .progress-summary {
    margin: 0 21px 16px;
    padding: 15px;
  }
  .progress-summary strong {
    font-size: 13px;
  }
  .progress-summary p {
    font-size: 12px;
  }
  .shopping-row {
    min-height: 62px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .shopping-preview .task-row:nth-of-type(n + 5) {
    display: flex;
  }
  .shopping-icon {
    font-size: 19px;
  }
  .card-foot {
    padding: 14px 21px;
  }
  .week-days {
    gap: 6px;
    margin-bottom: 22px;
  }
  .day-button {
    min-height: 75px;
  }
  .week-entry {
    margin-left: 24px;
  }
  .column.secondary {
    display: contents;
  }
  .dashboard-grid > .column:first-child {
    display: contents;
  }
  .dashboard-grid .today-card {
    order: 0;
  }
  .dashboard-grid .shopping-card {
    order: 1;
  }
  .dashboard-grid .week-card {
    order: 2;
  }
  .dashboard-grid .note-card {
    order: 3;
  }
  .dashboard-grid .meal-card {
    order: 4;
  }
  .bottom-note {
    margin-top: 28px;
  }
  .bottom-nav {
    position: fixed;
    z-index: 10;
    bottom: calc(13px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
    align-items: center;
    width: calc(100% - 34px);
    max-width: 423px;
    border-radius: 28px;
    padding: 6px 7px;
    min-height: 66px;
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: var(--muted);
    min-height: 53px;
    border-radius: 21px;
  }
  .bottom-nav a svg {
    width: 21px;
    height: 21px;
  }
  .bottom-nav a.active {
    background: var(--p-e5eedfbd);
    color: var(--green);
    font-weight: 600;
  }
  .bottom-nav .nav-label {
    display: block;
  }
  .bottom-nav a:last-child .nav-label {
    font-size: 11px;
  }
  #toast {
    left: 50%;
    bottom: calc(98px + env(safe-area-inset-bottom));
    width: max-content;
  }
  .filters {
    gap: 3px;
    margin-bottom: 22px;
  }
  .filter {
    font-size: 12px;
    padding: 9px 13px;
  }
  .full-list .item-name {
    font-size: 13px;
  }
  .full-list .item-meta {
    font-size: 12px;
  }
  .full-list .task-row {
    min-height: 83px;
  }
  .full-list .row-end {
    gap: 7px;
  }
  .filter-divider {
    margin: 0 2px;
  }
  .list-layout {
    gap: 0;
  }
  .planner-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .planner-day {
    min-height: 110px;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 0 13px;
    padding: 18px 15px;
  }
  .planner-date {
    grid-row: 1/10;
    align-self: start;
    margin: 0;
    padding-top: 5px;
    text-transform: capitalize;
  }
  .planner-date strong {
    font-size: 23px;
  }
  .planner-item {
    font-size: 13px;
    padding: 12px 13px;
  }
  .planner-item small {
    font-size: 12px;
  }
  .planner-add {
    height: 38px;
  }
  .planner-date:after {
    content: '';
    display: block;
    margin: 12px auto 0;
    height: 4px;
    width: 4px;
    background: var(--p-afc49b);
    border-radius: 50%;
  }
  .week-toolbar {
    gap: 8px;
    margin-bottom: 20px;
  }
  .week-toolbar strong {
    font-size: 13px;
  }
  .week-toolbar .secondary-button {
    font-size: 12px;
    padding: 9px 10px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .settings-content {
    padding: 0 21px 21px;
  }
  .note-text {
    font-size: 14px;
  }
  .meal-content {
    margin-bottom: 24px;
  }
  dialog {
    border-radius: 23px;
  }
  .dialog-body {
    padding-left: 22px;
    padding-right: 22px;
  }
  .dialog-head {
    padding-left: 22px;
    padding-right: 22px;
  }
  .form-grid {
    gap: 10px;
  }
  .form-field {
    font-size: 12px;
  }
  .form-field input,
  .form-field select {
    padding: 11px 9px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 359px) {
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar {
    margin-left: 16px;
    margin-right: 16px;
  }
  .mobile-brand {
    font-size: 16px;
  }
  .status {
    font-size: 11px;
  }
  .time {
    display: none;
  }
  .task-row {
    padding-left: 17px;
    padding-right: 17px;
  }
  .page-head > .primary-button {
    font-size: 0;
    gap: 0;
  }
  .page-head > .primary-button svg {
    width: 20px;
    height: 20px;
  }
  .filters {
    gap: 0;
  }
  .filter {
    padding: 9px 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: var(--p-ffffff);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  dialog::backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--p-263e3580);
  }
}
@media (prefers-contrast: more) {
  :root {
    --muted: #596b50;
    --line: #b6c3aa;
  }
  .item-meta,
  .text-link,
  .time,
  .subtitle,
  .status {
    color: var(--t-5f7154);
  }
  .glass {
    background: var(--p-ffffff);
  }
  .task-row {
    border-top-color: var(--p-d7dfd0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .primary-button,
  .secondary-button,
  .icon-button,
  .filter,
  .day-button,
  .check,
  .nav a,
  .bottom-nav a {
    transition:
      background 0.18s ease,
      transform 0.18s ease,
      box-shadow 0.18s ease;
  }
  .primary-button:active,
  .icon-button:active,
  .check:active {
    transform: scale(0.95);
  }
  .check.pop svg {
    animation: tick 0.2s ease both;
  }
  @media (hover: hover) {
    .primary-button:hover {
      background: var(--p-2b634f);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px var(--p-34745d23);
    }
    .icon-button:hover,
    .secondary-button:hover {
      background: var(--p-f2f6ed);
    }
    .planner-item:hover {
      transform: translateY(-2px);
    }
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes breathe {
  50% {
    opacity: 0.5;
    transform: rotate(35deg) scale(0.85);
  }
}
@keyframes tick {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}
.filter svg {
  width: 13px;
  height: 13px;
  vertical-align: middle;
  margin-right: 2px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
/* Contrast and text sizes keep the calm palette readable on handheld screens. */
.item-meta,
.time {
  color: var(--muted);
}
.text-link,
.add-row {
  color: var(--muted);
}
.subtitle {
  color: var(--muted);
}
.card-foot,
.progress-summary p,
.meal-content p {
  color: var(--muted);
}
.eyebrow,
.household-label {
  color: var(--muted);
}
@media (max-width: 700px) {
  .item-name,
  .shopping-row .item-name {
    font-size: 14px;
  }
  .item-meta,
  .shopping-row .item-meta {
    font-size: 12px;
  }
  .subtitle {
    font-size: 13px;
  }
  .time {
    font-size: 12px;
  }
  .card-foot {
    font-size: 12px;
  }
  .note-text {
    font-size: 15px;
  }
}
@media (min-width: 701px) and (max-width: 960px) {
  .item-name,
  .shopping-row .item-name {
    font-size: 13px;
  }
}
.login-profiles {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0 0 23px;
}
.login-profiles > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.login-profiles .avatar {
  width: 28px;
  height: 28px;
}
.room-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.room-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 13px;
  background: var(--p-f1f5eb);
  border: 1px solid var(--p-dce5d3);
  border-radius: 13px;
  color: var(--t-5e7650);
  font-size: 13px;
}
.room-chip svg {
  width: 15px;
  height: 15px;
}
.suggestions .room-chip {
  border-style: dashed;
  background: var(--p-ffffff);
  color: var(--muted);
}
.rooms-card {
  grid-column: 1/-1;
}
.check {
  width: 44px;
  flex-basis: 44px;
}
.text-link {
  min-height: 44px;
}
.profile-choice {
  overflow-wrap: anywhere;
}
.profile-button {
  max-width: 220px;
}
.profile-button > span:not(.avatar) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.offline-banner {
  color: var(--t-80683d);
}
.settings-content,
.dialog-hint {
  color: var(--muted);
}
.form-field {
  color: var(--t-607653);
}
.loading-screen {
  padding-left: 24px;
  padding-right: 24px;
  line-height: 1.8;
}
@media (max-width: 700px) {
  .check {
    width: 36px;
    flex-basis: 36px;
  }
  .task-row {
    gap: 8px;
  }
  .item-meta {
    line-height: 1.6;
  }
  .room-chip {
    font-size: 13px;
  }
  .login-profiles {
    gap: 10px;
  }
  .page-head .primary-button {
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .room-chip {
    transition:
      background 0.18s,
      transform 0.18s;
  }
  .room-chip:active {
    transform: scale(0.97);
  }
}

@media (max-width: 700px) {
  .topbar .profile-button .avatar.samen {
    width: 37px;
    height: 37px;
  }
  .rooms-card {
    grid-column: auto;
  }
  .check {
    position: relative;
  }
  .check:after {
    content: '';
    position: absolute;
    inset: 0 -4px;
    min-width: 44px;
  }
}

/* ---- v2: wensen, snel toevoegen ---- */
.ideas-button {
  position: relative;
  display: inline-grid;
  place-items: center;
}
.ideas-button .dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-c98a5e);
  box-shadow: 0 0 0 2px var(--p-f7f8f4);
}
.idea-list {
  padding: 6px;
}
.idea-row {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 14px 14px;
  border-radius: 14px;
}
.idea-row + .idea-row {
  border-top: 1px solid var(--line);
  border-radius: 0 0 14px 14px;
}
@media (hover: hover) {
  .idea-row:hover {
    background: var(--soft);
  }
}
.idea-top {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
  background: var(--soft);
  color: var(--green);
}
.chip.kind-probleem {
  background: var(--p-f8ebe3);
  color: var(--t-9a5a35);
}
.chip.kind-verbetering {
  background: var(--p-edf1f7);
  color: var(--t-46607e);
}
.chip.status-nieuw {
  background: var(--p-fdf3dc);
  color: var(--t-8a6512);
}
.chip.status-bezig {
  background: var(--p-e3f0ea);
  color: var(--t-23634b);
}
.chip.status-klaar {
  background: var(--p-34745d);
  color: var(--t-ffffff);
}
.chip.status-niet {
  background: var(--p-efefec);
  color: var(--muted);
}
.idea-details {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.idea-response {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 13.5px;
  line-height: 1.4;
}
.idea-response svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.idea-row .item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.idea-row .item-meta .avatar {
  width: 22px;
  height: 22px;
  font-size: 12px;
}
.idea-group > summary {
  list-style: none;
  cursor: pointer;
}
.idea-group > summary::-webkit-details-marker {
  display: none;
}
.idea-group > summary .group-label::after {
  content: ' ▾';
  color: var(--muted);
}
.idea-group:not([open]) > summary .group-label::after {
  content: ' ▸';
}
.copy-box {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  color: var(--ink);
  background: var(--p-fbfcf9);
}
.quick-add {
  margin-bottom: 22px;
}
.quick-add .room-chip {
  gap: 6px;
}
.aside-tip .secondary-button svg {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 6px;
}
a.secondary-button {
  display: inline-flex;
  align-items: center;
}
/* The ideas explanation + copy button stays visible on small screens (below the list). */
.aside-tip.always {
  display: block;
}
/* ---- v2: herhaalopties ---- */
.repeat-options {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 14px;
  border-radius: 14px;
  background: var(--soft);
}
.repeat-options[hidden],
.weekday-picker[hidden] {
  display: none;
}
.inline-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inline-input input {
  width: 84px;
  flex: none;
}
.inline-input span {
  color: var(--muted);
  font-weight: 500;
}
.weekday-picker {
  border: 0;
  margin: 4px 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.weekday-picker legend {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
  padding: 0;
}
.weekday-picker legend small {
  color: var(--muted);
  font-weight: 400;
}
.weekday input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.weekday span {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 36px;
  border-radius: 10px;
  background: var(--p-ffffff);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.weekday input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: var(--t-ffffff);
}
.weekday input:focus-visible + span {
  outline: 3px solid var(--p-65a88a);
  outline-offset: 2px;
}
.check-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  cursor: pointer;
}
.check-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  flex: none;
}
.check-field small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.repeat-hint {
  display: inline-flex;
}
/* ---- v2: vaste schema's ---- */
.schedule-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.schedule-buttons .secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.schedule-buttons svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.template-list,
.waste-list {
  display: grid;
  gap: 2px;
  max-height: 46vh;
  overflow: auto;
  margin: 4px 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.template {
  padding: 10px;
  border-radius: 10px;
}
.template:has(input:checked) {
  background: var(--soft);
}
.waste-row {
  border: 0;
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}
.waste-row input[type='date'],
.waste-row select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  background: var(--p-ffffff);
  color: var(--ink);
  font-size: 14px;
  min-width: 0;
}
@media (max-width: 520px) {
  .waste-row {
    grid-template-columns: 1fr 1fr;
  }
  .waste-row .check-field {
    grid-column: 1 / -1;
  }
}
/* ---- v2: meldingen en Siri ---- */
.pref-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}
#push-panel .primary-button svg {
  margin-right: 6px;
}
.copy-row input {
  flex: 1;
  width: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}
.copy-row .secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.copy-row svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.howto {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.5;
}
.howto summary {
  cursor: pointer;
}
.howto ol {
  padding-left: 20px;
  margin: 10px 0 0;
}
.howto li + li {
  margin-top: 6px;
}
.howto code {
  background: var(--soft);
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 12.5px;
  word-break: break-all;
}

/* ---- v2.1 design pass ---- */
/* The day at a glance (replaces the decorative banner). */
.briefing {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: -6px 0 26px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--p-e2e9d8);
  border-radius: 22px;
  background: var(--p-eaf0df);
}
.briefing .house-art {
  flex: none;
  width: 104px;
  height: 84px;
}
.briefing ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.briefing-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 15px 8px 12px;
  border-radius: 14px;
  background: var(--p-ffffffc7);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}
.briefing-item svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.briefing-item strong {
  font-weight: 650;
}
.briefing-item .more {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
  .briefing-item:hover {
    background: var(--p-ffffff);
  }
}
@media (max-width: 700px) {
  .briefing {
    margin: -4px 0 20px;
    padding: 8px;
    border-radius: 18px;
  }
  .briefing .house-art {
    display: none;
  }
  .briefing ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 6px;
  }
  .briefing li {
    min-width: 0;
  }
  .briefing-item {
    width: 100%;
    height: 100%;
    font-size: 13px;
    padding: 9px 11px;
  }
}

.late {
  color: var(--warm-text);
}
/* Programmatic focus after navigation must not draw a frame around the whole page. */
main:focus,
main:focus-visible {
  outline: none;
}
::selection {
  background: var(--p-cfe0c3);
  color: var(--ink);
}
input,
textarea {
  caret-color: var(--green);
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--green);
}
.time,
.count-badge,
.badge,
.progress-ring span,
.day-button strong,
.planner-date strong {
  font-variant-numeric: tabular-nums;
}
.primary-button span {
  white-space: nowrap;
}
/* Filters stay on one line on phones and scroll sideways instead of wrapping. */
@media (max-width: 700px) {
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -20px;
    padding: 2px 20px 4px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar {
    display: none;
  }
  .filter {
    flex: none;
  }
  .page-head .subtitle {
    font-size: 14px;
  }
}
.household-switch > span:nth-child(2) {
  min-width: 0;
}
.household-switch strong,
.household-switch small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 700px) {
  .briefing-item > span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ---- Dark mode details ---- */
.house-art {
  filter: var(--art-filter);
}
.brand-dot {
  color: var(--p-8ca477, #8ca477);
}
.crumb-sep {
  padding: 0 8px;
  color: var(--line);
}
.theme-choice {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 12px;
  background: var(--soft);
}
.theme-choice button {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.theme-choice button[aria-pressed='true'] {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 4px #0000001f;
}
.settings-row:has(.theme-choice) {
  flex-wrap: wrap;
  row-gap: 10px;
}
