/* static/src/styles/base.css */
:root {
  --color-primary: #FF9F6D;
  --color-primary-hover: #F08A52;
  --color-accent: #B8A9E8;
  --color-accent-hover: #A494D8;
  --color-text-dark: #3D2817;
  --color-text-body: #555;
  --color-text-muted: #888;
  --color-bg-main: #FFFBF7;
  --color-bg-white: #fff;
  --color-cream: #FFF5EC;
  --color-dark-brown: #3D2817;
  --color-border: #E8DDD4;
  --color-border-light: #F0EBE6;
  --color-green: #4CAF50;
  --color-green-light: #E8F5E9;
  --color-timing-active-bg: #fef3c7;
  --color-timing-active-text: #92400e;
  --color-timing-passive-bg: #dbeafe;
  --color-timing-passive-text: #1e40af;
  --color-danger: #dc2626;
  --font-display:
    "Nunito",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  --font-body:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  --container-max: 1200px;
  --container-padding: 1rem;
}
@media (min-width: 768px) {
  :root {
    --container-padding: 1.5rem;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-bg-main);
  font-size: 16px;
}
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--color-text-dark);
  line-height: 1.3;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.material-icons {
  font-family: "Material Icons";
  font-weight: 400;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}
.material-icons.icon-sm {
  font-size: 1rem;
}
.material-icons.icon-lg {
  font-size: 1.5rem;
}
.btn .material-icons {
  margin-right: 0.4rem;
  font-size: 1rem;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  z-index: 999;
  font-family: var(--font-body);
}
.skip-link:focus {
  top: 0;
}
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* static/src/styles/layout.css */
header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text-dark);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-dark);
  padding: 0.25rem;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-search-bar {
  display: flex;
  flex: 1;
  align-items: center;
  max-width: 320px;
}
.nav-search-bar #search-input {
  width: 100%;
}
.nav-user-menu {
  position: relative;
}
.nav-user-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
  font-size: 0.875rem;
}
.nav-user-btn:hover {
  background-color: var(--color-bg-light);
}
.nav-user-label {
  display: none;
}
.nav-user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 0.75rem;
  margin-top: 0.5rem;
  z-index: 200;
  min-width: 200px;
}
.nav-user-dropdown.open {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-user-email {
  padding: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-user-account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: background-color 0.2s;
  font-size: 0.875rem;
}
.nav-user-account:hover {
  background-color: var(--color-bg-light);
}
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
    align-items: center;
  }
  .logo {
    display: none;
  }
  .nav-search-bar {
    max-width: none;
  }
  .nav-actions {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem var(--container-padding);
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 99;
  }
  .nav-actions.open {
    display: flex;
  }
  .nav-actions .btn {
    justify-content: center;
  }
  .nav-user-label {
    display: inline;
  }
  .nav-user-dropdown {
    position: fixed;
    top: auto;
    right: auto;
    left: 0;
    bottom: 0;
    width: 100%;
    border-radius: 0;
    margin-top: 0;
    max-height: none;
    border: none;
    box-shadow: none;
  }
  nav {
    position: relative;
  }
}
main {
  max-width: var(--container-max);
  margin: 1.5rem auto;
  padding: 0 var(--container-padding);
}
@media (min-width: 768px) {
  main {
    margin: 2rem auto;
  }
}
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .recipe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.recipe-grid:empty {
  display: block;
}
#list-loading {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 0;
}
.pagination-info {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-white);
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-body);
}
.pagination-btn:hover:not(:disabled):not(.pagination-btn--active) {
  background: var(--color-cream);
  border-color: var(--color-primary);
}
.pagination-btn--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 600;
  cursor: default;
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-btn .material-icons {
  font-size: 1rem;
}
.pagination-ellipsis {
  padding: 0.4rem 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
@media (max-width: 480px) {
  .pagination-nav {
    gap: 0.15rem;
  }
  .pagination-btn {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }
}
.loading {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}
.error {
  color: var(--color-danger);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-body);
}
.empty-state h2 {
  margin-bottom: 0.5rem;
}

/* static/src/styles/forms.css */
#search-input {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.9rem;
  width: 180px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
#search-input:focus {
  border-color: var(--color-primary);
  outline: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-white);
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover {
  background: var(--color-cream);
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 159, 109, 0.4);
}
.btn-danger {
  color: var(--color-danger);
  border-color: var(--color-danger);
}
.btn-danger:hover {
  background: #fef2f2;
}
.btn-small {
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}
.btn[disabled],
.btn-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.filters-container {
  margin-bottom: 1.5rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
  background: var(--color-bg-white);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}
.filter-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--color-bg-white);
  cursor: pointer;
  min-width: 150px;
  transition: border-color 0.2s;
}
.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
}
.recipe-edit-form {
  max-width: 720px;
  margin-top: 1.5rem;
}
.recipe-edit-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  margin-top: 1.25rem;
  color: var(--color-text-dark);
}
.recipe-edit-form label:first-child {
  margin-top: 0;
}
.recipe-edit-form .required {
  color: var(--color-danger);
}
.recipe-edit-form .hint {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-text-body);
}
.recipe-edit-form input[type=text],
.recipe-edit-form input[type=url],
.recipe-edit-form input[type=number],
.recipe-edit-form textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--color-bg-white);
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.recipe-edit-form input:focus,
.recipe-edit-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.recipe-edit-form textarea {
  resize: vertical;
}
.recipe-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.recipe-edit-row label {
  margin-top: 0;
}
.json-editor {
  font-family:
    "SF Mono",
    "Fira Code",
    "Fira Mono",
    Menlo,
    Consolas,
    monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  min-height: 300px;
  tab-size: 2;
  white-space: pre;
}
.mono-textarea {
  font-family:
    "SF Mono",
    "Fira Code",
    "Fira Mono",
    Menlo,
    Consolas,
    monospace;
  font-size: 0.85rem;
}
.json-error {
  color: var(--color-danger);
  font-size: 0.82rem;
  margin-top: 0.35rem;
  min-height: 1.2em;
}
.recipe-edit-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.image-manager {
  margin-top: 0.25rem;
}
.image-manager-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.image-thumb-card {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.image-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  padding: 0;
}
.image-thumb-remove .material-icons {
  font-size: 1rem;
}
.image-thumb-card:hover .image-thumb-remove {
  opacity: 1;
}
.image-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px dashed var(--color-border);
  border-radius: 10px;
  color: var(--color-text-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--color-bg-main);
}
.image-drop-zone:hover {
  border-color: var(--color-primary);
  background: var(--color-cream);
}
.image-drop-zone.dragover {
  border-color: var(--color-primary);
  background: var(--color-cream);
  box-shadow: 0 0 0 3px rgba(255, 159, 109, 0.2);
}
.image-drop-zone.uploading {
  opacity: 0.6;
  pointer-events: none;
}
.image-upload-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.image-uploading {
  color: var(--color-text-body);
}
.image-upload-error {
  color: var(--color-danger);
}
@media (max-width: 600px) {
  .recipe-edit-row {
    grid-template-columns: 1fr;
  }
  .image-thumb-card {
    width: 100px;
    height: 100px;
  }
  .image-thumb-remove {
    opacity: 1;
  }
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* static/src/styles/recipe-card.css */
.recipe-card {
  background: var(--color-bg-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.recipe-card:hover {
  box-shadow: 0 8px 24px rgba(61, 40, 23, 0.12);
  transform: translateY(-2px);
}
.recipe-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.recipe-card-img.placeholder {
  background: var(--color-border-light);
}
.recipe-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.recipe-card-body h3 {
  font-size: 1.1rem;
}
.recipe-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.recipe-card-rating {
  color: var(--color-primary);
  letter-spacing: -1px;
}
.recipe-card-cooked {
  color: var(--color-green);
  font-weight: 500;
}
.recipe-card.placeholder-card {
  background: transparent;
  border: none;
  pointer-events: none;
}

/* static/src/styles/recipe-detail.css */
.recipe-detail {
  background: var(--color-bg-white);
  border-radius: 0;
  border: none;
  padding: 1.25rem;
}
@media (min-width: 768px) {
  .recipe-detail {
    border-radius: 16px;
    border: 1px solid var(--color-border);
    padding: 2rem;
  }
}
.recipe-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.back-link {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--color-primary-hover);
}
.recipe-detail-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  position: relative;
}
.actions-toggle {
  display: none;
}
.actions-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
@media (max-width: 767px) {
  .actions-toggle {
    display: inline-flex;
  }
  .actions-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.5rem;
    gap: 0.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 50;
    min-width: 160px;
  }
  .recipe-detail-actions.open .actions-menu {
    display: flex;
  }
  .actions-menu .btn {
    justify-content: flex-start;
    width: 100%;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
  }
  .actions-menu .btn:hover {
    background: var(--color-cream);
  }
  .actions-menu .btn-share {
    border: none;
  }
  .actions-menu .btn-danger {
    border: none;
  }
}
.schedule-toast {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-green);
  padding: 0.25rem 0.5rem;
  background: var(--color-green-light);
  border-radius: 6px;
  animation: toast-fade 2.5s ease forwards;
}
@keyframes toast-fade {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
.recipe-hero {
  margin: 0 calc(-1 * var(--container-padding)) 1.5rem;
  overflow: hidden;
}
@media (min-width: 768px) {
  .recipe-hero {
    margin: 0 0 1.5rem;
    border-radius: 12px;
  }
}
.recipe-detail-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
}
.recipe-hero:hover .recipe-detail-img {
  transform: scale(1.02);
}
.recipe-gallery {
  margin-bottom: 1.5rem;
}
.recipe-gallery:empty {
  display: none;
}
.recipe-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.recipe-gallery-thumb {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}
.recipe-gallery-thumb:hover {
  opacity: 1;
}
.recipe-gallery-thumb.active {
  border-color: var(--color-primary);
  opacity: 1;
}
.recipe-detail h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .recipe-detail h1 {
    font-size: 2.25rem;
  }
}
.recipe-description {
  color: var(--color-text-body);
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.8;
}
.recipe-description-wrap {
  margin-bottom: 1rem;
}
@media (max-width: 1023px) {
  .recipe-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .recipe-description-wrap.expanded .recipe-description {
    display: block;
  }
}
.recipe-desc-toggle {
  display: none;
}
@media (max-width: 1023px) {
  .recipe-desc-toggle {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    font-family: var(--font-body);
  }
  .recipe-desc-toggle:hover {
    color: var(--color-primary-hover);
  }
}
.recipe-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
@media (min-width: 1024px) {
  .recipe-detail-grid {
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
  }
}
.recipe-detail-main {
  min-width: 0;
}
.recipe-detail-sidebar {
  order: 1;
}
@media (min-width: 1024px) {
  .recipe-detail-sidebar {
    order: 0;
    position: sticky;
    top: 5rem;
    align-self: start;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
  }
}
.recipe-meta-card {
  background: var(--color-cream);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
}
.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.meta-item:last-child {
  border-bottom: none;
}
.meta-label {
  color: var(--color-text-muted);
  font-weight: 500;
}
.meta-value {
  color: var(--color-text-dark);
  font-weight: 700;
  font-family: var(--font-display);
}
.recipe-source {
  font-size: 0.85rem;
  margin-top: 1rem;
}
.recipe-source a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.2s;
}
.recipe-source a:hover {
  color: var(--color-primary-hover);
}
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-body);
  margin-bottom: 1rem;
}
.recipe-section {
  margin-top: 2rem;
}
.recipe-section h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-dark);
}
.ingredient-list {
  list-style: none;
  padding: 0;
}
.ingredient-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
}
.ingredient-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-bg-white);
  transition: all 0.2s ease;
}
.ingredient-item:hover .ingredient-check {
  background: var(--color-green-light);
}
.ingredient-checkmark {
  display: none;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
}
.ingredient-item.completed .ingredient-check {
  background: var(--color-green);
  border-color: var(--color-green);
  animation: checkBounce 0.3s ease;
}
.ingredient-item.completed .ingredient-checkmark {
  display: block;
}
.ingredient-text {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  flex-wrap: wrap;
  transition: opacity 0.25s ease;
}
.ingredient-item.completed .ingredient-text {
  opacity: 0.4;
  text-decoration: line-through;
}
.ingredient-amount {
  font-weight: 700;
  color: var(--color-text-dark);
}
.ingredient-unit {
  color: var(--color-text-body);
}
.ingredient-name {
  color: var(--color-text-body);
}
.ingredient-group-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.ingredient-group-header:first-child {
  margin-top: 0;
}
@media (min-width: 768px) {
  .ingredient-list--two-col {
    columns: 2;
    column-gap: 2rem;
  }
  .ingredient-list--two-col .ingredient-item {
    break-inside: avoid;
  }
}
.scale-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-body);
  flex-wrap: wrap;
}
.scale-btn {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  background: var(--color-bg-white);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  transition: all 0.2s ease;
}
.scale-btn:hover {
  background: var(--color-cream);
  border-color: var(--color-primary);
}
.scale-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.scale-divider {
  color: var(--color-border);
  margin: 0 0.25rem;
}
.scale-custom-input {
  width: 5rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  background: var(--color-bg-white);
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--color-text-body);
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
}
.scale-custom-input:focus {
  border-color: var(--color-primary);
}
.scale-custom-input::placeholder {
  color: var(--color-text-muted);
}
.recipe-variant-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-cream);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}
.recipe-variant-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-dark);
  white-space: nowrap;
}
.recipe-variant-tabs {
  display: flex;
  gap: 0.5rem;
}
.recipe-variant-tab {
  padding: 0.4rem 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: 99px;
  background: var(--color-bg-white);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text-body);
  transition: all 0.2s ease;
}
.recipe-variant-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-text-dark);
}
.recipe-variant-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.variant-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}
.variant-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
}
.variant-tab:hover {
  color: var(--color-text-dark);
}
.variant-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--color-cream);
  border-radius: 99px;
  font-size: 0.75rem;
  color: var(--color-text-dark);
  border: 1px solid var(--color-border);
}
.tag-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}
.tag-clickable:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.related-recipes-section {
  background: var(--color-dark-brown);
  margin: 3rem -1.25rem -1.25rem -1.25rem;
  padding: 2.5rem 1.25rem;
}
@media (min-width: 768px) {
  .related-recipes-section {
    margin: 3rem -2rem -2rem -2rem;
    padding: 3rem 2rem;
    border-radius: 0 0 16px 16px;
  }
}
.related-heading {
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: none;
  padding-bottom: 0;
}
.related-subtext {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
.related-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}
.related-card:hover {
  transform: translateY(-3px);
}
.related-card-img-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.related-card:hover .related-card-img-wrap {
  border-color: var(--color-primary);
  transform: scale(1.05);
}
.related-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-img.placeholder {
  background: rgba(255, 255, 255, 0.1);
}
.related-card-title {
  color: var(--color-cream);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}
.btn-share {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-share:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
#ingredients-section,
#steps-section {
  transition: opacity 0.15s ease;
}
.recipe-rating-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  flex-wrap: wrap;
}
.rating-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rating-stars {
  display: inline-flex;
  gap: 0.1rem;
}
.rating-star {
  background: none;
  border: none;
  padding: 0.15rem;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
}
.rating-star i {
  font-size: 1.5rem;
}
.rating-star:hover {
  transform: scale(1.15);
}
.rating-star.filled {
  color: var(--color-primary);
}
.rating-star:hover,
.rating-star:hover ~ .rating-star {
  color: var(--color-text-muted);
}
.rating-stars:hover .rating-star {
  color: var(--color-primary);
}
.rating-stars:hover .rating-star:hover ~ .rating-star {
  color: var(--color-text-muted);
}
.cooked-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-cooked {
  background: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}
.btn-cooked:hover {
  background: #43a047;
  border-color: #43a047;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}
.cooked-info {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.meta-tabs {
  display: flex;
  gap: 0.25rem;
  margin: -0.5rem -0.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.meta-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease;
}
.meta-tab:hover {
  color: var(--color-text-dark);
}
.meta-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.nutrition-card-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.nutrition-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  background: var(--color-bg-white);
  border-radius: 8px;
  border: 1px solid var(--color-border-light);
}
.nutrition-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
}
.nutrition-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}
.nutrition-card-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  text-align: center;
  font-style: italic;
}
.recipe-notes {
  color: var(--color-text-body);
  line-height: 1.7;
}
.recipe-notes > *:first-child {
  margin-top: 0;
}
.recipe-notes > *:last-child {
  margin-bottom: 0;
}
.recipe-notes p {
  margin: 0.75rem 0;
}
.recipe-notes strong {
  color: var(--color-text-dark);
}
.recipe-notes ul,
.recipe-notes ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}
.recipe-notes li {
  margin: 0.25rem 0;
}
.recipe-notes a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.recipe-notes a:hover {
  color: var(--color-primary-dark);
}
.recipe-notes code {
  font-size: 0.88em;
  background: var(--color-cream);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--color-border-light);
}
.recipe-notes pre {
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}
.recipe-notes pre code {
  background: none;
  border: none;
  padding: 0;
}
.recipe-notes table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
.recipe-notes th,
.recipe-notes td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}
.recipe-notes th {
  background: var(--color-cream);
  font-weight: 600;
  color: var(--color-text-dark);
}
.recipe-notes tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}
.recipe-notes blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--color-primary);
  background: var(--color-cream);
  border-radius: 0 8px 8px 0;
}
.recipe-notes hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1rem 0;
}
@media (max-width: 480px) {
  .recipe-notes table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* static/src/styles/steps.css */
.step-timeline {
  position: relative;
  padding-left: 0;
}
.step-card {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  position: relative;
  align-items: start;
}
.step-connector {
  position: absolute;
  left: 1.5rem;
  top: 3.5rem;
  bottom: -0.25rem;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}
.step-card:last-child .step-connector {
  display: none;
}
.step-check {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--color-bg-white);
  z-index: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.step-check:hover {
  background: var(--color-green-light);
}
.step-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-green);
}
.step-checkmark {
  display: none;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}
.step-card.completed .step-check {
  background: var(--color-green);
  border-color: var(--color-green);
}
.step-card.completed .step-number {
  display: none;
}
.step-card.completed .step-checkmark {
  display: block;
}
@keyframes checkBounce {
  0% {
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.step-card.completed .step-check {
  animation: checkBounce 0.3s ease;
}
.step-content {
  padding-top: 0.5rem;
  max-height: 800px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.step-card.completed .step-content {
  max-height: 1.6em;
  opacity: 0.4;
}
.step-card.completed .step-text {
  text-decoration: line-through;
}
.step-text {
  line-height: 1.7;
  color: var(--color-text-body);
}
.step-group-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.step-group-header:first-child {
  margin-top: 0;
}
.step-timing {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  margin-left: 0.4rem;
  border-radius: 99px;
  background: var(--color-timing-active-bg);
  color: var(--color-timing-active-text);
  vertical-align: middle;
}
.step-timing.passive {
  background: var(--color-timing-passive-bg);
  color: var(--color-timing-passive-text);
}
.step-note {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.25rem;
}
.ingredient-ref {
  font-weight: 600;
  color: var(--color-primary);
}
@media (max-width: 767px) {
  .step-card {
    grid-template-columns: 2.25rem 1fr;
    gap: 0.5rem;
  }
  .step-check {
    width: 2.25rem;
    height: 2.25rem;
  }
  .step-number {
    font-size: 0.75rem;
  }
  .step-connector {
    left: 1.125rem;
    top: 2.75rem;
  }
  .step-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  .step-content {
    padding-top: 0.25rem;
  }
}

/* static/src/styles/timeline.css */
.timeline-section {
  margin-top: 2rem;
}
.timeline-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-dark);
}
.timeline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.timeline-chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.timeline-chip--total {
  background: var(--color-border-light);
  color: var(--color-text-dark);
}
.timeline-chip--active {
  background: var(--color-timing-active-bg);
  color: var(--color-timing-active-text);
}
.timeline-chip--passive {
  background: var(--color-timing-passive-bg);
  color: var(--color-timing-passive-text);
}
.timeline-chart {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.5rem 0;
}
.timeline-group-header {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--color-border-light);
}
.timeline-group-header:first-child {
  margin-top: 0;
}
.timeline-row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.5rem;
  align-items: center;
  cursor: pointer;
}
.timeline-row:hover .timeline-bar {
  filter: brightness(0.92);
}
.timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline-track {
  position: relative;
  height: 1.75rem;
  background: var(--color-border-light);
  border-radius: 6px;
  overflow: hidden;
}
.timeline-bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  transition: filter 0.15s ease;
}
.timeline-bar--active {
  background: var(--color-timing-active-bg);
  border: 1px solid rgba(30, 64, 175, 0.3);
}
.timeline-bar--passive {
  background: var(--color-timing-passive-bg);
  border: 1px solid rgba(146, 64, 14, 0.3);
  opacity: 0.85;
}
.timeline-bar--idle {
  background: transparent;
  border: 1px dashed var(--color-border);
}
.timeline-row--idle {
  cursor: default;
}
.timeline-row--idle:hover .timeline-bar {
  filter: none;
}
.timeline-label--idle {
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-muted);
  opacity: 0.7;
}
.timeline-bar-text {
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-text-dark);
}
.timeline-row--idle .timeline-bar-text {
  color: var(--color-text-muted);
  font-weight: 500;
}
.timeline-legend {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  color: var(--color-text-body);
}
.timeline-legend-active::before,
.timeline-legend-passive::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.timeline-legend-active::before {
  background: var(--color-timing-active-bg);
  border: 1px solid rgba(30, 64, 175, 0.3);
}
.timeline-legend-passive::before {
  background: var(--color-timing-passive-bg);
  border: 1px solid rgba(146, 64, 14, 0.3);
}
.timeline-row--completed .timeline-bar {
  opacity: 0.4;
}
.timeline-row--completed .timeline-bar::after {
  content: "\2713";
  position: absolute;
  right: 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-dark);
}
.timeline-row--completed .timeline-label {
  text-decoration: line-through;
  opacity: 0.5;
}
@keyframes step-highlight {
  0% {
    box-shadow: 0 0 0 3px var(--color-primary);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.step-card--highlight {
  animation: step-highlight 1.5s ease-out;
}
.timeline-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.timeline-controls label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--color-text-body);
}
.timeline-controls input[type=time] {
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.85rem;
  background: var(--color-bg-white);
}
.mp-timeline-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
  flex-shrink: 0;
  vertical-align: middle;
}
.mp-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-body);
}
.mp-timeline-legend-item {
  display: flex;
  align-items: center;
  gap: 0;
}
.mp-timeline-recipe-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  color: #fff;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.mp-timeline-color-0 {
  background: #3b82f6;
}
.mp-timeline-color-1 {
  background: #ef4444;
}
.mp-timeline-color-2 {
  background: #10b981;
}
.mp-timeline-color-3 {
  background: #f59e0b;
}
.mp-timeline-color-4 {
  background: #8b5cf6;
}
.mp-timeline-color-5 {
  background: #ec4899;
}
.mp-gantt {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.5rem 0;
}
.mp-gantt-track {
  position: relative;
  height: 2rem;
}
.mp-gantt-bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  min-width: 3rem;
  overflow: hidden;
  color: #fff;
  font-size: 0.75rem;
  cursor: default;
  box-sizing: border-box;
}
.mp-gantt-color-0 {
  background: #3b82f6;
}
.mp-gantt-color-1 {
  background: #ef4444;
}
.mp-gantt-color-2 {
  background: #10b981;
}
.mp-gantt-color-3 {
  background: #f59e0b;
  color: #1a1a1a;
}
.mp-gantt-color-4 {
  background: #8b5cf6;
}
.mp-gantt-color-5 {
  background: #ec4899;
}
.mp-gantt-bar--passive {
  opacity: 0.6;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
}
.mp-gantt-bar--idle {
  background: transparent;
  border: 1.5px dashed var(--color-border);
  color: var(--color-text-muted);
}
.mp-gantt-bar-label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.mp-gantt-bar-dur {
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 0.5rem;
  font-size: 0.7rem;
  opacity: 0.9;
}
.mp-timeline-step-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mp-timeline-step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: var(--color-bg-white);
  border-left: 4px solid var(--color-border);
}
.mp-timeline-step-card .step-meta {
  flex: 1;
  min-width: 0;
}
.mp-timeline-step-card .step-meta .step-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-dark);
}
.mp-timeline-step-card .step-meta .step-text {
  font-size: 0.8rem;
  color: var(--color-text-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-timeline-idle-divider {
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
}
#mp-timeline-container {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--color-cream);
  border-radius: 8px;
}
#mp-timeline-container h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.mp-timeline-mobile {
  display: none;
}
@media (max-width: 767px) {
  .timeline-chart {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .timeline-chart > * {
    min-width: 20rem;
  }
  .timeline-summary {
    flex-shrink: 0;
  }
  .mp-timeline-desktop {
    display: none;
  }
  .mp-timeline-mobile {
    display: block;
  }
}

/* static/src/styles/meal-plans.css */
.meal-plan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.meal-plan-header h1 {
  font-size: 1.5rem;
}
.meal-plan-thumbs {
  display: flex;
  height: 140px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}
.meal-plan-thumb {
  flex: 1;
  min-width: 0;
  object-fit: cover;
  height: 100%;
}
.meal-plan-thumb.placeholder {
  background: var(--color-border-light);
}
.mp-editor {
  margin-top: 1.5rem;
}
.mp-editor label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  margin-top: 1.25rem;
}
.mp-editor label:first-child {
  margin-top: 0;
}
.mp-name-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.label-hint {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
.mp-notes-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  resize: vertical;
}
.mp-search-container {
  position: relative;
}
.mp-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.mp-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 50;
}
.mp-search-results:empty {
  display: none;
}
.mp-search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.mp-search-result:hover {
  background: var(--color-cream);
}
.mp-search-result.disabled {
  opacity: 0.5;
  cursor: default;
}
.mp-search-result.disabled:hover {
  background: none;
}
.mp-search-result-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.mp-search-result-thumb.placeholder {
  background: var(--color-border-light);
}
.mp-search-added {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.mp-search-empty {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}
.mp-selected-recipes {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mp-selected-recipe {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.mp-selected-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.mp-selected-thumb.placeholder {
  background: var(--color-border-light);
}
.mp-selected-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}
.mp-empty-hint {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  padding: 1rem 0;
}
.mp-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.mp-tab-bar {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mp-tab-bar::-webkit-scrollbar {
  display: none;
}
.mp-tab-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: 6px 6px 0 0;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.mp-tab-btn:hover {
  color: var(--color-text-dark);
  background: var(--color-cream);
}
.mp-tab-btn.active {
  color: var(--color-primary-hover);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

/* static/src/styles/calendar.css */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.cal-header h1 {
  font-size: 1.5rem;
}
.cal-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cal-title {
  font-weight: 600;
  font-size: 1rem;
  min-width: 180px;
  text-align: center;
}
.cal-view-toggle {
  display: flex;
  gap: 0.25rem;
}
.cal-view-toggle .btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-white);
}
.cal-day-header {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}
.cal-day {
  min-height: 110px;
  padding: 0.4rem;
  border-right: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
}
.cal-day:nth-child(7n+14) {
  border-right: none;
}
.cal-day--today {
  background: var(--color-cream);
}
.cal-day--outside {
  background: var(--color-bg-main);
  opacity: 0.5;
}
.cal-day-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.15rem;
}
.cal-day--today .cal-day-number {
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cal-event {
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.72rem;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  overflow: hidden;
  white-space: nowrap;
}
.cal-event--recipe {
  background: var(--color-timing-active-bg);
  color: var(--color-timing-active-text);
}
.cal-event--meal-plan {
  background: var(--color-accent);
  color: #fff;
}
.cal-event-label-text {
  font-weight: 500;
  flex-shrink: 0;
}
.cal-event-link {
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.cal-event-link:hover {
  text-decoration: underline;
}
.cal-event-edit {
  flex-shrink: 0;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.cal-event:hover .cal-event-edit {
  opacity: 0.7;
}
.cal-event-edit:hover {
  opacity: 1 !important;
}
.cal-event-edit .material-icons {
  font-size: 0.8rem;
}
.cal-add-btn {
  margin-top: auto;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0.15rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.cal-day:hover .cal-add-btn {
  opacity: 1;
}
.cal-add-btn:hover {
  background: var(--color-cream);
  color: var(--color-primary);
}
.cal-type-toggle {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.cal-type-toggle .btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.cal-selected-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-top: 0.5rem;
}
.cal-selected-item-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.cal-selected-item-thumb.placeholder {
  background: var(--color-border-light);
}
.cal-selected-item-title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}
.today-schedule {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.today-schedule-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}
.today-schedule-events {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.today-event {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: opacity 0.15s;
}
.today-event:hover {
  opacity: 0.8;
}
.today-event--recipe {
  background: var(--color-timing-active-bg);
  color: var(--color-timing-active-text);
}
.today-event--meal-plan {
  background: var(--color-accent);
  color: #fff;
}
.today-event-label {
  font-weight: 600;
}
.today-event-label::after {
  content: ":";
  margin-right: 0.15rem;
}
.today-event-title {
  font-weight: 500;
}
@media (max-width: 600px) {
  .cal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .cal-week {
    grid-template-columns: 1fr;
  }
  .cal-week .cal-day-header {
    display: none;
  }
  .cal-week .cal-day {
    min-height: auto;
    border-right: none;
    padding: 0.75rem 0.5rem;
  }
  .cal-week .cal-day::before {
    content: attr(data-day-label);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
  }
  .cal-month-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cal-month {
    min-width: 600px;
  }
  .cal-month .cal-day {
    min-height: 80px;
  }
  .cal-event-edit {
    opacity: 0.6;
  }
}

/* static/src/styles/modal.css */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 301;
  opacity: 0.7;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close .material-icons {
  font-size: 2rem;
}
.lightbox-close:hover {
  opacity: 1;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  z-index: 301;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-prev .material-icons,
.lightbox-next .material-icons {
  font-size: 2rem;
}
.lightbox-prev {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal {
  background: var(--color-bg-white);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 480px;
}
.modal h2 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
}
.modal label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.modal input[type=url],
.modal input[type=text],
.modal input[type=date] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--color-bg-white);
  transition: border-color 0.2s;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.modal input[type=url]:focus,
.modal input[type=text]:focus,
.modal input[type=date]:focus {
  outline: none;
  border-color: var(--color-primary);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.import-modal {
  max-width: 560px;
}
.import-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}
.import-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-text-body);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.import-tab:hover {
  color: var(--color-text-dark);
}
.import-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 500;
}
.import-textarea {
  width: 100%;
  min-height: 200px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 1rem;
}
.import-photo-hint {
  font-size: 0.85rem;
  color: var(--color-text-body);
  margin-bottom: 0.5rem;
}
.import-photo-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 2px dashed var(--color-border);
  border-radius: 10px;
  color: var(--color-text-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--color-bg-main);
}
.import-photo-zone:hover {
  border-color: var(--color-primary);
  background: var(--color-cream);
}
.import-photo-zone.dragover {
  border-color: var(--color-primary);
  background: var(--color-cream);
  box-shadow: 0 0 0 3px rgba(255, 159, 109, 0.2);
}
.import-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.import-photo-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.import-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.import-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.import-photo-remove .material-icons {
  font-size: 0.85rem;
}
.import-photo-thumb:hover .import-photo-remove {
  opacity: 1;
}
.import-photo-count {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}
@media (max-width: 600px) {
  .import-photo-remove {
    opacity: 1;
  }
}

/* static/src/styles/timer.css */
#timer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--color-text-dark);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  display: none;
}
@supports (padding: env(safe-area-inset-bottom)) {
  #timer-bar {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
.timer-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.5rem var(--container-padding);
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.timer-bar-inner::-webkit-scrollbar {
  display: none;
}
.timer-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.6rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-body);
  white-space: nowrap;
  flex-shrink: 0;
}
.timer-pill-label {
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.timer-pill-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.timer-pill-cancel {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.timer-pill-cancel:hover {
  color: #fff;
}
.timer-pill--done {
  background: var(--color-green);
  animation: timerPulse 1s ease-in-out 3;
}
@keyframes timerPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
  }
}
body.has-active-timers {
  padding-bottom: 3.5rem;
}
@supports (padding: env(safe-area-inset-bottom)) {
  body.has-active-timers {
    padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
  }
}
.is-offline #timer-bar {
  bottom: 2rem;
}
.step-timer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 99px;
  background: var(--color-bg-white);
  color: var(--color-text-body);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  margin-left: 0.4rem;
  vertical-align: middle;
  transition: all 0.2s;
}
.step-timer-btn:hover {
  background: var(--color-cream);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.step-timer-btn .material-icons {
  font-size: 0.85rem;
}
.step-timer-btn--active {
  background: var(--color-green-light, #e8f5e9);
  border-color: var(--color-green);
  color: var(--color-green);
  pointer-events: none;
}
@media print {
  #timer-bar {
    display: none !important;
  }
  .step-timer-btn {
    display: none !important;
  }
}

/* static/src/styles/account.css */
.account-section {
  max-width: 600px;
  margin-bottom: 2.5rem;
}
.account-section h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}
.account-email {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-text);
}
.account-logout-btn {
  display: inline-flex;
}
.notif-card {
  max-width: 600px;
}
.notif-section {
  margin-bottom: 2rem;
}
.notif-section h3 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.notif-status {
  margin: 0 0 0.75rem;
  color: var(--color-text-body);
}
.notif-status--enabled {
  color: var(--color-success, #10b981);
}
.notif-empty {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.notif-device-list,
.notif-target-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.notif-device-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.notif-device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
}
.notif-device-dot.active {
  background: var(--color-success, #10b981);
}
.notif-device-name {
  flex: 1;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-card);
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: inherit;
}
.notif-device-name:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.notif-target-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text);
}
#notif-error {
  margin-top: 0.75rem;
}

/* static/src/styles/print.css */
@media print {
  header,
  .recipe-detail-header,
  .recipe-detail-actions,
  .scale-controls,
  .recipe-variant-selector,
  .variant-tabs,
  .related-recipes-section,
  .timeline-section,
  .back-link,
  .tag-clickable,
  .step-check,
  .step-connector,
  #modal-root,
  .skip-link,
  .nav-actions,
  .btn-share,
  .recipe-gallery-thumbs {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
    line-height: 1.5;
  }
  .recipe-detail {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .recipe-detail-grid {
    display: block !important;
  }
  .recipe-meta-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
    page-break-inside: avoid;
  }
  .recipe-hero,
  .recipe-detail-img {
    max-height: 250px;
  }
  .step-card {
    grid-template-columns: 1.5rem 1fr;
    page-break-inside: avoid;
  }
  .step-card::before {
    content: counter(step-print) ".";
    counter-increment: step-print;
    font-weight: 700;
  }
  .step-timeline {
    counter-reset: step-print;
  }
  a[href]::after {
    content: none;
  }
}

/* static/src/styles/pwa.css */
.offline-indicator {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-text-dark);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10000;
  font-family: var(--font-body);
}
.update-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10000;
  font-family: var(--font-body);
}
.update-banner button {
  background: #fff;
  color: var(--color-primary);
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  margin-left: 0.5rem;
  font-weight: 700;
  cursor: pointer;
}
.is-offline #import-btn,
.is-offline .btn-danger,
.is-offline [onclick*=delete],
.is-offline .mp-add-btn {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}
@supports (padding: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* static/src/styles/index.css */
