:root {
  --pink: #F6D9E0;
  --cream: #FFF7EC;
  --white: #FFFFFF;
  --butter: #FBE38E;
  --lilac: #B9A3E3;
  --lilac-soft: #EBDDF7;
  --plum: #6A3D8F;
  --rose: #F0B9C8;
  --red: #B8322A;
  --red-dark: #8A2A1F;
  --ink: #3B2335;
  --muted: #6E5468;
  --dash: #E58FA8;
  --dots: #E0A93A;
  --lilac-text: #5A3F6E;
  --frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect width='30' height='30' fill='%23FBE38E'/%3E%3Cg fill='%23B9A3E3'%3E%3Ccircle cx='15' cy='10' r='3.6'/%3E%3Ccircle cx='15' cy='20' r='3.6'/%3E%3Ccircle cx='10' cy='15' r='3.6'/%3E%3Ccircle cx='20' cy='15' r='3.6'/%3E%3C/g%3E%3Ccircle cx='15' cy='15' r='2' fill='%23E0573F'/%3E%3Cg fill='%23F28CA8'%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='30' cy='0' r='2'/%3E%3Ccircle cx='0' cy='30' r='2'/%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
  --band: 30px;
  --display: "Fraunces", Georgia, serif;
  --body: "Nunito", system-ui, sans-serif;
  --border: 26px;
}

/* Color themes: the same design in other colors. The family's own colors stay the same in all of them. */
:root[data-theme="fjordur"] {
  --pink: #DCE8F2; --cream: #F7FAFC; --white: #FFFFFF; --butter: #F3D98B;
  --lilac: #7FA6C9; --lilac-soft: #E3ECF6; --plum: #2E4F73; --rose: #A9C4DE;
  --red: #1F3B5C; --red-dark: #142A42; --ink: #1E2B3A; --muted: #4E6175;
  --dash: #7FA6C9; --dots: #C9A54A; --lilac-text: #2E4F73;
  --frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect width='30' height='30' fill='%23F3D98B'/%3E%3Cg fill='%237FA6C9'%3E%3Ccircle cx='15' cy='10' r='3.6'/%3E%3Ccircle cx='15' cy='20' r='3.6'/%3E%3Ccircle cx='10' cy='15' r='3.6'/%3E%3Ccircle cx='20' cy='15' r='3.6'/%3E%3C/g%3E%3Ccircle cx='15' cy='15' r='2' fill='%231F3B5C'/%3E%3Cg fill='%23F7FAFC'%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='30' cy='0' r='2'/%3E%3Ccircle cx='0' cy='30' r='2'/%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme="mosi"] {
  --pink: #E3ECD9; --cream: #FAF8EF; --white: #FFFFFF; --butter: #F2DE9B;
  --lilac: #8DB07F; --lilac-soft: #E6EFDC; --plum: #3F6B45; --rose: #B9D0A8;
  --red: #3F6B45; --red-dark: #2C4D31; --ink: #26332A; --muted: #56665A;
  --dash: #8DB07F; --dots: #C9A54A; --lilac-text: #3F6B45;
  --frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect width='30' height='30' fill='%23F2DE9B'/%3E%3Cg fill='%238DB07F'%3E%3Ccircle cx='15' cy='10' r='3.6'/%3E%3Ccircle cx='15' cy='20' r='3.6'/%3E%3Ccircle cx='10' cy='15' r='3.6'/%3E%3Ccircle cx='20' cy='15' r='3.6'/%3E%3C/g%3E%3Ccircle cx='15' cy='15' r='2' fill='%23D8433A'/%3E%3Cg fill='%23FAF8EF'%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='30' cy='0' r='2'/%3E%3Ccircle cx='0' cy='30' r='2'/%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
}
:root[data-theme="rokkur"] {
  --pink: #2A2233; --cream: #3A2F45; --white: #43374F; --butter: #5A4630;
  --lilac: #6A4E8C; --lilac-soft: #3F3352; --plum: #D9C2F0; --rose: #5A4868;
  --red: #F28CA8; --red-dark: #F6BFCF; --ink: #F3E9F0; --muted: #BFAFC4;
  --dash: #8E6FA8; --dots: #B08A3A; --lilac-text: #D9C2F0;
  --frame: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Crect width='30' height='30' fill='%23E9B949'/%3E%3Cg fill='%236A4E8C'%3E%3Ccircle cx='15' cy='10' r='3.6'/%3E%3Ccircle cx='15' cy='20' r='3.6'/%3E%3Ccircle cx='10' cy='15' r='3.6'/%3E%3Ccircle cx='20' cy='15' r='3.6'/%3E%3C/g%3E%3Ccircle cx='15' cy='15' r='2' fill='%23F28CA8'/%3E%3Cg fill='%232A2233'%3E%3Ccircle cx='0' cy='0' r='2'/%3E%3Ccircle cx='30' cy='0' r='2'/%3E%3Ccircle cx='0' cy='30' r='2'/%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}
/* Holidays: the everyday colors, with the page and the ring around it dressed for the occasion. */
:root[data-theme="haust"] { --pink: #F7E8D6; --lilac: #B5562A; --rose: #E8B98F; --lilac-soft: #F4E2CC; --lilac-text: #7A3A1F; }
:root[data-theme="hrekkjavaka"] { --pink: #F6E3F0; --lilac: #6A4E8C; --rose: #D9C2E8; --lilac-text: #4A2E6A; }
:root[data-theme="jol"] { --pink: #FBEDE8; --lilac: #D8433A; --rose: #F1C4BC; --lilac-soft: #E3EEE6; --lilac-text: #2F5D45; --plum: #2F5D45; }
:root[data-theme="valentinus"] { --pink: #FFF1F4; --lilac: #D8433A; --rose: #F6BFCF; --lilac-soft: #FBE0E8; --lilac-text: #8A2A3F; }
:root[data-theme="paskar"] { --pink: #F4F8EA; --lilac: #8DB07F; --rose: #CFE2C3; --lilac-soft: #E6EFDC; --lilac-text: #3F6B45; --plum: #3F6B45; }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--lilac);
  color: var(--ink);
  font-family: var(--body);
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.loading { margin: auto; font-family: var(--display); font-size: 22px; color: var(--red); }
.empty { color: var(--muted); font-weight: 600; margin: 8px 0; }
.error { color: var(--red); font-weight: 700; }

/* ---------- the folk frame ---------- */

/* The folk band (drawn in js/frames.js): whole, upright motifs on every side, a little ornament in each corner.
   The band's color also fills in behind the page's rounded corners. */
.frame {
  position: relative;
  height: 100dvh;
  padding: max(5px, env(safe-area-inset-top)) max(5px, env(safe-area-inset-right))
    max(5px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
  border: var(--band) solid var(--band-bg, var(--butter));
  border-image: var(--frame-img) 25 round;
  background-color: var(--band-bg, var(--butter));
}

.sheet {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 28px 18px;
  background: var(--pink);
  border-radius: 16px;
  box-shadow: 0 0 0 4px var(--lilac);
  overflow: hidden;
}

.decor { position: absolute; pointer-events: none; }
.decor-left { left: -4px; bottom: -6px; }
.decor-right { right: -2px; bottom: -4px; }

/* ---------- header ---------- */

.top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.when { display: flex; flex-direction: column; gap: 2px; }
.hello { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--red); }
.when h1 { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--red); }

.weather {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 18px 6px 10px;
  background: var(--cream);
  border-radius: 999px;
  box-shadow: 0 0 0 3px var(--rose);
}
.weather .now { display: flex; flex-direction: column; }
.weather .now b { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.weather .now span, .weather .days span { font-size: 12px; font-weight: 800; color: var(--muted); }
.weather .rule { width: 2px; height: 40px; background: var(--rose); border-radius: 1px; }
.weather .days { display: flex; gap: 12px; }
.weather .days div { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.weather .days b { font-size: 14px; font-weight: 800; }

.top-right { display: flex; align-items: flex-start; gap: 16px; }
.family { display: flex; align-items: flex-start; gap: 16px; }
.member { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; }
.member .badge { box-shadow: 0 0 0 3px var(--cream); }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0;
}
.badge.many {
  display: inline-grid; grid-template-columns: repeat(2, 8px); gap: 3px;
  align-content: center; justify-content: center;
  background: var(--butter);
}
.badge.many i { width: 8px; height: 8px; border-radius: 50%; }
.badge.holiday { background: var(--lilac-soft); }
.badge.special { font-size: 18px; color: var(--plum); }
.badge.holiday svg { border-radius: 2px; }

.icon-btn {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: var(--cream); color: var(--red);
  font-size: 22px; font-weight: 800;
}

/* ---------- cards & controls ---------- */

.view { flex: 1; min-height: 0; overflow: auto; padding: 4px; }

.card {
  background: var(--cream);
  border-radius: 28px;
  padding: 18px 20px;
  box-shadow: 0 0 0 3px var(--rose);
}
.card h2 { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--red); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card.butter { background: var(--butter); box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--lilac); }
.card.lilac { background: var(--lilac-soft); box-shadow: 0 0 0 3px var(--cream); }
.card.lilac h2 { color: var(--plum); }

.btn {
  min-height: 44px; padding: 0 18px;
  border: 2px solid var(--rose); border-radius: 999px;
  background: var(--cream);
  font-weight: 800; font-size: 15px;
}
.btn.primary { background: var(--red); border-color: var(--red); color: var(--cream); }
.btn.ghost { background: transparent; border-style: dashed; border-color: var(--dash); color: var(--red); }
.btn.danger { color: var(--red); }
.btn.big { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn:disabled { opacity: .6; }

.link {
  display: inline-block; padding: 8px 0;
  border: none; background: none;
  color: var(--red); font-weight: 800; text-decoration: none;
}
.more { align-self: flex-start; padding: 8px 0; font-weight: 800; font-size: 14px; color: var(--red-dark); text-decoration: none; }

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 14px; }
.field small { font-weight: 600; color: var(--muted); }
.field input, .field textarea, .paste-recipe textarea, .add-row input, .add-recipe input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 2px solid var(--rose); border-radius: 14px;
  background: var(--white);
  font-size: 16px; font-weight: 600;
}
.field textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, .btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--plum); outline-offset: 2px;
}

.add-row { display: flex; gap: 8px; margin-top: auto; }
.add-row .btn { min-width: 46px; padding: 0; font-size: 22px; }

.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-weight: 600; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--red); flex-shrink: 0; }
.check.done span { text-decoration: line-through; color: var(--muted); }
.checks { display: flex; flex-direction: column; }

/* ---------- today ---------- */

.home { display: grid; grid-template-columns: 1.15fr 1fr .95fr; gap: 18px; height: 100%; }
.stack { display: flex; flex-direction: column; gap: 18px; min-height: 0; }

.agenda { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.agenda h2 { font-size: 28px; }
.events { display: flex; flex-direction: column; gap: 10px; overflow: auto; min-height: 0; }
.event {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  background: var(--white);
  border-radius: 18px;
}
.event.past { opacity: .55; }
.event.holiday { background: var(--lilac-soft); }
.event.holiday b { font-family: var(--display); font-style: italic; color: var(--plum); }
.event .time { width: 58px; flex-shrink: 0; font-family: var(--display); font-weight: 700; font-size: 17px; }
.event div { display: flex; flex-direction: column; min-width: 0; }
.event b { font-weight: 800; font-size: 16px; }
.event small { font-size: 13px; color: var(--muted); }

.strip-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.strip-card h2 { font-size: 20px; }
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0; border: none; background: none;
  color: var(--ink); text-decoration: none;
}
.day span { font-size: 12px; font-weight: 800; color: var(--muted); }
.day b { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.day.off b { color: var(--red); }
.day.is-today b { background: var(--red); color: var(--cream); }
.dots { display: inline-flex; gap: 2px; min-height: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; }

.dinner { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.kicker { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--red-dark); }
.dinner-main {
  display: flex; align-items: center; gap: 14px;
  padding: 0; border: none; background: none; text-align: left;
}
.plate {
  width: 88px; height: 88px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.dish-text { display: flex; flex-direction: column; gap: 2px; }
.dish { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; }
.dish-text small { font-size: 14px; font-weight: 600; }
.next-meals { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.next-meals li { display: flex; justify-content: space-between; gap: 12px; border-top: 2px dotted var(--dots); padding-top: 6px; }
.next-meals em { color: var(--muted); }
.dinner .more { margin-top: auto; }

.upcoming { display: flex; flex-direction: column; gap: 10px; }
.date-list { display: flex; flex-direction: column; gap: 12px; }
.date-list li { display: flex; align-items: center; gap: 12px; }
.date-list div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.date-list b { font-size: 15px; font-weight: 800; }
.date-list small { font-size: 13px; color: var(--muted); }
.upcoming .date-list small { color: var(--lilac-text); }
.countdown {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.countdown b { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1; }
.countdown span { font-size: 10px; font-weight: 800; }

.shop { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.shop .checks { overflow: auto; min-height: 0; }

/* ---------- other views ---------- */

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.pager h2 { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--red); min-width: 200px; text-align: center; }
.notice { margin-bottom: 14px; }

.view-calendar { display: flex; flex-direction: column; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; }
.cal-bar .pager { margin: 0; }
.cal-tools { display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream); box-shadow: 0 0 0 3px var(--rose); }
.seg button { min-height: 40px; padding: 0 16px; border: none; border-radius: 999px; background: none; font-weight: 800; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--red); color: var(--cream); }
.who-pick { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cream); box-shadow: 0 0 0 3px var(--rose); }
.who-pick button { min-height: 40px; border: none; border-radius: 999px; background: none; display: inline-flex; align-items: center; justify-content: center; }
.who-pick .all { padding: 0 14px; font-weight: 800; font-size: 14px; }
.who-pick .all[aria-pressed="true"] { background: var(--red); color: var(--cream); }
.who-pick .person { padding: 2px; }
.who-pick .person .badge { transition: opacity .15s, transform .15s; }
.who-pick .person.faded .badge { opacity: .3; transform: scale(.88); }
.who-pick .person.picked .badge { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--red); }

.month { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month .wd { text-align: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.mday {
  min-height: 62px; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  padding: 6px 7px; border: none; border-radius: 16px; text-align: left;
  background: var(--tint, linear-gradient(transparent, transparent)), var(--cream);
  box-shadow: 0 0 0 2px var(--rose);
}
.mday.out { opacity: .5; }
.mday.is-today { box-shadow: 0 0 0 3px var(--red); }
.mday .num { font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.1; }
.mday.off .num { color: var(--red); }
.mday.is-today .num { align-self: flex-start; padding: 0 7px; border-radius: 999px; background: var(--red); color: var(--cream); }
.chips { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chip { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 12px; font-weight: 700; line-height: 1.35; }
.chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chip i { width: 4px; align-self: stretch; flex-shrink: 0; border-radius: 2px; }
.chip-dots { display: inline-flex; gap: 2px; flex-shrink: 0; }
.chip-dots i { width: 6px; height: 6px; border-radius: 50%; align-self: center; }
.chip.holiday { color: var(--plum); font-style: italic; }
.chip.money span { padding: 0 6px; border-radius: 999px; background: var(--butter); color: var(--red-dark); font-style: normal; }
.chip.more { color: var(--muted); }
.mday .dots { display: none; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.day-col {
  padding: 14px 12px; min-height: 260px; display: flex; flex-direction: column; gap: 8px;
  background: var(--tint, linear-gradient(transparent, transparent)), var(--cream);
}
.day-col h3 { font-family: var(--display); font-weight: 800; font-size: 22px; }
.day-col h3 span { font-size: 14px; color: var(--muted); font-family: var(--body); }
.day-col.off h3 { color: var(--red); }
.day-col.is-today { box-shadow: 0 0 0 3px var(--red); }
.mini-events .holiday { font-style: italic; font-weight: 700; color: var(--plum); }
.mini-events { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mini-events li { display: flex; gap: 6px; align-items: baseline; }
.mini-events .dots { flex-direction: column; flex-shrink: 0; }
.mini-events b { font-weight: 800; }
.mini-events .free { color: var(--muted); }
.meal { margin: auto 0 0; padding-top: 8px; border-top: 2px dotted var(--rose); font-size: 13px; font-weight: 700; color: var(--red-dark); }

/* The week's menu as low banners, like the recipe list: picture, day, dish and what the pantry lacks. */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 8px; }
.recipe.meal-card { padding: 6px 14px 6px 6px; border-radius: 18px; }
.meal-card.is-today { background: var(--butter); box-shadow: 0 0 0 2px var(--red); }
.recipe.meal-card .pic { width: 56px; height: 56px; border-radius: 12px; background: var(--pink); }
.meal-card.empty-day .pic { opacity: .45; }
.meal-card em { font-size: 15px; color: var(--muted); font-weight: 600; }
.meal-day { font-weight: 800; font-size: 13px; color: var(--red); }
.meal-day small { color: var(--muted); font-weight: 700; }
.meal-card .have-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-missing { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.menu-missing p { display: flex; flex-direction: column; gap: 2px; margin: 0; flex: 1 1 260px; }
.menu-missing small { font-size: 13px; font-weight: 600; color: var(--muted); }
.add-recipe { display: flex; gap: 10px; margin-bottom: 18px; }
.recipe-tabs { display: flex; justify-content: center; margin-bottom: 16px; }
.have-tag {
  align-self: flex-start; margin-top: 2px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--pink); color: var(--red-dark); font-size: 12px; font-weight: 800;
}
.have-tag.all { background: #DCEFD8; color: #2F6B3A; }

.dot-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px;
  background: var(--butter); color: var(--red-dark); font-size: 12px;
}
.ingredients-layout { display: flex; flex-direction: column; gap: 18px; max-width: 900px; margin: 0 auto; }
.ingredients-layout .card { display: flex; flex-direction: column; gap: 12px; }
.ingredients-layout .hint { margin: -6px 0 0; }
.ingredients-layout .chip-btn small { margin-left: 6px; font-size: 11px; opacity: .7; }
.translate-list { display: flex; flex-direction: column; }
.translate-list li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; padding: 10px 0; border-bottom: 2px dotted var(--dots); }
.tr-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 220px; }
.tr-text b { font-size: 17px; }
.tr-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-form { display: flex; align-items: center; gap: 6px; flex: 0 1 380px; }
.tr-form input { flex: 1; min-width: 0; min-height: 40px; padding: 6px 12px; border: 2px solid var(--rose); border-radius: 14px; background: var(--white); font-size: 16px; font-weight: 600; }
.own-translations { display: flex; flex-direction: column; }
.own-translations li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; border-bottom: 2px dotted var(--cream); }
.is-name { margin-left: 6px; font-size: 13px; font-style: italic; color: var(--plum); }
.is-name::before { content: "("; }
.is-name::after { content: ")"; }
.pantry-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; max-width: 1000px; margin: 0 auto; }
.pantry-layout .card { display: flex; flex-direction: column; gap: 12px; }
.pantry-layout .hint { margin: -6px 0 0; }
/* The pantry by shelf: each item a small pill. */
.shelf h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 8px; font-size: 15px; font-weight: 800; color: var(--red); }
.shelf h3 small { font-size: 13px; color: var(--muted); }
.shelf-items { display: flex; flex-wrap: wrap; gap: 6px; }
.pantry-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px;
  border: 2px solid var(--rose); border-radius: 999px; background: var(--white);
  font-size: 15px; font-weight: 700;
}
.shelf-choice { flex-wrap: wrap; }
.shelf-choice legend { width: 100%; margin-bottom: 6px; font-weight: 800; }
.shelf-choice label { flex: 1 1 40%; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.icon-btn.small { min-width: 36px; min-height: 36px; font-size: 18px; }
/* Recipes as banners: picture, name, time and how many ingredients, and what the pantry lacks. */
.recipe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; }
.recipe {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; min-width: 0;
  border: none; border-radius: 20px; text-align: left;
  background: var(--cream); box-shadow: 0 0 0 2px var(--rose);
}
.recipe[hidden] { display: none; }
.recipe .pic {
  flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden;
  background: var(--butter); display: flex; align-items: center; justify-content: center;
}
.recipe .pic svg { width: 70%; height: 70%; }
.recipe .pic img { width: 100%; height: 100%; object-fit: cover; }
.recipe-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.recipe b { font-weight: 800; font-size: 16px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.recipe small { font-size: 13px; color: var(--muted); font-weight: 700; }
.recipe-search { flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border: 2px solid var(--rose); border-radius: 999px; background: var(--white); font-size: 16px; font-weight: 600; }

.dates-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.dates-layout .card { display: flex; flex-direction: column; gap: 14px; }
.hint { margin: -6px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }

.lists-layout { display: grid; grid-template-columns: 250px minmax(0, 640px); justify-content: center; align-items: start; gap: 20px; }
.list-picker { display: flex; flex-direction: column; gap: 10px; }
.list-pick {
  min-height: 52px; padding: 0 12px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: none; border-radius: 999px; text-align: left;
  background: var(--cream); box-shadow: 0 0 0 3px var(--rose);
  font-weight: 800; font-size: 15px;
}
.list-pick b {
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--butter); font-size: 13px;
}
.list-pick b:empty { display: none; }
.list-pick[aria-pressed="true"] { background: var(--red); color: var(--cream); box-shadow: 0 0 0 3px var(--red); }
.list-pick[aria-pressed="true"] b { background: var(--cream); color: var(--red); }
.list-pick.new { justify-content: center; background: transparent; box-shadow: none; border: 2px dashed var(--dash); color: var(--red); }
.list-card { display: flex; flex-direction: column; gap: 12px; }
.head-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.checks.big .check { min-height: 48px; font-size: 18px; border-bottom: 2px dotted var(--rose); }

/* ---------- navigation ---------- */

.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tab {
  min-height: 48px; padding: 0 22px 0 16px;
  display: flex; align-items: center; gap: 8px;
  border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-weight: 800; font-size: 15px; text-decoration: none;
}
.tab svg { flex-shrink: 0; }
.tab[aria-current="page"] { background: var(--red); color: var(--cream); }
.cal-title { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--red); }

/* ---------- dialogs ---------- */

dialog {
  width: min(560px, 92vw);
  max-height: 88dvh;
  padding: 24px;
  border: none; border-radius: 28px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 0 0 4px var(--lilac), 0 20px 60px rgba(59, 35, 53, .3);
}
dialog::backdrop { background: rgba(59, 35, 53, .35); }
dialog form { display: flex; flex-direction: column; gap: 14px; }
dialog h2 { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--red); }
dialog fieldset { border: 2px dashed var(--rose); border-radius: 18px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
dialog legend { font-weight: 800; padding: 0 6px; }
dialog .hero { width: 100%; max-height: 220px; object-fit: cover; border-radius: 18px; }
.label { margin: 0; font-weight: 800; font-size: 14px; }
.note { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--butter); font-weight: 600; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  min-height: 40px; padding: 0 14px;
  border: 2px solid var(--rose); border-radius: 999px;
  background: var(--white); font-weight: 700;
}
.chip-btn.on { background: var(--red); border-color: var(--red); color: var(--cream); }
.actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
dialog.wide { width: min(940px, 94vw); }

/* The first-time tour. Every picture has the same height, so the pages don't jump as they turn. */
dialog.tour-dialog { width: min(400px, 94vw); padding: 18px 20px 20px; background: var(--pink); touch-action: pan-y; }
.tour { display: flex; flex-direction: column; gap: 10px; }
.tour-skip { align-self: flex-end; min-height: 32px; font-weight: 800; color: var(--muted); }
.tour-skip[hidden] { visibility: hidden; display: block; }
.tour-art {
  height: 232px; display: flex; flex-direction: column; justify-content: center; gap: 9px;
  padding: 16px 18px; border-radius: 24px; background: var(--cream); box-shadow: 0 0 0 2px var(--rose);
  overflow: hidden; font-size: 15px; font-weight: 700; color: var(--ink);
}
/* Room for two lines of title and three of text on every page, so the buttons stay put. */
.tour h2 { margin: 6px 0 0; min-height: 2.2em; font-size: 27px; line-height: 1.1; display: flex; align-items: flex-end; }
.tour > p { margin: 0 0 4px; min-height: 4.35em; font-size: 16px; font-weight: 600; line-height: 1.45; }
.tour > .btn { width: 100%; }
.tour-dots { display: flex; justify-content: center; gap: 4px; }
.tour-dots button { width: 20px; height: 20px; padding: 0; border: none; background: none; display: inline-flex; align-items: center; justify-content: center; }
.tour-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--rose); transition: width .2s; }
.tour-dots button[aria-current="true"]::before { width: 20px; background: var(--red); }
.tour-row { display: flex; align-items: center; gap: 10px; }
.tour-row i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.tour-row.done { color: var(--muted); text-decoration: line-through; }
.tour-time { width: 44px; flex: none; font-size: 13px; color: var(--muted); }
.tour-badge { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-style: italic; font-size: 14px; }
.tour-note { font-size: 13px; color: var(--red); }
.tour-card { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 2px var(--rose); }
.tour-card > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 0; }
.tour-card small { font-size: 12px; color: var(--red); font-weight: 800; }
.tour-card b { font-size: 15px; }
.tour-card .have-tag { margin-top: 2px; font-size: 11px; }
.tour-pic { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.tour-card.tall { align-items: flex-start; }
.tour-card.tall .tour-pic { width: 56px; height: 56px; }
.tour-card.tall small { color: var(--muted); }
.tour-line { font-size: 13px; font-weight: 600; }
.tour-line b { font-size: 13px; color: var(--red); }
.tour-line i { font-style: normal; color: var(--muted); }
.tour-dice { align-self: center; padding: 6px 16px; border-radius: 999px; background: var(--red); color: var(--cream); font-size: 14px; white-space: nowrap; }
.tour-logos { display: flex; justify-content: center; gap: 12px; }
.tour-logo { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.tour-logo.tiktok { background: #111; }
.tour-logo.pinterest { background: #E60023; border-radius: 50%; }
.tour-logo.site { background: var(--white); color: var(--red); box-shadow: 0 0 0 2px var(--rose); }
.tour-shelves { font-size: 12px; color: var(--muted); }
.tour-check { width: 18px; height: 18px; flex: none; border-radius: 5px; border: 2px solid var(--red); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: var(--cream); }
.tour-row.done .tour-check { background: var(--red); }

/* The household's key: recovery code, invite with QR, a new device. */
.vault { display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.signin .card.vault { max-width: 380px; margin: 0 auto; }
.vault-art { display: flex; justify-content: center; margin: -4px 0 -6px; }
.vault h2, .card.vault h2 { margin: 0; justify-content: center; font-size: 27px; line-height: 1.1; }
.vault > p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--muted); }
.vault > .btn { width: 100%; }
.vault > .link { align-self: center; font-weight: 800; color: var(--muted); }
.key-card { position: relative; padding: 12px 14px 10px; border: 2px dashed var(--rose); border-radius: 18px; background: var(--cream); }
.key-card::before, .key-card::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--pink); transform: translateY(-50%); }
.key-card::before { left: -10px; }
.key-card::after { right: -10px; }
.key-code { display: flex; flex-direction: column; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; font-weight: 700; letter-spacing: .06em; line-height: 1.6; color: var(--ink); }
.key-code span { white-space: nowrap; }
.key-tools { display: flex; gap: 6px; margin-top: 8px; }
.key-tools button { flex: 1; min-height: 32px; border: none; border-radius: 999px; background: var(--pink); color: var(--red-dark); font-size: 13px; font-weight: 800; }
.qr-frame { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; border: 2px solid var(--rose); border-radius: 22px; background: var(--cream); }
.qr { width: 150px; height: 150px; padding: 8px; border-radius: 10px; background: #fff; }
.qr svg { display: block; width: 100%; height: 100%; }
.qr-people { display: flex; padding-left: 8px; }
.qr-people .badge { margin-left: -8px; box-shadow: 0 0 0 2px var(--cream); }
.vault-option {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left;
  border: 2px solid var(--rose); border-radius: 18px; background: var(--cream); color: var(--ink);
}
.vault-option.main { border-color: var(--red); }
.vault-option b { display: block; font-size: 15px; }
.vault-option small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.vault-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: var(--butter); }
.vault-option.main .vault-icon { background: var(--red); }
.vault-type { display: flex; gap: 8px; }
.vault-type[hidden], .vault-scan[hidden] { display: none; }
.vault-type input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border: 2px solid var(--rose); border-radius: 14px; background: var(--white); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; text-transform: uppercase; }
.vault-scan { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vault-scan video { width: 100%; max-height: 260px; border-radius: 16px; background: var(--ink); object-fit: cover; }

/* Senda ábendingu, and the admin's list of what came in. */
.feedback-art { align-self: center; width: 92px; height: 92px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 46px; box-shadow: 0 0 0 6px var(--pink), 0 0 0 8px var(--rose); margin: 4px 0; }
.moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; border: none !important; padding: 0 !important; margin: 0; }
.moods label { cursor: pointer; }
.moods input { position: absolute; opacity: 0; }
.moods span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 2px solid var(--rose); border-radius: 16px; background: var(--cream); font-size: 11px; font-weight: 800; color: var(--muted); }
.moods b { font-size: 26px; line-height: 1.1; transition: transform .15s; }
.moods input:checked + span { border-color: var(--red); background: var(--butter); color: var(--red-dark); }
.moods input:checked + span b { transform: scale(1.18); }
.moods input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.feedback textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 2px solid var(--rose); border-radius: 16px; background: var(--white); font: inherit; font-size: 16px; resize: vertical; }
.feedback .check { justify-content: center; font-size: 13px; }
.help-feedback { width: 100%; }
.feedback-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.feedback-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--cream); box-shadow: 0 0 0 2px var(--rose); text-align: left; }
.feedback-face { font-size: 24px; line-height: 1; }
.feedback-list div { flex: 1; min-width: 0; }
.feedback-list p { margin: 0; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.feedback-list small { color: var(--muted); font-size: 12px; }

/* Hjálp: topics as tiles, and one card per topic in the tour's style. */
.help-home { display: flex; flex-direction: column; gap: 12px; }
.help-home > .btn { width: 100%; }
.help-head { display: flex; align-items: center; justify-content: space-between; }
.help-head .link { font-weight: 800; color: var(--muted); }
.help-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.help-tile {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px;
  border: none; border-radius: 16px; background: var(--cream); box-shadow: 0 0 0 2px var(--rose);
  text-align: left; font-size: 14px; font-weight: 800; line-height: 1.2; color: var(--ink);
}
.help-tile span { flex: none; font-size: 20px; line-height: 1; }
.help-back { align-self: flex-start; }
.help-card h2 { min-height: 0; }
.help-card > p { min-height: 0; }
.help-steps { margin: 0 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.help-steps li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.help-art { height: 170px; }
.help-emoji { align-self: center; font-size: 54px; line-height: 1; }
.help-center { align-self: center; text-align: center; font-size: 14px; }
.help-badges { display: flex; gap: 8px; margin-left: 54px; }
.tour-badge.faded { opacity: .35; }
.help-check { margin-left: 54px; font-size: 13px; }
.tour-dice + .help-check { margin-left: 0; align-self: center; }
.help-check + .help-check { margin-top: -4px; }
.help-ok { color: #2F6B3A; }
.help-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.help-chips span { padding: 3px 11px; border: 2px solid var(--rose); border-radius: 999px; background: var(--white); font-size: 13px; }
.help-url { align-self: center; padding: 6px 14px; border: 2px solid var(--rose); border-radius: 999px; background: var(--white); font-size: 12px; color: var(--muted); }
.help-code { align-self: center; padding: 8px 18px; border-radius: 14px; background: var(--butter); font-family: var(--display); font-size: 26px; letter-spacing: .08em; }
.help-swatch { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--rose); }
.help-art .help-badges:only-child { margin: 0; justify-content: center; }
.link.more { font-size: inherit; font-weight: 800; white-space: nowrap; }
.day-dialog { display: flex; flex-direction: column; gap: 14px; }

/* ---------- recipe ---------- */

.recipe-view { display: flex; flex-direction: column; gap: 16px; }
.rv-head { display: flex; gap: 20px; align-items: center; }
.rv-img { width: 170px; height: 170px; flex-shrink: 0; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 4px var(--butter), 0 0 0 7px var(--rose); }
.rv-add-photo {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--cream); cursor: pointer; font-weight: 800; font-size: 14px; color: var(--red);
}
.rv-add-photo svg { width: 70px; height: 70px; }
.rv-add-photo:focus-within { outline: 3px solid var(--red); outline-offset: 4px; }
.rv-video { margin-top: 2px; }
iframe.tiktok { display: block; width: min(325px, 100%); aspect-ratio: 9 / 16; max-height: 70vh; border: 0; border-radius: 18px; background: #000; }
.caption summary, .paste-recipe summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--red); }
.caption p { margin: 8px 0 0; white-space: pre-wrap; font-size: 14px; color: var(--muted); font-weight: 600; }
.paste-recipe { padding: 10px 14px; border-radius: 14px; background: var(--butter); }
.paste-recipe .hint { margin: 8px 0 0; }
.paste-recipe textarea { margin-top: 8px; resize: vertical; }
.paste-recipe .btn { margin-top: 8px; }
.photo-pick { display: flex; align-items: center; gap: 14px; }
.photo-preview { width: 84px; height: 84px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 3px var(--rose); display: flex; align-items: center; justify-content: center; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview svg { width: 56px; height: 56px; }
.photo-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.photo-buttons label.btn { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.photo-buttons label.btn:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.photo-buttons small { flex-basis: 100%; }
.rv-title { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.rv-title h2 { font-size: 30px; line-height: 1.1; }
.rv-title .link { padding: 0; }
.rv-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fact { display: flex; flex-direction: column; padding: 6px 14px; border-radius: 16px; background: var(--lilac-soft); }
.fact small { font-size: 11px; font-weight: 800; color: var(--plum); text-transform: uppercase; letter-spacing: .04em; }
.fact b { font-weight: 800; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: var(--cream); color: var(--red); font-weight: 800; font-size: 18px; line-height: 1;
}
.stepper b { min-width: 22px; text-align: center; }
.scale-note { margin: 0; font-weight: 700; color: var(--red-dark); }
.scale-note .link { padding: 0 0 0 6px; }

.rv-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
.rv-body section { display: flex; flex-direction: column; gap: 10px; }
.rv-body h3 { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--red); }
.rv-body .hint { margin: -4px 0 0; }
.rv-body .btn, .rv-body .chip-btn { align-self: flex-start; }
.ingredients { display: flex; flex-direction: column; }
.ingredients li { padding: 7px 0; border-bottom: 2px dotted var(--rose); font-size: 16px; line-height: 1.4; }
.qty, .temp, .time {
  display: inline; padding: 1px 8px; margin-right: 2px;
  border: none; border-radius: 999px;
  font-weight: 800; font-size: inherit; line-height: inherit;
}
.qty { background: var(--butter); }
.qty-input { width: 64px; padding: 2px 8px; border: 2px solid var(--red); border-radius: 999px; font-weight: 800; font-size: 16px; }
.scaled { font-weight: 800; }
.temp { background: var(--rose); color: var(--red-dark); }
.time { background: var(--lilac-soft); color: var(--plum); }
.time.started { background: var(--plum); color: var(--cream); }
.ingredients li.have { color: var(--muted); }
.have-mark {
  margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: #DCEFD8; color: #2F6B3A; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.pantry-note { margin: 0; font-weight: 700; }
.to-list { display: flex; flex-wrap: wrap; gap: 8px; }
.steps { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; }
.steps li::marker { font-family: var(--display); font-weight: 800; color: var(--red); }
/* The shopping list: often-bought buttons, the order switch, and a heading for each part of the shop. */
.often { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 2px; }
.often .pick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.often .chip-btn { flex-shrink: 0; }
.shop-sort { align-self: flex-start; margin: 4px 0; }
.shop-sort button { min-height: 32px; padding: 0 12px; font-size: 13px; }
.checks li.aisle { margin: 10px 0 2px; padding: 0; min-height: 0; border: none; font-size: 13px; font-weight: 800; color: var(--muted); }
.checks li.aisle:first-child { margin-top: 0; }
.ingredients li.part { margin-top: 8px; border: none; font-family: var(--display); font-weight: 800; color: var(--plum); }
.steps li.part { list-style: none; margin-left: -26px; font-family: var(--display); font-weight: 800; color: var(--plum); }

/* ---------- timers ---------- */

.timers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.timers:empty { display: none; }
.page-timers { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 10; width: max-content; max-width: 94vw; }
.recipe-view .timers { position: sticky; top: -24px; z-index: 1; margin: -8px 0 0; padding: 8px 0; background: var(--cream); }
.timer {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  background: var(--plum); color: var(--cream);
  box-shadow: 0 0 0 3px var(--cream), 0 6px 18px rgba(59, 35, 53, .25);
}
.t-label { max-width: 260px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 700; }
.timer b { font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.timer button { width: 32px; height: 32px; border: none; border-radius: 50%; background: rgba(255, 247, 236, .2); color: var(--cream); font-size: 18px; font-weight: 800; }
.timer.done { background: var(--red); animation: ring 1s ease-in-out infinite; }
@keyframes ring { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .timer.done { animation: none; } }
.day-dialog .event { background: var(--white); box-shadow: 0 0 0 2px var(--pink); }
.day-dialog .event.holiday { background: var(--lilac-soft); }
.day-meal {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 16px; border: none; border-radius: 18px; text-align: left;
  background: var(--butter);
}
.day-meal span { font-family: var(--display); font-style: italic; color: var(--red-dark); }
.day-meal b { font-weight: 800; font-size: 16px; }
.actions .danger { margin-right: auto; }

/* ---------- sign in ---------- */

.signin { margin: auto; width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; padding: 4px; text-align: center; }
.signin:has(.setup) { max-width: 560px; }
.signin .card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 32px; }
.signin h1 { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--red); }
.signin p { margin: 0; font-weight: 600; }
.signin .card.setup { align-items: stretch; text-align: left; }
.signin .setup h1 { text-align: center; font-size: 34px; }
.setup-part { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 2px dashed var(--rose); }
.setup-part h2 { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--red); }
.setup .btn.ghost { align-self: center; }
.add-row .btn { white-space: nowrap; flex-shrink: 0; }
.add-row .btn.text { padding: 0 18px; font-size: 16px; }
.loading-inline { color: var(--red); font-weight: 800; text-align: center; }

/* ---------- settings ---------- */

.settings { display: flex; flex-direction: column; gap: 14px; }
.settings-list, .people { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.settings-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 16px;
  border: 2px solid var(--rose); border-radius: 18px; background: var(--white); text-align: left;
}
.settings-row > span:not(.badge):not(.settings-badges) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.settings-row small { color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-row > span[aria-hidden] { flex: 0; font-size: 22px; color: var(--red); }
.settings-badges { display: inline-flex; }
.settings-badges .badge + .badge { margin-left: -8px; box-shadow: 0 0 0 2px var(--white); }
.swatches { flex-direction: row !important; flex-wrap: wrap; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch span:not(.sr) {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 22px;
}
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--red); }
.swatch input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 6px; }
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-stats div { display: flex; flex-direction: column; align-items: center; padding: 12px; border-radius: 18px; background: var(--butter); }
.admin-stats b { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--red); line-height: 1; }
.admin-stats span { font-weight: 800; font-size: 13px; color: var(--muted); }
.admin-homes { display: flex; flex-direction: column; }
.admin-homes li { display: flex; flex-direction: column; padding: 8px 0; border-top: 2px dotted var(--rose); }
.admin-homes li:first-child { border-top: none; }
.admin-homes small { color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.admin-sub { font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--red); margin: 6px 0 0; }
.theme-section h3 { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--red); margin: 0 0 8px; }
.theme-section h4 { margin: 12px 0 6px; font-size: 13px; font-weight: 800; color: var(--muted); }
.theme-dots { display: flex; flex-wrap: wrap; gap: 12px; }
.theme-dot { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 72px; padding: 0; border: none; background: none; }
.dot-art {
  display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%;
  font-size: 24px; box-shadow: 0 0 0 3px var(--cream), 0 0 0 4px var(--rose);
}
.theme-dot.on .dot-art { outline: 3px solid var(--red); outline-offset: 4px; }
.theme-dot .dot-name { font-size: 12px; font-weight: 800; }
.theme-dot.on .dot-name { color: var(--red); }
.settings-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.settings-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 112px; padding: 14px;
  border: 2px solid var(--rose); border-radius: 20px; background: var(--white); text-align: left;
}
.settings-tile b { font-size: 16px; }
.settings-tile small { color: var(--muted); font-weight: 600; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.tile-art {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; margin-bottom: 4px;
  border-radius: 22px; background: var(--butter); font-size: 22px; box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--lilac);
}
.tile-art .settings-badges { padding: 0 6px; }
.first-steps ul { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.first-steps .step { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 10px; border: none; border-radius: 14px; background: var(--cream); text-align: left; }
.first-steps .step > span:nth-child(2) { display: flex; flex-direction: column; }
.first-steps .step small { color: var(--muted); font-weight: 600; font-size: 12px; }
.first-steps .tick { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--red); color: var(--cream); font-weight: 800; }
.first-steps .step.ok .tick { background: var(--red); }
.first-steps .step.ok b { text-decoration: line-through; opacity: .7; }
.first-steps-foot { display: flex; justify-content: space-between; margin-top: 8px; }
.help details { border-top: 2px dotted var(--dots); padding: 10px 0 0; }
.help summary { cursor: pointer; font-weight: 800; color: var(--red); }
.help details p { margin: 8px 0 0; font-weight: 600; line-height: 1.5; }
.how-to { padding: 10px 14px; border-radius: 14px; background: var(--butter); font-weight: 600; }
.how-to summary { cursor: pointer; font-weight: 800; color: var(--red); }
.how-to h4 { margin: 12px 0 4px; font-size: 15px; }
.how-to ol { margin: 0; padding-left: 22px; list-style: decimal; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.how-to .hint { margin: 10px 0 0; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form:has(input[name="allDay"]:checked) .times { display: none; }
form:has(input[name="google"]:checked) .when-app,
form:has(input[name="google"]:not(:checked)) .when-google { display: none; }
.chores-layout { display: flex; flex-direction: column; gap: 16px; }
.chores-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.kid-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.kid-head b { font-family: var(--display); font-size: 22px; font-weight: 800; flex: 1; }
.stars { padding: 4px 12px; border-radius: 999px; background: var(--butter); font-weight: 800; font-size: 18px; }
.chore-list { display: flex; flex-direction: column; gap: 8px; }
.chore {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 14px;
  border: 2px solid var(--rose); border-radius: 18px; background: var(--white); text-align: left; font-size: 17px; font-weight: 700;
}
.chore.done { background: var(--butter); border-color: var(--dots); }
.chore.done .chore-title { text-decoration: line-through; opacity: .7; }
.chore-icon { font-size: 26px; width: 36px; text-align: center; flex-shrink: 0; }
.chore-title { flex: 1; }
.chore-stars { font-weight: 800; color: var(--red); white-space: nowrap; }
.rewards ul { display: flex; flex-direction: column; margin-top: 8px; }
.rewards li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 2px dotted var(--rose); flex-wrap: wrap; }
.rewards li:first-child { border-top: none; }
.rewards li > span:first-child { display: flex; flex-direction: column; }
.rewards small { color: var(--muted); font-weight: 700; }
.redeem { display: flex; gap: 6px; flex-wrap: wrap; }
.redeem .chip-btn:disabled { opacity: .4; }
.icon-pick { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); font-size: 22px; }
.day-check { padding: 6px 12px; }
.reward-row input[type="number"] { max-width: 90px; }
.ideas-layout { display: flex; flex-direction: column; gap: 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.idea-picker { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.idea-picker .hint { margin: 0; }
.idea-picker .btn { white-space: nowrap; }
.idea-pick-result { display: flex; flex-direction: column; align-items: center; gap: 6px; }
/* Each throw lands with a little tumble (two names, so the animation starts over every time). */
.idea-pick-result.roll-0 .idea-icon { animation: tumble-a .45s ease-out; }
.idea-pick-result.roll-1 .idea-icon { animation: tumble-b .45s ease-out; }
@keyframes tumble-a { from { transform: rotate(-200deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tumble-b { from { transform: rotate(200deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .idea-pick-result .idea-icon { animation: none !important; } }
.idea-pick-result > b { font-family: var(--display); font-size: 26px; font-weight: 800; }
.idea-pick-result .pick { justify-content: center; }
.idea-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.idea-cats small { opacity: .7; }
.idea-sort { align-self: flex-start; }
.ideas { display: flex; flex-direction: column; }
.idea { display: flex; align-items: center; gap: 8px; border-top: 2px dotted var(--rose); }
.idea:first-child { border-top: none; }
.idea-main { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 2px; border: none; background: none; text-align: left; }
.idea-main > span:last-child { display: flex; flex-direction: column; }
.idea-main b { font-size: 16px; }
.idea-main small { color: var(--muted); font-weight: 600; font-size: 13px; }
.idea-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 2px var(--rose); font-size: 20px; }
.idea-icon.big { width: 56px; height: 56px; font-size: 28px; }
.idea-fav { width: 44px; height: 44px; border: none; background: none; font-size: 22px; color: var(--red); }
.recipes-bar { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.add-ways { display: flex; flex-direction: column; gap: 10px; }
.add-way {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; text-align: left;
  border: 2px solid var(--rose); border-radius: 18px; background: var(--white);
}
.add-way b { display: block; font-size: 17px; }
.add-way small { color: var(--muted); font-weight: 600; }
.add-art {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%; background: var(--butter); font-size: 22px; color: var(--red);
  box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--lilac);
}
.repeat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
form:has(select[name="repeat"] option[value=""]:checked) .until,
form:not(:has(select[name="repeat"] option[value="YEARLY"]:checked)) .yearly-only { display: none; }
.agenda-list { display: flex; flex-direction: column; gap: 18px; max-width: 760px; width: 100%; margin: 0 auto; }
.agenda-day h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.agenda-day h3 .link { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--red); padding: 0; }
.agenda-day h3::after { content: ""; flex: 1; border-top: 2px dotted var(--rose); }
.agenda-day.off h3 .link { color: var(--red-dark); }
.agenda-day .events { overflow: visible; }
.agenda-day .empty { margin: 4px 0; }
.view-calendar:has(.agenda-list) { overflow: auto; }
.google-choice { padding: 8px 12px; border-radius: 14px; background: var(--butter); }
.tappable { cursor: pointer; }
.events .tappable:hover, .events .tappable:focus-visible { box-shadow: 0 0 0 2px var(--rose); }
.themes {
  display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 10px !important;
  margin: 0; padding: 10px 14px 14px; border: 2px dashed var(--rose); border-radius: 18px;
}
.themes legend { font-weight: 800; padding: 0 6px; }
.theme-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; cursor: pointer; }
.theme-pick input { position: absolute; opacity: 0; }
.theme-art { display: block; width: 74px; height: 54px; padding: 5px; border-radius: 12px; }
.theme-art > span { position: relative; display: block; height: 100%; border-radius: 7px; }
.theme-art i { position: absolute; top: 6px; width: 24px; height: 18px; border-radius: 5px; }
.theme-art i:first-child { left: 6px; }
.theme-art i:nth-child(2) { right: 6px; }
.theme-art b { position: absolute; left: 50%; bottom: 5px; width: 26px; height: 8px; margin-left: -13px; border-radius: 4px; }
.theme-pick input:checked + .theme-art { box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--red); }
.theme-pick input:focus-visible + .theme-art { outline: 3px solid var(--red); outline-offset: 6px; }
dialog select { min-height: 46px; padding: 0 12px; border: 2px solid var(--rose); border-radius: 14px; background: var(--white); color: var(--ink); font: inherit; font-weight: 600; }
.weather .here { font-style: normal; }
.members { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.members li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; overflow-wrap: anywhere; }
.invite { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--butter); font-weight: 600; }
.invite b { font-size: 22px; letter-spacing: 3px; margin-left: 6px; user-select: all; }
.invite small { display: block; color: var(--muted); }
.place-now { margin: 0; }
.place-results { display: flex; flex-wrap: wrap; gap: 6px; }
.place-results .chip-btn { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 4px 14px; }
.place-results small { color: var(--muted); font-weight: 600; font-size: 12px; }
.seg-choice { flex-direction: row !important; gap: 6px !important; border: none !important; padding: 0 !important; }
.seg-choice label { flex: 1; }
.seg-choice input { position: absolute; opacity: 0; }
.seg-choice span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 2px solid var(--rose); border-radius: 999px; font-weight: 800; cursor: pointer; }
.seg-choice input:checked + span { background: var(--red); border-color: var(--red); color: var(--cream); }
.seg-choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
form:has(input[name="mode"][value="ical"]:checked) .mode-script,
form:has(input[name="mode"][value="script"]:checked) .mode-ical { display: none; }
.mode-ical, .mode-script { display: flex; flex-direction: column; gap: 12px; }
.mode-ical .hint, .mode-script .hint { margin: 0; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.no-recipe, .add-photo-recipe { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.add-photo-recipe .btn.big { align-self: stretch; justify-content: center; }
.photo-reading { margin: 0; font-weight: 700; color: var(--plum); }
.photo-reading:empty { display: none; }

/* The three steps for connecting a calendar, after picking whose. */
.wizard { display: flex; flex-direction: column; gap: 14px; }
.wizard-kind { display: flex; width: 100%; box-sizing: border-box; }
.wizard-kind button { flex: 1 1 auto; min-width: 0; padding: 0 8px; }
.my-data .step { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--white); border: 2px solid var(--rose); }
.my-data h3 { margin: 0; font-size: 17px; font-weight: 800; }
.my-data .hint { margin: 0; }
.my-data .danger-zone { border-style: dashed; }
.wizard .step { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--white); border: 2px solid var(--rose); }
.wizard h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 17px; font-weight: 800; }
.step-no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--cream); font-size: 15px; }
.wizard .step > .btn { align-self: flex-start; }
.step-help { margin: 0; padding-left: 22px; list-style: decimal; display: flex; flex-direction: column; gap: 3px; font-size: 14px; font-weight: 600; }
.feed-check { margin: 0; font-size: 15px; font-weight: 700; color: var(--muted); }
.feed-check.busy { color: var(--plum); }
.feed-check.good { color: #2F6B3A; }
.feed-check.bad { color: var(--red-dark); }
.feed-ok { display: flex; flex-direction: column; gap: 10px; }
.feed-ok[hidden] { display: none; }
.feed-ok .hint { margin: 0; }
.feeds { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.feed { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 18px; background: var(--white); border: 2px solid var(--rose); }
.feed > .btn { align-self: flex-start; }
.feed-who { flex-direction: row !important; flex-wrap: wrap; }
.tag-who { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; padding: 12px 14px; border: 2px dotted var(--rose); border-radius: 18px; }
.tag-who legend { padding: 0 6px; font-weight: 800; }
.tag-who .hint { margin: 0; }
.who-checks { display: flex; flex-wrap: wrap; gap: 6px; }
.who-check { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 2px solid var(--rose); font-weight: 700; font-size: 14px; cursor: pointer; }
.who-check input { position: absolute; opacity: 0; }
.who-check:has(input:checked) { background: var(--butter); border-color: var(--red); }
.who-check:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- smaller screens (phones, iPad upright) ---------- */

@media (max-width: 1000px) {
  .home { grid-template-columns: 1fr 1fr; height: auto; }
  .home .agenda { grid-column: 1 / -1; }
  .week { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .day-col { min-height: 0; }
}

@media (max-width: 700px) {
  /* The phone: a thin flower frame, calm spacing, and the tabs as icons along the bottom. */
  :root { --band: 20px; --border: 20px; --nav-h: 66px; }
  .frame { height: auto; min-height: 100dvh; border-width: var(--band) var(--band) 0; padding: max(4px, env(safe-area-inset-top)) 4px 0; }
  .sheet {
    height: auto; min-height: calc(100dvh - var(--border));
    padding: 22px 18px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
    gap: 20px; overflow: visible; border-radius: 26px 26px 0 0; box-shadow: 0 0 0 3px var(--lilac);
  }
  .view { overflow: visible; padding: 0; }
  .decor { display: none; }

  .top { flex-wrap: nowrap; align-items: flex-end; gap: 10px; }
  .hello { font-size: 14px; }
  .when h1 { font-size: 30px; }
  .top-right { align-items: center; gap: 8px; }
  .family { display: none; }
  .weather { padding: 4px 12px 4px 6px; gap: 6px; box-shadow: none; background: none; }
  .weather .rule, .weather .days, .weather .now span { display: none; }
  .weather .now b { font-size: 22px; }
  .weather svg { width: 34px; height: 34px; }

  /* Cards: more air, softer edges, a small folk flower before each heading, stitched dotted dividers. */
  .card { border-radius: 22px; padding: 16px 18px; box-shadow: 0 0 0 2px var(--rose); }
  .card h2 { display: flex; align-items: center; gap: 7px; font-size: 19px; }
  .card h2::before {
    content: ""; width: 14px; height: 14px; flex-shrink: 0;
    background: radial-gradient(circle at 50% 50%, var(--dots) 0 2px, transparent 2.5px),
      radial-gradient(circle at 50% 22%, var(--lilac) 0 3.2px, transparent 3.6px),
      radial-gradient(circle at 50% 78%, var(--lilac) 0 3.2px, transparent 3.6px),
      radial-gradient(circle at 22% 50%, var(--lilac) 0 3.2px, transparent 3.6px),
      radial-gradient(circle at 78% 50%, var(--lilac) 0 3.2px, transparent 3.6px);
  }
  .card.butter { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--lilac); }
  .home { gap: 18px; height: auto; }
  .stack { gap: 18px; }
  .strip-card { display: none; }
  .agenda h2 { font-size: 19px; }
  .events { gap: 0; overflow: visible; }
  .event { background: none; border-radius: 0; padding: 9px 2px; border-top: 2px dotted var(--rose); }
  .event:first-child { border-top: none; }
  .event.holiday { background: none; }
  .event .time { width: 48px; padding: 0; font-size: 14px; background: none; color: var(--muted); }
  .event .badge { width: 30px !important; height: 30px !important; }
  .hello-more { display: none; }
  .dinner .plate { width: 64px; height: 64px; }
  .dinner .plate svg { width: 44px; height: 44px; }
  .dinner .dish { font-size: 24px; }
  .event b { font-size: 15px; }
  .agenda .events .event:nth-child(n+5) { display: none; }
  .dinner .next-meals { display: none; }

  /* The tabs: fixed along the bottom, icon over word; the open one gets a little flower of three dots. */
  .tabs {
    position: fixed; left: var(--border); right: var(--border); bottom: 0; z-index: 5;
    display: flex; flex-wrap: nowrap; justify-content: space-around; gap: 0;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 6px 4px env(safe-area-inset-bottom);
    background: var(--cream); border-top: 2px dotted var(--dots);
    box-shadow: 0 -8px 20px rgba(59, 35, 53, .06);
  }
  .tab {
    position: relative; flex: 1; flex-direction: column; justify-content: center; gap: 2px;
    min-height: 0; padding: 0; border-radius: 0; background: none;
    color: var(--muted); font-size: 11px; font-weight: 800;
  }
  .tab[aria-current="page"] { background: none; color: var(--red); }
  .tab[aria-current="page"]::after {
    content: ""; position: absolute; bottom: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
    box-shadow: -9px 0 0 -1px var(--lilac), 9px 0 0 -1px var(--lilac);
  }

  .home, .dates-layout { grid-template-columns: 1fr; }
  .add-recipe { flex-direction: column; }
  .pantry-layout { grid-template-columns: minmax(0, 1fr); }
  .tr-form { flex: 1 1 100%; }
  .rv-head { flex-direction: column; text-align: center; }
  .rv-title { align-items: center; }
  .rv-title h2 { font-size: 26px; }
  .rv-img { width: 140px; height: 140px; }
  .rv-body { grid-template-columns: minmax(0, 1fr); }
  .t-label { max-width: 140px; }
  .lists-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .list-picker { flex-direction: row; overflow-x: auto; padding: 4px; margin: -4px; scrollbar-width: none; }
  .list-pick { flex-shrink: 0; min-height: 44px; padding: 0 10px 0 16px; }
  .list-pick.new { padding: 0 16px; }
  .cal-bar { justify-content: center; }
  .cal-bar .pager h2 { min-width: 0; font-size: 22px; }
  .month { min-height: 0; gap: 4px; }
  .mday { min-height: 54px; padding: 5px 4px; align-items: center; border-radius: 12px; }
  .mday .chips { display: none; }
  .mday .dots { display: inline-flex; flex-wrap: wrap; justify-content: center; }
  .mday.is-today .num { align-self: center; }
  .cal-tools .new-event {
    position: fixed; z-index: 6; right: 22px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
    width: 56px; height: 56px; min-height: 0; padding: 0; border-radius: 50%; font-size: 30px; font-weight: 400;
    box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--lilac);
  }
  .cal-tools .new-event span { display: none; }
  .cal-bar { gap: 12px; }
  .cal-title { font-size: 24px; }
  .recipe-tabs .seg { display: flex; width: 100%; gap: 2px; }
  .recipe-tabs .seg button { flex: 1 1 auto; min-width: 0; padding: 0 6px; font-size: 13px; }
}
