/* Register: thumb-sized targets, no hover-only states, no layout shift on tap */
html, body { overscroll-behavior: none; }
.pos { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .pos { grid-template-columns: 1.4fr 1fr; } }
.scan { display: flex; gap: 8px; position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 5; background: var(--bg); padding: 4px 0 8px; }
.tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tile { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 78px; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.tile:active { transform: scale(.97); background: var(--accent-soft); }
.tile .t { font-weight: 600; line-height: 1.2; } .tile .p { color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tile.out { opacity: .55; }
.cart { position: sticky; bottom: 0; }
@media (max-width: 899px) { .cart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; border-radius: 16px 16px 0 0; margin: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.35); max-height: 62dvh; overflow: auto; }
  .pos { padding-bottom: 210px; } }
.line { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.line .q { display: flex; gap: 4px; align-items: center; }
.line .q button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 1.2rem; touch-action: manipulation; }
.total { font-family: var(--display); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(13,11,16,.55); display: grid; align-items: end; }
.sheet > div { background: #fff; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 90dvh; overflow: auto; }
@media (min-width: 700px) { .sheet { align-items: center; justify-items: center; } .sheet > div { border-radius: 18px; width: 520px; } }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.keys button { min-height: 56px; font-size: 1.3rem; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; touch-action: manipulation; }
