/**
 * Meal Planner – shared layout, nav, cards (loads after style.css)
 */

:root {
  --mp-bg: #faf8f5;
  --mp-surface: #ffffff;
  --mp-border: #e7e2da;
  --mp-text: #1c1917;
  --mp-muted: #78716c;
  --mp-accent: #0d9488;
  --mp-accent-hover: #0f766e;
  --mp-accent-soft: rgba(13, 148, 136, 0.12);
  --mp-accent-strong: #134e4a;
  --mp-info: #1d4ed8;
  --mp-info-soft: #eff6ff;
  --mp-warn: #b45309;
  --mp-warn-soft: #fffbeb;
  --mp-success-soft: #ecfdf5;
  --mp-danger: #dc2626;
  --mp-danger-soft: #fef2f2;
  --mp-radius: 12px;
  --mp-shadow: 0 1px 3px rgba(28, 25, 23, 0.06);
  --mp-shadow-lg: 0 12px 30px rgba(28, 25, 23, 0.08);
  --mp-font: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.mp-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  font-family: var(--mp-font);
  color: var(--mp-text);
  background: var(--mp-bg);
  min-height: 60vh;
}

.mp-container--narrow {
  max-width: 720px;
}

.mp-page-title {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
  color: var(--mp-accent-strong);
}

.mp-lead {
  color: var(--mp-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem 0;
  max-width: 52ch;
}

/* Nav */
.mp-app-nav-wrap {
  margin-bottom: 1.25rem;
}

.mp-app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  box-shadow: var(--mp-shadow);
}

.mp-app-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mp-text);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.mp-app-nav__link:hover {
  background: var(--mp-accent-soft);
  color: var(--mp-accent-hover);
}

.mp-app-nav__link.is-active {
  background: var(--mp-accent);
  color: #fff;
  border-color: var(--mp-accent);
}

.mp-app-nav__link.is-active:hover {
  background: var(--mp-accent-hover);
  color: #fff;
}

.mp-app-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
}

.mp-app-nav__link.is-active .mp-app-nav__icon {
  opacity: 1;
}

/* Sub / breadcrumb */
.mp-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.mp-subnav a {
  color: var(--mp-accent-strong);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--mp-border);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
}

.mp-subnav a:hover {
  text-decoration: none;
  background: var(--mp-accent-soft);
  border-color: rgba(13, 148, 136, 0.25);
  color: var(--mp-accent-hover);
}

.mp-subnav a.is-active {
  font-weight: 700;
  color: var(--mp-accent-hover);
}

.mp-subnav .mp-app-nav__icon {
  display: inline-flex;
  vertical-align: middle;
  margin-right: 0.15rem;
}

.mp-subnav .mp-app-nav__icon svg {
  width: 18px;
  height: 18px;
}

.mp-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.mp-icon-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-icon-link__icon svg {
  width: 18px;
  height: 18px;
}

/* Cards & sections */
.mp-section {
  margin-bottom: 1.5rem;
}

.mp-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem 0;
  color: var(--mp-text);
}

.mp-card {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--mp-shadow);
}

.mp-card--soft {
  background: linear-gradient(180deg, #ffffff 0%, #f8fffd 100%);
}

.mp-card h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.02rem;
  font-weight: 600;
}

.mp-card p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.9rem;
}

.mp-card a {
  color: var(--mp-accent);
  text-decoration: none;
  font-weight: 500;
}

.mp-card a:hover {
  text-decoration: underline;
}

.mp-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: #059669;
  color: #fff;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.mp-missing {
  font-size: 0.85rem;
  color: #b91c1c;
  margin-top: 0.35rem;
}

.mp-flash {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.mp-flash--ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.mp-flash--muted {
  background: #f5f5f4;
  border: 1px solid var(--mp-border);
  color: var(--mp-muted);
}

.mp-flash a {
  color: inherit;
  font-weight: 700;
}

.mp-callout {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-left: 4px solid var(--mp-accent);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--mp-shadow);
}

.mp-callout--info {
  background: var(--mp-info-soft);
  border-color: #bfdbfe;
  border-left-color: var(--mp-info);
  color: #1e3a8a;
}

.mp-callout--ok {
  background: var(--mp-success-soft);
  border-color: #86efac;
  border-left-color: #16a34a;
  color: #166534;
}

.mp-callout--warn {
  background: var(--mp-warn-soft);
  border-color: #fcd34d;
  border-left-color: var(--mp-warn);
  color: #92400e;
}

.mp-callout--danger {
  background: var(--mp-danger-soft);
  border-color: #fecaca;
  border-left-color: var(--mp-danger);
  color: #991b1b;
}

.mp-callout__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.mp-callout__title svg {
  width: 18px;
  height: 18px;
}

.mp-callout__body {
  margin: 0;
  font-size: 0.92rem;
}

.mp-callout__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.mp-page-block {
  background: linear-gradient(180deg, #ffffff 0%, #fcfffe 100%);
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--mp-shadow);
}

.mp-page-block h2,
.mp-page-block h3 {
  margin-top: 0;
}

.mp-page-block__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.4rem 0;
  color: var(--mp-accent-strong);
}

.mp-page-block__title svg {
  width: 18px;
  height: 18px;
}

/* Plan strip */
.mp-plan-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .mp-plan-week {
    grid-template-columns: 1fr;
  }
}

.mp-plan-day {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 0.65rem 0.75rem;
  min-height: 120px;
  box-shadow: var(--mp-shadow);
}

.mp-plan-day__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mp-muted);
  margin-bottom: 0.35rem;
}

.mp-plan-day__date {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mp-plan-slot {
  font-size: 0.78rem;
  color: var(--mp-muted);
  margin-top: 0.35rem;
}

.mp-plan-entry {
  font-size: 0.85rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--mp-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem;
}

.mp-plan-entry:last-child {
  border-bottom: none;
}

.mp-plan-entry a {
  color: var(--mp-accent);
  text-decoration: none;
  font-weight: 500;
}

.mp-plan-entry a:hover {
  text-decoration: underline;
}

/* Shopping list */
.mp-shop-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-shop-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--mp-border);
  background: var(--mp-surface);
  border-radius: 8px;
  margin-bottom: 0.35rem;
  border: 1px solid var(--mp-border);
}

.mp-shop-list li.is-checked {
  opacity: 0.65;
}

.mp-shop-list li.is-checked .mp-shop-label {
  text-decoration: line-through;
  color: var(--mp-muted);
}

.mp-shop-check {
  flex-shrink: 0;
}

.mp-shop-label {
  flex: 1;
  font-size: 0.95rem;
}

.mp-shop-meta {
  font-size: 0.82rem;
  color: var(--mp-muted);
}

/* Forms */
.mp-form {
  background: var(--mp-surface);
  padding: 1.1rem;
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-border);
  margin-bottom: 1.25rem;
  box-shadow: var(--mp-shadow);
}

.mp-form h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.mp-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.mp-form input[type="text"],
.mp-form input[type="number"],
.mp-form input[type="date"],
.mp-form select,
.mp-form textarea {
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 320px;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.mp-form button,
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--mp-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}

.mp-form button svg,
.mp-btn svg {
  width: 16px;
  height: 16px;
}

.mp-form button:hover,
.mp-btn:hover {
  background: var(--mp-accent-hover);
}

.mp-btn--ghost {
  background: transparent;
  color: var(--mp-accent);
  border: 1px solid var(--mp-border);
  box-shadow: none;
}

.mp-btn--ghost:hover {
  background: var(--mp-accent-soft);
}

.mp-btn--danger {
  background: var(--mp-danger);
}

.mp-btn--danger:hover {
  background: #b91c1c;
}

.mp-btn--sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
}

/* Filters (recipes index) */
.mp-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  align-items: flex-end;
  box-shadow: var(--mp-shadow);
}

.mp-filters input,
.mp-filters select {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--mp-border);
  border-radius: 8px;
}

.mp-filters label {
  margin-right: 0.35rem;
  font-size: 0.88rem;
  color: var(--mp-muted);
}

/* Recipe list */
.mp-list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-list-plain li {
  border-bottom: 1px solid var(--mp-border);
  padding: 0.85rem 0;
}

.mp-list-plain li a {
  font-weight: 600;
  color: var(--mp-accent);
  text-decoration: none;
}

.mp-list-plain li a:hover {
  text-decoration: underline;
}

/* Pantry & preferences rows */
.mp-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--mp-border);
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--mp-surface);
  border-radius: 8px;
  margin-bottom: 0.35rem;
  border: 1px solid var(--mp-border);
}

.mp-list li:hover {
  background: #fafaf9;
}

.mp-list form {
  margin: 0;
}

.mp-list button {
  padding: 0.35rem 0.65rem;
  background: var(--mp-danger);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

.mp-list button:hover {
  background: #b91c1c;
}

.mp-use-by {
  font-size: 0.85rem;
  color: var(--mp-muted);
  display: block;
  margin-top: 0.2rem;
}

.mp-use-by.soon {
  color: #b45309;
}

.mp-use-by.past {
  color: var(--mp-danger);
}

.mp-meta {
  font-size: 0.88rem;
  color: var(--mp-muted);
  margin-top: 0.25rem;
}

.mp-inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mp-inline-icon svg {
  width: 16px;
  height: 16px;
}

/* Promo / credits strip on dashboard */
.mp-plan-strip {
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--mp-muted);
  box-shadow: var(--mp-shadow);
}

.mp-plan-strip a {
  color: var(--mp-accent);
  font-weight: 500;
}

.mp-credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.mp-credits-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfffe 100%);
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: var(--mp-shadow);
}

.mp-credits-card h2,
.mp-credits-card h3 {
  margin-top: 0;
}

.mp-credits-kicker {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 0.78rem;
  font-weight: 700;
}

.mp-credits-balance {
  font-size: 2rem;
  font-weight: 800;
  color: #5b21b6;
  margin: 0.25rem 0;
}

.mp-credits-msg {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.mp-credits-msg.success {
  background: var(--mp-success-soft);
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.mp-credits-msg.error {
  background: var(--mp-danger-soft);
  border: 1px solid #fecaca;
  color: #991b1b;
}

.mp-credits-msg.info {
  background: var(--mp-info-soft);
  border: 1px solid #bfdbfe;
  color: var(--mp-info);
}

.mp-credits-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #111827;
}

.mp-credits-muted {
  color: var(--mp-muted);
  font-size: 0.92rem;
}

.mp-credits-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: #374151;
}

.mp-credits-list li {
  margin: 0.3rem 0;
}

.mp-credits-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

/* Nutrition block on view */
.mp-nutrition {
  font-size: 0.9rem;
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--mp-surface);
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-border);
}

.mp-nutrition table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.86rem;
}

.mp-nutrition th,
.mp-nutrition td {
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--mp-border);
}

.mp-nutrition .mp-n-sum {
  font-weight: 600;
  background: #f5f5f4;
}

/* Rate buttons */
.mp-rate button {
  padding: 0.3rem 0.55rem;
  margin: 0 0.1rem;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid var(--mp-border);
  background: var(--mp-surface);
}

.mp-rate button:hover {
  background: var(--mp-accent-soft);
  border-color: var(--mp-accent);
}

/* Gap callout on recipe view */
.mp-gap-callout {
  background: linear-gradient(135deg, var(--mp-accent-soft), #fff);
  border: 1px solid rgba(13, 148, 136, 0.35);
  border-radius: var(--mp-radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

.mp-gap-callout h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.mp-gap-callout ul {
  margin: 0.5rem 0 0.75rem 1rem;
  padding: 0;
  color: var(--mp-text);
  font-size: 0.92rem;
}

.mp-cost-row {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: #fafaf9;
  border: 1px dashed var(--mp-border);
  border-radius: 8px;
  font-size: 0.88rem;
}

.mp-cost-row label {
  display: block;
  margin-top: 0.35rem;
  font-weight: 500;
}

.mp-cost-row select,
.mp-cost-row input {
  margin-bottom: 0.35rem;
  max-width: 100%;
}

.mp-sponsored-wrap {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mp-border);
}

.mp-sponsored-heading {
  font-size: 1rem;
  margin: 0 0 0.35rem 0;
}

.mp-purchase-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-purchase-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.mp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.mp-actions--spread {
  justify-content: space-between;
}

.mp-week-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.mp-week-jump__range {
  color: var(--mp-muted);
  font-weight: 700;
}

.mp-barcode-scan {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f5f5f4;
  border-radius: 8px;
  border: 1px solid var(--mp-border);
}

/* Recipe create / edit */
.mp-recipe-editor .mp-form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.mp-recipe-editor .mp-form input,
.mp-recipe-editor .mp-form select,
.mp-recipe-editor .mp-form textarea {
  padding: 0.5rem;
  width: 100%;
  max-width: 400px;
}

.mp-recipe-editor .mp-form textarea {
  min-height: 80px;
}

.mp-recipe-editor .mp-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.mp-recipe-editor .mp-row input[type="number"] {
  width: 80px;
}

.mp-recipe-editor .mp-row input[type="text"] {
  flex: 1;
  min-width: 120px;
}

.mp-recipe-editor .mp-ing-block {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--mp-border);
}

.mp-guide {
  margin: 0 0 1rem 0;
  padding: 0.85rem 1rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
}

.mp-guide summary {
  cursor: pointer;
  font-weight: 700;
  color: #115e59;
}

.mp-guide__body {
  margin-top: 0.75rem;
}

.mp-guide__intro,
.mp-guide__jump {
  margin: 0;
  color: #334155;
  font-size: 0.92rem;
}

.mp-guide__list {
  margin: 0.75rem 0;
  padding-left: 1.2rem;
  color: #334155;
}

.mp-guide__list li + li {
  margin-top: 0.4rem;
}

.mp-guide__jump a {
  color: var(--mp-accent-hover);
  text-decoration: none;
}

.mp-guide__jump a:hover {
  text-decoration: underline;
}

.mp-recipe-editor .mp-off-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: #475569;
}

.mp-recipe-editor .mp-off-row input[type="text"],
.mp-recipe-editor .mp-off-row input[type="number"] {
  max-width: 160px;
  width: auto;
}

.mp-recipe-editor .mp-off-row button.off-search-btn {
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  background: #64748b;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.mp-recipe-editor .mp-off-row button.off-search-btn:hover {
  background: #475569;
}

.mp-recipe-editor .mp-measure-preview {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: #0f766e;
}

.mp-recipe-editor .mp-measure-preview.is-active {
  display: block;
}

.mp-recipe-editor .mp-add {
  margin-top: 0.5rem;
}

.mp-recipe-editor .mp-add a,
.mp-recipe-editor .mp-add button {
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  color: var(--mp-accent);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

/* Import page */
.mp-import .mp-section {
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--mp-surface);
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-border);
  box-shadow: var(--mp-shadow);
}

.mp-import .mp-section h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.mp-import .mp-section p {
  margin: 0 0 0.75rem 0;
  font-size: 0.92rem;
  color: var(--mp-muted);
}

.mp-import .mp-form label {
  display: block;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.mp-import .mp-form input[type="text"],
.mp-import .mp-form input[type="file"],
.mp-import .mp-form textarea {
  padding: 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mp-import .mp-form textarea {
  min-height: 140px;
  font-family: inherit;
}

.mp-import .mp-form button.secondary {
  background: #64748b;
}

.mp-import .mp-form button.secondary:hover {
  background: #475569;
}

.mp-import .mp-results {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0;
}

.mp-import .mp-results li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--mp-border);
  flex-wrap: wrap;
}

.mp-import .mp-results img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}

.mp-import .mp-err {
  color: var(--mp-danger);
  margin: 0 0 0.75rem 0;
}

.mp-import .mp-inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.mp-import .mp-inline input[type="text"] {
  flex: 1;
  min-width: 160px;
}

/* Recipe: YouTube embed (16:9) */
.mp-youtube-wrap {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0.75rem 0 0 0;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-border);
  background: #0f172a;
}

.mp-youtube-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mp-acc-row {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0.65rem;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: 8px;
}

@media (min-width: 560px) {
  .mp-acc-row {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
  .mp-acc-row .mp-acc-select {
    grid-column: 1 / -1;
  }
}

/* Recipe editor: step + kitchen timer fields */
.mp-step-edit {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: var(--mp-surface);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
}

.mp-step-edit__grip {
  cursor: grab;
  user-select: none;
  flex-shrink: 0;
  padding: 0.2rem 0.15rem 0 0;
  line-height: 1.2;
  color: var(--mp-muted);
  font-size: 1.05rem;
}

.mp-step-edit__grip:active {
  cursor: grabbing;
}

.mp-step-edit--dragging {
  opacity: 0.88;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.mp-step-edit__inner {
  flex: 1;
  min-width: 0;
}

.mp-step-edit__main {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

@media (min-width: 560px) {
  .mp-step-edit__main {
    grid-template-columns: 1fr 2fr minmax(4rem, 5rem) minmax(4rem, 5rem);
    align-items: start;
  }
}

.mp-step-edit__timer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: flex-end;
}

.mp-step-edit__label {
  display: block;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mp-muted);
  margin-bottom: 0.15rem;
}

.mp-step-edit__compact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
  min-width: 7rem;
}

.mp-step-edit__compact span {
  color: var(--mp-muted);
  font-size: 0.75rem;
}

.mp-step-edit__compact input,
.mp-step-edit__compact select {
  font-size: 0.85rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--mp-border);
  max-width: 100%;
}

.mp-step-edit__hint {
  margin: 0.5rem 0 0 0;
  font-size: 0.8rem;
  color: var(--mp-muted);
  line-height: 1.45;
}

/* Per-viewer private notes on recipe steps (view page) */
.mp-step-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--mp-border);
}

.mp-step-note__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mp-muted);
  margin-bottom: 0.35rem;
}

.mp-step-note__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--mp-border);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 2.75rem;
}

.mp-step-note__save {
  margin-top: 0.45rem;
}

/* Kitchen cook session (recipe view) */
.mp-kitchen-timer-card {
  background: linear-gradient(160deg, rgba(13, 148, 136, 0.06), var(--mp-surface));
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 1rem 1.1rem 1.15rem;
}

.mp-kitchen-timer__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0 0.85rem 0;
}

.mp-kitchen-timer__sub {
  font-size: 0.95rem;
  margin: 0 0 0.35rem 0;
}

.mp-kitchen-timer__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--mp-text);
}

.mp-kitchen-timer__list li {
  margin-bottom: 0.35rem;
}

.mp-kitchen-timer__evt-time {
  font-variant-numeric: tabular-nums;
  color: var(--mp-accent);
  font-weight: 600;
}

.mp-kitchen-timer__evt-kind {
  font-size: 0.78rem;
  color: var(--mp-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mp-kitchen-timer__empty {
  list-style: none;
  margin-left: -1.2rem;
  color: var(--mp-muted);
  font-size: 0.9rem;
}
