@font-face {
  font-family: "Magnit Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("./public/assets/fonts/MagnitSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Magnit Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("./public/assets/fonts/MagnitSans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Magnit Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("./public/assets/fonts/MagnitSans-Bold.woff2") format("woff2");
}
:root {
  font-family: "Magnit Sans", Arial, sans-serif; color: #383632; background: #ecebe8;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
  --red: #ed3024; --muted: #82766e; --hero: #fff5f0;
  --safe-bottom: 0px; --safe-top: 0px; --slide-width: 196px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; overflow: hidden; }
button, input { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, .carousel:focus-visible { outline: 2px solid #a82017; outline-offset: 4px; }
h1, h2, p { margin: 0; }
.app-shell {
  width: 360px; height: 800px; max-height: calc(100dvh - 40px); position: relative;
  display: flex; flex-direction: column; background: linear-gradient(160deg, #fff9f3 10%, #fff1eb 60%, #ffe4db);
  border-radius: 32px; overflow: hidden; isolation: isolate; box-shadow: 0 16px 70px #2424210b;
}
.status-bar { height: 32px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 0; font: 500 13px/20px Arial, sans-serif; }
.status-icons { display: flex; gap: 3px; align-items: center; }
.status-icons img { height: 12px; width: auto; }
.navigation { height: 52px; flex: none; display: flex; align-items: center; justify-content: center; position: relative; margin: 0 20px; }
.navigation h1 { font-size: 16px; line-height: 22px; font-weight: 500; }
.navigation__brand, .back-button { position: absolute; left: 0; }
.navigation__brand { width: 24px; height: 24px; }
.icon-button { border: 0; background: transparent; width: 44px; height: 44px; display: grid; place-items: center; padding: 11px; border-radius: 50%; flex: none; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.back-button { margin-left: -10px; }
.builder-view, .summary-view { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.builder-scroll, .summary-scroll { overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; flex: 1; min-height: 0; scrollbar-width: none; }
.builder-scroll { display: flex; flex-direction: column; }
.builder-scroll::-webkit-scrollbar, .summary-scroll::-webkit-scrollbar, .carousel::-webkit-scrollbar { display: none; }
.budget { text-align: center; flex: none; padding: 14px 20px 6px; }
.budget__amount { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.budget__label { color: var(--muted); font-size: 14px; line-height: 22px; }
.budget__amount strong { font-size: 21px; line-height: 26px; letter-spacing: -.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.budget__sign { margin-left: 1px; }
.budget__cap { font-size: 11px; line-height: 16px; color: var(--muted); margin-top: 4px; }
.empty-state { flex: 1; min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px 20px 35px; }
.empty-art { position: relative; width: 250px; height: 226px; margin-bottom: 24px; }
.empty-art__product { position: absolute; display: grid; place-items: center; }
.empty-art__product img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 12px #9d6d5012); }
.empty-art__product--yogurt { width: 154px; height: 154px; top: 0; left: 56px; transform: rotate(-9deg); }
.empty-art__product--candy { width: 112px; height: 112px; right: -3px; bottom: 0; transform: rotate(12deg); }
.empty-art__product--nuts { width: 130px; height: 130px; left: -7px; bottom: 10px; transform: rotate(-12deg); }
.empty-state h2 { font-size: 26px; line-height: 32px; letter-spacing: -.6px; font-weight: 500; }
.empty-state p { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 8px; }
.category-editor { flex: 1; min-height: 392px; display: flex; flex-direction: column; justify-content: center; padding: 18px 0 20px; }
.carousel-area { position: relative; }
.carousel {
  display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding-inline: calc(50% - var(--slide-width) / 2);
  padding: 12px calc(50% - var(--slide-width) / 2) 18px; scrollbar-width: none;
  overscroll-behavior-x: contain; touch-action: pan-x; outline-offset: -3px !important;
}
.category-slide { flex: 0 0 var(--slide-width); min-width: 0; position: relative; height: 236px; scroll-snap-align: center; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; opacity: .35; transform: scale(.72); transition: transform 280ms ease, opacity 280ms ease; }
.category-slide.is-current { opacity: 1; transform: scale(1); z-index: 1; }
.category-slide > img { width: 236px; height: 236px; object-fit: contain; filter: drop-shadow(0 15px 16px #9f6b4912); }
.category-caption { text-align: center; padding: 8px 38px 0; }
.category-caption h2 { font-size: 23px; line-height: 28px; letter-spacing: -.5px; font-weight: 500; min-height: 56px; display: grid; align-items: center; }
.category-caption__meta { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 7px; min-height: 20px; }
.category-caption__meta strong { font-size: 13px; line-height: 18px; color: var(--red); font-weight: 500; }
.category-caption__dot { color: #c3a99c; }
.format-label { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 16px; color: var(--muted); }
.format-label img { width: 14px; height: 14px; flex: none; }
.pour-control { position: absolute; right: 17px; top: 36px; bottom: 34px; width: 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 2; }
.pour-control__maximum, .pour-control__minimum { font-size: 10px; line-height: 14px; color: #9a7d70; font-variant-numeric: tabular-nums; }
.pour-control__rail { position: relative; flex: 1; width: 4px; border-radius: 4px; background: #e6cec3; --level: 0%; }
.pour-control__fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--level); border-radius: 4px; background: var(--red); }
.pour-control__thumb { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px #9d543825; border: 2px solid var(--red); left: 50%; bottom: var(--level); transform: translate(-50%, 50%); }
.pour-control input { position: absolute; inset: -10px -20px; width: 44px; height: calc(100% + 20px); margin: 0; opacity: 0; writing-mode: vertical-lr; direction: rtl; cursor: ns-resize; touch-action: none; appearance: slider-vertical; -webkit-appearance: slider-vertical; }
.pour-control__rail:has(input:focus-visible) { outline: 2px solid #a82017; outline-offset: 10px; }
.carousel-navigation { display: flex; align-items: center; justify-content: center; gap: 18px; height: 36px; margin-top: 9px; }
.carousel-navigation .icon-button { color: #9e8476; }
.carousel-navigation .icon-button:disabled { opacity: .25; }
.carousel-navigation .icon-button svg { width: 18px; height: 18px; }
.carousel-position { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pour-hint { font-size: 11px; line-height: 16px; text-align: center; color: var(--muted); margin: 4px 35px 0; min-height: 32px; }
.pour-hint.is-limited { color: #b12d23; }
.selection-footer { position: relative; flex: none; margin-top: 27px; padding: 8px 20px calc(26px + var(--safe-bottom)); background: #fff; z-index: 3; }
.panel-curve { position: absolute; left: 0; top: -35px; width: 100%; height: 36px; fill: #fff; pointer-events: none; }
.selection-footer__heading { display: flex; align-items: center; height: 28px; margin-bottom: 16px; gap: 8px; }
.selection-footer__heading h2 { font-size: 15px; line-height: 20px; font-weight: 500; }
.selection-footer__heading > span { font-size: 11px; line-height: 16px; color: #8a827c; margin-left: auto; }
.clear-button { color: #93857d; margin: 0 -14px 0 -2px; width: 44px; height: 44px; padding: 13px; }
.clear-button svg { width: 18px; height: 18px; }
.clear-button:hover { color: var(--red); }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.slot { border: 0; background: transparent; padding: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; border-radius: 14px; position: relative; }
.slot__circle { width: 52px; height: 52px; background: #f6f5f2; border: 1px solid #eeebe6; border-radius: 50%; position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; transition: border-color 180ms ease; }
.slot__circle > .liquid { z-index: -1; opacity: .65; }
.liquid { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(0deg, #efb5a6, #ffe3d9); transform: translateY(calc(100% - var(--level, 0%))); transition: transform 100ms linear; pointer-events: none; }
.liquid::before { content: ""; position: absolute; top: 0; left: -20%; width: 140%; height: 10px; border-radius: 50%; background: #ffdbcf; transform: rotate(-4deg); }
.slot__image { width: 46px; height: 46px; object-fit: contain; margin-top: -5px; }
.slot__plus { font-size: 24px; line-height: 30px; color: #b7b0a7; font-weight: 400; }
.slot__percent { position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 15px; font-weight: 500; background: #fffefa; border-radius: 8px; min-width: 28px; padding: 0 3px; font-variant-numeric: tabular-nums; }
.slot__title { font-size: 10px; line-height: 12px; margin-top: 8px; min-height: 24px; display: block; width: 100%; text-align: center; overflow-wrap: anywhere; color: #827b73; }
.slot.is-active .slot__circle { border: 2px solid var(--red); }
.slot.is-active .slot__title { color: var(--red); font-weight: 500; }
.slot.is-filled:not(.is-active):hover .slot__circle { border-color: #f3a69b; }
.save-hint { text-align: center; font-size: 11px; line-height: 16px; color: #8a827c; margin: 12px 0 10px; min-height: 16px; }
.primary-button { height: 50px; width: 100%; border: 0; border-radius: 16px; background: var(--red); color: #fff; font-size: 16px; line-height: 22px; font-weight: 500; display: flex; align-items: center; justify-content: center; transition: background 180ms ease, transform 180ms ease; }
.primary-button:not(:disabled):hover { background: #d92c21; }
.primary-button:not(:disabled):active { transform: scale(.985); }
.primary-button:disabled { color: #afa69d; background: #f0eeea; }
.home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); height: 4px; width: 116px; border-radius: 4px; background: #383632; z-index: 4; }
.app-shell:has(.summary-view:not([hidden])) { background: #fff; }
.summary-scroll { padding: 0 24px 24px; }
.summary-intro { padding: 24px 0 22px; text-align: center; display: flex; align-items: center; flex-direction: column; }
.summary-check { width: 44px; height: 44px; border-radius: 50%; background: #fff2ed; display: grid; place-items: center; margin-bottom: 20px; color: var(--red); }
.summary-check svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.summary-intro .eyebrow { display: none; }
.summary-intro h2 { font-size: 28px; line-height: 34px; letter-spacing: -.7px; font-weight: 500; outline: 0; }
.summary-intro p { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 10px; }
.summary-total { padding: 12px 0 22px; display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 13px; border-bottom: 1px solid #f0ece7; }
.summary-total strong { margin-left: auto; font-size: 32px; line-height: 38px; letter-spacing: -1px; color: var(--red); font-weight: 500; }
.summary-total strong > span { font-size: 23px; margin-left: 1px; }
.summary-total__badge { display: none; }
.summary-list { list-style: none; padding: 0; margin: 4px 0 0; }
.summary-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; min-height: 78px; position: relative; }
.summary-row:not(:last-child)::after { content: ""; position: absolute; bottom: 0; left: 62px; right: 0; height: 1px; background: #f4f0eb; }
.summary-row__art { width: 48px; height: 48px; flex: none; position: relative; border-radius: 50%; background: #fbf6f0; overflow: hidden; isolation: isolate; }
.summary-row__art .liquid { z-index: -1; opacity: .5; }
.summary-row__art img { width: 48px; height: 48px; object-fit: contain; }
.summary-row__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.summary-row__copy strong { font-size: 13px; line-height: 17px; font-weight: 500; }
.summary-row__percent { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -.5px; flex: none; }
.summary-row__percent small { font-size: 14px; margin-left: 1px; }
.summary-footer { padding: 16px 20px calc(26px + var(--safe-bottom)); background: #fff; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 767px), (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  :root { --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); background: var(--hero); }
  html, body { height: 100%; min-height: 0; overflow: hidden; padding: 0; }
  .app-shell { position: fixed; top: 0; left: env(safe-area-inset-left, 0px); right: env(safe-area-inset-right, 0px); width: auto; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; }
  .status-bar, .home-indicator { display: none; }
  .navigation { height: calc(52px + var(--safe-top)); padding-top: var(--safe-top); }
  .selection-footer, .summary-footer { padding-bottom: calc(16px + var(--safe-bottom)); }
}
@media (max-width: 340px) {
  :root { --slide-width: 176px; }
  .category-slide > img { width: 216px; height: 216px; }
  .pour-control { right: 11px; }
  .selection-footer { padding-left: 16px; padding-right: 16px; }
  .slots { gap: 6px; }
  .slot__circle { width: 48px; height: 48px; }
  .slot__image { width: 43px; height: 43px; }
  .category-caption { padding-left: 30px; padding-right: 30px; }
  .category-caption h2 { font-size: 21px; line-height: 26px; }
}
@media (max-height: 720px) {
  .budget { padding-top: 5px; padding-bottom: 0; }
  .category-editor { min-height: 326px; padding-top: 8px; padding-bottom: 10px; }
  .category-slide { height: 192px; }
  .category-slide > img { width: 202px; height: 202px; }
  .carousel { padding-top: 8px; padding-bottom: 8px; }
  .category-caption { padding-top: 0; }
  .category-caption h2 { min-height: 44px; font-size: 21px; line-height: 25px; }
  .category-caption__meta { margin-top: 3px; }
  .carousel-navigation { margin-top: 3px; height: 28px; }
  .pour-control { top: 25px; bottom: 24px; gap: 9px; }
  .pour-hint { margin-top: 1px; }
  .empty-state { min-height: 290px; padding: 10px 20px 20px; }
  .empty-art { transform: scale(.85); height: 192px; margin-bottom: 12px; }
  .empty-state h2 { font-size: 24px; line-height: 30px; }
  .selection-footer { margin-top: 22px; }
  .selection-footer__heading { margin-bottom: 11px; }
  .save-hint { margin-top: 8px; margin-bottom: 8px; }
}
@media (max-height: 640px) {
  .category-editor { min-height: 238px; padding: 6px 0; }
  .category-slide { height: 136px; }
  .category-slide > img { width: 146px; height: 146px; }
  .carousel { padding-top: 4px; padding-bottom: 4px; }
  .category-caption h2 { min-height: 28px; font-size: 19px; line-height: 23px; }
  .category-caption__meta { margin-top: 3px; }
  .pour-control { top: 8px; bottom: 8px; gap: 6px; }
  .pour-hint { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .pour-hint.is-limited { position: static; width: auto; height: auto; margin: 2px 30px 0; clip-path: none; }
  .empty-state { min-height: 230px; padding: 10px 20px; }
  .empty-art { height: 190px; transform: scale(.7); margin-top: -22px; margin-bottom: -25px; }
  .empty-state h2 { font-size: 22px; line-height: 28px; }
  .selection-footer { margin-top: 18px; padding-top: 6px; padding-bottom: calc(14px + var(--safe-bottom)); }
  .selection-footer__heading { height: 24px; margin-bottom: 10px; }
  .slot__circle { width: 48px; height: 48px; }
  .slot__image { width: 43px; height: 43px; }
  .save-hint { margin-top: 6px; margin-bottom: 6px; }
  .primary-button { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
