:root {
  --bg: #FFFBEB;
  --surface: #ffffff;
  --text: #0F172A;
  --muted: #78716C;
  --primary: #9A3412;
  --primary-dark: #7C2D12;
  --on-primary: #ffffff;
  --accent: #059669;
  --accent-dark: #047857;
  --danger: #DC2626;
  --border: #F2E6E2;
  --shadow-sm: 0 1px 2px rgba(41, 21, 8, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(41, 21, 8, 0.18);
  --shadow-lg: 0 20px 48px -16px rgba(41, 21, 8, 0.28);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130F;
    --surface: #241D18;
    --text: #F5EFE7;
    --muted: #A99C8D;
    --primary: #F0733A;
    --primary-dark: #F6935F;
    --on-primary: #1A0E06;
    --accent: #34C08C;
    --accent-dark: #5FDBAB;
    --danger: #F0735F;
    --border: #3A2E24;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 56px -16px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.2em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
}

.icon.star-icon { fill: currentColor; stroke: none; }

/* --- Topbar -------------------------------------------------------------- */

.topbar {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: saturate(1.4) blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  color: var(--primary);
  width: 1.3rem;
  height: 1.3rem;
}

/* --- Bottom-Navigation ------------------------------------------------- */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  backdrop-filter: saturate(1.4) blur(10px);
}

.bottom-nav.hidden { display: none; }

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 12px;
  transition: color 0.15s, background 0.15s;
}

.bottom-nav-item .icon { width: 1.45rem; height: 1.45rem; }

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item:active { background: var(--bg); }

.bottom-nav-icon-wrap { position: relative; display: flex; }

.cart-badge {
  position: absolute;
  top: -0.35rem;
  right: -0.55rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* On desktop the bottom tab bar becomes a left sidebar. */
@media (min-width: 1024px) {
  body { padding-bottom: 0; padding-left: 0; }
  body.authenticated { padding-left: 232px; }
  body.auth-page { padding-left: 0; }

  .bottom-nav {
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: 232px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.3rem;
    padding: 1.75rem 1rem;
    border-top: none;
    border-right: 1px solid var(--border);
    backdrop-filter: none;
  }

  .bottom-nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
  }

  .bottom-nav-item .icon { width: 1.3rem; height: 1.3rem; }

  .bottom-nav-item.active {
    background: var(--bg);
    box-shadow: inset 3px 0 0 var(--primary);
  }

  body.auth-page #app {
    max-width: none;
    min-height: calc(100vh - 4.6rem);
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  body.auth-page .auth-card { width: 380px; }
}

.btn-text {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem 0;
  text-decoration: underline;
}

/* --- Layout ---------------------------------------------------------------- */

#app {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem;
  animation: none;
}

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

@media (min-width: 640px) {
  #app { padding: 2rem 2.25rem; }
}

@media (min-width: 1024px) {
  #app { padding: 2.5rem 3rem; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}

.auth-card {
  max-width: 380px;
  margin: 2.5rem auto 0;
}

.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  background: var(--bg);
  padding: 0.3rem;
  border-radius: 12px;
}

.tab {
  flex: 1;
  padding: 0.6rem;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1rem; }
.field.hidden { display: none; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input[type="url"], input[type="text"], input[type="search"], input[type="password"], input[type="file"], textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

textarea { resize: vertical; }

/* --- Buttons ---------------------------------------------------------------- */

.btn-primary, .btn-add, .btn-cooked, .btn-danger, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }

.r-block { margin: 1.1rem 0; }

.r-block-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.r-rating { display: flex; gap: 0.2rem; }

.r-rating .star {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--border);
  transition: color 0.12s, transform 0.12s;
}

.r-rating .star svg { width: 1.9rem; height: 1.9rem; }
.r-rating .star.filled { color: var(--primary); }
.r-rating .star:hover { transform: scale(1.15); }

.r-duration-select { display: flex; gap: 0.5rem; }

.duration-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.duration-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.r-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1rem 0 1.5rem;
}

@media (min-width: 480px) {
  .r-actions { flex-direction: row; }
  .r-actions button { flex: 1; margin: 0; }
}

.btn-cooked, .btn-cart-add {
  width: 100%;
  padding: 0.8rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-cooked {
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent-dark);
}

.btn-cooked.is-cooked {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-cart-add {
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn-cart-add.in-cart {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-danger {
  margin-top: 1.5rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--danger);
  border-radius: 12px;
  background: transparent;
  color: var(--danger);
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  padding: 0.65rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.status {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.status.hidden, .error.hidden, .hidden { display: none !important; }

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 15%, transparent);
  color: var(--danger);
  font-size: 0.9rem;
}

.success {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--success, #2e7d32) 15%, transparent);
  color: var(--success, #2e7d32);
  font-size: 0.9rem;
}

/* --- Rezept-Grid (Bento-Style) ------------------------------------------- */

.recipes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.recipes-header h2 {
  font-size: 1.6rem;
  margin: 0;
}

@media (min-width: 1024px) {
  .recipes-header h2 { font-size: 2rem; }
}

.recipes-header-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-add, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn-add {
  border: none;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}

.btn-add:hover { box-shadow: var(--shadow-md); }
.btn-add:active { transform: scale(0.97); }

.btn-outline {
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline.active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
}

@media (min-width: 1024px) {
  .recipe-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.75rem; }
}

.recipe-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(.2,.8,.2,1), box-shadow 0.22s, border-color 0.15s;
  animation: card-in 0.4s cubic-bezier(.2,.8,.2,1) backwards;
}

.recipe-grid .recipe-card:nth-child(1) { animation-delay: 0.02s; }
.recipe-grid .recipe-card:nth-child(2) { animation-delay: 0.06s; }
.recipe-grid .recipe-card:nth-child(3) { animation-delay: 0.1s; }
.recipe-grid .recipe-card:nth-child(4) { animation-delay: 0.14s; }
.recipe-grid .recipe-card:nth-child(n+5) { animation-delay: 0.16s; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.recipe-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.recipe-card-select {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  background: rgba(20, 12, 6, 0.4);
  border-color: rgba(255, 255, 255, 0.8);
  color: transparent;
  backdrop-filter: blur(2px);
}

.recipe-grid.selecting .recipe-card-select {
  opacity: 1;
  pointer-events: auto;
}

.recipe-grid.selecting .recipe-card {
  cursor: pointer;
}

.recipe-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent);
}

.recipe-card.selected .recipe-card-select {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.recipe-card-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--bg)), var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.recipe-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-card-img { transform: scale(1.06); }

.recipe-card-placeholder {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--primary);
  opacity: 0.35;
}

.recipe-card-cooked {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.recipe-card-cooked .icon { width: 0.85em; height: 0.85em; }

.recipe-card-body {
  padding: 1.05rem 1.15rem 1.2rem;
}

.recipe-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card-stars {
  display: flex;
  gap: 0.1rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.recipe-card-stars .icon { width: 0.95rem; height: 0.95rem; }
.recipe-card-stars .icon.empty-star { color: var(--border); }

.recipe-card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.recipe-card-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.68rem;
}

.recipe-card-duration .icon { width: 0.8em; height: 0.8em; }

/* --- Checkbox (Auswahl + Warenkorb) --------------------------------------- */

.checkbox-box {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 7px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.checkbox-box .icon {
  width: 1rem;
  height: 1rem;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.12s, transform 0.12s;
}

.recipe-card.selected .checkbox-box .icon,
.cart-item.checked .checkbox-box .icon {
  opacity: 1;
  transform: scale(1);
}

/* --- Auswahl-Leiste -------------------------------------------------------- */

.selection-bar {
  position: fixed;
  left: 50%;
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.9rem 1.1rem 0.9rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  animation: bar-in 0.2s ease-out;
  max-width: calc(100vw - 2rem);
}

@keyframes bar-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.selection-count {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.selection-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.selection-bar .btn-text { color: var(--bg); opacity: 0.75; }
.selection-bar .btn-text:hover { opacity: 1; }
.selection-bar .btn-add:disabled { opacity: 0.4; cursor: default; }

/* --- Warenkorb --------------------------------------------------------- */

.cart-group { margin-bottom: 1.75rem; }

.cart-group-title {
  font-size: 1.1rem;
  margin: 0 0 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-group-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.cart-item:hover { border-color: var(--primary); }

.cart-item.checked {
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.cart-item.checked .checkbox-box {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cart-item-text {
  font-size: 0.95rem;
  transition: color 0.15s, text-decoration-color 0.15s;
}

.cart-item.checked .cart-item-text {
  color: var(--muted);
  text-decoration: line-through;
}

.empty {
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 4rem 1rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
}

.empty-icon {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

/* --- Detail-Ansicht -------------------------------------------------------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 720px;
  position: sticky;
  top: 4.25rem;
  z-index: 8;
  margin: 0 auto 1rem;
  padding: 0.7rem 0;
  width: 100%;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.recipe-detail {
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

.r-body { padding: 1.6rem; }

@media (min-width: 640px) {
  .r-body { padding: 2.25rem; }
}

.recipe-detail h1 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  line-height: 1.2;
}

.r-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.r-title-row .r-title { flex: 1; }

.r-rename-btn { flex-shrink: 0; }

.r-rename-form {
  margin: 0.75rem 0 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.r-rename-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .recipe-detail h1 { font-size: 2.1rem; }
}

.recipe-detail h3 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.1rem;
}

.r-photo-wrap {
  position: relative;
  background: #000;
}

.r-video {
  width: 100%;
  max-height: 460px;
  display: block;
  background: #000;
}

.r-video.hidden { display: none; }

.r-cooked-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.r-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.r-ingredients, .r-steps {
  padding-left: 1.3rem;
}

.r-ingredients li, .r-steps li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.r-notes-wrap { margin-top: 1rem; }

.r-raw {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.r-raw pre {
  white-space: pre-wrap;
  background: var(--bg);
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* --- Modal ------------------------------------------------------------ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  padding: 0;
}

.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--surface);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.2s ease-out;
}

@media (min-width: 560px) {
  .modal-overlay { align-items: center; }
  .modal-box { border-radius: var(--radius-lg); margin: 1rem; }
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.modal-header h3 { margin: 0; font-size: 1.2rem; }

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 8px;
  display: flex;
}

.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-close .icon { width: 1.3rem; height: 1.3rem; }

.confirm-message {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.confirm-actions { display: flex; gap: 0.7rem; }
.confirm-actions button { flex: 1; margin: 0; }

/* --- Profil -------------------------------------------------------------- */

.profile-section {
  max-width: 480px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.profile-avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.profile-username {
  margin: 0;
  font-size: 1.4rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1.1rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.profile-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.profile-stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-card { padding: 0; overflow: hidden; }

.profile-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: none;
  background: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.profile-row:hover { background: var(--bg); }

.profile-row-arrow {
  margin-left: auto;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted);
  transform: rotate(180deg);
}

.btn-logout {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.85rem;
  border: 1.5px solid var(--danger);
  border-radius: 14px;
  background: transparent;
  color: var(--danger);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* --- Visual refresh ------------------------------------------------------- */

:root {
  --bg: #f5efe7;
  --surface: #fffaf4;
  --text: #2d211c;
  --muted: #8a7669;
  --primary: #e7653c;
  --primary-dark: #bd4527;
  --on-primary: #fffaf4;
  --accent: #6f9c82;
  --accent-dark: #4d785f;
  --danger: #c94c4c;
  --border: #e8d9cd;
  --shadow-sm: 0 2px 8px rgba(73, 43, 27, 0.06);
  --shadow-md: 0 12px 30px rgba(73, 43, 27, 0.1);
  --shadow-lg: 0 24px 60px rgba(73, 43, 27, 0.16);
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171210;
    --surface: #241b17;
    --text: #f7eee5;
    --muted: #b09d91;
    --primary: #f0784b;
    --primary-dark: #ff9a71;
    --on-primary: #24110b;
    --accent: #8cc19d;
    --accent-dark: #b0dbba;
    --danger: #f07b73;
    --border: #44332a;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.26);
    --shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.4);
  }
}

body {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary) 5%, transparent), transparent 36%),
    var(--bg);
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 12%, transparent) 0.6px, transparent 0.6px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.topbar {
  min-height: 4.25rem;
  padding: 0.9rem 1.5rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom-color: color-mix(in srgb, var(--border) 76%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--primary) 10%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-icon { width: 1.15rem; height: 1.15rem; }

#app {
  position: relative;
  max-width: 1240px;
  padding: 1.5rem 1.25rem 2rem;
}

@media (min-width: 640px) {
  #app { padding: 2.25rem 2.75rem 3rem; }
}

@media (min-width: 1024px) {
  #app { padding: 3rem 4rem 4rem; }
}

.bottom-nav {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px) saturate(1.2);
}

.bottom-nav-item {
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bottom-nav-item.active {
  font-weight: 700;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

@media (min-width: 1024px) {
  .bottom-nav {
    width: 232px;
    padding: 5.5rem 1rem 1.5rem;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.08);
  }

  .bottom-nav-item { padding: 0.8rem 0.9rem; }
}

.card,
.recipe-card,
.profile-stat {
  border-color: color-mix(in srgb, var(--border) 82%, transparent);
  box-shadow: var(--shadow-sm);
}

.card { background: color-mix(in srgb, var(--surface) 94%, transparent); }

.auth-card {
  margin-top: clamp(2rem, 10vh, 6rem);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.tabs {
  background: color-mix(in srgb, var(--bg) 76%, var(--surface));
  border: 1px solid var(--border);
}

.tab.active {
  color: var(--text);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

input[type="url"], input[type="text"], input[type="password"], input[type="file"], textarea {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg) 80%, var(--surface));
  border-radius: 10px;
}

input:focus-visible, textarea:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 17%, transparent);
}

.btn-primary, .btn-add {
  background: var(--primary);
  border-radius: 10px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 25%, transparent);
}

.btn-primary:hover, .btn-add:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline, .btn-secondary {
  border-color: var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.recipes-header { margin-bottom: 1.75rem; }

.search-field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 30rem;
  margin: 0 0 1.25rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
}

.search-field .icon { width: 1rem; height: 1rem; }

.search-field input {
  min-width: 0;
  margin: 0;
  padding-left: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.search-field input:focus-visible {
  border: none;
  box-shadow: none;
}

.search-empty {
  grid-column: 1 / -1;
  margin: 1rem 0;
  color: var(--muted);
  text-align: center;
}

.recipes-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

.recipe-grid { gap: 1.25rem; }

@media (min-width: 1024px) {
  .recipe-grid { gap: 1.5rem; }
}

.recipe-card {
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.recipe-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: var(--shadow-lg);
}

.recipe-card-photo { background: color-mix(in srgb, var(--primary) 10%, var(--bg)); }

.recipe-card-body { padding: 1rem 1.05rem 1.1rem; }

.recipe-card-title { font-size: 1.05rem; letter-spacing: -0.01em; }

.recipe-card-soon {
  position: absolute;
  right: 0.65rem;
  top: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.68rem;
  font-weight: 700;
}

.recipe-card-soon.hidden { display: none; }

.empty {
  border-color: color-mix(in srgb, var(--border) 90%, transparent);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
}

.back-link {
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.recipe-detail {
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.r-body { padding: 1.5rem; }

@media (min-width: 640px) {
  .r-body { padding: 2.5rem; }
}

.recipe-detail h1 {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  letter-spacing: -0.035em;
}

.r-meta { line-height: 1.55; }

.r-block {
  padding: 1rem 0;
  border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.r-block-label { color: var(--muted); letter-spacing: 0.07em; }

.duration-btn {
  border-color: var(--border);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.duration-btn.active {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
}

.r-actions { gap: 0.7rem; }

.btn-cooked, .btn-cart-add {
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-cart-add.in-cart {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.btn-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.btn-soon.active {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary-dark);
}

.ideas-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ideas-header h2 { margin: 0.25rem 0; }

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .ideas-header { align-items: flex-start; flex-direction: column; }
  .ideas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  body { padding-bottom: calc(6.3rem + env(safe-area-inset-bottom, 0px)); }

  #app { padding: 1.25rem 1rem 2rem; }

  .recipes-header {
    align-items: flex-start;
    margin-bottom: 1.1rem;
  }

  .recipes-header h2 { font-size: 1.75rem; }
  .home-subtitle { max-width: 24rem; font-size: 0.82rem; }
  .recipes-header-actions { width: 100%; }
  .recipes-header-actions button { flex: 1; padding: 0.65rem 0.55rem; font-size: 0.78rem; }
  .search-field { max-width: none; margin-bottom: 0.85rem; }

  .recipe-grid { display: flex; flex-direction: column; gap: 0.65rem; }

  .recipe-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    height: 104px;
    min-height: 104px;
    border-radius: 13px;
  }

  .recipe-card-photo {
    aspect-ratio: auto;
    min-height: 104px;
    height: 104px;
  }

  .recipe-card-body {
    min-width: 0;
    position: relative;
    height: 102px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.7rem 0.8rem;
  }

  .recipe-card-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .recipe-card-stars {
    position: absolute;
    right: 0.8rem;
    bottom: 0.7rem;
    order: 3;
    margin: 0;
  }
  .recipe-card-stars .icon { width: 0.75rem; height: 0.75rem; }
  .recipe-card-meta {
    position: absolute;
    left: 0.8rem;
    bottom: 0.7rem;
    order: 2;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.7rem;
  }
  .recipe-card-date { display: none; }
  .recipe-card-cooked { font-size: 0.58rem; padding: 0.2rem 0.35rem; }
  .recipe-card-soon { top: 0.45rem; right: 0.45rem; font-size: 0.58rem; }

  .r-actions {
    flex-direction: column;
    gap: 0.55rem;
  }

  .r-actions button {
    width: 100%;
    min-height: 3.25rem;
    font-size: 0.86rem;
  }
}

.profile-section { max-width: 560px; }

.profile-header {
  padding: 1rem 0 2rem;
}

.profile-avatar {
  width: 5rem;
  height: 5rem;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-md);
}

.profile-stat { background: color-mix(in srgb, var(--surface) 88%, transparent); }

.profile-stat-value { color: var(--primary); }

.profile-card { background: color-mix(in srgb, var(--surface) 94%, transparent); }

.profile-row:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }

.btn-logout { border-radius: 10px; }

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

/* --- Home composition ----------------------------------------------------- */

.home-kicker {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.recipes-header h2 { margin-bottom: 0.25rem; }

.home-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.empty {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 3rem 1.5rem;
  border-style: solid;
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary) 7%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 78%, transparent);
}

.empty-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 0 0.35rem;
  color: var(--primary);
  opacity: 0.7;
}

.empty-title {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.empty-copy {
  max-width: 31rem;
  margin: 0 0 0.7rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

.empty-add-recipe { margin-top: 0.2rem; }

/* --- Floating back control ------------------------------------------------ */

.back-link {
  width: fit-content;
  max-width: none;
  margin: 0 0 1rem;
  padding: 0.62rem 0.9rem 0.62rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 5px 16px rgba(76, 57, 42, 0.1);
  backdrop-filter: blur(14px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  transform: translateX(-2px);
}

.back-link .icon { width: 1.05rem; height: 1.05rem; }

/* --- Final polish --------------------------------------------------------- */

body {
  background:
    radial-gradient(circle at 88% 8%, rgba(239, 114, 84, 0.11), transparent 22rem),
    radial-gradient(circle at 8% 92%, rgba(120, 183, 157, 0.1), transparent 24rem),
    var(--bg);
}

.topbar {
  min-height: 4.6rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
}

.brand { font-weight: 700; }

.bottom-nav-item.active {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
}

.recipes-header h2,
.ideas-header h2 {
  font-weight: 700;
  letter-spacing: -0.045em;
}

.recipe-card {
  border-color: color-mix(in srgb, var(--border) 78%, var(--primary));
  box-shadow: 0 3px 14px rgba(76, 57, 42, 0.07);
}

.recipe-card:hover {
  box-shadow: 0 18px 36px rgba(76, 57, 42, 0.13);
}

.recipe-card-title { font-weight: 700; }

.search-field:focus-within {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent);
}

.btn-add,
.btn-primary {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.btn-outline:hover,
.btn-secondary:hover,
.btn-soon:hover {
  background: color-mix(in srgb, var(--primary) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
}

.r-body { background: transparent; }

.r-block-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.r-ingredients li::marker,
.r-steps li::marker { color: var(--primary); }

.ideas-grid .recipe-card { min-width: 0; }

@media (max-width: 1023px) {
  .topbar { min-height: 4rem; }
  .recipe-card { box-shadow: 0 2px 10px rgba(76, 57, 42, 0.07); }
  .recipe-card:hover { transform: translateY(-1px); }
}

/* --- Friendly daylight palette ------------------------------------------- */

:root {
  color-scheme: light;
  --bg: #fff8f1;
  --surface: #fff4e9;
  --text: #243b3b;
  --muted: #718080;
  --primary: #ef7254;
  --primary-dark: #d9583d;
  --on-primary: #fffdf9;
  --accent: #78b79d;
  --accent-dark: #39745e;
  --danger: #d15d5d;
  --border: #eaded3;
  --shadow-sm: 0 2px 8px rgba(76, 57, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(76, 57, 42, 0.1);
  --shadow-lg: 0 24px 60px rgba(76, 57, 42, 0.14);
}

body {
  background:
    linear-gradient(135deg, rgba(239, 114, 84, 0.08), transparent 36%),
    #fff8f1;
}

body::before {
  opacity: 0.12;
  background-image: radial-gradient(rgba(36, 59, 59, 0.14) 0.6px, transparent 0.6px);
}

.topbar,
.bottom-nav {
  background: rgba(255, 244, 233, 0.86);
  border-color: #eaded3;
}

.bottom-nav-item.active {
  color: #d9583d;
  background: #fff0e9;
}

.btn-primary,
.btn-add {
  color: #fffdf9;
  box-shadow: 0 7px 18px rgba(239, 114, 84, 0.24);
}

.btn-outline,
.btn-secondary {
  color: #365353;
  background: #fffdf9;
}

.card,
.recipe-card,
.profile-stat {
  background: rgba(255, 244, 233, 0.72);
  border-color: #eaded3;
}

.recipe-card-photo {
  background: linear-gradient(145deg, #ffede3, #eef7f0);
}

.empty {
  background: linear-gradient(145deg, #fff0e9, #f0f8f2 78%);
  border-color: #e6cfc1;
}

.empty-icon,
.home-kicker,
.profile-stat-value {
  color: #df6246;
}

.duration-btn.active {
  color: #d9583d;
  background: #fff0e9;
  border-color: #efaa95;
}

.btn-cart-add.in-cart,
.cart-item.checked {
  color: #39745e;
  background: #edf8f1;
  border-color: #a9d2bc;
}

/* --- Floating navigation -------------------------------------------------- */

body {
  padding-bottom: calc(6.7rem + env(safe-area-inset-bottom, 0px));
}

.bottom-nav {
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 18px;
  padding: 0.55rem 0.6rem;
  box-shadow: 0 12px 30px rgba(51, 39, 30, 0.16);
}

.bottom-nav-item { min-height: 3.1rem; }

@media (min-width: 1024px) {
  body { padding-bottom: 0; padding-left: 248px; }

  .bottom-nav {
    top: 1rem;
    left: 1rem;
    right: auto;
    bottom: 1rem;
    width: 232px;
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    border-radius: 20px;
    padding: 5.5rem 0.9rem 1rem;
    box-shadow: 10px 14px 34px rgba(51, 39, 30, 0.13);
  }

  .bottom-nav-item { min-height: 3.25rem; }
}
