body {
  margin: 0;
  padding: 0;
  background: #f8f9fa;
}

.login-page {
  min-height: 100dvh;
  margin: 0;
  background: radial-gradient(circle at 0% 0%, #e8f1ff 0%, #f4f8ff 45%, #ffffff 100%);
  color: #1f2d3d;
}

.login-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 14px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-top {
  padding-top: 4px;
}

.login-top__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-top__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(150deg, #0d6efd, #63a7ff);
}

.login-top__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.login-top__tagline {
  margin: 2px 0 0;
  color: #52627b;
  font-size: 0.88rem;
}

.login-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-card {
  background: #fff;
  border: 1px solid #e5ebf6;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(28, 53, 89, 0.12);
  padding: 22px 18px;
  text-align: center;
}

.login-card__logo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(150deg, #0d6efd, #69abff);
}

.login-card__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.login-card__subtitle {
  margin: 6px 0 16px;
  font-size: 0.92rem;
  color: #5d6c84;
}

.login-logout-msg {
  background: #f1f9f2;
  color: #2d7b46;
  border: 1px solid #d8eedf;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.login-google-btn {
  width: 100%;
  border: 1px solid #d3def0;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2d3d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  padding: 13px 16px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(43, 88, 160, 0.12);
}

.login-google-btn:hover {
  background: #f6f9ff;
  color: #1f2d3d;
}

.login-google-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d7deea;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
}

.login-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.login-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #e4ebf7;
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.88rem;
  color: #2e3c52;
}

.login-benefits li span {
  color: #198754;
  font-weight: 700;
}

@media (min-width: 900px) {
  .login-shell {
    min-height: 100dvh;
    justify-content: center;
    gap: 18px;
    padding: 24px;
  }

  .login-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }

  .login-card {
    padding: 30px 24px;
  }
}

:root {
  --app-header-height: 56px;
  --gap-1: 8px;
  --gap-2: 12px;
  --gap-3: 16px;
  --gap-4: 24px;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  font-size: 20px;
  line-height: 1;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.app-header__toggle {
  font-size: 20px;
  text-decoration: none;
  color: #212529;
}

.app-header__title {
  font-weight: 600;
  font-size: 18px;
}

.app-content {
  padding: 20px 16px 40px;
}

.app-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, calc(100vw - 32px));
  height: 100%;
  background: #f8fafc;
  border-right: 1px solid #e6ebf2;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 1100;
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1050;
}

body.drawer-open .app-drawer {
  transform: translateX(0);
}

body.drawer-open .app-drawer__overlay {
  opacity: 1;
  pointer-events: auto;
}

.app-drawer__profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 2px;
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 12px;
}

.app-drawer__avatar img,
.app-drawer__avatar--placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.app-drawer__name {
  font-weight: 600;
  font-size: 0.95rem;
}

.app-drawer__email {
  font-size: 12px;
  color: #6c757d;
  overflow-wrap: anywhere;
}

.app-drawer__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-drawer__section {
  background: #ffffff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 12px;
}

.app-drawer__section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a879b;
  margin-bottom: 10px;
  font-weight: 600;
}

.app-drawer__section--lists {
  background: #fdfefe;
}

.app-drawer__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.app-drawer__section-link {
  font-size: 0.8rem;
  text-decoration: none;
  color: #0d6efd;
  font-weight: 600;
}

.app-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-drawer__nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #273142;
  text-decoration: none;
  padding: 10px 11px;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.app-drawer__nav-item:hover {
  background: #f2f6fc;
  border-color: #e0e8f5;
}

.app-drawer__nav-item:focus-visible {
  outline: 2px solid #7db3ff;
  outline-offset: 1px;
}

.app-drawer__nav-item.is-active {
  background: #edf4ff;
  border-color: #cfe0ff;
  color: #0d6efd;
  font-weight: 700;
}

.app-drawer__nav-item.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.app-drawer__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-drawer__list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  color: #334055;
  text-decoration: none;
  gap: 8px;
  border: 1px solid #edf1f6;
  border-radius: 10px;
  background: #fff;
}

.app-drawer__list-item.active {
  border-color: #b9d2ff;
  background: #f2f7ff;
  color: #0d6efd;
  font-weight: 600;
}

.app-drawer__list-item.just-changed,
.app-drawer__nav-item.just-changed {
  animation: drawerChangePulse 1.2s ease 2;
}

@keyframes drawerChangePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.38);
    transform: translateX(0);
  }
  45% {
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
    transform: translateX(2px);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    transform: translateX(0);
  }
}

.app-drawer__list-icon {
  font-size: 14px;
  opacity: 0.7;
}

.app-drawer__subsection {
  margin-top: 12px;
}

.app-drawer__subsection-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.app-drawer__list-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-drawer__empty-state {
  font-size: 0.82rem;
  color: #7a879b;
  padding: 6px 2px;
}

.app-drawer__footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e3e8f0;
}

.app-drawer__nav-item--danger {
  color: #b4232a;
}

.app-drawer__nav-item--danger:hover {
  background: #fff2f3;
  border-color: #ffd4d7;
}

.page {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--app-header-height));
}

.page--list {
  margin: -20px -16px -40px;
  padding: var(--gap-3);
  gap: var(--gap-3);
}

.page-header,
.page-footer {
  background: #f8f9fa;
  position: sticky;
  z-index: 2;
}

.page-header {
  top: 0;
  padding-bottom: 8px;
}

.page-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 12px;
}

.page-footer {
  bottom: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.page-title {
  font-size: 20px;
  font-weight: 600;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  padding: var(--gap-3);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-1);
}

.list-title-row {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  padding: var(--gap-3);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.edit-row {
  padding-bottom: var(--gap-2);
}

.edit-row input {
  flex: 1;
}

.edit-row + .input-group {
  margin-top: var(--gap-2);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #212529;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  background: #f7f7f7;
}

.icon-btn:active {
  transform: scale(0.98);
}

.icon-btn.danger {
  border-color: #ffd6d6;
  color: #dc3545;
}

.icon-btn.danger:hover {
  background: #fff2f2;
}

.btn-ghost {
  background: #ffffff;
  border-color: #e8e8e8;
  color: #212529;
}

.share-panel {
  max-width: 720px;
}

.share-panel__header {
  display: flex;
  align-items: center;
  gap: var(--gap-2);
  flex-wrap: wrap;
  padding: var(--gap-3);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.share-panel__back {
  flex-shrink: 0;
}

.share-panel__title {
  display: flex;
  align-items: center;
  gap: var(--gap-1);
  min-width: 0;
}

.share-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.share-member-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 220px;
}

.share-member-meta {
  min-width: 0;
}

.share-member-meta .fw-semibold,
.share-member-meta .text-muted {
  overflow-wrap: anywhere;
}

.share-member-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

@media (max-width: 576px) {
  .share-member-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .share-member-actions form,
  .share-member-actions form .btn {
    width: 100%;
  }
}

.toast-stack {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(520px, calc(100vw - 24px));
}

.toast {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.toast__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toast__action.btn {
  padding: 6px 12px;
  border-radius: 10px;
}

.toast.success {
  border-color: #bfe8cf;
}

.toast.error {
  border-color: #ffc4c4;
}

.toast.info {
  border-color: #cfe3ff;
}

.toast__close {
  border: none;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.toast.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.modal-text {
  margin: 0;
  color: #6c757d;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-actions form {
  margin: 0;
}

.modal-actions > * {
  flex: 0 0 auto;
}

.modal-actions .btn {
  min-height: 40px;
}

@media (max-width: 420px) {
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-actions > *,
  .modal-actions form,
  .modal-actions form .btn {
    width: 100%;
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: #6c757d;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e9ecef;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-stack {
  display: flex;
  align-items: center;
  gap: 0;
}

.avatar-stack .avatar {
  margin-left: -8px;
  border: 2px solid #ffffff;
}

.avatar-stack .avatar:first-child {
  margin-left: 0;
}

.avatar-fallback {
  font-weight: 700;
  color: #6c757d;
}

.avatar-more {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6c757d;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #6c757d;
  overflow: hidden;
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar__fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.app-section-card {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  line-height: 1.2;
}

.status-badge--muted {
  background: #f1f3f5;
  color: #6c757d;
}

.status-badge--info {
  background: #edf4ff;
  color: #0a58ca;
}

.status-badge--success {
  background: #e8f7ee;
  color: #198754;
}

.status-badge--outline {
  border: 1px solid #dbe3ee;
  color: #52607a;
  background: #fff;
}

.plan-page {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-sticky {
  position: sticky;
  top: calc(var(--app-header-height) + 8px);
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f9fa;
  padding-bottom: 4px;
}

.plan-hero__content {
  padding: 2px 0;
}

.plan-block {
  border: 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.plan-menu-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-view {
  display: none;
}

.plan-view.is-active {
  display: block;
}

.plan-form .form-label {
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: #495057;
}

.plan-section-group {
  border: 1px solid #edf1f7;
  border-radius: 14px;
  padding: 12px;
  background: #fcfdff;
  margin-top: 12px;
}

.plan-week-range {
  margin-top: 8px;
}

.plan-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.week-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.day-card {
  border: 1px solid #e8edf5;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}

.day-card--complete {
  border-color: #8fd3ab;
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.12);
}

.day-card--complete .day-card__header .status-badge {
  border-color: #198754;
  color: #198754;
  background: #ecf8f1;
}

.day-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.day-card__header h3 {
  margin: 0;
  font-size: 1rem;
}

.day-card__content {
  display: grid;
  gap: 10px;
}

.meal-block {
  border: 1px solid #f0f2f7;
  border-radius: 12px;
  padding: 10px;
  background: #fafcff;
}

.meal-block__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.meal-block__header h4 {
  margin: 0;
  font-size: 0.95rem;
}

.menu-slot {
  min-width: 0;
}

.meal-name {
  margin: 0 0 8px;
  color: #3f4b5f;
  font-weight: 500;
}

.meal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-save-menu {
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(13, 110, 253, 0.24);
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-card {
  border: 1px solid #eceff3;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.item-card--selected {
  border-color: #86b7fe;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.12);
}

.item-title {
  font-weight: 600;
}

.item-meta {
  font-size: 0.82rem;
  color: #6c757d;
}

.plan-selection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.recipe-card {
  display: block;
  padding: 0;
  border: 1px solid #e6ebf3;
  box-shadow: 0 6px 16px rgba(24, 39, 75, 0.05);
}

.recipe-card__toggle {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 8px;
}

.recipe-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.recipe-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recipe-card__checkbox-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #c8d4e8;
  background: #fff;
  flex-shrink: 0;
}

.recipe-check.form-check-input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  border-width: 2px;
  cursor: pointer;
}

.recipe-card .recipe-card__toggle:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.25);
  outline-offset: -1px;
  border-radius: 12px;
}

.recipe-card.item-card--selected {
  border-color: #0d6efd;
  background: #f4f8ff;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.16);
}

.recipe-card.item-card--selected .recipe-card__checkbox-wrap {
  border-color: #0d6efd;
  background: #e8f0ff;
}

.recipe-selected-badge {
  font-size: 0.72rem;
  padding: 3px 9px;
}

.recipe-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}

.preview-recipe-card {
  border-style: dashed;
  box-shadow: none;
}

.menu-card {
  display: block;
  padding: 0;
  border: 1px solid #e6ebf3;
  box-shadow: 0 6px 16px rgba(24, 39, 75, 0.05);
}

.menu-card__toggle {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 8px;
}

.menu-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.menu-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.menu-card__checkbox-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #c8d4e8;
  background: #fff;
  flex-shrink: 0;
}

.menu-check.form-check-input {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  border-width: 2px;
  cursor: pointer;
}

.menu-card .menu-card__toggle:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.25);
  outline-offset: -1px;
  border-radius: 12px;
}

.menu-card.item-card--selected {
  border-color: #0d6efd;
  background: #f4f8ff;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.16);
}

.menu-card.item-card--selected .menu-card__checkbox-wrap {
  border-color: #0d6efd;
  background: #e8f0ff;
}

.menu-selected-badge {
  font-size: 0.72rem;
  padding: 3px 9px;
}

.menu-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}

@media (max-width: 768px) {
  .item-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .recipe-card__actions {
    width: 100%;
  }

  .recipe-card__actions .btn {
    flex: 1 1 auto;
  }

  .menu-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-card__actions {
    width: 100%;
  }

  .menu-card__actions .btn {
    flex: 1 1 auto;
  }
}

#modalRecetas .btn.btn-ghost {
  justify-content: flex-start;
  border: 1px solid #eceff3;
  border-radius: 8px;
  margin-bottom: 6px;
}

#modalRecetas.active {
  opacity: 1;
  pointer-events: auto;
}

.plan-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #e9eef7;
  border-radius: 12px;
  padding: 4px;
}

.plan-tab {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  color: #4f5d75;
}

.plan-tab.active {
  color: #0d6efd;
  background: #fff;
  box-shadow: 0 1px 4px rgba(13, 35, 67, 0.12);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

@media (min-width: 768px) {
  .week-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.page-back {
  display: flex;
  align-items: center;
  gap: 10px;
}
