:root {
  --bg: #fff7fb;
  --surface: #ffffff;
  --surface-2: #fff0f6;
  --text: #2b2430;
  --muted: #7a6c78;
  --primary: #ff4d94;
  --primary-dark: #d83a7a;
  --secondary: #6c5ce7;
  --success: #27ae60;
  --warning: #e67e22;
  --danger: #e74c3c;
  --border: #f3c7da;
  --shadow: 0 8px 30px rgba(255, 77, 148, 0.12);
}

body.dark {
  --bg: #19161c;
  --surface: #27222c;
  --surface-2: #302834;
  --text: #f5edf3;
  --muted: #c8b9c5;
  --primary: #ff5ea0;
  --primary-dark: #e14a8a;
  --secondary: #8a7cff;
  --success: #2ecc71;
  --warning: #f39c12;
  --danger: #ff6b6b;
  --border: #4a3a47;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input,
textarea,
select,
option {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: linear-gradient(180deg, #ffd8ea 0%, var(--bg) 180px);
  color: var(--text);
  min-height: 100vh;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open {
  overflow: hidden;
}
body.dark {
  background: linear-gradient(180deg, #2a1b29 0%, var(--bg) 180px);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}

button,
.nav-btn,
.ingredient-card,
.recipe-card,
.priced-card,
.action-menu summary,
.clickable-row {
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 15px;
  line-height: 1.6;
}

button {
  transition: all 0.15s ease;
}