/* The Bar, 2026-10-11 (Jesse): the selected tab with DRINKS and FOOD apart, food grouped into its
   kitchen tickets, +1 on a line behind a confirm, the tab's kitchen status popup, and RING UP's
   front page (QUICK row, six category tiles, food sections only once FOOD is picked). Loaded after
   bar.css (its tokens) and before bar_phone.css. */

/* the open-tabs list: the card is the tab's link (stretched), its food words a link of their own */
.bar .bar-tab { position: relative; }
.bar .bar-tab-link { color: inherit; display: block; min-width: 0; }
.bar .bar-tab-link::after { border-radius: 14px; content: ""; inset: 0; position: absolute; }
.bar .bar-tab-link b { display: block; font-size: 1.35rem; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .bar-food-pop { align-items: center; align-self: flex-start; border: 1px solid currentColor; border-radius: 999px; display: inline-flex; margin-top: .3rem; min-height: 34px; padding: 0 .6rem; position: relative; z-index: 1; }
.bar .bar-food-pop:active { background: rgba(255,255,255,.08); }
.bar .bar-food-pop { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* FOOD's section chips only show under FOOD (bar.css makes them flex) */
.ring-chips[hidden] { display: none; }

/* a line (Jesse, 2026-10-16): +1 far left, the item's neon small, the name, then how many beside the
   price. Fixed widths for the last two so prices line up down the ticket. */
.bar-line { gap: .6rem; grid-template-columns: 56px 40px minmax(0, 1fr) 2.4rem 5.4rem; }
.bar-line .bar-qty { font-size: 1.25rem; text-align: right; white-space: nowrap; }
.bar-line .bar-price { text-align: right; white-space: nowrap; }
.bar .bar-icon { display: block; height: 40px; width: 40px; }
.bar .bar-icon img { border-radius: 9px; display: block; height: 100%; object-fit: cover; width: 100%; }
.bar-line.is-void .bar-icon img { opacity: .35; }
.bar-plus-cell { display: flex; }
.bar .bar-plus { align-items: center; background: rgba(83,224,255,.08); border: 1.5px solid var(--bar-blue); border-radius: 14px; color: var(--bar-blue-soft); display: flex; font: 400 .78rem var(--bar-pixel); height: 48px; justify-content: center; letter-spacing: .04em; touch-action: manipulation; width: 56px; }
.bar .bar-plus:active { background: rgba(83,224,255,.25); }
.bar-line.is-added { box-shadow: inset 3px 0 0 var(--bar-amber); }
.bar-added { color: var(--bar-amber-soft); font: 400 .46rem var(--bar-pixel); letter-spacing: .1em; margin-top: .2rem; }

/* section heads */
/* Room above the divider for a section's button (Jesse, 2026-10-14: + FOOD TICKET sat on the line). */
.bar-sec { align-items: center; border-bottom: 1px solid var(--bar-line2); display: flex; gap: .8rem; justify-content: space-between; margin-top: .55rem; min-height: 44px; padding: .45rem 0 .55rem; }
.bar-sec.is-drinks { margin-top: .2rem; }
.bar-sec h2 { color: var(--bar-purple); font: 400 .7rem var(--bar-pixel); letter-spacing: .16em; margin: 0; }
.bar-sec.is-food h2 { color: var(--bar-amber-soft); }
.bar .bar-sec-act { align-items: center; border: 1.5px solid var(--bar-amber); border-radius: 999px; color: var(--bar-amber-soft); display: flex; font: 400 .6rem var(--bar-pixel); letter-spacing: .08em; min-height: 44px; padding: 0 .9rem; }
.bar-sec-empty { color: var(--bar-dim); font-size: 1.1rem; margin: .4rem 0; }
.bar-food-sec { display: flex; flex-direction: column; }

/* food ticket cards */
.bar-cards { display: flex; flex-direction: column; gap: .55rem; padding: .55rem 0 .2rem; }
.bar-cards:empty { display: none; }
.bar-card { background: rgba(255,255,255,.015); border: 1.5px solid var(--bar-line2); border-radius: 14px; padding: .1rem .7rem .45rem; }
.bar-card .bar-line:last-of-type { border-bottom: 0; }
.bar-card-head { align-items: center; border-bottom: 1px solid var(--bar-row); display: flex; flex-wrap: wrap; gap: .3rem .8rem; justify-content: space-between; min-height: 52px; }
.bar .bar-card-status { align-items: center; display: flex; flex-wrap: wrap; gap: .2rem .7rem; min-height: 44px; }
.bar-card-status b { color: #fff; font: 400 .72rem var(--bar-pixel); letter-spacing: .1em; }
.bar-card-status span { font: 400 .58rem var(--bar-pixel); letter-spacing: .1em; }
a.bar-card-status span::after { content: " ›"; }
.bar .bar-card-add { align-items: center; border: 1.5px solid currentColor; border-radius: 999px; display: flex; font: 400 .6rem var(--bar-pixel); letter-spacing: .08em; min-height: 44px; padding: 0 .9rem; }
.bar-card-lock { align-items: center; color: var(--bar-dim); display: flex; font: 400 .5rem var(--bar-pixel); gap: .4rem; letter-spacing: .1em; }
.bar-card-lock svg { height: 18px; width: 18px; }
.bar-card.is-new { border-color: var(--bar-blue); }
.bar-card.is-new .bar-card-status span, .bar-card.is-new .bar-card-add { color: var(--bar-blue-soft); }
.bar-card.is-cooking { background: rgba(255,191,63,.05); border-color: var(--bar-amber); }
.bar-card.is-cooking .bar-card-status span { color: var(--bar-amber-soft); }
.bar-card.is-ready { background: rgba(159,240,192,.06); border-color: var(--bar-mint); }
.bar-card.is-ready .bar-card-status span { color: var(--bar-mint); }
.bar-card.is-held { border-color: var(--bar-pink); border-style: dashed; }
.bar-card.is-held .bar-card-status span, .bar-card.is-held .bar-card-add { color: var(--bar-pink); }
.bar-card.is-done { border-color: var(--bar-line); opacity: .72; }
.bar-card.is-done .bar-card-status span { color: var(--bar-dim); }
.loyalty-main .bar form.bar-card-send { margin: .4rem 0 0; max-width: none; }
.loyalty-main .bar button.bar-send { background: var(--bar-pink); border: 0; border-radius: 14px; box-shadow: 0 0 14px rgba(255,154,184,.4); color: #24060f; cursor: pointer; font: 400 .7rem var(--bar-pixel); letter-spacing: .1em; margin: 0; min-height: 56px; padding: 0 1rem; text-shadow: none; width: 100%; }

/* the +1 confirm and the kitchen status popup */
.bar-plus-sheet, .bar-kpop { background: linear-gradient(180deg, #0f1633, #0a0f22); border: 1.5px solid var(--bar-blue); border-radius: 22px; box-shadow: 0 0 30px rgba(83,224,255,.35), 0 24px 60px rgba(0,0,0,.7); box-sizing: border-box; color: var(--bar-white); font: 400 1.2rem/1.15 var(--bar-lcd); max-height: calc(100dvh - 2rem); max-width: min(34rem, calc(100vw - 1.5rem)); padding: 0; width: 100%; }
.bar-plus-sheet::backdrop, .bar-kpop::backdrop { background: rgba(3,4,10,.75); }
.bar-plus-sheet[open]:not(:modal), .bar-kpop[open]:not(:modal) { inset: 1rem; margin: auto; position: fixed; z-index: 70; }
.loyalty-main .bar form.bar-plus-form { display: flex; flex-direction: column; gap: 1rem; margin: 0; max-width: none; padding: 1.3rem 1.3rem 1.2rem; }
.bar-plus-top { align-items: center; display: flex; gap: 1.1rem; }
.bar-plus-art { align-items: center; background: #04060e; border: 1px solid var(--bar-line2); border-radius: 18px; display: flex; flex: none; height: 120px; justify-content: center; overflow: hidden; width: 120px; }
.bar-plus-art img { height: 120px; mix-blend-mode: screen; object-fit: contain; width: 120px; }
.bar-plus-art [hidden] { display: none; }
.bar-plus-blank { color: var(--bar-blue); font: 400 1.6rem var(--bar-pixel); text-shadow: 0 0 12px rgba(83,224,255,.6); }
.bar-plus-what { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.bar-plus-what small { color: var(--bar-blue); font: 400 .62rem var(--bar-pixel); letter-spacing: .16em; }
.bar-plus-what h2 { color: #fff; font: 400 2.3rem/1 var(--bar-lcd); margin: 0; overflow-wrap: anywhere; }
.bar-plus-what span { color: var(--bar-body); font-size: 1.25rem; }
.bar-plus-what span:empty { display: none; }
.bar-plus-what b { color: #fff; font-size: 1.9rem; font-weight: 400; }
.bar-plus-goes { border-left: 3px solid var(--bar-blue); color: var(--bar-body); font-size: 1.25rem; margin: 0; padding: .2rem 0 .2rem .7rem; }
.bar-plus-goes.is-moves { background: rgba(255,191,63,.1); border: 1.5px solid var(--bar-amber); border-radius: 12px; color: var(--bar-amber-soft); padding: .55rem .8rem; }
.bar-plus-blocked { background: rgba(255,154,184,.1); border: 1.5px solid var(--bar-pink); border-radius: 12px; color: #ffd0de; font-size: 1.25rem; margin: 0; padding: .55rem .8rem; }
.bar-plus-blocked[hidden] { display: none; }
.bar-plus-buttons { display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.bar .bar-plus-no { align-items: center; border: 1.5px solid #4a5788; border-radius: 18px; color: var(--bar-body); display: flex; font: 400 .9rem var(--bar-pixel); justify-content: center; letter-spacing: .12em; min-height: 76px; }
.loyalty-main .bar button.bar-plus-yes { background: var(--bar-blue); border: 0; border-radius: 18px; box-shadow: 0 0 20px rgba(83,224,255,.55); color: #04121a; cursor: pointer; font: 400 .9rem var(--bar-pixel); letter-spacing: .1em; margin: 0; min-height: 76px; padding: 0 .8rem; text-shadow: none; width: 100%; }
.loyalty-main .bar button.bar-plus-yes:disabled { background: #1a2547; box-shadow: none; color: #7d89ad; cursor: default; }

.bar-kpop { border-color: var(--bar-amber); box-shadow: 0 0 30px rgba(255,191,63,.25), 0 24px 60px rgba(0,0,0,.7); max-width: min(42rem, calc(100vw - 1.5rem)); }
.bar-kpop[open] { display: flex; flex-direction: column; }
.bar-kpop > div { display: flex; flex-direction: column; min-height: 0; }
.bar-kpop-head { align-items: center; border-bottom: 1px solid var(--bar-line); display: flex; gap: .8rem; padding: .9rem 1rem .8rem 1.2rem; }
.bar-kpop-head h2 { color: #fff; display: flex; flex-direction: column; font: 400 2rem/1 var(--bar-lcd); margin: 0; }
.bar-kpop-head h2 small { color: var(--bar-amber-soft); font: 400 .58rem var(--bar-pixel); letter-spacing: .16em; margin-bottom: .25rem; }
.loyalty-main .bar button.bar-close { background: none; box-shadow: none; cursor: pointer; font: 400 1.8rem var(--bar-lcd); margin: 0 0 0 auto; min-height: 0; padding: 0; text-shadow: none; }
.bar-kpop-body { display: flex; flex-direction: column; gap: .8rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.2rem 1.2rem; }
.bar-kpop-wait { padding: 1.2rem; }
.bar-kt { border: 1.5px solid var(--bar-line2); border-radius: 16px; display: flex; flex-direction: column; gap: .6rem; padding: .7rem .9rem .8rem; }
.bar-kt header { align-items: baseline; display: flex; gap: .8rem; justify-content: space-between; }
.bar-kt header b { color: #fff; font: 400 .74rem var(--bar-pixel); letter-spacing: .1em; }
.bar-kt header span { font: 400 .58rem var(--bar-pixel); letter-spacing: .1em; }
.bar-kt.is-new { border-color: var(--bar-blue); }
.bar-kt.is-new header span { color: var(--bar-blue-soft); }
.bar-kt.is-cooking { border-color: var(--bar-amber); }
.bar-kt.is-cooking header span { color: var(--bar-amber-soft); }
.bar-kt.is-ready { border-color: var(--bar-mint); }
.bar-kt.is-ready header span { color: var(--bar-mint); }
.bar-kt.is-done header span { color: var(--bar-dim); }
.bar-kt.is-held { border-color: var(--bar-pink); border-style: dashed; }
.bar-kt.is-held header span { color: var(--bar-pink); }
.bar-steps { display: grid; gap: .3rem; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.bar-steps li { border-top: 5px solid #1f2a50; color: var(--bar-dim); display: flex; flex-direction: column; gap: .15rem; padding-top: .35rem; }
.bar-steps li span { font: 400 .5rem var(--bar-pixel); letter-spacing: .08em; }
.bar-steps li time { font-size: 1.15rem; }
.bar-steps li.is-done { border-top-color: var(--bar-blue); color: var(--bar-body); }
.bar-steps li.is-now { border-top-color: var(--bar-amber); color: #fff; }
.bar-kt.is-ready .bar-steps li.is-now { border-top-color: var(--bar-mint); }
.bar-kt.is-done .bar-steps li.is-now { border-top-color: var(--bar-blue); }
.bar-kt-lines { display: flex; flex-direction: column; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.bar-kt-lines li { align-items: baseline; display: grid; gap: .5rem; grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
.bar-kt-lines b { color: var(--bar-blue); font-weight: 400; }
.bar-kt-lines small { color: var(--bar-muted); font-size: 1.05rem; }
.bar-kt-lines em { color: var(--bar-amber-soft); font: 400 .46rem var(--bar-pixel); font-style: normal; letter-spacing: .1em; }
.bar-kt-lines li.is-void span { color: var(--bar-dim); text-decoration: line-through; }
.bar-kpage { margin: 1rem auto; max-width: 42rem; }

/* + OPEN A TAB with no tab picked: the same small round + as the header (Jesse, 2026-10-11) */
.bar .bar-none .bar-open { height: 52px; justify-content: center; min-height: 0; padding: 0; width: 52px; }
.bar .bar-none .bar-open svg { height: 24px; width: 24px; }

/* RING UP's front page: QUICK above the six categories; a category's items; FOOD's sections */
.ring-target { background: rgba(83,224,255,.1); border: 1.5px solid var(--bar-blue); border-radius: 12px; color: var(--bar-blue-soft); font: 400 .56rem var(--bar-pixel); letter-spacing: .08em; line-height: 1.5; margin: 0; padding: .45rem .8rem; }
.ring-index { display: flex; flex: 1; flex-direction: column; gap: .55rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .1rem .1rem 1rem; }
.ring-index[hidden], .ring-browse[hidden] { display: none; }
.ring-label { color: #8fa0cc; font: 400 .6rem var(--bar-pixel); letter-spacing: .16em; margin: .2rem 0 0; }
.ring-quick { display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.loyalty-main .ring-main button.ring-q { align-items: center; background: linear-gradient(180deg, #13183a, #0c1026); border: 1.5px solid var(--bar-purple); border-radius: 18px; box-shadow: 0 0 14px rgba(180,140,255,.18); color: #fff; display: flex; gap: .55rem; min-height: 84px; padding: .45rem .7rem .45rem .5rem; text-align: left; touch-action: manipulation; }
.loyalty-main .ring-main button.ring-q.is-many { border-color: var(--bar-amber); box-shadow: 0 0 14px rgba(255,191,63,.2); }
.loyalty-main .ring-main button.ring-q:active { background: rgba(180,140,255,.2); transform: scale(.98); }
.ring-q .ring-icon { height: 56px; width: 56px; }
.ring-q-words { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ring-q-words b { font-size: 1.45rem; font-weight: 400; line-height: 1; }
.ring-q-words span { color: var(--bar-body); font-size: 1.15rem; }
.ring-q.is-many .ring-q-words span { color: var(--bar-amber-soft); }
.ring-cats { display: grid; gap: .7rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.loyalty-main .ring-main button.ring-cat { align-items: center; background: linear-gradient(180deg, #0e1530, #0a0f22); border: 2px solid var(--bar-line2); border-radius: 22px; color: #fff; display: flex; flex-direction: column; gap: .3rem; justify-content: center; min-height: 168px; padding: .8rem .6rem; text-align: center; touch-action: manipulation; }
.loyalty-main .ring-main button.ring-cat:active { transform: scale(.98); }
.ring-cat .ring-icon { height: 72px; width: 72px; }
.ring-cat b { font: 400 .95rem var(--bar-pixel); letter-spacing: .1em; line-height: 1.25; }
.ring-cat small { color: var(--bar-muted); font-size: 1.15rem; }
.loyalty-main .ring-main button.ring-cat.is-draft, .loyalty-main .ring-main button.ring-cat.is-domestic-bottle, .loyalty-main .ring-main button.ring-cat.is-specialty { border-color: var(--bar-purple); box-shadow: 0 0 18px rgba(180,140,255,.18); }
.loyalty-main .ring-main button.ring-cat.is-liquor { border-color: var(--bar-blue); box-shadow: 0 0 18px rgba(83,224,255,.16); }
.loyalty-main .ring-main button.ring-cat.is-food { border-color: var(--bar-amber); box-shadow: 0 0 18px rgba(255,191,63,.18); }
.loyalty-main .ring-main button.ring-cat.is-food b { color: var(--bar-amber-soft); }
.loyalty-main .ring-main button.ring-cat.is-misc { border-color: #4a5788; }
.ring-cat .ring-icon.is-blank { border: 0; color: var(--bar-purple); font-size: 3rem; height: 72px; text-shadow: 0 0 12px rgba(180,140,255,.6); }
.ring-browse { display: flex; flex: 1; flex-direction: column; gap: .55rem; min-height: 0; }
.ring-crumb { align-items: center; display: flex; gap: .8rem; }
.loyalty-main .ring-main button.ring-home { align-items: center; background: rgba(83,224,255,.12); border-radius: 999px; box-shadow: inset 0 0 0 2px var(--bar-blue); color: #fff; display: flex; flex: none; font: 400 .66rem var(--bar-pixel); letter-spacing: .08em; min-height: 52px; padding: 0 1.1rem; }
.ring-crumb-title { color: #fff; font: 400 .9rem var(--bar-pixel); letter-spacing: .14em; margin: 0; }
.ring-emptycat { border: 1.5px dashed var(--bar-line2); border-radius: 16px; color: var(--bar-body); font-size: 1.35rem; grid-column: 1 / -1; margin: .5rem 0; padding: 1rem 1.1rem; }
.ring-pick-grid { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.loyalty-main .ring-sheet button.ring-tile { background: linear-gradient(180deg, #0e1530, #0a0f22); border: 1.5px solid var(--bar-amber); border-radius: 18px; color: #fff; display: flex; flex-direction: column; gap: .35rem; min-height: 130px; padding: .7rem .8rem .65rem; text-align: left; touch-action: manipulation; }
.loyalty-main .ring-sheet button.ring-tile:active { background: rgba(255,191,63,.16); transform: scale(.98); }
.ring-pick-count { background: var(--bar-amber); border-radius: 999px; color: #1a1000; font: 400 .6rem var(--bar-pixel); font-style: normal; padding: .3rem .55rem; }
.ring-pick-count[hidden] { display: none; }

/* a portrait tablet: two categories a row */
@media (max-width: 900px) {
  .ring-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loyalty-main .ring-main button.ring-cat { min-height: 140px; }
}
/* a short landscape tablet: shorter category tiles so all six fit under QUICK */
@media (max-height: 790px) and (min-width: 901px) {
  .loyalty-main .ring-main button.ring-cat { min-height: 140px; }
  .ring-cat .ring-icon { height: 60px; width: 60px; }
}

@media (max-width: 760px) {
  .ring-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loyalty-main .ring-main button.ring-q { min-height: 72px; }
  .ring-q .ring-icon { height: 44px; width: 44px; }
  .loyalty-main .ring-main button.ring-cat { min-height: 120px; }
  .ring-cat .ring-icon { height: 52px; width: 52px; }
  .ring-cat b { font-size: .8rem; }
  .ring-index { overflow: visible; }
  .bar-line { gap: .45rem; grid-template-columns: 50px 32px minmax(0, 1fr) 2rem auto; }
  .bar .bar-line .bar-icon { height: 32px; width: 32px; }
  .bar .bar-plus { width: 50px; }
  .bar-card-head { flex-wrap: nowrap; }
  .bar .bar-card-status { flex: 1; min-width: 0; }
  .bar .bar-card-add { flex: none; padding: 0 .7rem; }
  .bar-card-head:has(.bar-card-lock) { flex-wrap: wrap; }
  .bar-plus-art, .bar-plus-art img { height: 88px; width: 88px; }
  .bar-plus-what h2 { font-size: 1.9rem; }
  .bar-steps li time { font-size: 1rem; }
}

/* RING UP's one toolbar row (Jesse, 2026-10-11): ‹ TAB, ‹ MENU, then the category or FOOD's chips. */
.ring-top { flex-wrap: nowrap; min-height: 52px; }
.ring-top .ring-chips { flex: 1; flex-wrap: nowrap; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.ring-top .ring-chips::-webkit-scrollbar { display: none; }
.ring-top .ring-chips > * { flex: none; white-space: nowrap; }
.ring-top .ring-crumb-title { white-space: nowrap; }
.ring-top [hidden], .loyalty-main .ring-main button.ring-home[hidden] { display: none; }
/* The ticket note lives under ADDING TO in the draft column now. */
.ring-who .ring-target { background: none; border: 0; color: var(--bar-amber-soft); display: block; font: 400 .5rem/1.5 var(--bar-pixel); letter-spacing: .08em; margin-top: .25rem; padding: 0; }
/* On the front page the QUICK tiles share the toolbar row with ‹ TAB. */
.ring-top .ring-quick { flex: 1; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); min-width: 0; }
.ring-top .ring-back { align-self: stretch; }

/* No DRINKS / FOOD headings (Jesse, 2026-10-16): a stripe down the left says what's what. Drinks
   purple, misc (soda, open keys) blue, food tickets amber then red, alternating by the order they
   were sent on the tab. */
.bar-group { border-left: 4px solid var(--bar-purple); margin: .45rem 0; padding-left: .55rem; }
.bar-group.is-misc { border-left-color: var(--bar-blue); }
.bar-group + .bar-group { margin-top: .7rem; }
.bar-group .bar-line:last-child { border-bottom: 0; }
.bar-cards { padding-top: .25rem; }
.bar-card.is-stripe-a { border-left: 5px solid var(--bar-amber); }
.bar-card.is-stripe-b { border-left: 5px solid #ff4a5e; }
.bar-card.is-held.is-stripe-a, .bar-card.is-held.is-stripe-b { border-left-style: solid; }
/* A ticket's title row, shorter (Jesse, 2026-10-16: keep "TICKET #1 · PICKED UP", less tall). */
.bar-card-head { gap: .2rem .6rem; min-height: 0; padding: .3rem 0; }
.bar .bar-card-status { min-height: 34px; }
.bar .bar-card-add { min-height: 34px; padding: 0 .75rem; }
.bar-card-lock { min-height: 34px; }
