:root {
  color-scheme: light dark;
  --bg: #faf9f5;
  --surface: #fff;
  --ink: #142b36;
  --muted: #64736f;
  --border: #dce3df;
  --green: #3e705e;
  --green-soft: #e5f0e6;
  --peach: #fcece1;
  --shadow: 0 12px 36px #243d2910;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18201e;
    --surface: #222e2a;
    --ink: #eff4f0;
    --muted: #b0bdb6;
    --border: #3b4c44;
    --green: #97c5ae;
    --green-soft: #304b3e;
    --peach: #45382d;
    --shadow: 0 12px 36px #0003;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a {
  color: var(--green);
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
button {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 14px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.primary {
  background: var(--green);
  color: var(--surface);
  border-color: var(--green);
}
@media (prefers-color-scheme: dark) {
  .primary {
    color: #14291f;
  }
}
.app-shell {
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 0 20px 32px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}
.icon-button {
  width: 46px;
  padding: 8px;
  font-size: 22px;
}
.welcome {
  max-width: 420px;
  margin: 0 auto;
  padding: 64px 28px 24px;
  text-align: center;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.welcome h1 {
  font-size: 46px;
  margin: 12px 0 8px;
  letter-spacing: -2px;
}
.hero-logo {
  width: 200px;
  height: 200px;
  border-radius: 48px;
  box-shadow: var(--shadow);
}
.welcome .intro {
  font-size: 20px;
  line-height: 1.4;
  max-width: 290px;
  margin: 16px auto 28px;
}
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  font-weight: 600;
  box-shadow: var(--shadow);
}
.google-mark {
  font-size: 24px;
  font-weight: 750;
  color: var(--green);
}
.welcome footer {
  font-size: 12px;
  margin-top: 34px;
  color: var(--muted);
}
.welcome footer a {
  color: var(--muted);
}
.account-hint {
  font-size: 12px;
  overflow-wrap: anywhere;
  margin: 16px 0;
}
.profile-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin: 12px 0;
}
.profile-choices button {
  padding: 20px 12px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--green-soft);
}
.avatar.tania {
  background: var(--peach);
}
.notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--green-soft);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.error {
  background: var(--peach);
}
.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 12px;
}
.week-nav strong {
  font-size: 15px;
  text-align: center;
}
.week-nav button {
  flex-shrink: 0;
}
.pills {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
}
.pills button {
  border-radius: 24px;
  padding-inline: 18px;
  min-height: 38px;
  font-size: 14px;
}
.day {
  margin: 24px 0;
}
.day-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.day-heading h2 {
  font-size: 19px;
  margin: 0;
}
.today-badge {
  background: var(--green-soft);
  color: var(--green);
  border-radius: 20px;
  font-size: 12px;
  padding: 4px 9px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.event {
  padding: 17px;
  border-left: 4px solid var(--green);
  border-bottom: 1px solid var(--border);
}
.event:last-child {
  border-bottom: 0;
}
.event p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.event .time {
  font-size: 13px;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 6px;
}
.event h3 {
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
.event a {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
}
.empty-day {
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.toolbar h1 {
  margin: 0;
}
.sheet {
  border: 0;
  border-radius: 24px 24px 0 0;
  padding: 24px 22px max(24px, env(safe-area-inset-bottom));
  width: min(100%, 520px);
  max-height: 85svh;
  background: var(--surface);
  color: var(--ink);
  position: fixed;
  inset: auto 0 0;
  margin: 0 auto;
  overflow: auto;
  box-shadow: var(--shadow);
}
.sheet::backdrop {
  background: #081c1660;
}
.sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sheet header h2 {
  margin: 0;
}
.sheet button.wide {
  width: 100%;
  margin: 6px 0;
  text-align: left;
}
.sheet .profile-choices button {
  text-align: center;
}
.loading {
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
}
.install-help {
  font-size: 13px;
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.login-form {
  display: grid;
  gap: 12px;
  width: 100%;
  text-align: left;
}
.login-form label {
  font-size: 14px;
  font-weight: 600;
}
.login-form input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}
.login-form button {
  min-height: 52px;
  margin-top: 4px;
}
:root {
  --lilac: #eee7f7;
  --purple: #7454a3;
  --sage: #e9efe6;
  --red: #ad4937;
}
@media (prefers-color-scheme: dark) {
  :root {
    --lilac: #3a3048;
    --purple: #d4b9fb;
    --sage: #2c4035;
    --red: #f2a18f;
  }
}
[hidden] {
  display: none !important;
}
body {
  overflow-wrap: anywhere;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.35;
}
input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 48px;
  max-width: 100%;
  font-size: 16px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
  width: 100%;
}
select {
  padding-right: 24px;
}
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  accent-color: var(--green);
  flex-shrink: 0;
  padding: 0;
}
input[type="date"],
input[type="datetime-local"] {
  min-width: 0;
  width: 100%;
}
.icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}
.app-shell {
  padding: 0 16px calc(100px + env(safe-area-inset-bottom));
  max-width: 560px;
}
.topbar {
  padding: 12px 0 22px;
  gap: 4px;
}
.brand {
  background: none;
  border: 0;
  padding: 0;
  gap: 5px;
  font-size: 27px;
}
.brand img {
  width: 51px;
  height: 51px;
  border-radius: 17px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 0;
}
.header-tools .icon-button {
  border: 0;
  background: transparent;
  width: 42px;
  min-width: 42px;
}
.header-tools .icon-button > .icon {
  width: 23px;
  height: 23px;
}
.header-tools .refresh-control {
  position: relative;
  isolation: isolate;
  color: var(--green);
}
.header-tools .refresh-control::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  margin: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
}
.ask-nido {
  width: 54px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  color: var(--green);
}
.ask-nido span {
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.ask-nido .icon {
  width: 22px;
  height: 22px;
}
.page-title {
  font-size: 30px;
  margin: 0 0 20px;
  letter-spacing: -1px;
}
.bottom-nav {
  position: fixed;
  z-index: 20;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
  gap: 2px;
}
.bottom-nav button {
  min-width: 0;
  min-height: 56px;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  border-radius: 15px;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
}
.bottom-nav button.selected {
  color: var(--green);
  background: var(--green-soft);
  font-weight: 750;
}
.bottom-nav .icon {
  width: 25px;
  height: 25px;
}
.chip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px 18px;
  padding: 0 16px 2px;
}
.chip-scroll::-webkit-scrollbar {
  display: none;
}
.pill {
  border-radius: 24px;
  min-height: 42px;
  padding: 8px 16px;
  white-space: nowrap;
  font-size: 14px;
  flex-shrink: 0;
}
.pill.selected {
  color: var(--green);
  background: var(--green-soft);
  border-color: var(--green);
}
.segments {
  display: flex;
  gap: 8px;
  margin: 12px 0 18px;
}
.segments.compact {
  justify-content: center;
}
.segments .pill {
  flex: 1;
}
.compact .pill {
  flex: 0;
}
.filter-row {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}
.filter-row > * {
  flex: 1;
}
.feature-link {
  display: flex;
  width: 100%;
  margin-bottom: 12px;
  justify-content: flex-start;
  padding: 14px;
  background: var(--green-soft);
  border-color: transparent;
  font-size: 15px;
}
.feature-link span {
  flex: 1;
  text-align: left;
}
.feature-link + .feature-link {
  background: transparent;
  border-color: var(--border);
}
.record-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  margin: 18px 0;
  overflow: hidden;
}
.record-group.peach {
  background: var(--peach);
}
.group-title {
  font-size: 14px;
  color: var(--muted);
  font-weight: 650;
  margin: 0;
  padding: 14px 16px 8px;
}
.record-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 70px;
  padding: 5px 5px 5px 7px;
}
.record-group .record-row + .record-row {
  border-top: 1px solid var(--border);
}
.row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 10px 4px;
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 450;
  gap: 7px;
  overflow-wrap: anywhere;
}
.row-title {
  line-height: 1.4;
}
.row-main small {
  font-size: 12px;
  line-height: 1.4;
}
.row-main:active {
  opacity: 0.7;
}
.record-row .icon-button {
  background: transparent;
  border: 0;
  flex-shrink: 0;
  width: 42px;
}
.check-target {
  width: 40px;
  min-width: 40px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 550;
  border-radius: 7px;
  padding: 3px 7px;
  background: var(--green-soft);
  color: var(--green);
  line-height: 1.3;
  width: fit-content;
  max-width: 100%;
}
.badge.neutral {
  background: var(--bg);
  color: var(--muted);
}
.badge.tania,
.badge.urgent {
  background: var(--peach);
  color: var(--ink);
}
.badge.hector {
  background: var(--lilac);
  color: var(--ink);
}
.badge.paco {
  background: var(--green-soft);
  color: var(--green);
}
.completed .row-title {
  text-decoration: line-through;
  color: var(--muted);
}
.completed {
  opacity: 0.75;
}
.empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  padding: 24px 10px;
  text-align: center;
}
.add-button {
  width: 100%;
  margin: 9px 0;
  min-height: 48px;
}
.subtle-add {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 46px;
  font-weight: 450;
  font-size: 14px;
  justify-content: flex-start;
  padding: 10px 14px;
}
.subtle-add .icon {
  width: 17px;
  height: 17px;
}
.group-toggle {
  background: transparent;
  border: 0;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 14px;
  padding-left: 4px;
}
.round-add {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 50%;
  padding: 8px;
  background: var(--green-soft);
  color: var(--green);
  border: 0;
  flex-shrink: 0;
}
.listed-button {
  border: 0;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  padding: 5px 8px;
  max-width: 80px;
  min-height: 38px;
}
.project-heading {
  display: flex;
  align-items: center;
  padding: 5px;
  background: var(--sage);
}
.project-heading > .icon-button {
  background: transparent;
  border: 0;
}
.project-heading .row-main {
  font-size: 17px;
}
.hidden-count {
  margin: 8px 16px 14px;
}
.tag-hint {
  margin-top: -8px;
}
.day-group {
  margin: 26px 0;
  min-height: 112px;
}
.day-heading {
  gap: 7px;
  margin: 0 0 8px;
}
.day-heading h2 {
  font-size: 14px;
  letter-spacing: 1px;
  flex: 1;
}
.day-heading > .icon-button {
  background: transparent;
  border: 0;
}
.calendar-row {
  display: flex;
  align-items: center;
  background: var(--peach);
  border-radius: 13px;
  margin: 7px 0;
  overflow: hidden;
}
.calendar-main {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  justify-content: flex-start;
  text-align: left;
  padding: 12px;
  gap: 12px;
  font-size: 14px;
  font-weight: 450;
}
.calendar-main small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.calendar-main .event-time {
  font-size: 11px;
  font-weight: 650;
  max-width: 66px;
  min-width: 62px;
}
.calendar-row > .icon-button {
  border: 0;
  background: transparent;
  width: 40px;
}
.birthday-row { background: var(--green-soft); }
.birthday-row .event-time { min-width: 28px; max-width: 28px; font-size: 22px; }
.plan-row {
  border-bottom: 1px solid var(--border);
  padding-left: 0;
  min-height: 64px;
}
.plan-row .row-main {
  font-size: 15px;
}
.plan-row .check-target {
  width: 34px;
  min-width: 34px;
}
.plan-tree.nested {
  margin-left: 18px;
  border-left: 1px solid var(--border);
  padding-left: 5px;
}
.collapse-button {
  width: 24px;
  min-width: 24px;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 2px;
}
.collapse-button .icon {
  width: 17px;
}
.drag-handle {
  min-width: 26px;
  width: 26px;
  min-height: 44px;
  border: 0;
  padding: 3px;
  background: transparent;
  color: var(--muted);
  touch-action: none;
  cursor: grab;
}
.drag-handle .icon {
  width: 18px;
}
.context-parent .row-title {
  color: var(--muted);
}
.plan-person {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.plan-person select {
  font-size: 13px;
  min-height: 38px;
  padding: 7px 22px 7px 12px;
}
.week-controls {
  margin-top: -8px;
}
.week-nav {
  margin: 10px 0;
}
.week-title {
  background: transparent;
  border: 0;
  font-size: 16px;
  padding: 8px;
}
.week-nav > .icon-button {
  border: 0;
  background: transparent;
}
.magic-button {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--lilac);
  border: 1px solid color-mix(in srgb, var(--purple) 28%, transparent);
  color: var(--purple);
  min-height: 56px;
  margin: 6px 0 24px;
  justify-content: flex-start;
  padding-left: 18px;
  font-size: 16px;
}
.magic-stars {
  margin-left: auto;
  letter-spacing: 2px;
  font-size: 24px;
  opacity: 0.5;
}
.meal-scroll {
  margin: 0 -16px;
  overflow-x: auto;
  padding: 0 16px 6px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.meal-grid {
  display: grid;
  grid-template-columns: 46px repeat(7, 148px);
  grid-template-rows: 42px auto auto;
  gap: 7px;
  width: max-content;
}
.meal-corner,
.meal-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg);
}
.meal-label {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-height: 170px;
  letter-spacing: 0.5px;
}
.meal-day {
  font-size: 13px;
  font-weight: 650;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre-line;
}
.meal-cell {
  border: 1px solid var(--border);
  border-radius: 16px;
  min-height: 200px;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--surface);
}
.meal-card {
  border-radius: 12px;
  min-height: 151px;
  padding: 5px 6px 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tone-sage {
  background: var(--sage);
}
.tone-peach {
  background: var(--peach);
}
.tone-lilac {
  background: var(--lilac);
}
.meal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 5px;
  color: var(--muted);
}
.meal-card-top > .icon {
  width: 17px;
  height: 17px;
}
.meal-card-top > .icon-button {
  width: 35px;
  min-height: 35px;
  border: 0;
  background: transparent;
  padding: 5px;
}
.meal-card-body {
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 5px;
  gap: 10px;
  flex: 1;
  font-size: 15px;
}
.meal-card-body strong {
  font-weight: 600;
  line-height: 1.4;
}
.meal-card-body small {
  font-size: 12px;
}
.meal-card > .drag-handle {
  align-self: flex-end;
  min-height: 29px;
  height: 29px;
  transform: rotate(90deg);
}
.meal-add {
  border: 0;
  background: transparent;
  min-height: 38px;
  margin-top: auto;
  color: var(--muted);
}
.meal-add .icon {
  width: 18px;
}
.scroll-hint {
  text-align: center;
  margin: 15px 0;
}
.drag-ghost {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 10px 32px #0005;
  opacity: 0.94;
  background: var(--surface);
  border: 2px solid var(--green);
  border-radius: 13px;
  max-width: 330px;
  transform: rotate(2deg);
}
.dragging {
  opacity: 0.35;
}
.drop-target {
  outline: 2px dashed var(--green);
  outline-offset: 3px;
  background: var(--green-soft);
}
.week-drop-target {
  background: var(--green-soft) !important;
}
.sheet {
  padding: 0 18px max(24px, env(safe-area-inset-bottom));
  width: min(100%, 560px);
  max-height: 88dvh;
  overscroll-behavior: contain;
}
.sheet.full-sheet {
  height: 94dvh;
  max-height: 94dvh;
}
.sheet-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  padding: 16px 0 12px;
  margin: 0 !important;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.sheet-header h2 {
  font-size: 21px;
  line-height: 1.25;
  flex: 1;
  min-width: 0;
}
.sheet-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.sheet-header h2:focus { outline: none; }
.request-type-choice { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; }
.request-type-name { overflow-wrap: anywhere; }
.sheet-header-actions > button { height: 48px; min-height: 48px; border-radius: 14px; box-shadow: none; }
.sheet-header-actions > button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sheet-header .header-save { padding: 6px 18px; font-size: 15px; }
.form-sheet { overflow-x: hidden; overflow-y: auto; }
.form-sheet, .form-sheet * { touch-action: pan-y; }
.form-sheet .sheet-content, .form-sheet .edit-form, .form-sheet .field { min-width: 0; max-width: 100%; }
.form-sheet .sheet-content { overflow-x: clip; }
.form-sheet .field { overflow-wrap: anywhere; }
.form-sheet input, .form-sheet select, .form-sheet textarea { min-width: 0; max-width: 100%; font-size: 16px; }
.form-sheet textarea { resize: vertical; }
.form-sheet .chip-scroll { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.sheet-header .icon-button {
  width: 48px;
  border: 0;
  background: var(--sage);
  flex-shrink: 0;
}
.sheet-content {
  padding-top: 16px;
  padding-bottom: 8px;
}
.sheet-content > .chip-scroll {
  margin-left: -18px;
  margin-right: -18px;
  padding-left: 18px;
  padding-right: 18px;
}
.sheet-content > input {
  width: 100%;
  margin-bottom: 12px;
}
.menu-choice {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  text-align: left;
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 13px 8px;
  font-weight: 500;
}
.menu-choice small {
  color: var(--muted);
  font-size: 12px;
}
.danger {
  color: var(--red);
}
.edit-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field-label {
  font-size: 14px;
  font-weight: 650;
}
.field small {
  font-size: 12px;
  line-height: 1.5;
}
.field > input,
.field > select {
  width: 100%;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  font-size: 15px;
}
.notes-editor {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.notes-editor textarea {
  border: 0;
  border-radius: 0;
  min-height: 150px;
}
.format-bar {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: var(--bg);
  padding: 3px;
}
.format-bar button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  min-width: 37px;
  min-height: 39px;
  border-radius: 8px;
  font-size: 13px;
}
.recipient-choices,
.assign-shortcuts,
.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.small-button {
  min-height: 36px;
  padding: 5px 10px;
  font-size: 12px;
}
.markdown {
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.markdown h1 {
  font-size: 25px;
}
.markdown h2 {
  font-size: 21px;
}
.markdown h3 {
  font-size: 18px;
}
.markdown ul,
.markdown ol {
  padding-left: 24px;
}
.markdown input[type="checkbox"] {
  vertical-align: middle;
  margin-right: 8px;
}
.markdown .task-list-item {
  list-style: none;
}
.markdown a {
  text-underline-offset: 3px;
}
.markdown p {
  margin-bottom: 14px;
}
.toast {
  position: fixed;
  z-index: 300;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 12px;
  right: 12px;
  max-width: 530px;
  margin: auto;
  background: var(--ink);
  color: var(--bg);
  border-radius: 15px;
  padding: 9px 9px 9px 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 5px 20px #0003;
  font-size: 13px;
  line-height: 1.4;
}
.toast > span {
  flex: 1;
}
.toast button {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 7px;
  min-height: 40px;
}
.toast .icon-button {
  width: 32px;
}
.toast .icon {
  width: 18px;
}
.toast-error {
  border: 2px solid var(--red);
}
.settings-heading {
  margin-top: 28px;
}
.search-result {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  width: 100%;
  margin: 10px 0;
  text-align: left;
  justify-content: flex-start;
  font-weight: 450;
  padding: 16px;
}
.pending-notice {
  width: 100%;
  color: var(--ink);
  background: var(--peach);
  margin: 0 0 16px;
}
.preference {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 7px;
  background: var(--sage);
}
.preference p {
  margin: 10px 0 0;
}
.draft-footer {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding: 12px 0;
  z-index: 4;
}
.draft-already {
  opacity: 0.65;
}
.draft-group {
  margin-top: 24px;
}
.draft-group > h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.draft-ingredient {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 3px;
  padding: 9px 0;
}
.draft-ingredient > .icon-button {
  border: 0;
  background: transparent;
  flex-shrink: 0;
  width: 38px;
}
.draft-ingredient .row-main {
  font-size: 15px;
}
.view-content {
  min-height: 200px;
}
@media (max-width: 365px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 24px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }
  .header-tools .icon-button {
    width: 38px;
    min-width: 38px;
  }
  .ask-nido {
    width: 49px;
  }
  .meal-scroll {
    margin-inline: -12px;
    padding-inline: 12px;
  }
  .plan-tree.nested {
    margin-left: 12px;
  }
  .plan-row .icon-button {
    width: 34px;
  }
  .page-title {
    font-size: 28px;
  }
}
.inline-fields {
  display: flex;
  gap: 10px;
}
.inline-fields > * {
  flex: 1;
  min-width: 0;
}
.choice-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 8px;
  font-size: 14px;
}
.preserve-lines {
  white-space: pre-wrap;
}
.external-link {
  display: block;
  padding: 14px 0;
}
.check-target input {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--muted);
  border-radius: 7px;
  background: var(--surface);
  display: grid;
  place-content: center;
}
.check-target input:checked {
  background: var(--green);
  border-color: var(--green);
}
.check-target input:checked::after {
  content: "✓";
  color: var(--surface);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.sheet {
  max-width: 560px;
}
.record-group > .markdown {
  padding: 8px 16px;
}
.toast {
  bottom: calc(86px + env(safe-area-inset-bottom));
}
/* Shared visual language from the approved phone boards. */
.segments .pill.selected,
.chip-scroll > .pill.selected {
  background: var(--green);
  color: var(--surface);
  border-color: var(--green);
}
.segments .pill {
  min-height: 42px;
}
.row-title {
  font-weight: 500;
  font-size: 16px;
}
.group-title {
  background: var(--sage);
  color: var(--ink);
  padding: 12px 15px;
  font-size: 16px;
  font-weight: 650;
}
.record-group.peach .group-title {
  background: var(--peach);
}
.record-group.peach .record-row {
  background: var(--surface);
}
.record-group {
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  box-shadow: 0 2px 8px #19392903;
}
.day-group {
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  padding-bottom: 6px;
  margin: 20px 0;
  min-height: 104px;
}
.day-heading {
  background: var(--sage);
  padding: 3px 10px 3px 14px;
  margin: 0;
}
.day-group:nth-of-type(even) > .day-heading {
  background: var(--peach);
}
.day-heading h2 {
  font-weight: 650;
  letter-spacing: 0.4px;
  font-size: 15px;
}
.day-group > .calendar-row {
  margin: 7px;
}
.day-group > .subtle-add {
  margin: 8px 7px 0;
  width: calc(100% - 14px);
  background: var(--green-soft);
  color: var(--green);
  justify-content: center;
  border-radius: 11px;
}
.day-group .plan-row {
  margin: 0 7px;
}
.plan-row {
  min-height: 62px;
}
.week-controls .segments {
  margin-bottom: 14px;
}
.plan-person {
  margin-top: 12px;
  margin-bottom: 16px;
}
.plan-person select {
  border-radius: 22px;
}
.magic-button {
  font-weight: 650;
  background: linear-gradient(
    115deg,
    var(--lilac),
    color-mix(in srgb, var(--lilac) 70%, var(--surface))
  );
  margin-bottom: 17px;
}
.meal-label {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 12px;
  min-height: 170px;
  background: var(--sage);
  border-radius: 8px 0 0 8px;
}
.meal-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px 9px 0 0;
}
.meal-grid {
  grid-template-columns: 46px repeat(7, 148px);
  gap: 5px;
}
.meal-card {
  box-shadow: 0 1px 4px #183b2810;
}
.meal-card-body {
  font-size: 16px;
}
.meal-cell {
  border-radius: 9px;
}
.primary {
  box-shadow: 0 2px 5px #1a3c2512;
}
.feature-link {
  border-radius: 13px;
}
.sheet-header::before {
  content: "";
  position: absolute;
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  top: 6px;
  left: calc(50% - 19px);
}
.sheet-header {
  padding-top: 24px;
}
.drag-handle {
  width: 30px;
  min-width: 30px;
}
.check-target {
  min-height: 48px;
}
@media (prefers-color-scheme: dark) {
  .segments .pill.selected,
  .chip-scroll > .pill.selected,
  .check-target input:checked::after {
    color: #18201e;
  }
  .primary {
    box-shadow: none;
  }
  .day-group,
  .record-group {
    box-shadow: none;
  }
  .meal-card {
    box-shadow: 0 1px 5px #0002;
  }
  .badge.urgent {
    color: #f4ae96;
  }
}
:root {
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --control-height: 44px;
}
.segments {
  margin: var(--space-sm) 0 var(--space-md);
  gap: var(--space-sm);
}
.filter-row {
  margin: var(--space-sm) 0 var(--space-md);
  gap: var(--space-sm);
}
.filter-row button {
  min-height: 40px;
  border-radius: 22px;
  padding: 6px 14px;
  font-size: 14px;
}
.chip-scroll {
  margin-bottom: var(--space-md);
  gap: var(--space-sm);
}
.pill {
  padding: 6px 14px;
  min-height: 38px;
}
.feature-link {
  padding: 10px 12px;
  min-height: var(--control-height);
  margin-bottom: var(--space-sm);
}
.record-group {
  margin: var(--space-md) 0;
}
.group-title {
  padding: 9px 14px;
  font-size: 15px;
}
.record-row {
  min-height: 64px;
  padding: 4px 5px;
}
.row-main {
  padding: 8px 4px;
  gap: 5px;
}
.check-target {
  min-height: var(--control-height);
}
.add-button {
  margin: var(--space-sm) 0;
  min-height: 46px;
}
.group-toggle {
  min-height: 40px;
  margin: 0;
}
.edit-form {
  gap: 14px;
}
.field {
  gap: 6px;
}
.field > input,
.field > select {
  min-height: 46px;
  padding: 10px 12px;
}
.menu-choice {
  min-height: 48px;
  padding: 11px 8px;
}
.plan-row {
  min-height: 54px;
  padding: 2px 0;
}
.day-group > .subtle-add {
  min-height: 40px;
  padding: 7px 12px;
}
.badge {
  padding: 3px 7px;
}
.project-heading {
  padding: 3px 5px;
}
.meal-scroll {
  scrollbar-width: none;
  padding-bottom: 0;
}
.meal-scroll::-webkit-scrollbar {
  display: none;
}
.meal-scroll-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  height: 28px;
}
.scroll-arrow {
  border: 0;
  background: transparent;
  min-height: 28px;
  height: 28px;
  min-width: 28px;
  width: 28px;
  padding: 4px;
}
.scroll-arrow > .icon {
  width: 18px;
  height: 18px;
}
.meal-scroll-nav input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  accent-color: var(--muted);
}
.meal-scroll-nav input::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--border);
  border-radius: 5px;
}
.meal-scroll-nav input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 60px;
  height: 6px;
  margin-top: -1px;
  border-radius: 6px;
  background: var(--muted);
}
.meal-scroll-nav input::-moz-range-track {
  height: 4px;
  background: var(--border);
  border-radius: 5px;
}
.meal-scroll-nav input::-moz-range-thumb {
  width: 60px;
  height: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--muted);
}
.meal-scroll-nav + .scroll-hint {
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 1.35;
}
.topbar {
  position: sticky;
  top: env(safe-area-inset-top);
  z-index: 12;
  background: var(--bg);
  height: 85px;
}
.week-controls {
  position: sticky;
  top: calc(85px + env(safe-area-inset-top));
  z-index: 10;
  background: var(--bg);
  padding-top: 2px;
  padding-bottom: 1px;
}
.sheet-content .week-controls {
  position: static;
}
.day-group {
  scroll-margin-top: 220px;
}
.sheet-content button:focus-visible,
.sheet-content input:focus-visible {
  outline-offset: 2px;
}
/* Compact planner chrome: preserve most of the phone for the actual week. */
.topbar {
  height: 64px;
  padding: 8px 0 10px;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.brand {
  font-size: 27px;
  gap: 6px;
}
.page-title {
  font-size: 28px;
  line-height: 1.15;
  margin: 7px 0 12px;
}
.week-controls {
  top: calc(64px + env(safe-area-inset-top));
  margin-top: 0;
  padding-top: 0;
}
.week-nav {
  margin: 4px 0;
  min-height: 36px;
}
.week-nav > .icon-button,
.week-title {
  min-height: 36px;
  height: 36px;
  padding: 5px 8px;
}
.week-title {
  font-size: 16px;
}
.week-controls .segments {
  margin: 4px 0 8px;
  gap: 10px;
}
.week-controls .pill {
  min-height: 34px;
  height: 34px;
  font-size: 13px;
  padding: 5px 15px;
}
.magic-button {
  min-height: 44px;
  height: 44px;
  padding: 8px 14px;
  margin: 5px 0 12px;
  font-size: 15px;
  border-radius: 12px;
}
.magic-button > .icon {
  width: 21px;
  height: 21px;
}
.magic-stars {
  font-size: 21px;
}
.meal-grid {
  grid-template-rows: 34px auto auto;
}
.meal-day {
  font-size: 13px;
}
.meal-cell {
  min-height: 166px;
  padding: 4px;
  gap: 4px;
}
.meal-card {
  min-height: 122px;
  padding: 3px 5px 0;
}
.meal-card-top > .icon-button {
  min-height: 30px;
  height: 30px;
  width: 32px;
  padding: 4px;
}
.meal-card-body {
  font-size: 15px;
  gap: 7px;
  padding: 3px 5px;
}
.meal-card-body strong {
  line-height: 1.3;
}
.meal-card > .drag-handle {
  min-height: 25px;
  height: 25px;
}
.meal-add {
  min-height: 32px;
  height: 32px;
}
.meal-label {
  min-height: 166px;
}
.scroll-hint {
  font-size: 11px;
  margin: 10px 0;
}
.plan-person {
  margin: 8px 0 12px;
}
.plan-person select {
  min-height: 34px;
  height: 34px;
  padding: 5px 22px 5px 12px;
}
.day-group {
  margin: 14px 0;
  scroll-margin-top: 170px;
}
.day-heading {
  min-height: 39px;
}
.day-heading > .icon-button {
  min-height: 36px;
  height: 36px;
}
.bottom-nav {
  padding-top: 6px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav button {
  min-height: 52px;
  height: 52px;
  gap: 3px;
}
.app-shell {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
@media (prefers-color-scheme: dark) {
  .meal-card.tone-sage {
    background: #dbe9d7;
  }
  .meal-card.tone-peach {
    background: #f2e2c9;
  }
  .meal-card.tone-lilac {
    background: #e2ddf2;
  }
  .meal-card,
  .meal-card-body {
    color: #142b36;
  }
  .meal-card-top,
  .meal-card .drag-handle {
    color: #365449;
  }
  .meal-card .badge {
    background: #c0d9bd;
    color: #203d2c;
  }
  .meal-card .badge.hector {
    background: #f8e7b5;
    color: #42351d;
  }
  .primary,
  .segments .pill.selected,
  .chip-scroll > .pill.selected {
    background: #3d6a57;
    color: #f4f7f2;
    border-color: #729989;
  }
  .magic-button {
    background: linear-gradient(115deg, #47305e, #352642);
    color: #efddff;
    box-shadow: inset 0 0 16px #b893dd18;
  }
}
.page-title {
  margin: 4px 0 6px;
}
.week-nav {
  margin: 0 0 1px;
  min-height: 34px;
}
.week-nav > .icon-button,
.week-title {
  min-height: 34px;
  height: 34px;
  padding: 4px 8px;
}
.week-controls .segments {
  margin: 2px 0 3px;
}
.plan-person {
  margin: 2px 0 6px;
}
.day-group {
  margin: 8px 0 14px;
}
.magic-button {
  margin-top: 5px;
}
.view-content > .segments:first-child {
  margin-top: 6px;
}
/* Refresh and meal ideas share the existing compact phone layout. */
.meal-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 5px 0 10px;
}
.meal-toolbar > button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  margin: 0;
  padding: 4px 7px;
  gap: 5px;
  font-size: 13px;
  line-height: 1.1;
}
.meal-toolbar .magic-symbol {
  font-size: 24px;
  width: 22px;
  flex: 0 0 22px;
}
.meal-toolbar > .magic-button { grid-column: 1 / -1; }
.needs-cooking-button { background: var(--sage, var(--surface)); }
.needs-cooking-sheet .sheet-header { padding: 8px 0 6px; }
.needs-cooking-sheet .sheet-header h2 { font-size: 20px; }
.needs-cooking-sheet .sheet-content { padding-top: 6px; }
.cooking-intro { margin: 0 0 8px; }
.cooking-row { display: flex; align-items: center; gap: 4px; min-height: 48px; padding: 2px 0; border-bottom: 1px solid var(--border); }
.cooking-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; min-width: 0; padding: 5px 0; }
.cooking-name strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.cooking-servings { font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.meal-toolbar .magic-label {
  text-align: left;
}
.meal-toolbar .magic-stars {
  right: 2px;
  opacity: 0.15;
}
.meal-suggestions-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--green);
  font-weight: 650;
}
.meal-suggestions-button .icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.meal-destination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 12px;
}
.meal-destination input,
.meal-destination select {
  width: 100%;
  min-width: 0;
  padding: 3px 6px;
  font-size: 16px;
  min-height: 36px;
  height: 36px;
  border-radius: 9px;
}
.meal-suggestions-sheet .sheet-header {
  padding: 8px 0 6px;
}
.meal-suggestions-sheet .sheet-header h2 {
  font-size: 19px;
}
.meal-suggestions-sheet .sheet-content {
  padding-top: 8px;
}
.meal-suggestions-sheet .sheet-content > input {
  min-height: 36px;
  height: 36px;
  padding: 4px 9px;
  margin: 0;
  border-radius: 9px;
}
.meal-idea-actions {
  display: flex;
  gap: 8px;
  margin: 5px 0 8px;
}
.meal-idea-actions > button {
  flex: 1;
  padding: 3px 6px;
  font-size: 13px;
  min-height: 34px;
  height: 34px;
  margin: 0;
  border-radius: 9px;
}
.meal-ideas-section {
  margin: 8px 0 16px;
}
.meal-ideas-section h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.meal-ideas-section h4 {
  margin: 12px 0 0;
  padding: 7px 10px;
  background: var(--day-heading);
  border-radius: 9px;
  font-size: 12px;
}
.meal-idea-row {
  display: flex;
  gap: 2px;
  align-items: center;
  min-height: 60px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.meal-idea-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-right: 4px;
  overflow-wrap: anywhere;
}
.meal-idea-text strong {
  font-size: 14px;
  font-weight: 600;
}
.meal-idea-text small {
  font-size: 11px;
}
.meal-idea-add {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 8px;
  min-height: 44px;
  font-size: 13px;
  border-radius: 10px;
  color: var(--green);
  background: var(--surface);
}
.meal-idea-add .icon {
  width: 17px;
  height: 17px;
}
dialog > .toast {
  bottom: calc(12px + env(safe-area-inset-bottom));
}
.is-refreshing .icon {
  animation: refresh-turn 0.8s linear infinite;
}
@keyframes refresh-turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-refreshing .icon {
    animation: none;
    opacity: 0.5;
  }
}
/* Stable day hierarchy: one header colour, with emphasis reserved for today. */
:root {
  --day-heading: #d8e5d7;
}
.day-group > .day-heading,
.day-group:nth-of-type(even) > .day-heading,
.meal-day {
  background: var(--day-heading);
}
.day-group.is-today {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}
.meal-day.is-today {
  border-color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green);
  font-weight: 750;
}
@media (prefers-color-scheme: dark) {
  :root {
    --day-heading: #3b5547;
  }
}
/* Meal cards share one compact footer for recipients and their drag handle. */
.meal-card {
  min-height: 108px;
  padding: 3px 5px 2px;
  gap: 0;
}
.meal-card-top {
  height: 29px;
  min-height: 29px;
  padding-left: 4px;
}
.meal-card-top > .icon {
  width: 26px;
  height: 26px;
}
.meal-cooked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  min-width: 29px;
  height: 29px;
  min-height: 29px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: #627568;
}
.meal-cooked.is-cooked {
  color: #fff;
  background: #287846;
  border-color: #287846;
  box-shadow: 0 1px 3px #17482d26;
}
.meal-cooked .icon {
  width: 22px;
  height: 22px;
}
.meal-cooked:not(.is-cooked) .icon {
  visibility: hidden;
}
.meal-card-top > .icon-button {
  height: 29px;
  min-height: 29px;
  color: inherit;
}
.meal-card-body {
  min-height: 0;
  padding: 1px 4px 2px;
  gap: 4px;
  justify-content: flex-start;
}
.meal-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  min-height: 29px;
  padding-left: 4px;
}
.meal-card-footer > .badge {
  font-size: 10px;
  padding: 3px 6px;
}
.meal-card-footer > .drag-handle {
  width: 28px;
  min-width: 28px;
  height: 29px;
  min-height: 29px;
  transform: rotate(90deg);
}
.meal-cell,
.meal-label {
  min-height: 150px;
}
.magic-button {
  isolation: isolate;
  gap: 9px;
  background: linear-gradient(110deg, #ece0f8, #f6effc 67%, #e6d5f6);
  border-color: #d6bce9;
  color: #704699;
  box-shadow:
    inset 0 1px 0 #ffffffb0,
    0 2px 5px #7443950b;
}
.magic-symbol {
  font-size: 30px;
  line-height: 1;
  position: relative;
  width: 28px;
  text-align: center;
}
.magic-symbol::after {
  content: "✧";
  position: absolute;
  right: -3px;
  top: -1px;
  font-size: 12px;
}
.magic-label {
  position: relative;
  z-index: 1;
}
.magic-stars {
  position: absolute;
  right: 12px;
  top: 6px;
  font-size: 25px;
  letter-spacing: 5px;
  opacity: 0.3;
  pointer-events: none;
}
.magic-button::after {
  content: "✦";
  position: absolute;
  right: 51px;
  bottom: -8px;
  font-size: 25px;
  opacity: 0.13;
  transform: rotate(15deg);
  z-index: -1;
}
@media (prefers-color-scheme: dark) {
  .magic-button {
    background: linear-gradient(110deg, #493160, #392746 67%, #4b325f);
    color: #f0ddff;
    border-color: #735185;
    box-shadow: inset 0 1px 0 #c799ee20;
  }
  .magic-stars {
    color: #d5acef;
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      opacity 0.15s;
  }
  .sheet[open] {
    animation: appear 0.18s ease-out;
  }
  @keyframes appear {
    from {
      transform: translateY(20px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}
