:root {
  --blue: #0027F6;
  --floor: #C7B8F3;
  --hand: "Mansalva", cursive;
  --sys: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
  /* LA MESA · iOS — misma mesa; una capa de software personal encima. */
  --ui: "Figtree", -apple-system, system-ui, sans-serif;
  --tint: #0027F6; --fill: rgba(118, 118, 128, .13); --sep: rgba(60, 60, 67, .16); --label2: rgba(60, 60, 67, .62);
  --glass: rgba(250, 249, 255, .78); --spring: cubic-bezier(.25, .8, .3, 1); --press: cubic-bezier(.25, 1.6, .4, 1);
  /* light comes from the top-left, like Bernie's product photos */
  --shadow: drop-shadow(1px 2px 1px rgba(40, 20, 100, .35)) drop-shadow(8px 14px 14px rgba(50, 25, 120, .28));
  --lift: drop-shadow(2px 4px 2px rgba(40, 20, 100, .25)) drop-shadow(22px 34px 26px rgba(50, 25, 120, .32));
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--floor); overflow: hidden; user-select: none; -webkit-user-select: none; font-family: var(--sys); color: #111; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }

/* the phone is a window onto the table */
.view { position: fixed; inset: 0; overflow: auto; scrollbar-width: none; overscroll-behavior: none; }
.view::-webkit-scrollbar { display: none; }
.table {
  position: relative;
  /* Bernie's photo-set floor, seen from above: one light, falling off to the edges */
  background:
    radial-gradient(ellipse 70% 55% at 38% 34%, rgba(255, 255, 255, .38), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(60, 30, 140, .18)),
    var(--floor);
}

.obj { position: absolute; padding: 0; border: 0; background: none; touch-action: none; user-select: none; -webkit-user-select: none; filter: var(--shadow); transition: filter .25s, transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.obj.drag { filter: var(--lift); transition: filter .2s; z-index: 30; cursor: grabbing; }
.obj.up { filter: var(--lift); z-index: 25; }
.obj:focus-visible { outline: 2px dashed var(--blue); outline-offset: 6px; }
.obj.wiggle { animation: wiggle .5s cubic-bezier(.3, 1.5, .5, 1) 2; }
@keyframes wiggle { 25% { translate: 0 -8px; } 75% { translate: 0 4px; } }
[data-pos] { position: absolute; }

/* marks */
.ring { width: 150px; height: 150px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(90, 60, 180, .08); pointer-events: none; }
.ring--sm { width: 96px; height: 96px; border-width: 2px; border-color: rgba(255, 255, 255, .16); }
.dust { width: 90px; height: 70px; pointer-events: none; background:
  radial-gradient(circle at 20% 30%, rgba(141, 179, 58, .55) 0 2px, transparent 3px),
  radial-gradient(circle at 34% 55%, rgba(141, 179, 58, .45) 0 3px, transparent 4px),
  radial-gradient(circle at 52% 40%, rgba(141, 179, 58, .35) 0 1.5px, transparent 2.5px),
  radial-gradient(circle at 66% 70%, rgba(141, 179, 58, .5) 0 2px, transparent 3px),
  radial-gradient(circle at 80% 48%, rgba(141, 179, 58, .3) 0 1px, transparent 2px),
  radial-gradient(ellipse at 40% 50%, rgba(141, 179, 58, .18), transparent 60%); }
.dust--sm { width: 50px; height: 40px; }

/* the grey stone from every product photo */
.slab { width: 270px; height: 258px; border-radius: 4px; pointer-events: none;
  background-color: #9a9ca3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .25 0 0 0 0 .3 0 0 0 1.3 -.35'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .88 0 0 0 0 .95 0 0 0 1.6 -1'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23m)'/%3E%3C/svg%3E");
  box-shadow: 1px 2px 0 #6d6f76, 3px 5px 0 #5c5e65, 12px 18px 22px rgba(50, 25, 120, .3); }

/* tin, from above: brushed lid + the face sticker */
.tin { width: 150px; height: 150px; border-radius: 50%; }
.tin__body, .tin__lid { position: absolute; inset: 0; border-radius: 50%; }
.tin__body { background: conic-gradient(from 30deg, #e8e9ee, #b6b9c3, #f5f6f8, #a8acb6, #e3e5ea, #c3c6ce, #e8e9ee); }
.tin__powder { position: absolute; inset: 9px; border-radius: 50%; background: url(../_shared/img/polvo.jpg) center / 180% no-repeat; box-shadow: inset 0 0 0 2px #9da1ab, inset 4px 6px 12px rgba(0, 0, 0, .35); }
.tin__lid { background: conic-gradient(from 200deg, #eeeff3, #b2b5bf, #fafbfc, #a3a7b2, #e6e8ec, #bfc2ca, #eeeff3); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .45), inset 0 0 0 7px #a9adb7; transition: transform .55s cubic-bezier(.3, 1.2, .4, 1), box-shadow .3s; display: grid; place-items: center; }
.tin__lid img { width: 76%; height: 76%; border-radius: 50%; }
.tin.open .tin__lid { transform: translate(98px, -54px) rotate(38deg); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .45), inset 0 0 0 7px #a9adb7, 10px 16px 16px rgba(50, 25, 120, .3); }

/* chawan, from above, already in use */
.chawan { width: 212px; height: 212px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff 0 30%, #f1f1ee 55%, #dcdcd8 78%, #f7f7f4 92%, #e2e2de 100%); }
.chawan::after { content: ""; position: absolute; right: -15px; top: 92px; width: 34px; height: 30px; border-radius: 40% 60% 60% 40% / 50%; background: radial-gradient(circle at 30% 40%, #fff, #e4e4e0 80%); z-index: -1; }
.chawan__inner { position: absolute; inset: 13px; border-radius: 50%; background: radial-gradient(circle at 62% 66%, #fdfdfb 0 20%, #e7e7e3 60%, #c9c9c4 100%); box-shadow: inset 6px 9px 14px rgba(0, 0, 0, .14); }
.chawan__tea { position: absolute; inset: 26px; border-radius: 50%; transition: inset .5s;
  background:
    radial-gradient(circle at 30% 40%, rgba(230, 240, 180, .9) 0 2px, transparent 3px),
    radial-gradient(circle at 46% 30%, rgba(230, 240, 180, .8) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 60% 52%, rgba(230, 240, 180, .8) 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 40% 64%, rgba(230, 240, 180, .7) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 70% 36%, rgba(230, 240, 180, .7) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 44%, #c4da77 0, #a9c853 45%, #8DB33A 80%, #6f9128 100%);
  box-shadow: inset 3px 5px 10px rgba(40, 60, 0, .35); }
.chawan.up .chawan__tea { inset: 30px; }

.soporte { width: 104px; height: 104px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #fff 0 18%, #ececea 48%, #cfcfcb 78%, #f3f3f0 100%); }
.soporte span:not(.tag) { position: absolute; inset: 34px; border-radius: 50%; background: radial-gradient(circle at 40% 36%, #fff, #dadad6 85%); box-shadow: 2px 3px 5px rgba(0, 0, 0, .15); }

.chasen { width: 270px; height: 90px; }
.chasen svg, .scoop svg { width: 100%; height: 100%; display: block; }
.scoop { width: 240px; height: 34px; }

/* paper */
.note { width: 168px; height: 156px; padding: 14px 14px 10px; background: #fffef7; color: var(--blue); font: 20px/1.15 var(--hand); text-align: left; display: flex; flex-direction: column; gap: 2px; box-shadow: inset 0 -18px 18px -18px rgba(0, 0, 0, .12); }
.note small { margin-top: auto; align-self: flex-end; font: 10px var(--sys); color: #888; letter-spacing: .08em; }
.receipt { width: 132px; }
.receipt__paper { display: block; background: #fbfbf8; padding: 10px 10px 18px; font: 10px/1.35 var(--mono); color: #222; text-align: left; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), 93% 100%, 86% calc(100% - 6px), 79% 100%, 72% calc(100% - 6px), 65% 100%, 58% calc(100% - 6px), 51% 100%, 44% calc(100% - 6px), 37% 100%, 30% calc(100% - 6px), 23% 100%, 16% calc(100% - 6px), 9% 100%, 0 calc(100% - 6px)); }
.receipt__paper b { display: block; text-align: center; font-weight: 700; }
.receipt__paper hr { border: 0; border-top: 1px dashed #999; margin: 5px 0; }
.receipt__paper .ln b { display: inline; }
.receipt__paper .ln { display: flex; justify-content: space-between; gap: 4px; }
.receipt__paper .ln span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.receipt__paper .new { animation: print .6s steps(4); }
@keyframes print { from { clip-path: inset(0 0 100% 0); } }
.card { width: 184px; height: 106px; background: #fff; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: 1fr auto; column-gap: 10px; padding: 12px; text-align: left; align-items: center; }
.card img { width: 48px; height: 48px; grid-row: 1 / span 2; }
.card__name { font: 17px/1 var(--hand); color: var(--blue); letter-spacing: .04em; }
.card__small { font-size: 9px; color: #555; align-self: start; }
.phone { width: 128px; height: 262px; border-radius: 22px; background: #1b1b1f; padding: 7px; box-shadow: inset 0 0 0 1.5px #3a3a40; }
.phone__screen { display: block; height: 100%; border-radius: 16px; background: linear-gradient(160deg, #0d0d12, #1a1a22 60%, #121218); position: relative; }
.phone__screen::before { content: ""; position: absolute; top: 7px; left: 50%; width: 34px; height: 9px; margin-left: -17px; border-radius: 6px; background: #000; }
.phone__screen::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(115deg, rgba(255, 255, 255, .1) 0 30%, transparent 31%); }

.kitspot { width: 230px; height: 150px; border-radius: 6px; filter: none; background: radial-gradient(ellipse at center, rgba(120, 95, 200, .22) 40%, rgba(120, 95, 200, 0) 72%); }
.kitspot::before { content: ""; position: absolute; inset: 22px; border-radius: 2px; background: rgba(214, 204, 250, .55); filter: blur(3px); }
.kitspot__tag { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -4deg; background: #fffef7; color: var(--blue); font: 17px/1 var(--hand); padding: 8px 10px; white-space: nowrap; filter: var(--shadow); }

.credit { position: fixed; z-index: 5; right: 10px; top: calc(8px + env(safe-area-inset-top)); text-align: right; margin: 0; font: 9px/1.3 var(--sys); color: rgba(40, 20, 110, .55); letter-spacing: .04em; pointer-events: none; max-width: 70vw; }

@media (min-width: 900px) {
  .slip { left: 24px; right: auto; bottom: 24px; width: 360px; max-height: calc(100vh - 48px); }
  .credit { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01s !important; transition-duration: .01s !important; } }


/* =================== iOS system layer =================== */
body { font-family: var(--ui); background: #0d0d1c; }
.view { transition: transform .5s var(--spring), border-radius .5s var(--spring), filter .5s var(--spring); transform-origin: 50% 0; background: var(--floor); }
body.presented .view { transform: translateY(10px) scale(.94); border-radius: 18px; filter: brightness(.92); }
.table { background:
    radial-gradient(ellipse 60% 45% at 30% 22%, rgba(255, 255, 255, .45), transparent 70%),
    radial-gradient(ellipse 70% 60% at 85% 95%, rgba(0, 39, 246, .16), transparent 70%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(50, 20, 140, .2)),
    linear-gradient(160deg, #d3c7f8, #c3b3f2 50%, #b6a6ef); }

/* objects behave like touchable things: compress, spring back */
.obj { transition: filter .25s, transform .36s var(--press); }
.obj.press { transform: scale(.95); transition: transform .12s ease-out; }
.obj.ghost { pointer-events: none; transition: transform .36s var(--press), filter .3s; }
.obj.ghost .tag { opacity: 0; }
.obj.lift { transform: scale(1.07); filter: var(--lift); }
.obj.squish { animation: squish .5s var(--press); }
@keyframes squish { 30% { transform: scale(1.06, .9); } 60% { transform: scale(.98, 1.04); } }

/* home-screen labels — tiny, white, one pictogram each */
.tag { position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 0; rotate: calc(var(--r, 0deg) * -1); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; pointer-events: none;
  font: 600 11.5px/1 var(--ui); letter-spacing: .01em; color: #fff; text-shadow: 0 1px 2px rgba(20, 0, 80, .45); }
.tag i { font-style: normal; font-size: 12px; text-shadow: none; }
.chasen .tag, .scoop .tag { top: calc(100% + 2px); }
.obj.drag .tag, .obj.lift .tag { opacity: 0; }
.kitspot__tag { font: 600 13px/1 var(--ui); color: #fff; background: rgba(40, 20, 120, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 8px; padding: 7px 10px; filter: none; rotate: 0deg; }
.kitspot__tag::before { content: "📦 "; }
.badge { position: absolute; z-index: 3; right: -9px; top: -9px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #FF3B30; color: #fff; font: 700 13px/22px var(--ui); text-align: center; box-shadow: 0 2px 6px rgba(255, 59, 48, .45); transform: scale(0); transition: transform .36s var(--press); rotate: calc(var(--r, 0deg) * -1); }
.badge.on { transform: scale(1); }

/* status: one small capsule — what's on the table + your receipt */
.status { position: fixed; z-index: 30; left: 10px; top: calc(10px + env(safe-area-inset-top)); }
.status button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 9px; border: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .6) inset, 0 4px 14px rgba(40, 20, 120, .14); font: 600 13px/1 var(--ui); color: #1c1340; transition: transform .2s var(--press); }
.status button:active { transform: scale(.95); }
.status i { font-style: normal; }
.status span { font-weight: 500; color: rgba(28, 19, 64, .62); font-variant-numeric: tabular-nums; }
.credit { left: auto; right: 12px; top: calc(19px + env(safe-area-inset-top)); font: 500 9px/1 var(--ui); color: rgba(40, 20, 110, .45); letter-spacing: .02em; }

/* dim */
.dim { position: fixed; inset: 0; z-index: 40; background: rgba(12, 6, 50, .22); animation: dimin .3s ease-out; }
.dim[hidden] { display: none; }
.dim.blur { -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); background: rgba(12, 6, 50, .12); }
@keyframes dimin { from { opacity: 0; } }

/* the sheet */
.sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 88svh; display: flex; flex-direction: column;
  background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  border-radius: 18px 18px 0 0; box-shadow: 0 -1px 0 rgba(255, 255, 255, .7) inset, 0 -10px 40px rgba(20, 0, 80, .18); color: #120d2b; touch-action: none; }
.sheet[hidden] { display: none; }
.sheet.tall { height: 78svh; }
.sheet__grab { flex: none; height: 22px; display: grid; place-items: center; cursor: grab; }
.sheet__grab i { width: 38px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, .3); }
.sheet__body { flex: 1; overflow: auto; padding: 4px 16px calc(18px + env(safe-area-inset-bottom)); touch-action: pan-y; overscroll-behavior: contain; }
.ph { display: flex; gap: 12px; align-items: center; margin: 2px 0 14px; }
.ph__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: linear-gradient(160deg, #fff, #ece8ff); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 2px 6px rgba(40, 20, 120, .12); }
.ph h2 { margin: 0; font: 700 19px/1.15 var(--ui); letter-spacing: -.01em; }
.ph p { margin: 3px 0 0; font: 500 13px/1.3 var(--ui); color: var(--label2); font-variant-numeric: tabular-nums; }
.ok { color: #1f9d55; } .no { color: #FF3B30; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 2px; border-radius: 9px; background: var(--fill); margin-bottom: 14px; --i: 0; }
.seg button { position: relative; z-index: 1; height: 30px; border: 0; background: none; font: 600 13px/1 var(--ui); color: #120d2b; }
.seg i { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); border-radius: 7px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); transform: translateX(calc(var(--i) * 100%)); transition: transform .36s var(--spring); }
.pane[hidden] { display: none; }
.hero { border-radius: 14px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 1250 / 848; background: #ddd5fb; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.txt p { margin: 0 0 8px; font: 400 15px/1.45 var(--ui); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.chips span { padding: 6px 10px; border-radius: 8px; background: rgba(0, 39, 246, .08); color: var(--tint); font: 600 12.5px/1 var(--ui); }
.gal { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 12px; padding: 0 16px; scrollbar-width: none; }
.gal img { flex: 0 0 86%; scroll-snap-align: center; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }

.group { background: #fff; border-radius: 12px; overflow: hidden; margin: 0 0 14px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .04); }
.group__h { margin: 0; padding: 10px 14px 6px; font: 600 12px/1 var(--ui); color: var(--label2); text-transform: uppercase; letter-spacing: .04em; background: #fff; }
.row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 14px; border: 0; background: #fff; text-align: left; text-decoration: none; color: inherit; font: 500 15px/1.25 var(--ui); }
.row + .row, .swipe + .swipe .row, .swipe + .row { box-shadow: inset 0 .5px 0 var(--sep); }
.row i { font-style: normal; font-size: 18px; width: 24px; text-align: center; }
.row span { flex: 1; min-width: 0; }
.row small { display: block; font: 400 12.5px/1.3 var(--ui); color: var(--label2); margin-top: 2px; }
.row em { font-style: normal; color: var(--label2); font-variant-numeric: tabular-nums; font-size: 14px; }
.row b { color: rgba(60, 60, 67, .3); font-size: 20px; font-weight: 400; }
button.row:active, a.row:active { background: #f0eef8; }
.row--cart img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.row--cart em { min-width: 64px; text-align: right; color: #120d2b; font-weight: 600; }
.row--tot { font-weight: 700; } .row--tot em { color: #120d2b; font-weight: 700; }
.row--info { display: block; } .row--info span { display: block; }
.tint { color: var(--tint); }
.swipe { position: relative; overflow: hidden; background: #FF3B30; }
.swipe .row { transition: transform .32s var(--spring); z-index: 1; touch-action: pan-y; }
.del { position: absolute; right: 0; top: 0; bottom: 0; width: 88px; border: 0; background: #FF3B30; color: #fff; font: 600 15px/1 var(--ui); }

.stepper { flex: none; display: inline-flex; align-items: center; border-radius: 10px; background: var(--fill); overflow: hidden; }
.stepper button { width: 44px; height: 40px; border: 0; background: none; font: 500 22px/1 var(--ui); color: #120d2b; transition: background .15s; }
.stepper button:active { background: rgba(118, 118, 128, .2); }
.stepper b { min-width: 22px; text-align: center; font: 700 16px/1 var(--ui); font-variant-numeric: tabular-nums; display: inline-block; }
.stepper.sm button { width: 32px; height: 30px; font-size: 18px; }
.stepper.sm b { font-size: 14px; min-width: 16px; }
.buy { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; margin: 4px -16px 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--glass) 30%); }
.primary { flex: 1; height: 50px; border: 0; border-radius: 14px; background: var(--tint); color: #fff; font: 600 16px/1 var(--ui); letter-spacing: -.005em; box-shadow: 0 6px 16px rgba(0, 39, 246, .28); transition: transform .2s var(--press), opacity .2s; }
.primary:active { transform: scale(.97); }
.primary:disabled { background: rgba(118, 118, 128, .2); color: var(--label2); box-shadow: none; }
.fine { font: 400 12px/1.4 var(--ui); color: var(--label2); margin: 8px 2px; }
.ref { display: inline-block; padding: 1px 5px; border-radius: 4px; background: rgba(0, 39, 246, .1); color: var(--tint); font: 700 10px/1.4 var(--ui); letter-spacing: .04em; }
.empty { text-align: center; padding: 36px 0 24px; color: var(--label2); font: 500 15px/1.4 var(--ui); }
.empty p:first-child { font-size: 42px; margin: 0 0 8px; }

.row--check { gap: 12px; }
.check { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(60, 60, 67, .3); background: none; padding: 0; transition: background .2s, border-color .2s; }
.check[aria-pressed="true"] { background: var(--tint); border-color: var(--tint); box-shadow: inset 0 0 0 0 #fff; }
.check[aria-pressed="true"]::after { content: "✓"; color: #fff; font: 700 14px/22px var(--ui); }
.row--check.done span { color: var(--label2); text-decoration: line-through; text-decoration-color: rgba(60,60,67,.35); }
.go { flex: none; border: 0; border-radius: 14px; background: rgba(0, 39, 246, .08); color: var(--tint); padding: 6px 10px; font: 600 12.5px/1 var(--ui); }

.contact { text-align: center; padding: 4px 0 12px; }
.contact img { width: 84px; height: 84px; margin: 0 auto 8px; filter: drop-shadow(0 6px 14px rgba(0, 39, 246, .3)); }
.contact h2 { margin: 0; font: 400 26px/1.1 var(--hand); color: var(--tint); letter-spacing: .04em; }
.contact p { margin: 4px 0 0; color: var(--label2); font: 500 13px/1 var(--ui); }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 14px; }
.actions a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 9px; border-radius: 12px; background: #fff; color: var(--tint); text-decoration: none; font: 600 12px/1 var(--ui); transition: transform .2s var(--press); }
.actions a:active { transform: scale(.95); }
.actions i { font-style: normal; font-size: 20px; }

.sheet.action { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.sheet.action .sheet__grab { display: none; }
.as { padding: 0 0 4px; }
.as__group { border-radius: 14px; overflow: hidden; background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); margin-bottom: 8px; }
.as__group p { margin: 0; padding: 14px; text-align: center; font: 500 13px/1 var(--ui); color: var(--label2); }
.as__group a, .as__cancel { display: block; width: 100%; padding: 17px; text-align: center; font: 500 18px/1 var(--ui); color: var(--tint); text-decoration: none; border: 0; box-shadow: inset 0 .5px 0 var(--sep); background: none; }
.as__cancel { border-radius: 14px; background: #fff; font-weight: 700; box-shadow: none; }

/* context menu */
.menu { position: fixed; z-index: 80; width: 250px; border-radius: 14px; overflow: hidden; background: rgba(250, 249, 255, .82); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 16px 50px rgba(20, 0, 80, .28), 0 0 0 .5px rgba(0, 0, 0, .06); }
.menu[hidden] { display: none; }
.menu__h { margin: 0; padding: 10px 14px 8px; font: 500 12px/1.2 var(--ui); color: var(--label2); box-shadow: inset 0 -.5px 0 var(--sep); }
.menu button { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 44px; padding: 0 14px; border: 0; background: none; font: 500 15.5px/1 var(--ui); color: #120d2b; box-shadow: inset 0 -.5px 0 var(--sep); }
.menu button:last-child { box-shadow: none; }
.menu button:active { background: rgba(118, 118, 128, .14); }
.menu button i { font-style: normal; font-size: 16px; }
.menu button.danger { color: #FF3B30; }

/* banner */
.banner { position: fixed; z-index: 90; left: 50%; top: calc(8px + env(safe-area-inset-top)); transform: translate(-50%, 0); width: min(370px, calc(100% - 16px));
  display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 11px 14px 11px 11px; border-radius: 20px; cursor: pointer;
  background: rgba(250, 249, 255, .82); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 10px 30px rgba(20, 0, 80, .2), 0 0 0 .5px rgba(0, 0, 0, .05); color: #120d2b; touch-action: none; }
.banner[hidden] { display: none; }
.banner i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 20px; background: linear-gradient(160deg, #fff, #ece8ff); box-shadow: 0 0 0 .5px rgba(0,0,0,.06); }
.banner b { display: block; font: 600 14px/1.2 var(--ui); }
.banner small { display: block; font: 400 13px/1.3 var(--ui); color: var(--label2); font-variant-numeric: tabular-nums; }
.banner em { align-self: start; font: 400 12px/1.2 var(--ui); font-style: normal; color: var(--label2); }

/* desktop: sheets become floating panels beside the table; the table barely recedes */
@media (min-width: 900px) {
  body.presented .view { transform: scale(.985); border-radius: 0; filter: brightness(.96); }
  .sheet { left: auto; right: 24px; top: 24px; bottom: auto; width: 400px; max-height: calc(100vh - 48px); height: auto; border-radius: 22px; box-shadow: 0 0 0 .5px rgba(255,255,255,.7) inset, 0 30px 80px rgba(20, 0, 80, .3); touch-action: auto; }
  .sheet.tall { height: auto; }
  .sheet.action { top: auto; bottom: 24px; }
  .buy { position: static; background: none; }
  .sheet__grab { height: 14px; } .sheet__grab i { display: none; }
  .sheet__body { padding: 8px 20px 20px; }
  .buy { bottom: -20px; margin: 4px -20px 0; padding: 14px 20px 18px; }
  .gal { margin: 0 -20px 12px; padding: 0 20px; }
  .dim { background: rgba(12, 6, 50, .08); }
  .banner { left: auto; right: 24px; transform: none; top: 24px; }
  .status { left: 20px; top: 18px; }
  .credit { right: 20px; top: auto; bottom: 14px; }
}


/* =================== 2A · iOS OBJECT WORLD ===================
   Studio light from directly above (soft box), synthetic backdrop, glossy gel / acrylic materials.
   Everything is drawn here in CSS/SVG — see ASSETS.md. */
:root {
  --shadow: drop-shadow(0 1.5px 1px rgba(40, 20, 120, .28)) drop-shadow(0 14px 16px rgba(40, 20, 120, .2));
  --lift: drop-shadow(0 3px 2px rgba(40, 20, 120, .2)) drop-shadow(0 30px 30px rgba(40, 20, 120, .26));
}
.table { background:
    radial-gradient(ellipse 55% 38% at 50% 8%, rgba(255, 255, 255, .7), transparent 72%),
    radial-gradient(ellipse 120% 60% at 50% 110%, rgba(0, 39, 246, .22), transparent 70%),
    linear-gradient(180deg, #e3dbfb, #cbbdf6 48%, #b5a3f1); }
[data-pos] { position: absolute; }

/* real products, studio-lit: crisp highlights, top-down shadow */
.tin__lid { box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .55), inset 0 0 0 7px #a9adb7, inset 0 18px 22px -14px rgba(255, 255, 255, .9); }
.tin::after { content: ""; position: absolute; left: 20%; top: 8%; width: 46%; height: 18%; border-radius: 50%; background: radial-gradient(rgba(255, 255, 255, .85), transparent 70%); pointer-events: none; transition: opacity .3s; }
.tin.open::after { opacity: 0; }
.chawan { background: radial-gradient(circle at 50% 30%, #fff 0 34%, #f3f3f6 58%, #dcdbe6 80%, #fbfbfd 92%, #e4e3ec 100%); }
.chawan::before { content: ""; position: absolute; z-index: 3; left: 26%; top: 6%; width: 48%; height: 12%; border-radius: 50%; background: radial-gradient(rgba(255, 255, 255, .95), transparent 70%); pointer-events: none; }
.chawan__tea { box-shadow: inset 0 8px 14px rgba(40, 60, 0, .3), inset 0 -2px 6px rgba(255, 255, 255, .35); }

/* translucent acrylic tray instead of the stone */
.tray { width: 286px; height: 274px; border-radius: 46px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .55), rgba(214, 200, 255, .32) 60%, rgba(170, 150, 245, .38));
  -webkit-backdrop-filter: blur(8px) saturate(1.4); backdrop-filter: blur(8px) saturate(1.4);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 -10px 24px rgba(120, 90, 230, .18), 0 1px 1px rgba(40, 20, 120, .12), 0 22px 40px rgba(40, 20, 120, .18); }

/* kit = empty icon slot (edit-mode home screen) */
.slot { width: 128px; height: 128px; border-radius: 30px; filter: none;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7), inset 0 0 0 2px rgba(255, 255, 255, .7);
  -webkit-mask: none; outline: 2px dashed rgba(255, 255, 255, .85); outline-offset: -8px; }
.slot__in { display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: .85; }
.slot__in i { font-style: normal; font-size: 30px; filter: grayscale(.4); opacity: .7; }
.slot__in b { font: 700 11px/1 var(--ui); color: #fff; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(20, 0, 80, .35); }

/* prep note → water weather widget */
.widget { width: 152px; height: 152px; border-radius: 34px; padding: 14px 16px; text-align: left; color: #fff;
  background: linear-gradient(170deg, #5aa2ff, #2f6bff 55%, #1d47e8);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 -12px 20px rgba(0, 20, 120, .25);
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; font-family: var(--ui); }
.widget::after { content: ""; position: absolute; left: 10%; right: 10%; top: 3px; height: 36%; border-radius: 30px 30px 50% 50%; background: linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, 0)); pointer-events: none; }
.widget__k { font: 700 11px/1 var(--ui); letter-spacing: .08em; opacity: .85; }
.widget__t { grid-row: 2; font: 300 50px/1 var(--ui); letter-spacing: -.03em; align-self: center; }
.widget__sun { grid-column: 2; grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #fff7c0, #ffd23f 55%, #ff9f0a); box-shadow: 0 0 14px rgba(255, 210, 63, .8); }
.widget__s { grid-column: 1 / -1; font: 600 11.5px/1.2 var(--ui); }
.widget__ref { position: absolute; right: 14px; bottom: 13px; font: 700 8.5px/1 var(--ui); opacity: .6; letter-spacing: .06em; }

/* reused originals, re-lit for the studio: paper stays paper, just cleaner light and a softer, rounder edge */
.receipt { filter: drop-shadow(0 1px 1px rgba(40, 20, 120, .2)) drop-shadow(0 12px 16px rgba(40, 20, 120, .16)); }
.receipt .badge { right: -10px; top: -10px; }
.card { border-radius: 12px; background: linear-gradient(160deg, #fff, #f6f4ff 70%, #eeeaff); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 .5px rgba(80, 60, 200, .12); overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 42%, transparent 54%); pointer-events: none; }
@media (min-width: 900px) {
  .widget { width: 168px; height: 168px; }
}
