:root {
  color-scheme: light;
  --accent: #ff6a3d;
  --accent-deep: #cf3f1b;
  --tint: #f7f0e8;
  --glass-rgb: 255 255 255;
  --ink: #1d1d1f;
  --muted: #6d6761;
  --line: rgb(255 255 255 / 0.54);
  --glass-edge: rgb(255 255 255 / 0.82);
  --glass-inner: rgb(255 255 255 / 0.34);
  --glass-caustic: color-mix(in srgb, var(--accent) 22%, transparent);
  --shadow:
    0 28px 90px rgb(46 35 24 / 0.20),
    0 5px 18px rgb(46 35 24 / 0.10),
    inset 0 1px 1px rgb(255 255 255 / 0.92),
    inset 0 -1px 3px rgb(255 255 255 / 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: ui-rounded, "SF Pro Rounded", "SF Pro Display", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--tint);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
  background:
    linear-gradient(rgb(247 240 232 / 0.26), rgb(247 240 232 / 0.58)),
    url("assets/food-glass-backdrop.png") center / cover fixed,
    radial-gradient(1200px 700px at 20% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
    radial-gradient(900px 680px at 85% 8%, rgb(108 178 151 / 0.30), transparent 58%),
    linear-gradient(135deg, color-mix(in srgb, var(--tint) 88%, white), color-mix(in srgb, var(--accent) 9%, var(--tint)) 48%, #edf2ea);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    conic-gradient(from 210deg at 48% 28%, transparent, rgb(255 255 255 / 0.34), transparent 28%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%, rgb(92 160 135 / 0.24), transparent),
    linear-gradient(115deg, rgb(255 255 255 / 0.28), transparent 36% 63%, rgb(255 255 255 / 0.18));
  filter: saturate(1.08);
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    linear-gradient(100deg, transparent 10%, rgb(255 255 255 / 0.25), transparent 34%),
    linear-gradient(20deg, transparent 28%, rgb(91 141 120 / 0.16), transparent 58%);
  transform: rotate(-8deg);
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient::after {
  background:
    linear-gradient(150deg, transparent 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 48%),
    linear-gradient(75deg, rgb(255 255 255 / 0.12), transparent 42%, rgb(255 255 255 / 0.2));
  transform: rotate(10deg) scale(1.05);
  animation-duration: 22s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.app-shell {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px calc(112px + var(--safe-bottom));
}

main {
  display: flex;
  flex-direction: column;
}

.glass {
  --mx: 50%;
  --my: 30%;
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / 0.86), transparent 0 18%, rgb(255 255 255 / 0.18) 27%, transparent 45%),
    linear-gradient(135deg, rgb(255 255 255 / 0.86), rgb(var(--glass-rgb) / 0.28) 38%, rgb(var(--glass-rgb) / 0.50) 68%, rgb(255 255 255 / 0.72)),
    linear-gradient(55deg, rgb(255 255 255 / 0.20), transparent 36% 64%, var(--glass-caustic)),
    linear-gradient(210deg, rgb(88 183 214 / 0.10), transparent 42%, rgb(255 213 103 / 0.12));
  background-blend-mode: screen, normal, screen, soft-light;
  box-shadow: var(--shadow);
  backdrop-filter: blur(32px) saturate(1.85) contrast(1.08) brightness(1.05);
  -webkit-backdrop-filter: blur(32px) saturate(1.85) contrast(1.08) brightness(1.05);
  isolation: isolate;
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background:
    conic-gradient(from 225deg at var(--mx) var(--my), rgb(255 255 255 / 0.96), rgb(132 223 255 / 0.16), transparent 24%, rgb(255 209 96 / 0.14), transparent 55%, rgb(255 255 255 / 0.68), rgb(255 255 255 / 0.96)),
    linear-gradient(145deg, var(--glass-edge), transparent 20% 66%, rgb(255 255 255 / 0.62)),
    linear-gradient(40deg, transparent, color-mix(in srgb, var(--accent) 34%, transparent), transparent 44%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.glass::after {
  content: "";
  position: absolute;
  inset: -58% -72%;
  z-index: 0;
  background:
    radial-gradient(ellipse at var(--mx) var(--my), rgb(255 255 255 / 0.36), transparent 0 22%),
    linear-gradient(102deg, transparent 33%, rgb(255 255 255 / 0.48), transparent 48%),
    linear-gradient(112deg, transparent 39%, rgb(72 190 255 / 0.10), transparent 47%, rgb(255 185 74 / 0.08), transparent 55%),
    repeating-linear-gradient(118deg, transparent 0 26px, rgb(255 255 255 / 0.04) 27px 28px);
  filter: blur(0.3px);
  mix-blend-mode: screen;
  transform: translateX(var(--shine-x, -22%)) rotate(6deg) skewX(-4deg);
  transition: transform 700ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease;
  pointer-events: none;
}

.glass > * {
  position: relative;
  z-index: 1;
}

.interactive {
  transform: translate3d(0, 0, 0);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.interactive:hover {
  --shine-x: 18%;
  transform: translateY(-1px);
}

.topbar {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 26px;
}

.brand-button {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  border-radius: 15px;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 82%, white), var(--accent-deep)),
    linear-gradient(90deg, rgb(255 255 255 / .4), transparent);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .55), 0 12px 24px color-mix(in srgb, var(--accent) 26%, transparent);
}

.brand-button strong,
.brand-button small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-button strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand-button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button,
.text-button,
.primary-button,
.secondary-button,
.danger-button,
.segment {
  min-height: 42px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: rgb(255 255 255 / 0.44);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.72), 0 8px 22px rgb(52 35 24 / 0.08);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.icon-button {
  width: 42px;
  padding: 0;
}

.text-button,
.secondary-button,
.danger-button {
  padding: 0 15px;
  font-size: 14px;
  font-weight: 700;
}

.primary-button {
  padding: 0 18px;
  min-height: 46px;
  color: white;
  font-size: 15px;
  font-weight: 800;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent-deep)),
    var(--accent);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.48), 0 15px 32px color-mix(in srgb, var(--accent) 28%, transparent);
}

.secondary-button {
  background: rgb(255 255 255 / 0.58);
}

.danger-button {
  color: #9c281c;
  background: rgb(255 236 232 / 0.68);
}

.icon-button:hover,
.text-button:hover,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.segment:hover {
  transform: translateY(-1px) scale(1.01);
}

.hero {
  order: 2;
  min-height: 360px;
  display: grid;
  gap: 22px;
  align-items: end;
  padding: 28px 6px 8px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 12vw, 84px);
  line-height: 0.95;
  font-weight: 850;
}

.hero-copy p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.hero-lens {
  min-height: 190px;
  border-radius: 36px;
  display: grid;
  place-items: center;
}

.plate-orbit {
  position: relative;
  width: 168px;
  height: 168px;
  animation: float 5s ease-in-out infinite;
}

.plate {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 43%, #f8fbf3 0 19%, transparent 20%),
    radial-gradient(circle at 50% 50%, #ffb45f 0 17%, #e84f27 18% 31%, #5aa274 32% 36%, transparent 37%),
    radial-gradient(circle, rgb(255 255 255 / 0.86), rgb(255 255 255 / 0.44) 60%, rgb(255 255 255 / 0.72));
  box-shadow:
    inset 0 2px 4px rgb(255 255 255 / 0.85),
    inset 0 -7px 16px rgb(72 48 31 / 0.08),
    0 24px 48px rgb(69 49 33 / 0.18);
}

.plate::before,
.plate::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #4c9a74;
}

.plate::before {
  width: 54px;
  height: 11px;
  left: 30px;
  top: 44px;
  transform: rotate(-24deg);
}

.plate::after {
  width: 46px;
  height: 10px;
  right: 28px;
  bottom: 38px;
  transform: rotate(22deg);
  background: #ffd166;
}

.steam,
.spark {
  position: absolute;
  border-radius: 999px;
  opacity: 0.78;
}

.steam {
  width: 12px;
  height: 54px;
  top: 9px;
  background: linear-gradient(rgb(255 255 255 / 0), rgb(255 255 255 / 0.9), rgb(255 255 255 / 0));
  filter: blur(2px);
  animation: steam 3.8s ease-in-out infinite;
}

.steam-a {
  left: 62px;
}

.steam-b {
  right: 55px;
  animation-delay: 900ms;
}

.spark {
  width: 9px;
  height: 9px;
  background: color-mix(in srgb, var(--accent) 74%, white);
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 42%, transparent);
}

.spark-a {
  left: 14px;
  bottom: 56px;
}

.spark-b {
  right: 18px;
  top: 55px;
}

.workspace {
  order: 1;
  margin-top: 18px;
  border-radius: 32px;
  padding: 16px;
}

.workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.workspace h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.05;
}

.workspace p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.segmented {
  display: flex;
  padding: 4px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.34);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.7);
}

.segment {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  background: transparent;
}

.segment.active {
  color: white;
  background: color-mix(in srgb, var(--accent) 88%, #111);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 20%, transparent), inset 0 1px 1px rgb(255 255 255 / .38);
}

.search-field {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 18px;
  color: var(--muted);
  background: rgb(255 255 255 / 0.42);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.62);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.recipe-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.recipe-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 8px;
  border-radius: 22px;
  color: inherit;
  text-align: left;
  background: rgb(255 255 255 / 0.46);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.68), 0 10px 24px rgb(54 38 25 / .08);
}

.recipe-thumb {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, white), rgb(255 255 255 / .72)),
    radial-gradient(circle at 40% 40%, rgb(255 255 255 / .8), transparent 54%);
}

.recipe-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.18;
}

.recipe-card p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.recipe-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--ink) 80%, var(--accent));
  font-size: 12px;
  font-weight: 750;
  background: rgb(255 255 255 / 0.46);
}

.recipe-chevron {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: color-mix(in srgb, var(--accent) 88%, #111);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 42px 16px 34px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-visual {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: rgb(255 255 255 / 0.34);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .72), 0 16px 34px rgb(62 43 30 / 0.10);
}

.empty-visual span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 76%, white) 0 22%, transparent 23%),
    radial-gradient(circle, rgb(255 255 255 / .92), rgb(255 255 255 / .42));
  border: 1px solid rgb(255 255 255 / .64);
}

.empty-state h3 {
  margin: 4px 0 0;
  font-size: 23px;
}

.empty-state p {
  max-width: 280px;
  margin: 0;
  line-height: 1.35;
}

.admin-empty,
.authenticated .visitor-empty,
.admin-only {
  display: none;
}

.authenticated .admin-empty,
.authenticated .admin-only {
  display: inline-flex;
}

.authenticated .bottom-bar {
  display: flex;
}

.bottom-bar {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, var(--safe-bottom));
  z-index: 18;
  width: min(430px, calc(100% - 28px));
  margin: 0 auto;
  padding: 9px;
  border-radius: 24px;
}

.bottom-bar .primary-button {
  width: 100%;
}

.sheet {
  width: min(100%, 520px);
  max-width: none;
  max-height: calc(100dvh - 18px);
  margin: auto auto 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  opacity: 0;
  transform: translateY(32px) scale(.98);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.2, .8, .2, 1), overlay 220ms ease allow-discrete, display 220ms ease allow-discrete;
}

.sheet[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sheet::backdrop {
  background: rgb(40 30 22 / 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sheet-panel {
  width: 100%;
  max-height: calc(100dvh - 18px);
  display: grid;
  gap: 14px;
  padding: 10px 16px calc(18px + var(--safe-bottom));
  border-radius: 30px 30px 0 0;
  overflow-y: auto;
}

.sheet-grabber {
  width: 44px;
  height: 5px;
  justify-self: center;
  border-radius: 99px;
  background: rgb(40 31 25 / .2);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-head h2,
.settings-sheet h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.08;
}

.settings-sheet h3 {
  font-size: 19px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 0.58);
  outline: 0;
  border-radius: 17px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgb(255 255 255 / 0.5);
  box-shadow: inset 0 1px 2px rgb(74 49 31 / 0.05), inset 0 1px 1px rgb(255 255 255 / .72);
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 65%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent), inset 0 1px 1px rgb(255 255 255 / .72);
}

.wide {
  width: 100%;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-drop {
  min-height: 154px;
  place-items: center;
  border: 1px dashed rgb(255 255 255 / .82);
  border-radius: 24px;
  color: var(--ink);
  background: rgb(255 255 255 / .34);
  overflow: hidden;
}

.photo-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.photo-preview {
  width: 82px;
  height: 82px;
  display: block;
  border-radius: 26px;
  background:
    radial-gradient(circle at 45% 45%, color-mix(in srgb, var(--accent) 86%, white) 0 23%, transparent 24%),
    radial-gradient(circle, rgb(255 255 255 / .94), rgb(255 255 255 / .38));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .84), 0 12px 30px rgb(57 40 28 / .10);
}

.photo-preview.has-image {
  width: 100%;
  height: 190px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  color: var(--ink);
  background: rgb(255 255 255 / .4);
}

.switch-row input {
  width: 54px;
  height: 32px;
  padding: 0;
  appearance: none;
  border-radius: 999px;
  background: rgb(109 103 97 / .24);
}

.switch-row input::before {
  content: "";
  width: 26px;
  height: 26px;
  display: block;
  margin: 2px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 8px rgb(48 32 22 / .2);
  transition: transform 180ms ease;
}

.switch-row input:checked {
  background: var(--accent);
}

.switch-row input:checked::before {
  transform: translateX(22px);
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sheet-actions .primary-button {
  grid-column: 1 / -1;
}

.detail-sheet .primary-button {
  justify-self: stretch;
}

.detail-sheet {
  gap: 16px;
}

.detail-photo {
  min-height: 220px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 45% 45%, color-mix(in srgb, var(--accent) 76%, white) 0 22%, transparent 23%),
    radial-gradient(circle, rgb(255 255 255 / .92), rgb(255 255 255 / .38));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .78), 0 12px 28px rgb(57 40 28 / .10);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--ink) 82%, var(--accent));
  font-size: 13px;
  font-weight: 800;
  background: rgb(255 255 255 / .46);
}

.detail-description {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.detail-block {
  display: grid;
  gap: 7px;
  padding: 14px;
  border-radius: 20px;
  background: rgb(255 255 255 / .36);
}

.detail-block h3 {
  margin: 0;
  font-size: 16px;
}

.detail-block p {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.48;
}

.stacked-form {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.swatch-grid label {
  min-height: 76px;
  padding: 12px;
  border-radius: 20px;
  background: rgb(255 255 255 / .36);
}

.swatch-grid input {
  height: 36px;
  padding: 3px;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #9c281c;
  font-size: 13px;
  font-weight: 750;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-bottom));
  z-index: 30;
  max-width: min(360px, calc(100% - 28px));
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 760px) {
  .app-shell {
    width: min(100%, 1280px);
    padding: 20px 28px 64px;
  }

  .topbar {
    top: 18px;
    border-radius: 30px;
  }

  main {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(460px, 1.08fr);
    gap: clamp(42px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 132px);
    padding-top: 28px;
  }

  .hero {
    order: initial;
    min-width: 0;
    min-height: 600px;
    align-content: center;
  }

  .hero-copy {
    max-width: 530px;
  }

  .hero-copy h1 {
    max-width: 530px;
    font-size: clamp(58px, 5.7vw, 82px);
  }

  .hero-copy p {
    max-width: 470px;
  }

  .hero-lens {
    min-height: 260px;
  }

  .workspace {
    order: initial;
    margin-top: 0;
    min-width: 0;
    min-height: min(650px, calc(100vh - 170px));
    padding: 24px;
  }

  .recipe-list {
    grid-template-columns: 1fr;
  }

  .bottom-bar {
    left: auto;
    right: 24px;
    width: 260px;
  }

  .sheet {
    margin: auto;
  }

  .sheet-panel {
    border-radius: 32px;
    padding: 12px 18px 18px;
  }
}

@keyframes drift {
  from {
    transform: translate3d(-3%, -2%, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(3%, 2%, 0) rotate(7deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes steam {
  0%,
  100% {
    transform: translateY(6px) scaleY(.86);
    opacity: .32;
  }
  50% {
    transform: translateY(-8px) scaleY(1.08);
    opacity: .78;
  }
}

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