:root {
  --paper: #f7f6f3;
  --paper-deep: #ecebe7;
  --card: #fffdf9;
  --ink: #35393c;
  --ink-soft: #6f7679;
  --line: #dfe1e1;
  --line-strong: #bec4c7;
  --orange: #82929b;
  --orange-soft: #dbe3e7;
  --yellow: #aeb8bd;
  --yellow-soft: #e8edef;
  --green: #83958a;
  --green-soft: #e1e9e3;
  --blue: #879da9;
  --blue-soft: #e1e9ed;
  --pink: #b99f9c;
  --pink-soft: #eee5e3;
  --shadow: 0 10px 28px rgba(58, 64, 67, 0.09);
  --shadow-soft: 0 5px 16px rgba(58, 64, 67, 0.07);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e5e6e4;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "SF Pro Rounded", "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(107, 166, 201, 0.42);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.page-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #e5e6e4;
  background-image:
    radial-gradient(circle at 10% 14%, rgba(118, 135, 143, 0.16) 0 3px, transparent 3.5px),
    radial-gradient(circle at 84% 28%, rgba(131, 149, 138, 0.13) 0 3px, transparent 3.5px),
    linear-gradient(155deg, #eeeeeb 0%, #dde0df 100%);
  background-size: 36px 36px, 44px 44px, auto;
}

.login-gate {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 32px) 18px calc(var(--safe-bottom) + 28px);
  background:
    radial-gradient(circle at 88% 5%, rgba(130, 146, 155, 0.16), transparent 24%),
    radial-gradient(circle at 8% 88%, rgba(131, 149, 138, 0.13), transparent 28%),
    var(--paper);
  box-shadow: 0 0 60px rgba(49, 56, 59, 0.13);
}

.login-panel {
  display: grid;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 60px);
  align-content: center;
  gap: 26px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.15;
}

.login-mark {
  display: grid;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 23px 23px 27px 21px;
  background: var(--yellow-soft);
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
}

.login-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.login-role-list {
  display: grid;
  gap: 10px;
}

.login-person-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cloud-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1.4px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.cloud-panel-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cloud-panel-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1.3px solid var(--line-strong);
  border-radius: 12px;
  background: var(--blue-soft);
  font-size: 17px;
  font-weight: 900;
}

.cloud-panel-copy {
  min-width: 0;
}

.cloud-panel-copy strong,
.cloud-panel-copy small {
  display: block;
}

.cloud-panel-copy strong {
  font-size: 13px;
  font-weight: 950;
}

.cloud-panel-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cloud-auth-form {
  display: grid;
  gap: 8px;
}

.cloud-field {
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.cloud-field input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1.3px solid var(--line-strong);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.cloud-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cloud-auth-actions button,
.cloud-signout-button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1.3px solid var(--ink);
  border-radius: 11px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.cloud-auth-actions .cloud-secondary-button {
  background: var(--card);
}

.cloud-signout-button {
  background: transparent;
}

.cloud-auth-form[hidden],
.cloud-signout-button[hidden],
.cloud-household-card[hidden],
.cloud-family-setup[hidden],
.cloud-invite-row[hidden] {
  display: none;
}

.cloud-household-card,
.cloud-family-setup {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1.3px solid var(--line-strong);
  border-radius: 14px;
  background: var(--card);
}

.cloud-household-heading {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.cloud-household-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1.3px solid var(--ink);
  border-radius: 12px;
  background: var(--green-soft);
  font-size: 18px;
}

.cloud-household-heading strong,
.cloud-household-heading small {
  display: block;
}

.cloud-household-heading strong {
  font-size: 13px;
  font-weight: 950;
}

.cloud-household-heading small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

.cloud-invite-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.cloud-invite-row strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.cloud-invite-row button,
.cloud-create-family-button,
.cloud-join-form button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1.3px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
}

.cloud-invite-actions {
  display: flex;
  gap: 5px;
}

.cloud-create-family-button {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.cloud-family-setup p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
}

.cloud-setup-divider {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
}

.cloud-setup-divider::before,
.cloud-setup-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.cloud-join-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.cloud-join-form input {
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1.3px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.login-person-option {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  padding: 0;
  border: 1.6px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  box-shadow: 2px 2px 0 rgba(48, 56, 51, 0.12);
  font-size: 34px;
  line-height: 1;
}

.login-person-option.is-selected {
  border-color: var(--ink);
  background: var(--yellow-soft);
  box-shadow: 3px 3px 0 var(--ink);
  transform: translateY(-2px);
}

.login-role-card {
  display: grid;
  width: 100%;
  min-height: 72px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1.6px solid var(--ink);
  border-radius: 19px;
  background: var(--card);
  box-shadow: 3px 3px 0 rgba(48, 56, 51, 0.14);
  text-align: left;
}

.login-role-card:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 rgba(48, 56, 51, 0.14);
}

.login-role-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1.4px solid var(--line-strong);
  border-radius: 16px;
  background: var(--blue-soft);
  font-size: 24px;
  line-height: 1;
}

.login-role-copy {
  min-width: 0;
}

.login-role-copy strong,
.login-role-copy span {
  display: block;
}

.login-role-copy strong {
  font-size: 14px;
  font-weight: 950;
}

.login-role-copy span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.35;
}

.login-role-enter {
  color: var(--orange);
  font-size: 18px;
  font-weight: 950;
}

.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 2%, rgba(130, 146, 155, 0.13), transparent 22%),
    var(--paper);
  box-shadow: 0 0 60px rgba(49, 56, 59, 0.13);
}

.app-header {
  position: relative;
  z-index: 10;
  padding: calc(var(--safe-top) + 12px) 16px 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 17px 17px 20px 16px;
  background: var(--yellow-soft);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-3deg);
}

.brand-mark::after {
  position: absolute;
  right: -5px;
  top: -8px;
  width: 12px;
  height: 18px;
  border: 1.7px solid var(--ink);
  border-radius: 10px 10px 4px 4px;
  background: #aeb7ba;
  content: "";
  transform: rotate(32deg);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 15px 15px 18px 14px;
  object-fit: cover;
  object-position: 50% 40%;
}

.brand-role-badge {
  position: absolute;
  right: -13px;
  bottom: -9px;
  z-index: 2;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 0;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.brand-kicker,
.section-eyebrow {
  margin: 0 0 2px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h1 {
  overflow: hidden;
  margin: 0;
  font-size: clamp(19px, 5.5vw, 23px);
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-button {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 6px 10px 6px 7px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 254, 251, 0.9);
  box-shadow: var(--shadow-soft);
}

.family-faces {
  display: flex;
  padding-left: 5px;
}

.family-faces span {
  width: 23px;
  height: 23px;
  margin-left: -6px;
  border: 1.5px solid var(--card);
  border-radius: 50%;
  background: var(--yellow-soft);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.family-faces span:nth-child(2) {
  background: var(--blue-soft);
}

.family-faces span:nth-child(3) {
  background: var(--pink-soft);
}

.family-faces .family-face-more {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 900;
  line-height: 20px;
}

.family-count {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.calendar-panel {
  position: relative;
  overflow: hidden;
  padding: 14px 12px 12px;
  border: 1.8px solid var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) 20px 26px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.26)),
    var(--yellow-soft);
  box-shadow: 5px 6px 0 rgba(53, 57, 60, 0.11);
}

.calendar-panel::before,
.calendar-panel::after {
  position: absolute;
  z-index: 0;
  border: 1.5px solid rgba(53, 57, 60, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.calendar-panel::before {
  right: -22px;
  top: 56px;
  width: 78px;
  height: 78px;
}

.calendar-panel::after {
  right: -1px;
  top: 80px;
  width: 31px;
  height: 31px;
}

.calendar-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  margin-bottom: 8px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.icon-button:active,
.family-button:active,
.adjust-button:active,
.category-chip:active,
.soft-button:active,
.primary-small-button:active,
.add-shopping-button:active,
.sheet-primary-button:active,
.quick-picks button:active {
  transform: translateY(1px) scale(0.98);
}

.month-toggle {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 3px 8px;
  border: 0;
  background: transparent;
}

.month-toggle span {
  font-size: 16px;
  font-weight: 900;
}

.month-toggle small {
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.week-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
}

.day-button,
.month-day-button {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.day-button {
  min-height: 66px;
  border-radius: 17px;
}

.day-button .day-name,
.month-weekdays span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.day-button .day-number {
  display: grid;
  width: 35px;
  height: 35px;
  margin: 3px 0 2px;
  place-items: center;
  border: 1.5px solid transparent;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.day-button .meal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.55;
}

.day-button .day-chef {
  margin-top: -2px;
  font-size: 15px;
  line-height: 1;
}

.day-button.is-today .day-number {
  border-color: var(--ink);
}

.day-button.is-selected {
  background: var(--card);
  box-shadow: 0 3px 8px rgba(92, 67, 38, 0.09);
}

.day-button.is-selected .day-name {
  color: var(--orange);
}

.day-button.is-selected .day-number {
  border-color: var(--ink);
  background: var(--orange);
  color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
}

.day-button.is-selected .meal-dot {
  background: var(--ink);
  opacity: 1;
}

.day-button.is-selected .day-chef {
  filter: drop-shadow(0 1px 0 var(--ink));
}

.month-grid-wrap {
  position: relative;
  z-index: 1;
  margin: 8px 0 2px;
  padding-top: 10px;
  border-top: 1.5px dashed rgba(48, 56, 51, 0.23);
  animation: soft-drop 220ms ease-out;
}

.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.month-weekdays {
  margin-bottom: 3px;
  text-align: center;
}

.month-day-button {
  min-height: 38px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.month-day-button.is-outside {
  color: #b8ad9c;
}

.month-day-button.is-today {
  border: 1.5px solid var(--ink);
}

.month-day-button.is-selected {
  background: var(--ink);
  color: #fff;
}

.month-day-button.has-menu::after {
  width: 4px;
  height: 4px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.month-day-button.has-chef::after {
  display: none;
}

.month-day-button .month-chef {
  margin-top: -1px;
  font-size: 10px;
  line-height: 1;
}

.calendar-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding: 8px 3px 0;
  border-top: 1.5px dashed rgba(48, 56, 51, 0.2);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
}

.calendar-caption > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.chef-journal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  border: 1.4px solid var(--line-strong);
  border-radius: 15px;
  background: var(--green-soft);
}

.chef-journal-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1.3px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
  font-size: 21px;
}

.chef-journal strong,
.chef-journal p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chef-journal strong {
  font-size: 11px;
  font-weight: 950;
}

.chef-journal p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

.chef-journal-role {
  font-size: 18px;
  line-height: 1;
}

.caption-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
}

.text-button {
  flex: 0 0 auto;
  padding: 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
}

.app-main {
  padding: 22px 16px calc(112px + var(--safe-bottom));
}

.app-view {
  animation: view-in 240ms ease-out;
}

.dish-order-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.dish-order-card.has-pending {
  border-color: var(--ink);
}

.dish-order-card.has-pending::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--orange);
  content: "";
}

.dish-order-toggle {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 40px minmax(0, 1fr) auto 18px;
  gap: 9px;
  align-items: center;
  padding: 10px 11px;
  border: 0;
  background: transparent;
  text-align: left;
}

.dish-order-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1.3px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow-soft);
  box-shadow: 2px 2px 0 rgba(48, 56, 51, 0.12);
  font-size: 20px;
}

.dish-order-copy {
  min-width: 0;
}

.dish-order-copy strong,
.dish-order-copy small {
  display: block;
}

.dish-order-copy strong {
  font-size: 14px;
  font-weight: 950;
}

.dish-order-copy small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-order-badge {
  display: grid;
  min-width: 23px;
  height: 23px;
  padding: 0 5px;
  place-items: center;
  border: 1.3px solid var(--card);
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  box-shadow: 1px 1px 0 var(--ink);
  font-size: 9px;
  font-weight: 950;
}

.dish-order-card.has-pending .dish-order-badge {
  animation: order-badge-pulse 1.8s ease-in-out 2;
}

.dish-order-chevron {
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  transition: transform 180ms ease;
}

.dish-order-toggle[aria-expanded="true"] .dish-order-chevron {
  transform: rotate(180deg);
}

.dish-order-panel {
  padding: 0 11px 11px;
  border-top: 1.5px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.3);
  animation: soft-drop 220ms ease-out;
}

.dish-order-form {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.dish-order-form > label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
}

.dish-order-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.dish-order-input-row input {
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1.3px solid var(--line-strong);
  border-radius: 11px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
}

.dish-order-submit {
  min-width: 58px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1.3px solid var(--ink);
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.dish-order-meal-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.dish-order-meal-picker button {
  min-height: 32px;
  padding: 5px 7px;
  border: 1.2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
}

.dish-order-meal-picker button.is-active {
  border-color: var(--ink);
  background: var(--yellow-soft);
  color: var(--ink);
}

.dish-order-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.dish-order-list-heading > strong {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
}

.dish-order-list {
  display: grid;
  max-height: 220px;
  margin-top: 2px;
  overflow: auto;
  overscroll-behavior: contain;
}

.dish-order-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 2px;
  border-top: 1px dashed var(--line);
}

.dish-order-item:first-child {
  border-top: 0;
}

.dish-order-item-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1.2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--blue-soft);
  font-size: 15px;
}

.dish-order-item-copy {
  min-width: 0;
}

.dish-order-item-copy strong,
.dish-order-item-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-order-item-copy strong {
  font-size: 12px;
  font-weight: 900;
}

.dish-order-item-copy small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
}

.dish-order-plan-button {
  min-height: 29px;
  padding: 4px 8px;
  border: 1.2px solid var(--line-strong);
  border-radius: 9px;
  background: var(--card);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.dish-order-item-status {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.dish-order-item-actions {
  display: flex;
  gap: 4px;
}

.dish-order-item-actions button,
.dish-order-edit-actions button {
  min-height: 27px;
  padding: 4px 8px;
  border: 1.2px solid var(--line-strong);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.dish-order-item-actions button.is-danger {
  color: #8b5d58;
}

.dish-order-status {
  color: var(--green);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.dish-order-edit-form {
  display: grid;
  min-width: 0;
  grid-column: 2 / -1;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 6px;
}

.dish-order-edit-name,
.dish-order-edit-meal {
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1.3px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font-size: 11px;
}

.dish-order-edit-meal {
  padding-right: 4px;
}

.dish-order-edit-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 6px;
}

.dish-order-empty,
.dish-order-other {
  margin: 0;
  padding: 10px 2px 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
}

.dish-order-other {
  border-top: 1px dashed var(--line);
}

@keyframes order-badge-pulse {
  50% {
    transform: scale(1.12);
  }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2,
.page-title-block h2,
.sheet-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 950;
  line-height: 1.2;
}

.adjust-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 17px;
  background: var(--card);
  box-shadow: 2px 2px 0 rgba(48, 56, 51, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.meal-timeline {
  position: relative;
  display: grid;
  gap: 9px;
}

.meal-timeline::before {
  position: absolute;
  bottom: 26px;
  left: 28px;
  width: 1.5px;
  background: var(--line);
  content: "";
}

.meal-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  padding: 10px 9px 10px 7px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 254, 251, 0.88);
  box-shadow: var(--shadow-soft);
}

.meal-time {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.meal-time span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 3px;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  background: var(--yellow-soft);
  font-size: 21px;
  box-shadow: 2px 2px 0 rgba(48, 56, 51, 0.15);
}

.meal-row:nth-child(2) .meal-time span:first-child {
  background: var(--green-soft);
}

.meal-row:nth-child(3) .meal-time span:first-child {
  background: var(--pink-soft);
}

.meal-copy {
  min-width: 0;
}

.meal-copy strong {
  display: block;
  overflow: hidden;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-copy p {
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-check {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: transparent;
  font-size: 16px;
  font-weight: 900;
}

.meal-check.is-checked {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 2px 2px 0 rgba(48, 56, 51, 0.15);
}

.recipe-section {
  margin-top: 30px;
}

.recipe-heading {
  align-items: center;
}

.section-description,
.page-title-block p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.scribble {
  flex: 0 0 auto;
  color: var(--orange);
  font-family: cursive;
  font-size: 35px;
  font-weight: 900;
  line-height: 0.8;
  transform: rotate(8deg);
}

.recipe-search-box {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 5px;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 6px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.recipe-search-box:focus-within {
  border-color: var(--ink);
}

.recipe-search-box--library {
  margin-bottom: 12px;
}

.recipe-search-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.recipe-search-box input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 0 2px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.recipe-search-box input::-webkit-search-cancel-button {
  display: none;
}

.recipe-search-clear {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1.2px solid var(--line-strong);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
}

.recipe-search-clear[hidden] {
  display: none;
}

.recipe-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 270px;
  gap: 4px;
  overflow-y: auto;
  padding: 6px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 3px 5px 0 rgba(48, 56, 51, 0.15);
  overscroll-behavior: contain;
}

.recipe-suggestion {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 6px 7px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
}

.recipe-suggestion:active,
.recipe-suggestion:hover {
  background: var(--yellow-soft);
}

.recipe-suggestion-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1.2px solid var(--line-strong);
  border-radius: 11px;
  background: var(--blue-soft);
  font-size: 18px;
}

.recipe-suggestion-copy {
  min-width: 0;
}

.recipe-suggestion-copy strong,
.recipe-suggestion-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-suggestion-copy strong {
  font-size: 12px;
  font-weight: 950;
}

.recipe-suggestion-copy small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
}

.category-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px 14px;
  padding: 2px 16px 9px;
  scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 17px;
  background: var(--card);
  font-size: 12px;
  font-weight: 850;
}

.category-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 2px 2px 0 var(--yellow);
}

.recipe-list {
  display: grid;
  gap: 14px;
}

.recipe-card {
  position: relative;
  overflow: hidden;
  border: 1.7px solid var(--ink);
  border-radius: 22px 22px 18px 24px;
  background: var(--card);
  box-shadow: 4px 5px 0 rgba(48, 56, 51, 0.12);
}

.recipe-card:nth-child(3n + 2) {
  border-radius: 18px 24px 22px 18px;
}

.recipe-card.is-open {
  box-shadow: 5px 7px 0 rgba(48, 56, 51, 0.14);
}

.recipe-main {
  display: grid;
  width: 100%;
  grid-template-columns: 112px minmax(0, 1fr) 28px;
  gap: 11px;
  align-items: center;
  padding: 9px;
  border: 0;
  background: transparent;
  text-align: left;
}

.recipe-thumb {
  position: relative;
  overflow: hidden;
  width: 112px;
  height: 112px;
  border: 1.5px solid var(--ink);
  border-radius: 17px 14px 18px 13px;
  background:
    radial-gradient(circle at 50% 45%, #fff8e9 0 22%, transparent 23%),
    linear-gradient(145deg, var(--yellow-soft), var(--orange-soft));
}

.recipe-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.recipe-card.is-open .recipe-thumb img {
  transform: scale(1.05);
}

.recipe-thumb-fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  font-size: 42px;
}

.recipe-badge {
  position: absolute;
  left: 7px;
  top: 7px;
  padding: 4px 7px;
  border: 1.3px solid var(--ink);
  border-radius: 10px;
  background: var(--yellow);
  box-shadow: 1px 2px 0 var(--ink);
  font-size: 9px;
  font-weight: 900;
}

.recipe-copy {
  min-width: 0;
  align-self: stretch;
  padding: 4px 0;
}

.recipe-copy h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
}

.recipe-copy > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 9px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.meta-pill:first-child {
  background: var(--green-soft);
  color: #496d4e;
}

.recipe-toggle-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  align-self: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 18px;
  font-weight: 900;
  transition: transform 200ms ease, background 200ms ease;
}

.recipe-card.is-open .recipe-toggle-icon {
  background: var(--orange);
  color: #fff;
  transform: rotate(45deg);
}

.recipe-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}

.recipe-detail-inner {
  min-height: 0;
  overflow: hidden;
}

.recipe-card.is-open .recipe-detail {
  grid-template-rows: 1fr;
}

.recipe-detail-content {
  margin: 0 9px 9px;
  padding: 13px;
  border-top: 1.5px dashed var(--line-strong);
}

.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.detail-title-row h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 950;
}

.serving-tag {
  padding: 4px 8px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
}

.recipe-source-link {
  display: inline-flex;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ingredient-list {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.ingredient-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}

.ingredient-list li:last-child {
  border-bottom: 0;
}

.ingredient-list .ingredient-name::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border: 1.2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  content: "";
}

.ingredient-list .ingredient-amount {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.steps-block {
  padding: 12px;
  border-radius: 15px;
  background: var(--paper);
}

.steps-block h5 {
  margin: 0 0 9px;
  font-size: 12px;
  font-weight: 950;
}

.step-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cooking-step;
}

.step-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
  counter-increment: cooking-step;
}

.step-list li::before {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1.3px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  content: counter(cooking-step);
  font-size: 10px;
  font-weight: 900;
}

.add-shopping-button {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.add-shopping-button.is-added {
  background: var(--green-soft);
  color: #496d4e;
}

.library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.library-actions .primary-small-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 2px 2px 0 var(--yellow);
}

.recipe-search-sheet {
  min-height: 320px;
}

.external-search-form {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.external-search-form > label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
}

.external-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.external-search-row input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 8px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink);
  font-size: 12px;
  outline: 0;
}

.external-search-row .primary-small-button {
  min-width: 72px;
  justify-content: center;
  box-shadow: 2px 2px 0 var(--yellow);
}

.external-search-message {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1.4px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--yellow-soft);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.45;
}

.external-search-message.is-error {
  border-color: #c8aaa4;
  background: var(--pink-soft);
  color: #805f5b;
}

.external-recipe-results {
  display: grid;
  gap: 10px;
}

.external-recipe-card {
  display: grid;
  width: 100%;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 9px;
  border: 1.5px solid var(--line-strong);
  border-radius: 17px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.external-recipe-card:active {
  transform: translateY(1px) scale(0.99);
}

.external-recipe-card.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.external-recipe-thumb {
  position: relative;
  overflow: hidden;
  width: 88px;
  height: 76px;
  border: 1.4px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow-soft);
}

.external-recipe-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.external-recipe-copy {
  min-width: 0;
}

.external-recipe-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.external-recipe-copy p {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.external-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
}

.recipe-admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.recipe-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.recipe-image-actions button,
.recipe-image-replace {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1.4px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
}

.recipe-image-replace {
  cursor: pointer;
}

.recipe-image-actions button:active,
.recipe-image-replace:active {
  transform: translateY(1px) scale(0.99);
}

.recipe-admin-actions button {
  min-height: 36px;
  border: 1.4px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  font-size: 11px;
  font-weight: 900;
}

.recipe-admin-actions button:last-child {
  border-color: #c8aaa4;
  background: var(--pink-soft);
  color: #805f5b;
}

.sheet-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
}

.sheet-section-divider::before,
.sheet-section-divider::after {
  height: 1.5px;
  flex: 1;
  background: var(--line-strong);
  content: "";
}

.sheet-section-divider span {
  padding: 4px 9px;
  border: 1.3px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  white-space: nowrap;
}

.plan-library-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.plan-library-heading strong,
.plan-library-heading small {
  display: block;
}

.plan-library-heading strong {
  font-size: 13px;
  font-weight: 950;
}

.plan-library-heading small,
.plan-library-heading > span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.plan-library-heading > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 9px;
  background: var(--green-soft);
  color: #496d4e;
}

.meal-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 9px;
  padding: 4px;
  border: 1.5px solid var(--ink);
  border-radius: 15px;
  background: var(--paper-deep);
}

.meal-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.meal-tabs button.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 1px 2px 0 rgba(48, 56, 51, 0.16);
}

.plan-extra-dishes {
  margin-bottom: 9px;
  padding: 8px;
  border: 1.4px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--yellow-soft);
}

.plan-extra-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.plan-extra-heading strong {
  font-size: 11px;
  font-weight: 950;
}

.plan-extra-heading small {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  text-align: right;
}

.plan-extra-list {
  display: grid;
  gap: 5px;
}

.plan-extra-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
  padding: 6px 7px;
  border: 1.2px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 253, 249, 0.82);
}

.plan-extra-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1.2px solid var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  font-size: 15px;
}

.plan-extra-copy {
  min-width: 0;
}

.plan-extra-copy strong,
.plan-extra-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-extra-copy strong {
  font-size: 11px;
  font-weight: 900;
}

.plan-extra-copy small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
}

.plan-extra-item button {
  min-height: 27px;
  padding: 4px 8px;
  border: 1.2px solid var(--line-strong);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.plan-recipe-list {
  display: grid;
  max-height: 230px;
  gap: 7px;
  overflow-y: auto;
  padding: 3px 2px 7px;
  overscroll-behavior: contain;
}

.plan-recipe-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 7px 9px;
  border: 1.4px solid var(--line-strong);
  border-radius: 15px;
  background: var(--card);
  text-align: left;
}

.plan-recipe-option.is-selected {
  border-color: var(--ink);
  background: var(--yellow-soft);
  box-shadow: 2px 2px 0 var(--ink);
}

.plan-option-thumb {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1.3px solid var(--ink);
  border-radius: 13px;
  background: var(--blue-soft);
  font-size: 22px;
}

.plan-option-copy {
  min-width: 0;
}

.plan-option-copy strong,
.plan-option-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-option-copy strong {
  font-size: 12px;
  font-weight: 900;
}

.plan-option-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.plan-option-check {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1.4px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: transparent;
  font-size: 13px;
  font-weight: 900;
}

.plan-recipe-option.is-selected .plan-option-check {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 2px 12px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.inline-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-box {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1.4px solid var(--line-strong);
  border-radius: 7px;
  background: var(--card);
  color: transparent;
  font-size: 12px;
}

.inline-check input:checked + .check-box {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.sheet-secondary-button {
  width: 100%;
  min-height: 46px;
  margin-bottom: 9px;
  border: 1.6px solid var(--ink);
  border-radius: 15px;
  background: var(--yellow-soft);
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.recipe-form {
  display: grid;
  gap: 15px;
}

.recipe-source-banner {
  padding: 10px 12px;
  border: 1.4px solid var(--line-strong);
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.45;
}

.recipe-source-banner a {
  color: var(--ink);
  font-weight: 950;
}

.entry-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: -7px;
}

.entry-section-title span {
  font-size: 14px;
  font-weight: 950;
}

.entry-section-title small {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
}

.family-sheet .entry-section-title {
  gap: 8px;
  min-height: 24px;
  margin-bottom: 8px;
}

.family-sheet .entry-section-title small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-field {
  display: grid;
  gap: 8px;
}

.entry-table {
  overflow: hidden;
  border: 1.6px solid var(--ink);
  border-radius: 17px;
  background: var(--card);
  box-shadow: 3px 3px 0 rgba(48, 56, 51, 0.13);
}

.entry-table-head {
  display: grid;
  min-height: 34px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--blue-soft);
}

.entry-table-head--meta {
  grid-template-columns: 116px minmax(0, 1fr);
}

.entry-table-head--ingredient {
  grid-template-columns: minmax(0, 1fr) 112px 40px;
  background: var(--yellow-soft);
}

.entry-table-head--step {
  grid-template-columns: 66px minmax(0, 1fr) 40px;
  background: var(--green-soft);
}

.entry-table-head span {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-right: 1.3px dashed rgba(53, 57, 60, 0.35);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 950;
}

.entry-table-head span:last-child {
  border-right: 0;
}

.entry-meta-row,
.entry-row {
  position: relative;
  border-bottom: 1.3px dashed var(--line-strong);
}

.entry-meta-row:last-child,
.entry-row:last-child {
  border-bottom: 0;
}

.entry-meta-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: stretch;
  min-height: 54px;
  background: var(--card);
}

.entry-meta-row > span {
  display: flex;
  align-items: center;
  padding: 9px 10px;
  border-right: 1.3px dashed var(--line-strong);
  background: rgba(219, 227, 231, 0.42);
  font-size: 11px;
  font-weight: 900;
}

.entry-meta-row > span b {
  margin-left: 3px;
  color: #a36e68;
}

.entry-meta-row input,
.entry-meta-row textarea,
.entry-row input,
.entry-row textarea {
  width: calc(100% - 14px);
  min-width: 0;
  margin: 7px;
  padding: 8px 9px;
  border: 1.3px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  outline: 0;
  resize: vertical;
}

.entry-meta-row textarea {
  min-height: 58px;
}

.entry-meta-row input::placeholder,
.entry-meta-row textarea::placeholder,
.entry-row input::placeholder,
.entry-row textarea::placeholder {
  color: #aaa9a4;
}

.entry-meta-row--stacked {
  min-height: 74px;
}

.entry-meta-row--stacked .category-picker {
  margin: 8px;
}

.category-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-picker label {
  position: relative;
}

.category-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.category-picker span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border: 1.3px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
}

.category-picker input:checked + span {
  border-color: var(--ink);
  background: var(--blue);
  color: #fff;
  box-shadow: 1px 2px 0 var(--ink);
}

.entry-row {
  display: grid;
  min-height: 55px;
  background: var(--card);
}

.entry-row--ingredient {
  grid-template-columns: minmax(0, 1fr) 112px 40px;
  align-items: center;
}

.entry-row--step {
  grid-template-columns: 66px minmax(0, 1fr) 40px;
  align-items: start;
}

.entry-row--family-member,
.family-member-head {
  grid-template-columns: 54px minmax(0, 1fr) 40px;
}

.entry-row--family-member {
  align-items: center;
}

.family-member-emoji {
  font-size: 18px;
  text-align: center;
}

.family-add-button {
  margin: 12px 0;
}

.family-time-table {
  margin: 0 0 14px;
}

.family-save-button {
  margin-top: 0;
}

.step-row-number {
  display: grid;
  width: 29px;
  height: 29px;
  margin: 13px auto 0;
  place-items: center;
  border: 1.3px solid var(--ink);
  border-radius: 50%;
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 950;
}

.entry-row button {
  display: grid;
  width: 26px;
  height: 26px;
  margin: 13px auto 0;
  padding: 0;
  place-items: center;
  border: 1.2px solid #c8aaa4;
  border-radius: 9px;
  background: var(--pink-soft);
  color: #805f5b;
  font-size: 16px;
  font-weight: 900;
}

.table-add-button {
  width: 100%;
  min-height: 38px;
  border: 1.4px dashed var(--line-strong);
  border-radius: 13px;
  background: var(--blue-soft);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
}

.recipe-image-upload {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1.6px solid var(--ink);
  border-radius: 17px;
  background: var(--yellow-soft);
  box-shadow: 3px 3px 0 rgba(48, 56, 51, 0.13);
}

.recipe-image-preview {
  position: relative;
  overflow: hidden;
  width: 112px;
  height: 112px;
  border: 1.4px solid var(--ink);
  border-radius: 15px;
  background: var(--card);
}

.recipe-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-image-preview > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 249, 0.84);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
  pointer-events: none;
}

.recipe-image-upload strong {
  display: block;
  font-size: 12px;
  font-weight: 950;
}

.recipe-image-upload p {
  margin: 4px 0 9px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.file-button {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.recipe-image-upload .text-button {
  margin-left: 7px;
  font-size: 9px;
}

.backup-button {
  width: 100%;
  margin-top: 1px;
}

.recipe-submit-button {
  position: sticky;
  bottom: -1px;
}

.page-title-block {
  margin-bottom: 18px;
  padding: 2px 2px 14px;
  border-bottom: 1.5px dashed var(--line-strong);
}

.page-title-block h2 {
  font-size: 25px;
}

.recipe-list--library {
  padding-bottom: 6px;
}

.shopping-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shopping-progress {
  display: grid;
  flex: 0 0 auto;
  width: 67px;
  height: 67px;
  place-items: center;
  align-content: center;
  border: 1.7px solid var(--ink);
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 3px 3px 0 var(--ink);
}

.shopping-progress strong {
  font-size: 17px;
  line-height: 1;
}

.shopping-progress span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.shopping-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.soft-button,
.primary-small-button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1.4px solid var(--line-strong);
  border-radius: 13px;
  background: var(--card);
  font-size: 10px;
  font-weight: 850;
}

.primary-small-button {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.shopping-list {
  display: grid;
  gap: 9px;
}

.shopping-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 12px 9px 9px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: opacity 180ms ease, transform 180ms ease;
}

.shopping-item.is-bought {
  opacity: 0.62;
}

.shopping-item.is-bought .shopping-item-name {
  text-decoration: line-through;
}

.shopping-checkbox {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  color: transparent;
  font-size: 17px;
  font-weight: 900;
}

.shopping-item.is-bought .shopping-checkbox {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.shopping-item-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 900;
}

.shopping-item-source {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopping-item-amount {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  min-height: 230px;
  padding: 28px;
  place-items: center;
  align-content: center;
  border: 1.7px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 251, 0.72);
  text-align: center;
}

.empty-state span {
  margin-bottom: 8px;
  font-size: 45px;
}

.empty-state strong {
  font-size: 16px;
}

.empty-state p {
  max-width: 230px;
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.family-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px;
  border: 1.7px solid var(--ink);
  border-radius: 20px;
  background: var(--blue-soft);
  box-shadow: 4px 4px 0 rgba(48, 56, 51, 0.12);
}

.family-card-people {
  display: flex;
  padding-left: 8px;
}

.family-card-people span {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow-soft);
  font-size: 20px;
  line-height: 30px;
  text-align: center;
}

.family-card-people span:nth-child(2) {
  background: var(--green-soft);
}

.family-card-people span:nth-child(3) {
  background: var(--pink-soft);
}

.family-card-people .family-face-more {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 900;
  line-height: 30px;
}

.family-card strong {
  display: block;
  font-size: 13px;
}

.family-card > div:nth-child(2) {
  min-width: 0;
}

.family-card p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.round-edit-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1.4px solid var(--ink);
  border-radius: 50%;
  background: var(--card);
}

.preference-list {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.preference-row {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 45px;
  gap: 10px;
  align-items: center;
  min-height: 73px;
  padding: 11px 13px;
  border-bottom: 1px dashed var(--line);
}

.preference-row:last-child {
  border-bottom: 0;
}

.preference-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: var(--paper);
  font-size: 20px;
}

.preference-row strong,
.preference-row small {
  display: block;
}

.preference-row strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.preference-row small {
  color: var(--ink-soft);
  font-size: 9px;
}

.preference-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle {
  position: relative;
  width: 43px;
  height: 25px;
  border: 1.4px solid var(--line-strong);
  border-radius: 15px;
  background: var(--paper-deep);
  transition: background 180ms ease;
}

.toggle::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border: 1.2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform 180ms ease;
}

.preference-row input:checked + .toggle {
  border-color: var(--green);
  background: var(--green);
}

.preference-row input:checked + .toggle::after {
  border-color: #fff;
  transform: translateX(18px);
}

.preference-row input:disabled + .toggle {
  opacity: 0.55;
}

.family-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 13px;
  border: 1.4px dashed var(--line-strong);
  border-radius: 16px;
  background: var(--yellow-soft);
}

.family-note span {
  font-size: 18px;
}

.family-note p {
  margin: 1px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  bottom: 0;
  left: 50%;
  isolation: isolate;
  display: grid;
  width: min(100%, 480px);
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + var(--safe-bottom));
  border-top: 1.5px solid var(--line-strong);
  background: var(--card);
  box-shadow: 0 -7px 18px rgba(58, 64, 67, 0.08);
  transform: translateX(-50%);
}

.bottom-nav::before {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: calc(-1 * (var(--safe-bottom) + 12px));
  left: 0;
  height: calc(var(--safe-bottom) + 20px);
  background: var(--card);
  content: "";
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 54px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #8a8f89;
  font-size: 10px;
  font-weight: 800;
}

.nav-item.is-active {
  background: var(--yellow-soft);
  color: var(--ink);
}

.nav-item.is-active::before {
  position: absolute;
  top: 3px;
  width: 21px;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
  content: "";
}

.nav-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  font-family: "Avenir Next", sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.nav-icon--bag {
  width: 21px;
  height: 19px;
  margin-top: 3px;
  border: 1.8px solid currentColor;
  border-radius: 4px 4px 8px 8px;
}

.nav-icon--bag::before {
  width: 9px;
  height: 6px;
  margin-top: -12px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 1.3px solid var(--card);
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 80;
  bottom: calc(88px + var(--safe-bottom));
  left: 50%;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  border: 1.4px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: 3px 4px 0 rgba(48, 56, 51, 0.18);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sheet-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 40px;
  background: rgba(36, 40, 37, 0.34);
  backdrop-filter: blur(4px);
  animation: fade-in 180ms ease-out;
}

.bottom-sheet {
  width: min(100%, 480px);
  max-height: calc(100dvh - 22px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 16px calc(20px + var(--safe-bottom));
  border: 1.8px solid var(--ink);
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  box-shadow: 0 -14px 48px rgba(35, 31, 25, 0.2);
  animation: sheet-up 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 15px;
  border-radius: 3px;
  background: var(--line-strong);
}

.sheet-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sheet-close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card);
  font-size: 23px;
  line-height: 1;
}

.quick-picks {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.quick-picks button {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  min-height: 67px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 17px;
  background: var(--card);
  text-align: left;
}

.quick-picks button span {
  grid-row: 1 / 3;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: var(--yellow-soft);
  font-size: 22px;
}

.quick-picks button strong {
  align-self: end;
  font-size: 13px;
}

.quick-picks button small {
  align-self: start;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
}

.sheet-primary-button {
  width: 100%;
  min-height: 48px;
  border: 1.7px solid var(--ink);
  border-radius: 16px;
  background: var(--orange);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 13px;
  font-weight: 900;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-drop {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 560px) {
  body {
    padding: 24px 0;
  }

  .page-backdrop {
    position: fixed;
  }

  .app-shell {
    min-height: calc(100dvh - 48px);
    border: 1.5px solid rgba(48, 56, 51, 0.18);
    border-radius: 34px;
  }

  .bottom-nav {
    bottom: 24px;
    width: 449px;
    border-right: 1.5px solid var(--line-strong);
    border-bottom: 1.5px solid var(--line-strong);
    border-left: 1.5px solid var(--line-strong);
    border-radius: 0 0 32px 32px;
  }

  .bottom-sheet {
    max-height: calc(100dvh - 72px);
    margin-bottom: 24px;
    border-bottom: 1.8px solid var(--ink);
    border-radius: 28px;
  }
}

@media (max-width: 365px) {
  .topbar h1 {
    font-size: 20px;
  }

  .app-header,
  .app-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .category-chips {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .day-button {
    min-height: 62px;
  }

  .day-button .day-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .recipe-main {
    grid-template-columns: 96px minmax(0, 1fr) 26px;
    gap: 9px;
  }

  .recipe-thumb {
    width: 96px;
    height: 104px;
  }

  .recipe-copy h3 {
    font-size: 14px;
  }

  .entry-table-head--meta,
  .entry-meta-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .entry-table-head--ingredient,
  .entry-row--ingredient {
    grid-template-columns: minmax(0, 1fr) 86px 36px;
  }

  .entry-table-head--step,
  .entry-row--step {
    grid-template-columns: 54px minmax(0, 1fr) 36px;
  }

  .entry-row--family-member,
  .family-member-head {
    grid-template-columns: 48px minmax(0, 1fr) 36px;
  }

  .family-sheet .entry-section-title small {
    font-size: 8.5px;
  }

  .family-member-emoji {
    padding-right: 3px;
    padding-left: 3px;
  }

  .family-card {
    gap: 9px;
    padding: 12px;
  }

  .family-card-people span {
    width: 31px;
    height: 31px;
    line-height: 27px;
  }

  .recipe-image-upload {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .recipe-image-preview {
    width: 92px;
    height: 100px;
  }

  .dish-order-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .dish-order-item-status {
    grid-column: 2;
    align-items: flex-start;
  }

  .dish-order-edit-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .dish-order-edit-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
