.of-fields {
  --of-border: #d7dce5;
  --of-accent: var(--blue, #2854ce);
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  color: var(--ink, #202124);
  font: 450 15px/1.45 var(--sans, Arial, sans-serif);
  text-align: left;
}
.of-group, .of-fields p, .of-fields h2 { padding: 0; margin: 0; }
.of-group { min-width: 0; border: 0; }
.of-legend {
  float: none;
  display: block;
  margin-bottom: 8px;
  padding: 0;
  font-size: 15px;
  font-weight: 650;
}
.of-wrap, .of-days { display: flex; flex-wrap: wrap; gap: 7px; }
.of-grid, .of-stores, .of-counters, .of-appliances, .of-allergens {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.of-stores, .of-counters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.of-stores { align-items: stretch; }
.of-choice {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--of-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 540;
  line-height: 1.2;
  transition: border-color .16s, background .16s, color .16s;
}
.of-choice[hidden], .of-fields [hidden] { display: none !important; }
.of-choice:hover { border-color: #939fb6; }
.of-choice:has(input:checked) {
  background: #eff4ff;
  color: #1d439f;
  border-color: var(--of-accent);
}
.of-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  clip-path: inset(50%);
}
.of-choice:has(input:focus-visible) { outline: 3px solid #456ade; outline-offset: 2px; }
.of-check { display: none; flex: none; position: relative; }
.of-check::before, .of-check::after { content: ""; position: absolute; }
.of-choice:has(input:checked) .of-check {
  display: block;
  height: 16px;
  width: 16px;
  background: var(--of-accent);
  border-radius: 50%;
}
.of-choice:has(input:checked) .of-check::before {
  width: 7px;
  height: 4px;
  top: 5px;
  left: 4px;
  border-bottom: 1.7px solid white;
  border-left: 1.7px solid white;
  transform: rotate(-45deg);
}
.of-choice-name { min-width: 0; overflow-wrap: anywhere; }
.of-store {
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  min-height: 93px;
  padding: 12px 4px 9px;
  text-align: center;
}
.of-store-logo { width: 35px; height: 35px; object-fit: contain; }
.of-store .of-check { position: absolute; right: 6px; top: 6px; }
.of-store .of-choice-name { font-size: 14px; }
.of-link {
  justify-self: start;
  background: none;
  color: var(--of-accent);
  min-height: 38px;
  padding: 5px 0;
  font: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}
.of-link:hover { text-decoration: underline; }
.of-source, .of-budget, .of-taste-done {
  background: var(--wash, #f5f6f8);
  border-radius: 14px;
  padding: 15px 18px;
  display: grid;
  gap: 8px;
}
.of-source > strong { font-weight: 650; }
.of-fields .of-caption, .of-status {
  color: var(--muted, #575c67);
  font-size: 13px;
  line-height: 1.42;
}
.of-input, .of-stock-qty {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--of-border);
  border-radius: 8px;
  padding: 8px 11px;
  background: white;
  font: inherit;
}
.of-fields select { font-size: 14px; }
.of-stepper, .of-days { font-variant-numeric: tabular-nums; }
.of-counter { text-align: left; min-width: 0; }
.of-counter-label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  padding-bottom: 6px;
  font-weight: 560;
}
.of-stepper {
  display: grid;
  grid-template-columns: minmax(28px, .85fr) minmax(20px, 1fr) minmax(28px, .85fr);
  align-items: center;
  background: var(--wash, #f5f6f8);
  border-radius: 8px;
  text-align: center;
}
.of-stepper button {
  border-radius: 8px;
  background: transparent;
  min-height: 44px;
  padding: 1px;
  color: var(--of-accent);
  font-size: 21px;
  line-height: 1;
}
.of-stepper button:hover:not(:disabled) { background: #e6ebf5; }
.of-stepper output { font-size: 19px; font-weight: 650; }
.of-stepper button:disabled { opacity: .35; }
.of-days { flex-wrap: nowrap; gap: 4px; }
.of-presets { display: flex; gap: 14px; flex-wrap: wrap; margin: -4px 0 5px; }
.of-presets .of-link { min-height: 34px; font-size: 13px; }
.of-days .of-choice { flex: 1; justify-content: center; min-height: 44px; padding: 5px 0; font-size: 14px; }
.of-days .of-choice .of-check, .of-wrap .of-choice .of-check { display: none !important; }
.of-days .of-choice:has(:checked)::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.of-line-choice { justify-content: flex-start; border: 0; padding: 5px 0; background: transparent !important; }
.of-line-choice .of-check {
  position: relative;
  display: block;
  order: -1;
  height: 18px;
  width: 18px;
  border: 1px solid #919aab;
  border-radius: 4px;
}
.of-line-choice:has(input:checked) .of-check { width: 18px; height: 18px; border-radius: 4px; border-color: var(--of-accent); }
.of-line-choice:has(input:checked) .of-check::before { top: 4px; }
.of-tally {
  border-radius: 9px;
  background: #f0f4ff;
  padding: 11px 13px !important;
  color: #253f78;
  font-variant-numeric: tabular-nums;
}
.of-error { color: #9b3331; }
.of-error:empty { display: none; }
.of-budget {
  padding: clamp(18px, 3.5vw, 32px);
  gap: 14px;
}
.of-budget-amount {
  display: flex;
  align-items: baseline;
  justify-content: start;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 650;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
}
.of-budget-amount input {
  appearance: textfield;
  width: calc(var(--of-digits, 5ch) + .2ch);
  border: 0;
  min-width: 3ch;
  background: transparent;
  border-bottom: 1px dashed #8c97ac;
  padding: 0 0 3px;
  color: var(--ink);
  font: inherit;
}
.of-budget-amount input::-webkit-inner-spin-button { -webkit-appearance: none; }
.of-range { width: 100%; height: 32px; margin: 0; accent-color: var(--of-accent); cursor: pointer; }
.of-range-ends { margin-top: -12px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.of-drawer { min-width: 0; border-block-end: 1px solid var(--of-border); padding: 0 0 6px; }
.of-drawer > summary {
  position: relative; display: block; padding: 10px 22px 9px 0;
  font-weight: 600; cursor: pointer; list-style: none; min-height: 44px;
}
.of-drawer > summary::-webkit-details-marker { display: none; }
.of-drawer > summary::after {
  content: ""; position: absolute; right: 5px; top: 16px; border: solid currentColor;
  border-width: 0 1.5px 1.5px 0; width: 7px; height: 7px; transform: rotate(45deg);
}
.of-drawer[open] > summary::after { transform: rotate(225deg); top: 19px; }
.of-drawer[open] > :not(summary) { margin-bottom: 8px; }
.of-food-art { width: 26px; height: 26px; flex: none; background: url("/assets/ingredients.jpg") no-repeat; background-size: 400% 400%; mix-blend-mode: multiply; }
.of-allergens .of-choice {
  justify-content: flex-start; font-size: 13px; text-align: left; gap: 5px; padding: 8px;
}
.of-allergens .of-check { margin-left: auto; }
.of-ingredients .of-choice { font-size: 13px; }
.of-equipment { display: grid; grid-template-columns: minmax(135px, .95fr) minmax(160px, 1fr); align-items: center; gap: 15px; }
.of-kitchen-art { min-width: 0; position: relative; width: min(100%, 320px); margin: 0 auto; }
.of-kitchen-art img { display: block; width: 100%; height: auto; border-radius: 12px; }
.of-hotspot {
  position: absolute; width: max(12%, 29px); aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; background: transparent; padding: 0; border-radius: 50%;
}
.of-hotspot::before {
  content: "+"; border-radius: 50%; display: grid; place-items: center;
  width: 80%; height: 80%; background: #fffdf4; color: #1f2c49; border: 1.6px solid #203554;
  font-size: clamp(12px, 2.2vw, 17px); line-height: 1; font-weight: 700;
  transition: background .18s, transform .18s;
}
.of-hotspot[aria-pressed=true]::before { content: "✓"; background: var(--of-accent); color: white; border-color: white; }
.of-hotspot:hover::before { transform: scale(1.08); }
.of-appliances { grid-template-columns: minmax(0, 1fr); gap: 5px; }
.of-appliances .of-choice { min-height: 40px; font-size: 14px; padding: 7px 10px; }
.of-stock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.of-stock-row {
  display: grid; align-items: center; grid-template-columns: 1fr 54px 23px; gap: 6px;
  min-width: 0; padding: 6px 0; border-bottom: 1px solid var(--of-border); font-size: 14px;
}
.of-stock-row > span { min-width: 0; line-height: 1.25; overflow-wrap: break-word; }
.of-stock-row small { color: var(--muted); font-size: 12px; }
.of-stock-qty { padding: 3px; min-height: 39px; text-align: center; font-variant-numeric: tabular-nums; }
.of-taste-card { display: grid; align-items: end; position: relative; isolation: isolate; overflow: hidden; max-width: 520px; width: 100%; margin: 0 auto; border-radius: 16px; background: #30332d; touch-action: pan-y; }
.of-fields:has(.of-taste-card) { overflow-x: clip; padding: 3px; }
.of-taste-card img, .of-taste-copy { grid-area: 1 / 1; }
.of-taste-card img { width: 100%; height: clamp(220px, 34dvh, 325px); object-fit: cover; }
.of-taste-copy {
  display: grid; gap: 4px; align-content: end; align-self: stretch; z-index: 1; padding: 22px;
  color: white; background: linear-gradient(transparent 40%, rgb(14 17 16 / .84));
}
.of-taste-copy h2 { font-size: clamp(22px, 3.5vw, 30px); line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; font-weight: 650; color: inherit; }
.of-taste-meta { font-size: 13px; font-weight: 580; }
.of-taste-counter { text-align: center; font-variant-numeric: tabular-nums; }
.of-taste-actions { display: flex; justify-content: center; gap: 8px; }
.of-vote { padding: 9px 19px; min-height: 44px; border: 1px solid var(--of-border); border-radius: 10px; background: white; font-weight: 600; }
.of-vote::before { content: "×"; display: inline; margin-right: 7px; font-size: 17px; }
.of-vote.of-like { background: #eaf0ff; border-color: #d0ddff; color: #2347a6; }
.of-like::before { content: "♡"; }
.of-vote:hover { border-color: var(--of-accent); }
.of-taste-strip { display: flex; gap: 5px; }
.of-taste-strip img { width: min(29%, 91px); aspect-ratio: 1; border-radius: 8px; object-fit: cover; }
@media (max-width: 680px) {
  .of-fields { gap: 13px; }
  .of-stock { grid-template-columns: minmax(0,1fr); }
  .of-stock-row { grid-template-columns: 1fr 68px 24px; }
  .of-budget-amount input { font-size: inherit; }
  .of-stock-qty, .of-input, .of-fields select { font-size: 16px; }
}
@container (max-width: 440px) {
  .of-equipment { grid-template-columns: minmax(0,1fr); }
  .of-kitchen-art { width: min(64%, 220px); }
  .of-appliances { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .of-stock { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 520px) {
  .of-equipment { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .of-kitchen-art { width: min(64%, 220px); }
  .of-appliances { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 360px) {
  .of-counters { column-gap: 4px; }
  .of-counter-label, .of-store .of-choice-name { font-size: 12px; }
  .of-stepper { grid-template-columns: 1fr 18px 1fr; }
  .of-allergens .of-food-art { width: 19px; height: 19px; }
  .of-store { min-height: 80px; }
  .of-taste-copy { padding: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .of-taste-card { transition: transform .18s ease-out; }
  .of-taste-card.of-dragging { transform: translateX(var(--of-shift)) rotate(var(--of-tilt)); transition: none; }
  .of-taste-card[data-entry="like"] { animation: of-next-like .24s ease-out; }
  .of-taste-card[data-entry="pass"] { animation: of-next-pass .24s ease-out; }
  @keyframes of-next-like { from { opacity: .45; transform: translateX(10px) rotate(.7deg); } }
  @keyframes of-next-pass { from { opacity: .45; transform: translateX(-10px) rotate(-.7deg); } }
}
@media (prefers-reduced-motion: reduce) {
  .of-choice, .of-hotspot::before { transition: none; }
}
