/* Kuzina static-app glue. Most visual styling intentionally comes from copied WasKochen CSS. */
:root {
  --kuzina-line: #dedede;
  --kuzina-panel: #f7f7f7;
  --kuzina-accent: #009688;
  --kuzina-danger: #b3261e;
}

html,
body {
  width: 100% !important;
  max-width: none !important;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

body {
  background-color: #f9f9f9;
}

#app {
  min-height: calc(100vh - 54px);
}

.app-header.w3-top {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  width: 100vw !important;
  max-width: none !important;
  height: calc(104px + env(safe-area-inset-top));
  margin: 0 !important;
  padding-top: env(safe-area-inset-top) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  z-index: 2000 !important;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
}

.app-header-inner.logo-container {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  height: 104px !important;
  margin: 0 !important;
  padding: 10px clamp(16px, 4vw, 52px) !important;
  box-sizing: border-box;
  background: transparent !important;
  box-shadow: none !important;
}

.app-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(620px, 68vw);
}

.app-logo.logo {
  position: static !important;
  right: auto !important;
  width: auto !important;
  max-width: 100% !important;
  height: clamp(54px, 6vw, 76px) !important;
  max-height: none !important;
  object-fit: contain;
}

.menu-wrapper {
  position: absolute !important;
  right: clamp(18px, 6vw, 72px) !important;
  left: auto !important;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex !important;
  align-items: center;
}

.app-back-button {
  position: absolute;
  left: clamp(18px, 6vw, 72px);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px !important;
  height: 46px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 0 4px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #2634d9 !important;
  font-family: Georgia, serif;
  font-size: 48px !important;
  font-weight: 700;
  line-height: 1 !important;
  cursor: pointer;
}

.app-back-button:hover {
  background: rgba(0, 150, 136, 0.08) !important;
}

.burger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: transparent !important;
  -webkit-tap-highlight-color: transparent;
}

.burger-btn:focus,
.burger-btn:active {
  background: transparent !important;
  outline: none !important;
}

.burger-btn .burger-icon {
  width: 48px !important;
  height: auto !important;
}

.menu {
  top: 58px !important;
  left: auto !important;
  right: 0 !important;
  min-width: 190px !important;
}

.menu ul {
  padding: 0 !important;
  margin: 0 !important;
}

.menu ul li {
  margin: 0 !important;
}

.menu ul li a,
.menu ul li .menu-button-link {
  padding: 10px 16px !important;
  font-size: 15px !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.dark-mode-toggle {
  padding: 8px 16px !important;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.pt-96,
.pt-90 {
  padding-top: calc(7.5rem + env(safe-area-inset-top)) !important;
}

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  padding: 0 12px;
}

.menu-actions > * {
  flex: 0 0 auto;
}

#search-form.search-index {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 58px;
  align-items: stretch !important;
  gap: 0;
  width: min(860px, calc(100% - 32px)) !important;
  max-width: none !important;
  margin: 34px auto 28px !important;
  padding: 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

#search-form.search-index label {
  display: none;
}

#search-form.search-index #ingredients {
  width: 100% !important;
  min-width: 0;
  height: 58px;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  color: #242424;
  font-size: 18px !important;
  font-weight: 500;
  line-height: 1.2;
  box-shadow: none !important;
}

#search-form.search-index #ingredients::placeholder {
  color: #747474;
  font-size: 16px;
  font-weight: 500;
  opacity: 1;
}

#search-form.search-index #ingredients:focus {
  outline: none !important;
  border: 0 !important;
  box-shadow: inset 0 0 0 2px rgba(0, 150, 136, 0.42) !important;
}

#search-form.search-index button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  height: 58px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 0 !important;
  background: #009688 !important;
  color: #fff !important;
  font-size: 26px !important;
  line-height: 1 !important;
  cursor: pointer;
}

#search-form.search-index button:hover {
  background: #00796b !important;
}

#searchResults.card-container {
  margin-top: 16px;
}

.kuzina-action,
.kuzina-danger,
.kuzina-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.kuzina-action { background: var(--kuzina-accent); }
.kuzina-secondary { background: #455a64; }
.kuzina-danger { background: var(--kuzina-danger); }

.kuzina-empty {
  width: min(720px, calc(100% - 24px));
  margin: 20px auto;
  padding: 24px;
  border: 1px dashed var(--kuzina-line);
  border-radius: 5px;
  text-align: center;
  background: var(--kuzina-panel);
}

.kuzina-hidden { display: none !important; }

.menu-button-link {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.menu-button-link:hover {
  background: transparent !important;
}

.category-link,
.recipe-card a {
  text-decoration: none;
  color: inherit;
}

.form-container {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto 40px;
}

.form-container input,
.form-container textarea,
.form-container select {
  width: 100% !important;
  max-width: 100%;
}

.form-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-admin-list {
  display: grid;
  gap: 14px;
  width: min(860px, calc(100% - 24px));
  margin: 20px auto 40px;
}

.category-admin-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--kuzina-line);
  border-radius: 5px;
  background: var(--kuzina-panel);
}

.category-admin-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 5px;
}

.category-admin-item h3 {
  font-size: 20px;
  font-weight: 700;
}

.recipe-editor-image {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 5px;
  margin: 10px 0;
}

.inline-recipe-form {
  margin: 0 0 20px;
  padding: 18px;
  border-radius: 5px;
  background: #eeeeee;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.inline-recipe-form .form-group {
  margin-bottom: 14px;
}

.inline-recipe-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

.inline-recipe-form input,
.inline-recipe-form textarea,
.inline-recipe-form select {
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #bdbdbd !important;
  border-radius: 5px !important;
  background: #fff;
  color: #222;
  font: inherit;
  box-shadow: none !important;
}

.inline-recipe-form textarea {
  resize: vertical;
}

.recipe-detail-actions {
  justify-content: flex-start;
  padding: 0;
}

.image-title p {
  margin: 0;
}

/* Ingredients list — override the old colorful badge style */
[data-recipe-ingredients] {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

[data-recipe-ingredients] li.word-style,
[data-recipe-ingredients] li[class*="style-"] {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  background: rgba(0, 150, 136, 0.07) !important;
  color: #222 !important;
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  border: none !important;
  line-height: 1.4 !important;
}

[data-recipe-ingredients] li.word-style::before,
[data-recipe-ingredients] li[class*="style-"]::before {
  content: "✓";
  flex-shrink: 0;
  color: var(--kuzina-accent);
  font-weight: 700;
  font-size: 14px;
}

.star-rating span {
  color: rgb(0, 150, 136);
  font-size: 1.5rem;
}

.meal-title {
  text-align: left !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide app header on recipe fullscreen view */
body.recipe-fullscreen .app-header {
  display: none !important;
}

/* Recipe hero */
.recipe-hero {
  position: relative;
  margin: -8px -16px 0;
  height: 58vh;
  max-height: 520px;
  overflow: hidden;
  border-radius: 0;
  background: #111;
}

.recipe-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0) 30%,
    rgba(0,0,0,0.72) 100%
  );
}

/* Button row — spans full width, sits below status bar */
.hero-btn-row {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: calc(env(safe-area-inset-top) + 12px) 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-right-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* Shared circle button style */
.hero-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 45, 35, 0.75);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
  flex-shrink: 0;
}

.hero-circle-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-circle-btn:active {
  background: var(--kuzina-accent);
}

/* Bookmark — filled when active */
.hero-bookmark-btn svg {
  stroke-width: 2;
}

.hero-bookmark-btn.bookmarked {
  background: var(--kuzina-accent);
}

.hero-bookmark-btn.bookmarked svg {
  fill: #fff;
}

/* Share */
.hero-share-btn svg {
  stroke-width: 2.5;
}

/* Text overlay at bottom of hero */
.recipe-hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 22px;
}

.recipe-hero-title {
  font-family: 'Imprint MT Shadow', Georgia, serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 10px !important;
  line-height: 1.15 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  text-align: left !important;
}

.recipe-hero-desc {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 220, 140, 0.92);
  font-size: 13px;
  font-style: italic;
  margin: 0;
}

.recipe-hero-desc::before,
.recipe-hero-desc::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 200, 100, 0.45);
}

.recipe-hero-desc:empty {
  display: none;
}

/* Category recipes — full-width edge-to-edge list */
.category-recipes-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.category-recipes-grid > a {
  display: block;
  text-decoration: none;
  color: inherit;
  margin: 0 !important;
}

.category-recipes-grid .recipe-card {
  width: 100% !important;
  height: auto !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  box-sizing: border-box;
}

.category-recipes-grid .recipe-card img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover;
  display: block;
}

.category-recipes-grid .recipe-card h3 {
  padding: 12px 16px 14px !important;
  margin: 0 !important;
  font-size: 17px !important;
}

/* Category hero sits directly in <main> — no padding to cancel */
.category-hero {
  margin: 0 0 20px;
}

.category-hero .recipe-hero-text {
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 14px 20px 18px;
}

/* Category breadcrumb below hero */
.recipe-breadcrumb {
  padding: 10px 0 2px;
}

.recipe-breadcrumb-link {
  font-size: 13px;
  color: var(--kuzina-accent);
  text-decoration: none;
  font-weight: 500;
}

.recipe-breadcrumb-link:hover {
  text-decoration: underline;
}

/* URL Import section in bottom sheet */
.url-import-section {
  margin-bottom: 4px;
}

.url-import-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.url-import-row {
  display: flex !important;
  gap: 8px;
  align-items: center;
}

.url-import-row input[type="url"] {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 10px 12px !important;
  border: 1.5px solid var(--kuzina-line) !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  background: #fff !important;
  color: #333 !important;
  display: block !important;
  box-sizing: border-box !important;
}

.url-import-row input[type="url"]:focus {
  outline: none;
  border-color: var(--kuzina-accent);
}

#urlImportBtn {
  padding: 10px 16px;
  background: var(--kuzina-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

#urlImportBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.url-import-status {
  margin-top: 8px;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 8px;
}

.url-import-status--loading {
  background: #e8f4f8;
  color: #0077aa;
}

.url-import-status--success {
  background: #e6f4f1;
  color: #007060;
}

.url-import-status--error {
  background: #fdecea;
  color: var(--kuzina-danger);
}

.url-import-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  color: #aaa;
  font-size: 12px;
}

.url-import-divider::before,
.url-import-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--kuzina-line);
}

/* Bookmarks page */
.bookmarks-page {
  padding: 16px 16px 0;
}

.bookmarks-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.bookmarks-header-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.85;
}

.bookmarks-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

/* Dynamic list inputs (ingredients / steps / tags) */
.dynamic-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.dynamic-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dynamic-input {
  flex: 1;
  padding: 9px 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-family: inherit;
  background: #fafafa !important;
  color: #222 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.dynamic-remove-btn {
  flex-shrink: 0;
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(179, 38, 30, 0.1) !important;
  color: var(--kuzina-danger) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  cursor: pointer;
  line-height: 1 !important;
  -webkit-tap-highlight-color: transparent;
}

.add-item-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px;
  padding: 7px 12px !important;
  border: 1px dashed var(--kuzina-accent) !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--kuzina-accent) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-top: 2px;
}

/* Instructions numbered list */
.instructions-list {
  padding-left: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: step-counter;
}

.instructions-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  counter-increment: step-counter;
}

.instructions-list li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kuzina-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

/* Hide scrollbar everywhere (mobile-native feel) */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  display: none;
}

/* Bottom Sheet Modal */
.bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.bottom-sheet[aria-hidden="false"] {
  pointer-events: auto;
}

.bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bottom-sheet[aria-hidden="false"] .bottom-sheet-backdrop {
  opacity: 1;
}

.bottom-sheet-panel {
  position: relative;
  background: #fff;
  border-radius: 18px 18px 0 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
}

.bottom-sheet[aria-hidden="false"] .bottom-sheet-panel {
  transform: translateY(0);
}

.bottom-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--kuzina-line);
  flex-shrink: 0;
}

.bottom-sheet-header span {
  font-size: 18px;
  font-weight: 700;
}

.bottom-sheet-close {
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(0,0,0,0.06) !important;
  color: #333 !important;
  font-size: 16px !important;
  cursor: pointer;
  padding: 0 !important;
}

.bottom-sheet-body {
  overflow-y: auto;
  padding: 20px 20px 36px;
  -webkit-overflow-scrolling: touch;
}

.bottom-sheet-body .form-group {
  margin-bottom: 16px;
}

.bottom-sheet-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.bottom-sheet-body input[type="text"],
.bottom-sheet-body input[type="file"],
.bottom-sheet-body textarea,
.bottom-sheet-body select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fafafa;
  color: #222;
}

.bottom-sheet-body textarea { resize: vertical; }

/* Bottom Navbar */
.bottom-navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  background: #fff;
  border-top: 1px solid var(--kuzina-line);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1900;
  overflow: visible;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #888;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 4px;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.15s;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--kuzina-accent);
}

.bottom-nav-item.active img,
.bottom-nav-item:hover img {
  opacity: 1;
}

/* FAB action menu */
.fab-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  z-index: 200;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform-origin: bottom center;
}

.fab-menu[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px) scale(0.96);
}

.fab-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}

.fab-menu-item:active {
  background: rgba(0,150,136,0.08);
}

.fab-menu-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--kuzina-accent);
}

/* FAB-style Add Recipe button */
#navAdd {
  position: relative;
  flex: 1.2;
  overflow: visible;
}

#navAdd .fab-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--kuzina-accent);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 150, 136, 0.55);
  position: relative;
  top: -18px;
  margin: 0 auto;
  flex-shrink: 0;
}

#navAdd .fab-circle img {
  width: 42px !important;
  height: 42px !important;
  opacity: 1 !important;
  filter: brightness(0) invert(1) !important;
  background: transparent !important;
  border-radius: 0 !important;
}

#navAdd .bottom-nav-label {
  position: relative;
  top: -18px;
  font-size: 11px;
  font-weight: 500;
  color: #888;
}

/* Push content above the navbar */
body {
  padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 768px) {
  .app-header.w3-top,
  .app-header-inner.logo-container {
    height: 82px !important;
  }

  .app-header-inner.logo-container {
    padding: 8px 14px !important;
  }

  .app-logo-link {
    max-width: 72vw;
  }

  .app-logo.logo {
    height: clamp(44px, 13vw, 62px) !important;
  }

  .menu-wrapper {
    right: 10px !important;
    left: auto !important;
  }

  .menu {
    top: 48px !important;
  }

  .app-back-button {
    left: 8px !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 42px !important;
  }

  .burger-btn {
    width: 44px;
    height: 44px;
  }

  .burger-btn .burger-icon {
    width: 36px !important;
  }

  .pt-96,
  .pt-90 {
    padding-top: calc(5.75rem + env(safe-area-inset-top)) !important;
  }

  .app-header.w3-top {
    height: calc(82px + env(safe-area-inset-top)) !important;
  }

  #search-form.search-index {
    grid-template-columns: minmax(0, 1fr) 50px;
    width: min(520px, calc(100% - 24px)) !important;
    margin: 24px auto !important;
  }

  #search-form.search-index #ingredients {
    height: 50px;
    padding: 0 12px !important;
    font-size: 15px !important;
  }

  #search-form.search-index #ingredients::placeholder {
    font-size: 13px;
  }

  #search-form.search-index button {
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
  }

  .category-admin-item { grid-template-columns: 1fr; }
  .category-admin-item img { width: 100%; height: 180px; }
  .desc-text-top { display: block; }
  .w3-main.w3-content.w3-padding { display: block !important; }
}
