*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf7f2;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-muted: #6b6b6b;
  --border: #e8e0d4;
  --accent: #c06830;
  --accent-hover: #a85528;
  --danger: #c03030;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Dark mode now controlled via body.dark-mode class, not media query */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

#logo {
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
}

.header-logo-combined {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 380px) {
  #logo { font-size: 1.1rem; gap: 6px; }
  .header-logo-combined { height: 32px; }
  .header-inner { padding: 10px 12px; }
  #btn-add { font-size: 0.8rem; padding: 6px 10px; white-space: nowrap; }
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary { background: linear-gradient(135deg, #38BB75 0%, #2DBCB6 100%); color: #fff; border: none; }
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #2ea566 0%, #26a8a1 100%); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { padding: 6px 14px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-icon {
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--text-muted); line-height: 1;
}

/* Auth Screen */
.auth-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-screen.hidden { display: none; }

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo h2 {
  font-size: 1.6rem;
  margin-top: 8px;
}
.auth-logo p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.auth-form input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
}
.auth-form .btn { margin-top: 8px; }

.auth-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.auth-error.hidden { display: none; }

.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-switch a {
  color: #38BB75;
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* Recipe Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 600px) {
  .recipe-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
  .recipe-grid { grid-template-columns: repeat(4, 1fr); }
}

.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
  box-shadow: var(--shadow);
}
.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--border);
  display: block;
}
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--text-muted);
}

.card-body { padding: 10px 10px; }
.card-body h3 { font-size: 0.82rem; margin-bottom: 4px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-importing { background: #fef3c7; color: #92400e; }
.badge-failed { background: #fee2e2; color: #991b1b; }
.badge-source { background: var(--border); color: var(--text-muted); }
.badge-private { background: #e8e0d4; color: #6b6b6b; }

/* Recipe Detail */
.recipe-detail { max-width: 800px; margin: 0 auto; }
.detail-photo {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.detail-video {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  background: #000;
}
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.detail-header h2 { font-size: 1.6rem; }
.detail-actions { display: flex; gap: 8px; flex-shrink: 0; }
.detail-macros {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.detail-section { margin-bottom: 24px; }
.detail-section h3 { margin-bottom: 10px; font-size: 1.1rem; }
.detail-section ul, .detail-section ol { padding-left: 20px; }
.detail-section li { margin-bottom: 6px; line-height: 1.5; }
.detail-link { color: var(--accent); text-decoration: none; font-size: 0.9rem; }
.detail-link:hover { text-decoration: underline; }
.back-btn { margin-bottom: 20px; display: inline-block; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-overlay.hidden { display: none; }
.hidden { display: none !important; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 20px 0;
}
.modal-body { padding: 20px; }
.modal-body label {
  display: block; margin-bottom: 14px; font-size: 0.85rem;
  font-weight: 600; color: var(--text-muted);
}
.modal-body input[type="text"],
.modal-body input[type="url"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body textarea {
  display: block; width: 100%; margin-top: 4px;
  padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.95rem;
  background: var(--bg); color: var(--text);
  font-family: inherit;
}
.modal-body textarea { resize: vertical; }
.row { display: flex; gap: 12px; }
.row > label { flex: 1; }

/* Checkbox label */
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 14px;
}
.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0 !important;
  cursor: pointer;
}

/* Import limit info */
.import-limit-info {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.import-limit-info.limit-reached {
  color: var(--danger);
  font-weight: 600;
}

.tabs {
  display: flex; padding: 12px 20px 0; gap: 4px;
}
.tab {
  border: none; background: none; padding: 8px 16px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  border-radius: 0;
}
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--text-muted);
}
.empty-state p { font-size: 1.1rem; margin-bottom: 16px; }

/* Loading spinner */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Label chips */
.label-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.5;
}
.label-chip-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.label-chip-instagram:hover { opacity: 0.85; }
.label-chip-airfryer { background: #fff3e0; color: #e65100; }
.label-chip-thermomix { background: #e8f5e9; color: #2e7d32; }
.label-chip-fitness { background: #e3f2fd; color: #1565c0; }
.label-chip-highprotein { background: #bbdefb; color: #1565c0; }
.label-chip-superhighprotein { background: #1565c0; color: #ffffff; }
.label-chip-lowcalorie { background: #c8e6c9; color: #2e7d32; }
.label-chip-superlowcalorie { background: #2e7d32; color: #ffffff; }
.label-chip-default { background: var(--border); color: var(--text-muted); }
.label-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* Label chip remove button */
.label-chip .label-remove {
  cursor: pointer;
  margin-left: 2px;
  font-size: 0.8rem;
  opacity: 0.7;
}
.label-chip .label-remove:hover { opacity: 1; }

/* Label filter bar */
.label-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  align-items: center;
}
.label-filter-bar .label-chip {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
  padding: 5px 12px;
  font-size: 0.75rem;
}
.label-filter-bar .label-chip.active { opacity: 1; box-shadow: 0 0 0 2px var(--accent); }
.label-filter-bar .label-chip:hover { opacity: 0.8; }

/* Label management on detail page */
.label-manager { margin-bottom: 20px; }
.label-manager-input {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}
.label-manager-input input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
}
.label-suggestions {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 150px;
  overflow-y: auto;
  z-index: 20;
  box-shadow: var(--shadow);
}
.label-suggestion {
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}
.label-suggestion:hover { background: var(--border); }

@media (prefers-color-scheme: dark) {
  .label-chip-airfryer { background: #4e2800; color: #ffb74d; }
  .label-chip-thermomix { background: #1b3e1f; color: #81c784; }
  .label-chip-fitness { background: #0d2137; color: #64b5f6; }
  .label-chip-highprotein { background: #1a3a5c; color: #90caf9; }
  .label-chip-superhighprotein { background: #1565c0; color: #ffffff; }
  .label-chip-lowcalorie { background: #1b3a20; color: #a5d6a7; }
  .label-chip-superlowcalorie { background: #2e7d32; color: #ffffff; }
  .auth-error { background: #3b1111; color: #f87171; }
  .badge-private { background: #3a3530; color: #9a9080; }
}

/* Nutrition table */
.nutrition-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}
.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 700px;
}
.nutrition-table th,
.nutrition-table td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}
.nutrition-table th:first-child,
.nutrition-table td:first-child {
  text-align: left;
}
.nutrition-table th:nth-child(2),
.nutrition-table td:nth-child(2) {
  text-align: left;
}
.nutrition-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-bottom: 2px solid var(--border);
}
.nutrition-table .per100-group-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.nutrition-table th:nth-child(7),
.nutrition-table td:nth-child(7) {
  border-left: 3px solid var(--border);
}
.nutrition-table .nutrition-total td {
  font-weight: 700;
  border-top: 2px solid var(--border);
}
.nutrition-table .nutrition-portion td {
  color: var(--text-muted);
  font-style: italic;
}

/* Carousel */
.carousel-container {
  position: relative;
  margin-bottom: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
}
.carousel-slide .detail-photo,
.carousel-slide .detail-video {
  margin-bottom: 0;
  border-radius: 0;
  width: 100%;
  display: block;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active {
  background: var(--accent);
}

/* Thumbnail star overlay */
.thumb-star {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  z-index: 2;
}
.thumb-star:hover { transform: scale(1.15); }
.thumb-star.active { color: #ffd700; }

/* Upload / carousel actions */
.carousel-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

/* KPI Cards */
.kpi-cards {
  display: flex; gap: 6px; margin: 10px 0 6px; flex-wrap: wrap;
}
.kpi-card {
  flex: 1; min-width: 60px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 5px; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.kpi-value { font-size: 1rem; font-weight: 700; color: #38BB75; }
.kpi-label { font-size: 0.6rem; color: var(--text-muted); margin-top: 1px; }
.kpi-portions { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-bottom: 8px; }

/* Avatar Menu */
.avatar-menu { position: relative; }
.avatar-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #38BB75 0%, #2DBCB6 100%);
  color: #fff; font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.avatar-btn:hover { transform: scale(1.08); }
.avatar-dropdown {
  position: absolute; top: 44px; right: 0; z-index: 100;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 220px; overflow: hidden;
}
.avatar-dropdown-header { padding: 14px 16px; }
.dropdown-name { display: block; font-weight: 600; color: var(--text); font-size: 0.95rem; }
.dropdown-email { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.avatar-dropdown-divider { height: 1px; background: var(--border); }
.avatar-dropdown-item {
  display: block; width: 100%; padding: 10px 16px;
  background: none; border: none; text-align: left;
  font-size: 0.9rem; color: var(--text); cursor: pointer;
  transition: background 0.15s;
}
.avatar-dropdown-item:hover { background: var(--bg); }
.avatar-dropdown-logout { color: var(--danger); }
.avatar-dropdown-logout:hover { background: #fff0f0; }

/* Theme toggle */
body.light-mode { }
body.dark-mode {
  --bg: #1a1816;
  --bg-card: #262320;
  --text: #e8e0d4;
  --text-muted: #9a9080;
  --border: #3a3530;
  --accent: #e08040;
  --accent-hover: #c06830;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Feedback success */
.feedback-success {
  color: #38BB75; font-weight: 600; text-align: center;
  padding: 12px; margin-bottom: 8px;
}

/* === Quick Import Tip === */
.quick-import-tip {
  margin-top: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.quick-import-tip summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.quick-import-tip summary:hover { color: var(--text); }
.tip-content {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.tip-content p { margin-bottom: 6px; }
.tip-content a { color: #2DBCB6; text-decoration: underline; }
.setup-steps { margin: 6px 0 12px 18px; font-size: 0.8rem; }
.setup-steps li { margin-bottom: 4px; }

/* === BOTTOM NAVIGATION === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-inner {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 56px;
  padding: 0 12px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 4px 16px;
  transition: color 0.15s;
}
.nav-item.active { color: #38BB75; }
.nav-item .nav-icon { width: 22px; height: 22px; }
.nav-item-add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38BB75, #2DBCB6);
  color: #fff;
  border: none;
  font-size: 1.7rem;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(56, 187, 117, 0.3);
  margin-top: -16px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-item-add:active {
  transform: scale(0.92);
  box-shadow: 0 2px 8px rgba(56, 187, 117, 0.2);
}

/* === COMMUNITY AUTHOR TAG === */
.recipe-author {
  font-size: 0.7rem;
  color: #2DBCB6;
  margin-top: 2px;
}
.recipe-author-detail {
  font-size: 0.85rem;
  color: #2DBCB6;
  font-weight: 500;
}

/* Body padding for bottom nav */
body.has-bottom-nav { padding-bottom: 72px; }

/* Import Preview */
.preview-thumb {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.preview-thumb img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  display: block;
}
.preview-title {
  font-size: 1.3rem;
  margin-bottom: 16px;
  line-height: 1.3;
}
.preview-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.preview-stat {
  flex: 1;
  min-width: 70px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.preview-stat-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #38BB75;
}
.preview-stat-lbl {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.import-preview-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.import-preview-actions .btn {
  flex: 1;
}

/* File Import Dropzone */
.file-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-dropzone:hover, .file-dropzone.dragover {
  border-color: #38BB75;
  background: rgba(56, 187, 117, 0.05);
}
.dropzone-icon { font-size: 2.5rem; margin-bottom: 8px; }
.dropzone-text { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.dropzone-hint { font-size: 0.8rem; color: var(--text-muted); }

.file-upload-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 40px 20px; color: var(--text-muted); font-size: 0.9rem;
}

/* Multi-recipe selection list */
.file-recipe-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.file-recipe-item:hover { background: var(--bg); }
.file-recipe-item input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: #38BB75;
}
.file-recipe-info { flex: 1; min-width: 0; }
.file-recipe-info strong {
  display: block; font-size: 0.9rem; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-recipe-meta {
  display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 2px;
}

@media (max-width: 600px) {
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 8px 12px; }
  main { padding: 8px 12px; }
}
