/* Kitchen — kids' recipe book × Gold Coast fruit shop */
:root {
  --tomato: #E23D28;
  --tomato-deep: #C21F14;
  --olive: #6B8F71;
  --olive-deep: #4E7356;
  --butter: #F4D35E;
  --flour: #FFF8EE;
  --card: #FFFAF3;
  --iron: #2B2118;
  --copper: #C66B3D;
  --lime: #A8D63A;
  --lime-deep: #6EAE12;
  --grape: #7B3FA0;
  --grape-soft: #C084FC;
  --teal: #1AA6A6;
  --ocean: #2E8BC0;
  --mango: #FF9F1C;
  --pink: #FF5D8F;
  --ink: #2B2118;
  --ink-soft: #4A3B2F;
  --muted: #7A6554;
  --danger: #C21F14;
  --shadow: 0 10px 0 rgba(43, 33, 24, 0.12), 0 18px 40px rgba(226, 61, 40, 0.12);
  --sticker: 0 4px 0 rgba(43, 33, 24, 0.18);
  --radius: 22px;
  --font-ui: "Nunito", system-ui, sans-serif;
  --font-write: "Fraunces", "Palatino Linotype", Georgia, serif;
  --top: 86px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-ui);
  background: var(--flour);
  color: var(--ink);
  min-height: 100dvh;
  line-height: 1.45;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
textarea { resize: vertical; }

/* Fruit-shop awning */
.awning {
  position: fixed; top: 0; left: 0; right: 0; height: 14px; z-index: 80;
  background: repeating-linear-gradient(
    90deg,
    var(--tomato) 0 28px,
    var(--butter) 28px 56px,
    var(--lime) 56px 84px,
    var(--teal) 84px 112px,
    var(--grape) 112px 140px,
    var(--mango) 140px 168px,
    var(--ocean) 168px 196px,
    var(--pink) 196px 224px
  );
  box-shadow: 0 6px 0 rgba(43, 33, 24, 0.12);
}

/* Loud kitchen blobs */
.blobs { pointer-events: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(8px);
  opacity: 0.38;
  mix-blend-mode: multiply;
}
.blob.tomato { width: 420px; height: 420px; background: #E23D28; top: -80px; left: -80px; }
.blob.butter { width: 360px; height: 360px; background: #F4D35E; top: 10%; right: -90px; }
.blob.lime { width: 280px; height: 280px; background: #A8D63A; bottom: 8%; left: 8%; }
.blob.grape { width: 240px; height: 240px; background: #C084FC; top: 42%; left: 38%; opacity: 0.28; }
.blob.teal { width: 300px; height: 300px; background: #1AA6A6; bottom: -60px; right: 10%; }
.blob.copper { width: 180px; height: 180px; background: #C66B3D; top: 70%; left: 55%; opacity: 0.3; }

.fruit-scatter { pointer-events: none; position: fixed; inset: 0; z-index: 0; }
.fruit {
  position: absolute; font-size: 2.4rem; opacity: 0.22;
  animation: floaty 7s ease-in-out infinite;
}
.f-tom { top: 18%; left: 4%; animation-delay: 0s; }
.f-lem { top: 28%; right: 6%; font-size: 2rem; animation-delay: 1.2s; }
.f-av { bottom: 16%; left: 10%; animation-delay: 0.6s; }
.f-gr { top: 62%; right: 14%; font-size: 1.8rem; animation-delay: 1.8s; }
.f-ch { bottom: 8%; right: 6%; animation-delay: 0.3s; }
.f-st { top: 48%; left: 22%; font-size: 1.6rem; animation-delay: 2.1s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-10px) rotate(8deg); }
}

/* Steam puffs */
.steam {
  position: relative; display: inline-flex; gap: 6px; height: 22px; align-items: flex-end;
}
.steam i {
  display: block; width: 8px; height: 16px; border-radius: 8px;
  background: #fff; opacity: 0.7;
  animation: steam 1.6s ease-in-out infinite;
}
.steam i:nth-child(2) { animation-delay: .25s; height: 20px; }
.steam i:nth-child(3) { animation-delay: .5s; }
@keyframes steam {
  0% { transform: translateY(6px) scaleX(1); opacity: 0; }
  30% { opacity: .8; }
  100% { transform: translateY(-18px) scaleX(1.5); opacity: 0; }
}

/* Header */
.topbar {
  position: sticky; top: 14px; z-index: 40;
  display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap;
  padding: 0.7rem 1.1rem 0.75rem;
  background: var(--tomato);
  color: #fff;
  border-bottom: 6px solid var(--butter);
  box-shadow: 0 10px 0 rgba(194, 31, 20, 0.25);
}
.brand {
  display: flex; align-items: center; gap: 0.45rem;
  text-decoration: none; color: inherit;
}
.brand:hover .hat-svg { animation: wobble 0.5s ease; }
@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(10deg); }
}
.wordmark { position: relative; display: flex; align-items: flex-start; }
.brand-steam { position: absolute; left: 18px; top: -10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong {
  font-family: var(--font-write);
  font-style: italic;
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--butter);
  text-shadow: 3px 3px 0 var(--tomato-deep);
}
.brand-text em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.92;
}

.clock {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.5rem;
  background: var(--butter);
  color: var(--iron);
  border-radius: 999px;
  box-shadow: var(--sticker);
  transform: rotate(-1.5deg);
}
.clock-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 30%, transparent);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }
.clock-time {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  line-height: 1.1;
}
.clock-date { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }

.search-wrap { margin-left: auto; min-width: 160px; flex: 0 1 260px; }
.search-wrap input {
  width: 100%;
  padding: 0.55rem 0.95rem 0.55rem 2.2rem;
  border-radius: 999px;
  border: 3px solid var(--iron);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%232B2118' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5 14 14'/%3E%3C/svg%3E") 0.75rem center no-repeat;
  font-weight: 700;
  color: var(--iron);
}
.search-wrap input::placeholder { color: #a08b78; font-weight: 700; }
.search-wrap input:focus,
.input:focus, .title-input:focus, .ing-input:focus, .method-input:focus,
.notes-input:focus, .tag-custom:focus, .meta-field input:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--butter);
}

.top-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* Chunky round buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  border: 3px solid var(--iron);
  box-shadow: 0 4px 0 var(--iron);
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--iron); }
.btn.lg { padding: 0.75rem 1.35rem; font-size: 1.05rem; }
.btn.sm { padding: 0.32rem 0.75rem; font-size: 0.78rem; box-shadow: 0 3px 0 var(--iron); }
.btn-tomato { background: var(--tomato); color: #fff; }
.btn-olive { background: var(--olive); color: #fff; }
.btn-butter { background: var(--butter); color: var(--iron); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-grape { background: var(--grape); color: #fff; }
.btn-ghost { background: #fff; color: var(--iron); }
.btn-danger { background: #fff; color: var(--tomato-deep); border-color: var(--tomato); box-shadow: 0 4px 0 var(--tomato); }
.btn-dictate {
  background: var(--tomato);
  color: #fff;
}
.btn-dictate .mic {
  width: 9px; height: 13px; border-radius: 6px;
  background: #fff; display: inline-block; position: relative;
}
.btn-dictate .mic::after {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: -4px;
  border: 2px solid #fff; border-top: none; border-radius: 0 0 8px 8px; height: 6px;
}
.btn-dictate.listening {
  background: var(--pink);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pink) 55%, transparent), 0 4px 0 var(--iron); }
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--pink) 0%, transparent), 0 4px 0 var(--iron); }
}

/* Sticker tags */
.tag-bar {
  position: relative; z-index: 2;
  display: flex; gap: 0.45rem; flex-wrap: wrap;
  padding: 0.85rem 1.1rem 0.35rem;
}
.sticker {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: 2.5px solid var(--iron);
  box-shadow: 2px 3px 0 rgba(43, 33, 24, 0.18);
  background: #fff;
  color: var(--iron);
  transform: rotate(var(--tilt, -2deg));
}
.sticker:hover { transform: rotate(0deg) scale(1.06); }
.sticker.on { outline: 3px solid var(--butter); outline-offset: 1px; }
.sticker.t-weeknight { background: var(--ocean); color: #fff; --tilt: -3deg; }
.sticker.t-bake { background: var(--butter); --tilt: 2deg; }
.sticker.t-bbq { background: var(--tomato); color: #fff; --tilt: -1deg; }
.sticker.t-seafood { background: var(--teal); color: #fff; --tilt: 3deg; }
.sticker.t-curry { background: var(--copper); color: #fff; --tilt: -2deg; }
.sticker.t-sweet { background: var(--grape); color: #fff; --tilt: 2deg; }
.sticker.t-veg { background: var(--lime); --tilt: -3deg; }
.sticker.t-gold-coast { background: var(--mango); --tilt: 1deg; }
.sticker.t-custom { background: var(--pink); color: #fff; }

.shell {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 1rem;
  padding: 0.6rem 1.1rem 2.5rem;
  min-height: calc(100dvh - 160px);
}

.list-col {
  background: color-mix(in srgb, var(--olive) 18%, #fff);
  border: 3px solid var(--iron);
  border-radius: 28px;
  padding: 0.85rem;
  box-shadow: 8px 10px 0 rgba(107, 143, 113, 0.35);
}
.list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.2rem 0.35rem 0.7rem;
}
.list-head h2 {
  margin: 0;
  font-family: var(--font-write);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 800;
}
.count-pill {
  background: var(--tomato); color: #fff;
  font-weight: 900; font-size: 0.8rem;
  min-width: 1.7rem; height: 1.7rem;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--iron);
}
.recipe-list { display: flex; flex-direction: column; gap: 0.65rem; }

.recipe-card {
  text-align: left;
  width: 100%;
  background: var(--card);
  border: 3px dashed var(--copper);
  border-radius: 18px;
  padding: 0.75rem 0.85rem 0.7rem;
  box-shadow: 3px 4px 0 rgba(198, 107, 61, 0.2);
  transform: rotate(var(--card-tilt, -0.6deg));
  position: relative;
}
.recipe-card:nth-child(even) { --card-tilt: 0.8deg; border-style: solid; }
.recipe-card:hover { transform: rotate(0) translateY(-2px); background: #fff; }
.recipe-card.active {
  border-color: var(--tomato);
  border-style: solid;
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tomato) 30%, transparent);
}
.recipe-card .rc-title {
  font-family: var(--font-write);
  font-style: italic;
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.15;
  margin: 0 1.4rem 0.25rem 0;
  color: var(--tomato-deep);
}
.recipe-card .rc-meta {
  font-size: 0.75rem; font-weight: 800; color: var(--muted);
  letter-spacing: 0.02em;
}
.recipe-card .rc-preview {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.recipe-card .rc-tags { margin-top: 0.4rem; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.recipe-card .rc-tags .sticker { font-size: 0.65rem; padding: 0.12rem 0.5rem; border-width: 2px; }
.recipe-card .rc-star {
  position: absolute; top: 8px; right: 10px;
  font-size: 1.15rem; color: var(--mango);
  filter: drop-shadow(0 1px 0 var(--iron));
}
.recipe-card.starred { background: color-mix(in srgb, var(--butter) 35%, #fff); }

.main { min-width: 0; }

/* Empty — confetti kitchen */
.empty-state {
  position: relative;
  text-align: center;
  background: #fff;
  border: 4px solid var(--iron);
  border-radius: 32px;
  padding: 2.2rem 1.2rem 2.4rem;
  box-shadow: 12px 14px 0 var(--butter), 0 0 0 8px var(--tomato);
  overflow: hidden;
  min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.empty-state h2 {
  font-family: var(--font-write);
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0.4rem 0 0.2rem;
  color: var(--tomato);
  text-shadow: 2px 2px 0 var(--butter);
}
.empty-state p {
  margin: 0 0 1.1rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--grape);
}
.empty-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.pot-wrap { position: relative; margin-bottom: 0.4rem; }
.pot-steam { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute;
  width: 10px; height: 14px;
  border-radius: 2px;
  animation: confetti 5.5s linear infinite;
  opacity: 0.85;
}
.confetti i:nth-child(1) { left: 8%; background: var(--tomato); animation-delay: 0s; }
.confetti i:nth-child(2) { left: 18%; background: var(--butter); width: 12px; height: 12px; border-radius: 50%; animation-delay: .4s; }
.confetti i:nth-child(3) { left: 28%; background: var(--lime); animation-delay: .8s; }
.confetti i:nth-child(4) { left: 40%; background: var(--grape); animation-delay: .2s; }
.confetti i:nth-child(5) { left: 52%; background: var(--teal); border-radius: 50%; animation-delay: 1.1s; }
.confetti i:nth-child(6) { left: 62%; background: var(--mango); animation-delay: .6s; }
.confetti i:nth-child(7) { left: 72%; background: var(--pink); animation-delay: 1.4s; }
.confetti i:nth-child(8) { left: 84%; background: var(--ocean); animation-delay: .3s; }
.confetti i:nth-child(9) { left: 12%; top: 40%; background: var(--copper); animation-delay: 1.8s; }
.confetti i:nth-child(10) { left: 90%; background: var(--lime); border-radius: 50%; animation-delay: 2s; }
.confetti i:nth-child(11) { left: 46%; background: var(--tomato); width: 8px; height: 8px; border-radius: 50%; animation-delay: 1.6s; }
.confetti i:nth-child(12) { left: 76%; background: var(--butter); animation-delay: 2.2s; }
@keyframes confetti {
  0% { transform: translateY(-20px) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(460px) rotate(280deg); opacity: 0; }
}

/* Recipe editor card — paper cookbook page */
.editor-card {
  background: var(--card);
  border: 4px solid var(--iron);
  border-radius: 28px;
  padding: 0 1.25rem 1.25rem;
  box-shadow: 10px 12px 0 var(--copper);
  position: relative;
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--tomato) 14%, transparent) 0 18px, transparent 18px),
    repeating-linear-gradient(
      180deg,
      transparent 0 31px,
      color-mix(in srgb, var(--ocean) 16%, transparent) 31px 32px
    );
  background-origin: padding-box;
}
.editor-card::after {
  content: "";
  position: absolute; top: 18px; right: 22px;
  width: 28px; height: 36px;
  background: var(--tomato);
  border-radius: 2px 2px 40% 40%;
  box-shadow: 3px 3px 0 var(--iron);
  transform: rotate(12deg);
  opacity: 0.9;
}
.btn-back { display: none; margin: 0.85rem 0 0; }
.editor-ribbon {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 0 0.35rem;
}
.ribbon-label {
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  background: var(--lime);
  color: var(--iron);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  border: 2px solid var(--iron);
  transform: rotate(-2deg);
}
.save-pill {
  font-size: 0.72rem; font-weight: 800;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--teal); color: #fff;
}
.save-pill.saving { background: var(--mango); color: var(--iron); }
.save-pill.err { background: var(--tomato); }
.btn-star {
  margin-left: auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--butter);
  border: 3px solid var(--iron);
  font-size: 1.35rem;
  box-shadow: 0 4px 0 var(--iron);
  position: relative;
  z-index: 2;
}
.btn-star.on {
  background: var(--mango);
  animation: spark 0.5s ease;
}
.btn-star.on::after {
  content: "✦";
  position: absolute; top: -8px; right: -6px;
  font-size: 0.7rem;
  animation: twinkle 1.4s ease-in-out infinite;
}
@keyframes spark {
  0% { transform: scale(0.7) rotate(-20deg); }
  60% { transform: scale(1.15) rotate(8deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1.2); }
}

.title-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-write);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--tomato-deep);
  padding: 0.2rem 2.2rem 0.35rem 0;
  letter-spacing: -0.03em;
}
.title-input::placeholder { color: color-mix(in srgb, var(--tomato) 45%, #cbb); }

.meta-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 0.2rem 0 0.9rem; }
.meta-field {
  display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--olive-deep);
}
.meta-field input {
  border: 3px solid var(--iron);
  border-radius: 14px;
  padding: 0.4rem 0.7rem;
  background: #fff;
  font-weight: 800;
  min-width: 8rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  color: var(--iron);
}

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.9rem;
}
.col-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.col-head h3 {
  margin: 0;
  font-family: var(--font-write);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--grape);
}
.ing-col h3 { color: var(--olive-deep); }
.ing-input, .method-input, .notes-input {
  width: 100%;
  border: 3px solid var(--iron);
  border-radius: 16px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  font-weight: 600;
  line-height: 1.5;
}
.ing-input { background: color-mix(in srgb, var(--lime) 12%, #fff); }
.method-input { background: color-mix(in srgb, var(--ocean) 8%, #fff); min-height: 16rem; }
.ing-input { min-height: 16rem; }

.interim {
  margin: 0.35rem 0 0;
  padding: 0.4rem 0.7rem;
  background: var(--butter);
  border-radius: 12px;
  font-style: italic;
  font-family: var(--font-write);
  color: var(--iron);
  font-weight: 600;
}
.dictate-fallback { margin: 0.4rem 0 0; font-size: 0.8rem; font-weight: 700; color: var(--muted); }

.notes-wrap {
  display: block; margin-top: 0.9rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--copper);
}
.notes-wrap span { display: block; margin-bottom: 0.3rem; }
.notes-input {
  text-transform: none; letter-spacing: 0; font-size: 0.95rem;
  background: color-mix(in srgb, var(--mango) 12%, #fff);
  min-height: 5rem;
}

.tag-editor { margin-top: 0.95rem; }
.tag-editor-label {
  display: block;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--grape); margin-bottom: 0.35rem;
}
.tag-picks { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-custom {
  margin-top: 0.5rem;
  width: min(100%, 16rem);
  border: 3px dashed var(--grape);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  background: color-mix(in srgb, var(--grape-soft) 22%, #fff);
  font-weight: 800;
}

.editor-foot { margin-top: 1rem; display: flex; justify-content: flex-end; }

/* Lock */
.lock-screen {
  position: fixed; inset: 0; z-index: 90;
  background:
    repeating-linear-gradient(90deg, var(--tomato) 0 28px, var(--butter) 28px 56px, var(--lime) 56px 84px, var(--teal) 84px 112px, var(--grape) 112px 140px),
    var(--tomato);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.lock-card {
  background: var(--flour);
  border: 4px solid var(--iron);
  border-radius: 32px;
  padding: 1.6rem 1.4rem 1.5rem;
  width: min(380px, 100%);
  text-align: center;
  box-shadow: 12px 14px 0 var(--butter);
}
.lock-hat { position: relative; display: inline-block; }
.lock-steam { position: absolute; left: 50%; top: -8px; transform: translateX(-50%); }
.lock-card h1 {
  font-family: var(--font-write);
  font-style: italic;
  font-size: 2.4rem;
  margin: 0.2rem 0 0;
  color: var(--tomato);
}
.lock-sub { margin: 0; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; color: var(--olive-deep); }
.lock-hint { margin: 0.8rem 0 0.4rem; font-weight: 800; color: var(--grape); }
.pin-dots { display: flex; justify-content: center; gap: 0.55rem; margin: 0.4rem 0 0.5rem; }
.pin-dots i {
  width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid var(--iron);
  background: #fff;
}
.pin-dots i.on { background: var(--tomato); }
.pin-error { min-height: 1.2rem; margin: 0 0 0.4rem; color: var(--tomato); font-weight: 800; font-size: 0.85rem; }
.pin-pad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem;
}
.pin-pad button {
  height: 52px; border-radius: 16px;
  background: #fff;
  border: 3px solid var(--iron);
  font-weight: 900; font-size: 1.2rem;
  box-shadow: 0 4px 0 var(--iron);
}
.pin-pad button:nth-child(1) { background: var(--butter); }
.pin-pad button:nth-child(2) { background: var(--lime); }
.pin-pad button:nth-child(3) { background: var(--teal); color: #fff; }
.pin-pad button:nth-child(4) { background: var(--mango); }
.pin-pad button:nth-child(5) { background: var(--pink); color: #fff; }
.pin-pad button:nth-child(6) { background: var(--ocean); color: #fff; }
.pin-pad button:nth-child(7) { background: var(--grape); color: #fff; }
.pin-pad button:nth-child(8) { background: var(--copper); color: #fff; }
.pin-pad button:nth-child(9) { background: var(--olive); color: #fff; }
.pin-pad button:nth-child(11) { background: var(--tomato); color: #fff; }
.pin-pad button:active { transform: translateY(3px); box-shadow: none; }
.pin-pad .pin-muted { font-size: 0.78rem; background: #fff; color: var(--muted); }

/* Modals */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: color-mix(in srgb, var(--grape) 35%, rgba(43,33,24,.45));
}
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-card {
  background: var(--flour);
  border: 4px solid var(--iron);
  border-radius: 28px;
  padding: 1.3rem 1.25rem 1.1rem;
  width: min(540px, 100%);
  max-height: 90dvh; overflow: auto;
  box-shadow: 10px 12px 0 var(--pink);
  position: relative; z-index: 71;
}
.modal-card.slim { width: min(380px, 100%); box-shadow: 10px 12px 0 var(--tomato); }
.modal-card h2 {
  font-family: var(--font-write);
  font-style: italic;
  margin: 0 0 0.2rem;
  font-size: 1.8rem;
  color: var(--tomato);
}
.modal-card h3 {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--grape);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.muted { color: var(--muted); font-weight: 700; margin: 0 0 0.5rem; }
.tiny { font-size: 0.75rem; color: var(--muted); font-weight: 700; }
.row { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }
.input {
  border: 3px solid var(--iron);
  border-radius: 12px;
  padding: 0.45rem 0.7rem;
  background: #fff;
  font-weight: 800;
  width: 8.5rem;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 0.45rem; margin-top: 1.2rem; }

.toasts {
  position: fixed; bottom: 1.1rem; right: 1.1rem; z-index: 100;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.toast {
  background: #fff;
  border: 3px solid var(--iron);
  border-radius: 16px;
  padding: 0.65rem 0.9rem;
  font-weight: 800;
  box-shadow: 4px 5px 0 var(--butter);
}
.toast.err { box-shadow: 4px 5px 0 var(--tomato); color: var(--tomato-deep); }
.toast.ok { box-shadow: 4px 5px 0 var(--lime); color: var(--olive-deep); }

[hidden] { display: none !important; }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; padding: 0.6rem 0.75rem 2rem; }
  .editor-grid { grid-template-columns: 1fr; }
  .btn-back { display: inline-flex; }
  .list-col.hidden-mobile { display: none; }
  .editor-card.hidden-mobile { display: none; }
  .brand-text strong { font-size: 1.55rem; }
  .clock-date { display: none; }
  .search-wrap { flex: 1 1 100%; order: 5; margin-left: 0; }
  .topbar { top: 14px; }
  .editor-card::after { display: none; }
}
@media (max-width: 640px) {
  .top-actions .btn { padding: 0.42rem 0.7rem; font-size: 0.78rem; }
  .brand-text em { display: none; }
  .hat-svg { width: 44px; height: 40px; }
  .empty-state { box-shadow: 8px 8px 0 var(--butter), 0 0 0 5px var(--tomato); padding: 1.4rem 0.8rem 1.6rem; }
  .ing-input, .method-input { min-height: 11rem; }
}

#btn-starred-filter.on {
  background: var(--mango);
  box-shadow: 0 4px 0 var(--iron), 0 0 0 4px color-mix(in srgb, var(--butter) 80%, #fff);
}

@media (prefers-reduced-motion: reduce) {
  .fruit, .steam i, .confetti i, .btn-dictate.listening, .clock-dot, .btn-star.on::after {
    animation: none !important;
  }
  .blob { filter: none; }
}

label.btn { cursor: pointer; }
