/* Mac n Melts - styles. Warm mac-bar counter identity. The signature device is
   the cart rendered as a paper "check" in the same mono face the thermal
   printer uses, so the on-screen order previews the printed receipt. */

:root {
  --ceramic: #f7f2e9;
  --surface: #fffdf8;
  --crust:   #efe3cf;
  --cheddar: #e29a2b;
  --toast:   #c24b1f;
  --ink:     #2b1e12;
  --muted:   #7a6a56;
  --line:    #e7decf;
  --radius:  1.25rem;
  --shadow:  0 1px 2px rgba(43,30,18,.06), 0 8px 24px -12px rgba(43,30,18,.18);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ceramic);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; margin: 0; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--toast); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---- Top bar + category rail ---- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247,242,233,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; }
.brand .n { color: var(--toast); }
.brand-loc { color: var(--muted); font-size: .9rem; margin-left: .5rem; }
.rail { display: flex; gap: .5rem; overflow-x: auto; padding: 0 1rem .5rem; max-width: 1100px; margin: 0 auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; text-decoration: none; padding: .35rem .9rem; border-radius: 999px;
  font-size: .9rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, color .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--cheddar); color: var(--toast); }

/* ---- Layout ---- */
.layout { display: grid; gap: 2rem; padding: 2rem 0; }
@media (min-width: 1024px) { .layout { grid-template-columns: 1fr 360px; } }

.cat { scroll-margin-top: 8rem; margin-bottom: 3rem; }
.cat h2 { font-size: 1.5rem; font-weight: 800; }
.rule { border: 0; border-top: 1.5px dashed var(--line); margin: .5rem 0 1.25rem; }

.grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }

.card {
  text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .35rem; transition: border-color .15s;
}
.card:hover { border-color: var(--cheddar); }
.card-top { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.card-name { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.card:hover .card-name { color: var(--toast); }
.card-price { color: var(--cheddar); font-weight: 700; flex: 0 0 auto; }
.card-desc { color: var(--muted); font-size: .9rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tag { color: var(--muted); font-size: .72rem; margin-top: auto; padding-top: .25rem; }

/* ---- Cart "check" ---- */
.cart-wrap { display: none; }
@media (min-width: 1024px) { .cart-wrap { display: block; } .cart-sticky { position: sticky; top: 8rem; } }

.check {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  position: relative; margin-top: 10px; font-family: var(--mono); font-size: 13px;
}
.check::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
  background-image: radial-gradient(circle at 6px 0, transparent 0 5px, var(--surface) 5px);
  background-size: 12px 10px; background-repeat: repeat-x;
}
.check-body { padding: 1.25rem; }
.check-title { text-align: center; font-weight: 800; font-size: 1.05rem; }
.check-sub { text-align: center; color: var(--muted); font-size: .75rem; }
.dash { border: 0; border-top: 1.5px dashed var(--line); margin: .75rem 0; }
.empty { text-align: center; color: var(--muted); padding: 1.5rem 0; line-height: 1.5; }
.line + .line { margin-top: .75rem; }
.line-head { display: flex; justify-content: space-between; gap: .5rem; font-weight: 700; }
.line-mods { color: var(--muted); padding-left: 1rem; font-size: 12px; line-height: 1.3; }
.line-notes { color: var(--muted); padding-left: 1rem; font-size: 12px; font-style: italic; }
.line-actions { padding-left: 1rem; margin-top: .25rem; display: flex; gap: .75rem; font-size: 12px; }
.line-actions button { background: none; border: 0; text-decoration: underline; color: var(--ink); padding: 0; }
.line-actions button:hover { color: var(--toast); }
.line-actions .rm { margin-left: auto; }
.totalrow { display: flex; justify-content: space-between; }
.check-foot { padding: 1rem; border-top: 1px solid var(--line); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 3rem; padding: 0 1.5rem; border-radius: 999px; border: 0;
  background: var(--toast); color: #fff; font-weight: 700; font-family: var(--body);
  text-decoration: none; transition: filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { filter: brightness(.95); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-block { width: 100%; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost.sel { background: var(--toast); color: #fff; border-color: var(--toast); }
.btn-pill { height: 2.5rem; padding: 0 1rem; border-radius: 999px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--line); }
.btn-pill.sel { background: var(--toast); color: #fff; border-color: var(--toast); }
.btn-pill.tip.sel { background: rgba(226,154,43,.2); color: var(--ink); border-color: var(--cheddar); }

/* ---- Mobile cart bar + sheet ---- */
.mobilebar {
  display: none; position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 30;
  height: 3.5rem; border-radius: 999px; background: var(--toast); color: #fff;
  font-weight: 700; align-items: center; justify-content: space-between; padding: 0 1.25rem;
  border: 0; box-shadow: var(--shadow);
}
@media (max-width: 1023px) { .mobilebar.show { display: flex; } }

.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(43,30,18,.4);
  backdrop-filter: blur(4px); display: flex; }
.scrim.bottom { align-items: flex-end; }
.scrim.center { align-items: center; justify-content: center; }
.sheet { background: var(--ceramic); width: 100%; border-radius: var(--radius) var(--radius) 0 0;
  max-height: 88vh; overflow-y: auto; padding: 1rem; }

/* ---- Modal ---- */
.modal { background: var(--surface); width: 100%; max-height: 92vh; display: flex; flex-direction: column;
  overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); }
@media (min-width: 640px) { .modal { max-width: 32rem; border-radius: var(--radius); } }
.modal-head { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-head h2 { font-size: 1.25rem; font-weight: 800; }
.modal-desc { color: var(--muted); font-size: .9rem; margin-top: .25rem; line-height: 1.3; }
.x { flex: 0 0 auto; height: 2.25rem; width: 2.25rem; border-radius: 999px; border: 0;
  background: none; color: var(--muted); font-size: 1.1rem; }
.x:hover { background: var(--crust); }
.modal-body { padding: 1rem 1.25rem; overflow-y: auto; flex: 1; }
.group { margin-bottom: 1.5rem; border: 0; padding: 0; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.group-name { font-weight: 700; font-size: .95rem; }
.req { color: var(--toast); margin-left: .15rem; }
.group-hint { color: var(--muted); font-size: .75rem; }
.group-err { color: var(--toast); font-size: .75rem; font-weight: 500; margin-bottom: .5rem; }
.opt { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: .6rem;
  border: 1px solid var(--line); cursor: pointer; margin-bottom: .35rem; transition: background .12s, border-color .12s; }
.opt:hover { background: rgba(239,227,207,.5); }
.opt.sel { border-color: var(--toast); background: rgba(194,75,31,.05); }
.opt.disabled { opacity: .5; cursor: not-allowed; }
.opt input { accent-color: var(--toast); width: 1rem; height: 1rem; }
.opt-name { flex: 1; font-size: .95rem; }
.opt-price { color: var(--muted); font-size: .9rem; }
.modal-foot { padding: 1rem 1.25rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .75rem; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { height: 2.5rem; width: 2.5rem; border: 0; background: none; font-size: 1.1rem; }
.qty button:hover { background: var(--crust); }
.qty span { width: 2rem; text-align: center; font-weight: 700; }
textarea, input[type="text"], input[type="tel"], input[type="email"],
input[type="password"], input[type="number"], input[type="url"],
input[type="search"], input:not([type]) {
  width: 100%; border: 1px solid var(--line); background: rgba(247,242,233,.5);
  border-radius: .6rem; padding: .6rem .75rem; font-family: var(--body); font-size: .95rem; }
textarea:focus, input:focus { background: var(--surface); }
textarea { resize: none; }
.field-label { font-size: .75rem; color: var(--muted); font-weight: 500; display: block; margin-bottom: .25rem; }

/* ---- Checkout ---- */
.co-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .co-grid { grid-template-columns: 1fr 340px; } }
.section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.section h2 { font-size: .95rem; font-weight: 700; margin-bottom: .75rem; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; }
.two { display: grid; gap: .75rem; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); font-family: var(--mono); font-size: 13px; }
.summary-title { font-weight: 800; text-align: center; margin-bottom: .75rem; font-size: 1rem; }
.summary .totalrow { margin-bottom: .35rem; }
.summary .grand { font-weight: 800; font-size: .95rem; }
.err { color: var(--toast); font-weight: 500; font-size: .9rem; }
.co-sticky { position: static; }
@media (min-width: 1024px) { .co-sticky { position: sticky; top: 2rem; } }

/* ---- Offline banner ---- */
.offline {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--ink); color: var(--ceramic); text-align: center;
  padding: .6rem 1rem; font-size: .85rem;
}
.offline.show { display: block; }

/* ---- Success ---- */
.center-screen { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 1.5rem; }
.success h1 { font-size: 2rem; font-weight: 800; }
.emoji { font-size: 3rem; margin-bottom: .5rem; }
.order-num { font-family: var(--mono); font-weight: 800; color: var(--toast); }

.loading { text-align: center; color: var(--muted); padding: 4rem 1rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============================================================
   HOMEPAGE (marketing)
   ============================================================ */
.home { background: var(--ceramic); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; transition: background .2s, box-shadow .2s; }
.nav.scrolled { background: rgba(247,242,233,.95); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav .brand { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-decoration: none; color: var(--ink); }
.nav .brand .n { color: var(--toast); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); }
.nav-links a:hover { color: var(--toast); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); }
.btn-sm { height: 2.4rem; padding: 0 1.1rem; font-size: .9rem; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: var(--ceramic); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .7rem .25rem; width: 100%; }
  .nav-links .btn { margin-top: .5rem; }
}

/* Hero */
.hero { padding: 3rem 0 2rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } .hero { padding: 4.5rem 0 3rem; } }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--toast); background: rgba(194,75,31,.08); padding: .35rem .8rem; border-radius: 999px; }
.eyebrow.light { color: #fff; background: rgba(255,255,255,.15); }
.hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: .98; font-weight: 800; margin: 1.1rem 0; }
.hero-copy h1 .accent { color: var(--toast); }
.hero-copy p { font-size: 1.15rem; color: var(--muted); max-width: 30rem; line-height: 1.5; }
.hero-cta { display: flex; gap: .75rem; margin: 1.75rem 0 1.25rem; flex-wrap: wrap; }
.btn-lg { height: 3.4rem; padding: 0 1.9rem; font-size: 1.05rem; }
.hero-meta { display: flex; gap: 1.25rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; font-weight: 500; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; border-radius: 1.75rem; box-shadow: var(--shadow); display: block; }

/* Bands & sections */
.section-pad { padding: 4rem 0; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.link-more { color: var(--toast); font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; }

.band { background: var(--crust); padding: 3.5rem 0; }
.band .section-title { text-align: center; margin-bottom: 2.25rem; }
.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4,1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 999px; background: var(--toast);
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: .9rem; }
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .95rem; line-height: 1.4; }

/* Featured menu */
.feature-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .feature-grid { grid-template-columns: repeat(4,1fr); } }
.feature-card { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s; }
.feature-card:hover { border-color: var(--cheddar); transform: translateY(-2px); }
.feature-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.feature-name { font-weight: 700; font-size: 1.05rem; }
.feature-price { color: var(--cheddar); font-weight: 800; }
.feature-desc { color: var(--muted); font-size: .9rem; line-height: 1.4; flex: 1; }
.feature-cta { color: var(--toast); font-weight: 700; font-size: .9rem; }

/* Split (story) */
.split { padding: 4rem 0; }
.split-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.split-art img { width: 100%; border-radius: 1.75rem; box-shadow: var(--shadow); display: block; }
.split-copy h2 { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; margin: 1rem 0; }
.split-copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; margin-bottom: 1rem; max-width: 32rem; }

/* Catering */
.catering { background: var(--ink); color: var(--ceramic); padding: 4rem 0; }
.catering-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .catering-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.catering-copy h2 { color: #fff; font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; margin: 1rem 0; }
.catering-copy p { color: rgba(247,242,233,.8); font-size: 1.05rem; line-height: 1.55; margin-bottom: 1.25rem; max-width: 32rem; }
.catering-art img { width: 100%; border-radius: 1.75rem; box-shadow: var(--shadow); display: block; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); filter: none; }

/* Location */
.location-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 800px) { .location-grid { grid-template-columns: 1.2fr .8fr; gap: 3rem; } }
.addr { font-size: 1.1rem; line-height: 1.5; margin: 1rem 0; }
.addr a { color: var(--toast); text-decoration: none; }
.hours-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); font-family: var(--mono); }
.hours-title { font-weight: 800; font-size: 1.1rem; }
.hours-row { display: flex; justify-content: space-between; padding: .4rem 0; }

/* Footer */
.footer { background: var(--crust); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.footer-brand .n { color: var(--toast); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { text-decoration: none; font-weight: 600; color: var(--ink); }
.footer-links a:hover { color: var(--toast); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); flex-wrap: wrap; gap: .5rem; }
.footer-staff { text-decoration: none; font-size: .85rem; }
.footer-staff:hover { color: var(--toast); }

/* ============================================================
   ADMIN
   ============================================================ */
.admin { background: var(--ceramic); }
.admin-auth { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--ceramic); }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; width: 100%; max-width: 25rem; }
.auth-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .25rem; }
.auth-form { display: grid; gap: .85rem; margin-top: 1rem; }
.auth-form label { display: block; }

.admin-bar { background: var(--ink); color: var(--ceramic); position: sticky; top: 0; z-index: 30; }
.admin-bar .brand { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.3rem; }
.admin-bar .brand .n { color: var(--cheddar); }
.admin-bar .muted { color: rgba(247,242,233,.6); }
.admin-bar-inner { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.admin-nav { display: flex; gap: 1.25rem; align-items: center; }
.admin-nav a { color: rgba(247,242,233,.85); text-decoration: none; font-weight: 600; font-size: .9rem; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; }
.admin-nav a.link-more { color: var(--cheddar); }
@media (max-width: 640px) { .admin-nav { gap: .85rem; font-size: .8rem; } .admin-nav a:nth-child(3) { display: none; } }

.admin-main { padding: 2rem 0 4rem; }
.admin-h1 { font-size: 1.9rem; font-weight: 800; }
.admin-h2 { font-size: 1.2rem; font-weight: 800; margin: 2rem 0 1rem; }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(3,1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat-val { font-family: var(--display); font-weight: 800; font-size: 2rem; margin-top: .25rem; }

.card-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: 1fr 1fr; } }
.admin-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.admin-card:hover { border-color: var(--cheddar); transform: translateY(-2px); }
.admin-card-icon { font-size: 1.8rem; }
.admin-card h3 { font-size: 1.15rem; font-weight: 700; margin: .5rem 0 .25rem; }

.adm-cat { margin-top: 1.75rem; }
.adm-cat-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--line); padding-bottom: .5rem; margin-bottom: .85rem; }
.adm-cat-head h2 { font-size: 1.25rem; font-weight: 800; }
.badge { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 999px; vertical-align: middle; }
.badge.off { background: var(--crust); color: var(--muted); }

.adm-items { display: grid; gap: .75rem; }
.adm-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow);
  display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .adm-item { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.adm-item-main { display: grid; gap: .5rem; }
.adm-name { font-weight: 700; font-size: 1.05rem; }
.adm-desc { font-size: .9rem; }
.adm-item-side { display: grid; gap: .5rem; align-content: start; }
.adm-mini { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.adm-mini input { width: 6rem; }
.adm-check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; }
.adm-check input { accent-color: var(--toast); width: 1.05rem; height: 1.05rem; }
.adm-select { width: 100%; border: 1px solid var(--line); background: rgba(247,242,233,.5); border-radius: .6rem; padding: .55rem .6rem; font-family: var(--body); }

.admin-toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(2rem);
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; box-shadow: var(--shadow); }
.admin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.admin-toast.bad { background: var(--toast); }

/* ============================================================
   REGISTER (POS)
   ============================================================ */
.pos { background: var(--ceramic); height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.pos-bar { background: var(--ink); color: var(--ceramic); height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; flex: 0 0 auto; }
.pos-bar .brand { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.pos-bar .brand .n { color: var(--cheddar); }
.pos-bar .muted { color: rgba(247,242,233,.6); }
.pos-bar-right { display: flex; align-items: center; gap: 1rem; font-size: .9rem; }
.pos-bar-right .link-more { color: var(--cheddar); }

.pos-layout { flex: 1; display: grid; grid-template-columns: 1fr; min-height: 0; }
@media (min-width: 820px) { .pos-layout { grid-template-columns: 1fr 360px; } }

.pos-menu { overflow-y: auto; padding: 1rem; }
.pos-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .75rem; position: sticky; top: 0; background: var(--ceramic); }
.pos-tab { flex: 0 0 auto; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.pos-tab.on { background: var(--toast); color: #fff; border-color: var(--toast); }
.pos-grid { display: grid; gap: .65rem; grid-template-columns: repeat(2,1fr); }
@media (min-width: 560px) { .pos-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1100px) { .pos-grid { grid-template-columns: repeat(4,1fr); } }
.pos-item { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: .9rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .4rem; text-align: left; min-height: 5rem; justify-content: space-between; }
.pos-item:hover { border-color: var(--cheddar); }
.pos-item:active { transform: scale(.98); }
.pos-item-name { font-weight: 700; line-height: 1.15; }
.pos-item-price { color: var(--cheddar); font-weight: 700; }

.pos-ticket { background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.pos-ticket-head { padding: .85rem; border-bottom: 1px solid var(--line); }
.seg { display: flex; gap: .35rem; }
.seg button { flex: 1; padding: .5rem; border-radius: .6rem; border: 1px solid var(--line); background: var(--ceramic); font-weight: 600; }
.seg button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pos-lines { flex: 1; overflow-y: auto; padding: .85rem; }
.pos-line { padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.pos-line-top { display: flex; justify-content: space-between; font-weight: 600; }
.pos-line-mods { color: var(--muted); font-size: .8rem; padding-left: .25rem; }
.pos-line-act { display: flex; gap: .75rem; margin-top: .3rem; font-size: .85rem; }
.pos-line-act button { background: none; border: 0; text-decoration: underline; color: var(--ink); padding: 0; }
.pos-line-act .rm { margin-left: auto; color: var(--toast); }
.pos-totals { padding: .85rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; }
.pos-totals .trow { display: flex; justify-content: space-between; padding: .15rem 0; }
.pos-totals .grand { font-weight: 800; font-size: 1rem; border-top: 1px dashed var(--line); margin-top: .35rem; padding-top: .35rem; }
.pos-actions { padding: .85rem; display: flex; gap: .65rem; border-top: 1px solid var(--line); }
.pos-actions .btn-ghost { flex: 0 0 auto; }
.pos-charge { flex: 1; }

/* charge modal */
.pay-choose { display: grid; gap: .75rem; }
.cash-input { font-size: 1.4rem; font-family: var(--mono); text-align: center; }
.cash-quick { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }
.change-line { display: flex; justify-content: space-between; font-size: 1.1rem; margin: .75rem 0 1rem; }
.change-line strong { font-family: var(--mono); }

/* order status badges */
.badge.st-in_kitchen { background: rgba(226,154,43,.2); color: #8a5a10; }
.badge.st-ready { background: rgba(46,125,50,.15); color: #2e7d32; }
.badge.st-completed { background: var(--crust); color: var(--muted); }
.badge.st-canceled { background: rgba(194,75,31,.15); color: var(--toast); }
.badge.st-pending, .badge.st-paid { background: var(--crust); color: var(--ink); }

/* Brand logo mark (placeholder logo lives at /assets/icons/logo.png + logo-mark.png) */
.brand { display: inline-flex; align-items: center; gap: .5rem; }
.brand-mark { height: 32px; width: 32px; border-radius: 8px; display: inline-block; vertical-align: middle; }
.footer-brand .brand-mark { height: 28px; width: 28px; }

/* ============================================================
   IMAGES (storefront) - only shown when an image_url is set
   ============================================================ */
.card.has-img { padding: 0; overflow: hidden; }
.card-img { width: 100%; height: 130px; object-fit: cover; display: block; }
.card-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; }
.card:not(.has-img) .card-body { padding: 0; }
.chip-img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; margin-right: .4rem; vertical-align: middle; }
.opt-img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; margin-right: .25rem; }

/* order context bar (location · pickup · time) */
.order-context { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.order-context .ctx { white-space: nowrap; }
.order-context .ctx-change { color: var(--toast); font-weight: 700; text-decoration: none; }
.order-context .ctx-change:hover { text-decoration: underline; }

/* admin image bits */
.adm-imgrow input { width: 100%; }
.adm-thumb { width: 100%; max-width: 220px; border-radius: 10px; margin-top: .4rem; }
.adm-cat-thumb { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; margin-right: .5rem; vertical-align: middle; }

/* ============================================================
   ORDER FLOW (location picker + schedule)
   ============================================================ */
.order-flow { background: var(--ceramic); min-height: 100vh; }
.flow-bar { background: var(--ink); color: #fff; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; }
.flow-bar .brand { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.flow-bar .brand .n { color: var(--cheddar); }
.flow-bar .brand-mark { height: 26px; vertical-align: middle; margin-right: .4rem; }
.flow-bar .link-more { color: var(--cheddar); text-decoration: none; font-weight: 600; font-size: .9rem; }

.picker { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 56px); }
@media (min-width: 860px) { .picker { grid-template-columns: 420px 1fr; } }
.picker-list { padding: 1.5rem; overflow-y: auto; max-height: calc(100vh - 56px); }
.picker-h1 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; margin: 1rem 0 .75rem; }
.picker-search { width: 100%; margin-bottom: 1rem; }
.picker-map { min-height: 50vh; }
.picker-map #map { width: 100%; height: 100%; min-height: 50vh; border-radius: 0; }
@media (min-width: 860px) { .picker-map { padding: 1.25rem 1.25rem 1.25rem 0; } .picker-map #map { border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; } }

.loc-list { display: grid; gap: .85rem; }
.loc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s; }
.loc-card:hover { border-color: var(--cheddar); }
.loc-name { font-weight: 800; font-size: 1.05rem; }
.loc-addr { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.loc-hours { color: var(--muted); font-size: .82rem; margin-top: .35rem; }
.loc-actions { display: flex; align-items: center; justify-content: space-between; margin-top: .75rem; }
.loc-phone { color: var(--ink); font-size: .85rem; text-decoration: none; }

.schedule { display: grid; place-items: start center; padding: 2rem 1.25rem; }
.sched-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.5rem; width: 100%; max-width: 32rem; }
.back-link { display: inline-block; margin: .5rem 0; color: var(--muted); text-decoration: none; font-weight: 600; }
.day-strip { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; }
.day { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ceramic); min-width: 3.2rem; }
.day.on { background: var(--toast); color: #fff; border-color: var(--toast); }
.day-name { font-size: .7rem; font-weight: 700; letter-spacing: .04em; }
.day-num { font-size: 1.05rem; font-weight: 800; }
.slots { display: grid; gap: .5rem; margin-top: 1rem; max-height: 44vh; overflow-y: auto; }
.slot { padding: .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; }
.slot:hover { border-color: var(--cheddar); }

/* ============================================================
   MENU BOARD GALLERY + LIGHTBOX
   ============================================================ */
.menu-gallery-wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.menu-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
.menu-board { padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow); cursor: zoom-in; transition: transform .15s, border-color .15s; }
.menu-board:hover { transform: translateY(-3px); border-color: var(--cheddar); }
.menu-board img { width: 100%; display: block; }

.lightbox { position: fixed; inset: 0; background: rgba(10,7,4,.92); display: flex; align-items: center; justify-content: center; padding: 2rem; z-index: 200; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 95vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 1rem; right: 1.25rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(247,242,233,.15); color: #fff; font-size: 1.3rem; cursor: pointer; }
.lightbox-close:hover { background: rgba(247,242,233,.3); }

/* admin image uploader */
.adm-upload { display: inline-flex; align-items: center; gap: .4rem; }
.adm-upload input[type="file"] { display: none; }
.adm-imgrow-wrap { display: flex; align-items: center; gap: .5rem; }
.adm-imgrow-wrap .adm-imgrow { flex: 1; }

/* delivery address form + time-step head (in the ordering panel) */
.addr-form { display: block; }
.addr-row { display: flex; gap: .6rem; margin-top: .6rem; }
.time-head { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; box-shadow: var(--shadow); margin-bottom: .25rem; }

/* general logo mark sizing (nav bars everywhere) */
.brand-mark { height: 24px; width: auto; vertical-align: middle; margin-right: .45rem; border-radius: 6px; }
.admin-bar .brand-mark, .pos-bar .brand-mark { height: 26px; }

/* register delivery details */
.pos-delivery { margin-top: .6rem; }
.pos-deliver-to { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--ceramic); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; font-size: .85rem; }

/* admin menu grid (click a card to edit) */
.adm-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .adm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .adm-grid { grid-template-columns: repeat(4, 1fr); } }
.adm-grid-card { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; text-align: left; transition: border-color .15s, transform .15s; position: relative; }
.adm-grid-card:hover { border-color: var(--cheddar); transform: translateY(-2px); }
.adm-grid-img { aspect-ratio: 4 / 3; background: var(--ceramic); display: grid; place-items: center; overflow: hidden; }
.adm-grid-img img { width: 100%; height: 100%; object-fit: cover; }
.adm-grid-noimg { color: var(--muted); font-size: .8rem; }
.adm-grid-meta { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; padding: .6rem .7rem; }
.adm-grid-name { font-weight: 700; font-size: .9rem; line-height: 1.15; }
.adm-grid-price { color: var(--cheddar); font-weight: 700; font-size: .85rem; white-space: nowrap; }
.adm-grid-badges { position: absolute; top: .5rem; left: .5rem; display: flex; gap: .3rem; }

/* orders log (read-only manager view) */
.ord-filters { display: flex; gap: .5rem; margin: .25rem 0 1rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .4rem .85rem; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-n { opacity: .65; margin-left: .15rem; }
.ord-log { display: grid; gap: .6rem; }
.ord-row { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); padding: .75rem .9rem; }
.ord-row.is-delivery { border-left: 3px solid var(--cheddar); }
.ord-top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.ord-num { font-weight: 800; font-family: var(--mono, monospace); }
.ord-total { font-weight: 800; color: var(--cheddar); }
.ord-meta { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.ord-cust { font-size: .85rem; margin-top: .35rem; font-weight: 600; }
.ord-addr { font-size: .82rem; margin-top: .2rem; color: var(--ink); }

/* smart-wait notice in the ordering flow */
.wait-note { background: var(--ceramic); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; font-size: .85rem; margin: .25rem 0 .75rem; }
.wait-note strong { color: var(--cheddar); }

/* card-reader config panel (admin Devices) */
.reader-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 1rem 1.1rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.reader-panel .seg { display: inline-flex; flex-wrap: wrap; }

/* modifier manager (admin) */
.mg-card { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.mg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.mg-head h2 { margin: 0 0 .1rem; font-size: 1.1rem; }
.mod-list { display: grid; gap: .4rem; }
.mod-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .6rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ceramic); }
.mod-row.is-off { opacity: .6; }
.mod-name { font-weight: 600; font-size: .9rem; }
.mod-price { font-weight: 700; color: var(--cheddar); font-size: .85rem; white-space: nowrap; }
.mod-acts { display: flex; align-items: center; gap: .15rem; }
.mod-del { color: #b23b2e; }
.mod-locked { font-size: .9rem; padding: 0 .4rem; cursor: help; }
.attach-list { display: grid; gap: .2rem; max-height: 50vh; overflow: auto; }
.attach-row { padding: .35rem .2rem; }

/* ---- end of day / cash drawer ---- */
.eod-card { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 1.1rem 1.2rem; max-width: 34rem; }
.eod-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.eod-expected { text-align: right; }
.eod-expected span { display: block; font-size: .78rem; }
.eod-expected strong { font-size: 1.5rem; color: var(--cheddar); }
.eod-lines { display: grid; gap: .1rem; }
.eod-line { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: .9rem; border-bottom: 1px dashed var(--line); }
.eod-line:last-child { border-bottom: 0; }
.eod-total { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--line); margin-top: .25rem; padding-top: .5rem; }
.os-ok span:last-child { color: #2e7d32; }
.os-over span:last-child { color: #2e7d32; }
.os-short span:last-child { color: #b23b2e; }
.os-ok, .os-over { color: #2e7d32; }
.os-short { color: #b23b2e; }
.eod-moves { margin-top: 1rem; }
.eod-moves h3 { font-size: .9rem; margin: 0 0 .35rem; }
.eod-move { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; font-size: .82rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.denoms { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; }
.denom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border: 1px solid var(--line); border-radius: 8px; padding: .3rem .55rem; background: var(--ceramic); font-size: .85rem; }
.denom input { width: 4.5rem; text-align: right; }
.eod-hist { display: grid; gap: .4rem; }
.eod-hist-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr .8fr; gap: .6rem; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: .55rem .7rem; font-size: .85rem; }
@media (max-width: 720px) { .eod-hist-row { grid-template-columns: 1fr 1fr; } .denoms { grid-template-columns: 1fr; } }

/* drawer chip in the register bar */
.drawer-chip { display: inline-flex; align-items: center; }
.drawer-on { font-size: .8rem; font-weight: 700; color: var(--cheddar); background: rgba(255,255,255,.08); border-radius: 999px; padding: .25rem .6rem; }

/* role legend on the staff screen */
.role-legend { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1.1rem; }
.role-grid { display: grid; gap: .5rem; }
.role-grid > div { display: grid; gap: .1rem; }
.role-grid strong { font-size: .88rem; }
.role-grid span { font-size: .82rem; }
@media (min-width: 780px) { .role-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- homepage polish ---- */
.section-sub { color: var(--muted); margin: -.35rem 0 1.4rem; font-size: .95rem; }

/* live open/closed status */
.dot-open, .dot-closed { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }
.dot-open { background: #35b06a; box-shadow: 0 0 0 3px rgba(53,176,106,.18); }
.dot-closed { background: #b23b2e; box-shadow: 0 0 0 3px rgba(178,59,46,.15); }
.hero-open { font-weight: 700; }
.hero-open.closed { opacity: .85; }
.hours-note { font-size: .85rem; font-weight: 600; padding-top: .2rem; }

/* featured items with photos */
.feature-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-3px); }
.feature-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ceramic); }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.feature-card:hover .feature-img img { transform: scale(1.05); }
.feature-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.feature-cta { margin-top: auto; }

/* build steps call to action */
.steps-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.steps-cta .muted { font-size: .88rem; }

/* steps get a touch more presence */
.step { transition: transform .18s ease; }
.step:hover { transform: translateY(-2px); }

/* QR pay-on-your-phone (register) */
.qr-pay { text-align: center; padding: .25rem 0 .5rem; }
.qr-lead { font-weight: 700; margin: 0 0 .75rem; }
.qr-box { display: inline-block; background: #fff; padding: .85rem; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.qr-box canvas { display: block; }
.qr-amt { font-weight: 800; color: var(--cheddar); margin: .75rem 0 .2rem; font-size: 1.05rem; }

/* sub-nav (tabs inside a section, e.g. Menu -> Items / Modifiers) */
.subnav { display: flex; gap: .25rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); }
.subnav-link { padding: .5rem .9rem; font-weight: 700; font-size: .9rem; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav-link:hover { color: var(--ink); }
.subnav-link.on { color: var(--ink); border-bottom-color: var(--cheddar); }

/* ---- register sign-on lock (employee list + PIN pad) ---- */
.lock { position: fixed; inset: 0; z-index: 60; background: rgba(30, 20, 12, .96); display: grid; place-items: center; padding: 1.5rem; }
.lock-card { width: min(880px, 100%); height: min(560px, 88vh); display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.lock-people { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); }
.lock-head { display: flex; align-items: center; gap: .5rem; padding: 1rem 1.1rem; font-weight: 800; border-bottom: 1px solid var(--line); }
.lock-list { overflow-y: auto; padding: .6rem; display: grid; gap: .35rem; align-content: start; }
.lock-person { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .6rem .7rem; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }
.lock-person:hover { background: var(--ceramic); }
.lock-person.on { background: var(--ceramic); border-color: var(--cheddar); }
.lock-person.nopin { opacity: .45; cursor: not-allowed; }
.lock-avatar { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; flex: none; }
.lock-person.on .lock-avatar { background: var(--cheddar); }
.lock-who { display: grid; gap: .1rem; min-width: 0; }
.lock-who strong { font-size: .95rem; }
.lock-who small { color: var(--muted); font-size: .75rem; text-transform: capitalize; }
.lock-pin { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.2rem; gap: .5rem; }
.lock-selected { font-weight: 800; font-size: 1.05rem; min-height: 1.4em; }
.pin-dots { display: flex; gap: .5rem; margin: .35rem 0 .1rem; }
.pin-dots span { display: inline-block; width: .7rem; height: .7rem; flex: none; padding: 0; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.pin-dots span.on { background: var(--cheddar); border-color: var(--cheddar); }
.pin-dots span.pin-opt { opacity: .4; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: min(280px, 100%); }
.pin-key { padding: .9rem 0; font-size: 1.25rem; font-weight: 700; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; color: var(--ink); }
.pin-key:hover:not(:disabled) { background: var(--ceramic); }
.pin-key:disabled { opacity: .4; cursor: not-allowed; }
.pin-key.pin-alt, .pin-key.pin-ok { font-size: .9rem; }
.pin-key.pin-ok { background: var(--cheddar); border-color: var(--cheddar); color: #fff; }
.pin-key.pin-ok:disabled { background: var(--line); border-color: var(--line); color: var(--muted); }
@media (max-width: 720px) {
  .lock-card { grid-template-columns: 1fr; height: 92vh; }
  .lock-people { max-height: 40%; }
}

/* cashier on the register bar */
.cashier-chip { display: inline-flex; align-items: center; gap: .5rem; }
.cashier-on { font-size: .8rem; font-weight: 700; color: var(--cheddar); background: rgba(255,255,255,.08); border-radius: 999px; padding: .25rem .6rem; }

/* setup warning (a migration hasn't been run yet) */
.setup-warn { background: #fdf3e3; border: 1px solid #e6c98a; color: #7a5a1e; border-radius: 10px; padding: .6rem .8rem; font-size: .85rem; margin: 0 0 .75rem; }
.lock-admin { font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: .35rem; }
.lock-admin:hover { color: var(--cheddar); }

/* admin toolbar: search + multi-select */
.adm-toolbar { display: flex; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.adm-search { flex: 1; }
.bulk-bar { position: sticky; top: .5rem; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 12px; padding: .55rem .75rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.bulk-count { font-weight: 800; font-size: .85rem; white-space: nowrap; }
.bulk-actions { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.bulk-actions .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.bulk-actions .btn:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.bulk-actions .btn:disabled { opacity: .35; }
.bulk-actions .mod-del { color: #ffb3a7; }
.bulk-input { width: 7rem; padding: .35rem .5rem; font-size: .85rem; }
.bulk-sep { width: 1px; height: 1.2rem; background: rgba(255,255,255,.25); margin: 0 .2rem; }
.adm-grid-card.picking { outline: 2px dashed transparent; }
.adm-grid-card.picked { border-color: var(--cheddar); box-shadow: 0 0 0 2px var(--cheddar) inset; }
.pick-dot { position: absolute; top: .45rem; right: .45rem; z-index: 2; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fff; border: 2px solid var(--cheddar); color: var(--cheddar); font-weight: 800; font-size: .8rem; }
.mod-row.sel-mode { grid-template-columns: auto 1fr auto auto; }
.mod-row.picked { border-color: var(--cheddar); box-shadow: 0 0 0 1px var(--cheddar) inset; }
.pick-box { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 6px; border: 2px solid var(--line); background: #fff; color: var(--cheddar); font-weight: 800; font-size: .75rem; cursor: pointer; padding: 0; }
.pick-box.on { border-color: var(--cheddar); }

/* expandable order detail */
.ord-row.is-clickable { cursor: pointer; }
.ord-row.is-clickable:hover { border-color: var(--cheddar); }
.ord-caret { margin-left: .4rem; color: var(--muted); font-size: .8rem; }
.ord-detail { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--line); cursor: default; }
.det-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .det-grid { grid-template-columns: 1.4fr 1fr; } }
.det-grid h4 { margin: 0 0 .35rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.det-grid p { margin: 0 0 .75rem; font-size: .88rem; line-height: 1.45; }
.det-line { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.det-qty { font-weight: 800; color: var(--cheddar); }
.det-name small { display: block; color: var(--muted); font-size: .78rem; }
.det-note { color: var(--muted); font-style: italic; }
.det-amt { font-weight: 700; }
.det-money { margin-top: .5rem; display: grid; gap: .15rem; font-size: .85rem; }
.det-money > div { display: flex; justify-content: space-between; }
.det-total { display: flex; justify-content: space-between; font-weight: 800; border-top: 2px solid var(--line); margin-top: .25rem; padding-top: .35rem; }

/* ---- Settings > General ---- */
.set-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 900px) { .set-grid { grid-template-columns: 1.15fr 1fr; } }
.set-grid .eod-card { max-width: none; }
.hours-edit { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: .5rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.hours-edit:last-child { border-bottom: 0; }
.hours-day { margin: 0; font-size: .88rem; font-weight: 600; }
.hours-edit input[type="time"] { padding: .3rem .45rem; font-size: .85rem; width: auto; }
.hours-edit input[type="time"]:disabled { opacity: .4; }
.hours-edit.is-closed .hours-day { color: var(--muted); font-weight: 500; }
@media (max-width: 560px) {
  .hours-edit { grid-template-columns: 1fr auto auto; }
  .hours-edit .muted { display: none; }
}

/* ---- knowledge base ---- */
.kb-search-wrap { margin-bottom: 1.25rem; }
.kb-search { width: 100%; font-size: 1rem; padding: .7rem .9rem; }
.kb-search-wrap .muted { font-size: .82rem; margin: .35rem 0 0; }
.kb-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .kb-layout { grid-template-columns: 15rem 1fr; } .kb-nav { position: sticky; top: 1rem; } }
.kb-nav { display: grid; gap: .1rem; align-content: start; }
.kb-nav-link { display: block; padding: .4rem .6rem; border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.kb-nav-link:hover { background: var(--ceramic); color: var(--ink); border-left-color: var(--cheddar); }
.kb-body { display: grid; gap: 1rem; min-width: 0; }
.kb-section { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); padding: 1.1rem 1.25rem; scroll-margin-top: 1rem; }
.kb-section h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.kb-section h3 { margin: 1rem 0 .35rem; font-size: .92rem; }
.kb-section p, .kb-section li { font-size: .89rem; line-height: 1.55; }
.kb-section p { margin: 0 0 .6rem; }
.kb-section ul, .kb-section ol { margin: 0 0 .6rem; padding-left: 1.2rem; }
.kb-section li { margin-bottom: .25rem; }
.kb-section code { background: var(--ceramic); border: 1px solid var(--line); border-radius: 5px; padding: .05rem .3rem; font-size: .82em; }
.kb-section mark { background: #ffe9a8; color: inherit; border-radius: 3px; padding: 0 .1em; }

/* ==========================================================================
   SELF-SERVE KIOSK
   A public screen: everything is bigger, tap targets are generous, and nothing
   relies on hover. Sized to work on a portrait tablet or a landscape screen.
   ========================================================================== */
.kiosk-body { margin: 0; height: 100vh; overflow: hidden; background: var(--ceramic); color: var(--ink); -webkit-tap-highlight-color: transparent; user-select: none; }
.kiosk-body button { font-family: inherit; cursor: pointer; }

/* The `hidden` attribute must actually hide things. The browser's own
   `[hidden] { display: none }` comes from the UA stylesheet, which loses to ANY
   author rule that sets `display` - so `.kiosk-app { display: flex }` silently
   beat it and the screens stacked on top of each other. This wins it back for
   every kiosk element, now and later. */
.kiosk-body [hidden] { display: none !important; }

/* attract screen */
.kiosk-attract { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: .5rem; text-align: center; padding: 2rem; background: radial-gradient(circle at 50% 30%, #3a2a1a, var(--ink)); color: #fff; }
.kiosk-logo { width: min(460px, 70vw); }
.kiosk-tag { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: clamp(1.8rem, 5vw, 3rem); margin: 1rem 0 0; }
.kiosk-sub { color: rgba(255,255,255,.7); font-size: 1.1rem; margin: .25rem 0 2rem; }
.kiosk-start { background: var(--cheddar); color: #fff; border: 0; border-radius: 999px; padding: 1.15rem 3.5rem; font-size: 1.35rem; font-weight: 800; box-shadow: 0 12px 40px rgba(0,0,0,.35); animation: kioskPulse 2.4s ease-in-out infinite; }
@keyframes kioskPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.kiosk-note { color: rgba(255,255,255,.6); margin-top: 1.25rem; font-size: .95rem; }
.kiosk-closed { position: fixed; inset: 0; z-index: 45; display: grid; place-content: center; justify-items: center; text-align: center; gap: .5rem; background: var(--ink); color: #fff; padding: 2rem; }
.kiosk-closed img { width: min(360px, 60vw); margin-bottom: 1rem; }

/* app frame */
.kiosk-app { display: flex; flex-direction: column; height: 100vh; }
.kiosk-bar { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; background: var(--ink); border-bottom: 3px solid var(--cheddar); }
.kiosk-bar .brand-mark { height: 2.2rem; flex: none; }
.kiosk-cats { display: flex; gap: .4rem; overflow-x: auto; flex: 1; scrollbar-width: none; }
.kiosk-cats::-webkit-scrollbar { display: none; }
.kiosk-cat { flex: none; background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); border: 0; border-radius: 999px; padding: .65rem 1.15rem; font-size: 1rem; font-weight: 700; white-space: nowrap; }
.kiosk-cat.on { background: var(--cheddar); color: #fff; }
.kiosk-cancel { flex: none; background: transparent; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .55rem 1rem; font-size: .9rem; font-weight: 700; }

.kiosk-main { flex: 1; display: grid; grid-template-columns: 1fr 22rem; min-height: 0; }
@media (max-width: 900px) { .kiosk-main { grid-template-columns: 1fr 17rem; } }

/* items */
.kiosk-items { overflow-y: auto; padding: 1rem; display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); align-content: start; -webkit-overflow-scrolling: touch; }
.kiosk-item { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); transition: transform .12s ease; }
.kiosk-item:active { transform: scale(.97); }
.kiosk-item-img { aspect-ratio: 4 / 3; background: var(--ceramic); display: grid; place-items: center; overflow: hidden; }
.kiosk-item-img img { width: 100%; height: 100%; object-fit: cover; }
.kiosk-noimg { font-size: 2.5rem; opacity: .35; }
.kiosk-item-body { padding: .7rem .85rem .9rem; display: grid; gap: .2rem; }
.kiosk-item-name { font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.kiosk-item-desc { color: var(--muted); font-size: .82rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kiosk-item-price { font-weight: 800; color: var(--cheddar); font-size: 1rem; margin-top: .15rem; }

/* cart */
.kiosk-cart { display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); padding: 1rem; min-height: 0; }
.kiosk-cart h2 { margin: 0 0 .6rem; font-size: 1.15rem; }
.kiosk-lines { flex: 1; overflow-y: auto; display: grid; gap: .4rem; align-content: start; }
.kiosk-empty { color: var(--muted); font-size: .9rem; padding: 1rem 0; }
.kiosk-line { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; align-items: start; padding: .55rem; border: 1px solid var(--line); border-radius: 10px; background: var(--ceramic); }
.kiosk-line-name { font-weight: 700; font-size: .9rem; display: block; }
.kiosk-line-mods { color: var(--muted); font-size: .75rem; line-height: 1.3; display: block; }
.kiosk-line-amt { font-weight: 800; font-size: .88rem; white-space: nowrap; }
.kiosk-line-x { background: transparent; border: 0; color: var(--muted); font-size: 1rem; padding: 0 .2rem; }
.kiosk-totals { display: grid; gap: .15rem; padding: .75rem 0; font-size: .9rem; }
.kiosk-totals > div { display: flex; justify-content: space-between; }
.kiosk-total { font-weight: 800; font-size: 1.15rem; border-top: 2px solid var(--line); margin-top: .3rem; padding-top: .5rem; }
.kiosk-checkout { width: 100%; background: var(--cheddar); color: #fff; border: 0; border-radius: 14px; padding: 1.05rem; font-size: 1.1rem; font-weight: 800; }
.kiosk-checkout:disabled { background: var(--line); color: var(--muted); }

/* modals */
.kiosk-scrim { position: fixed; inset: 0; z-index: 50; background: rgba(30,20,12,.72); display: grid; place-items: center; padding: 1.5rem; }
.kiosk-modal { width: min(720px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.kiosk-modal-sm { width: min(460px, 100%); }
.kiosk-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.kiosk-modal-head h2 { margin: 0; font-size: 1.35rem; }
.kiosk-x { background: transparent; border: 0; font-size: 1.3rem; color: var(--muted); padding: .25rem .5rem; }
.kiosk-modal-body { padding: 1.1rem 1.25rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.kiosk-modal-foot { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.25rem; border-top: 1px solid var(--line); background: var(--ceramic); }

.kiosk-group { border: 0; padding: 0; margin: 0 0 1.15rem; }
.kiosk-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; font-weight: 800; font-size: 1rem; }
.kiosk-group-hint { font-weight: 600; font-size: .78rem; color: var(--muted); }
.kiosk-group .req { color: var(--cheddar); }
.kiosk-opts { display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.kiosk-opts-2 { grid-template-columns: 1fr 1fr; }
.kiosk-opt { display: flex; align-items: center; justify-content: space-between; gap: .5rem; text-align: left; padding: .85rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .95rem; font-weight: 600; color: var(--ink); }
.kiosk-opt small { color: var(--cheddar); font-weight: 800; }
.kiosk-opt.on { border-color: var(--cheddar); background: #fff7e8; }
.kiosk-opt.disabled { opacity: .4; }
.kiosk-qty { display: flex; align-items: center; gap: .6rem; }
.kiosk-qty button { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-size: 1.4rem; font-weight: 800; color: var(--ink); }
.kiosk-qty span { min-width: 1.6rem; text-align: center; font-weight: 800; font-size: 1.15rem; }
.kiosk-add { flex: 1; background: var(--cheddar); color: #fff; border: 0; border-radius: 12px; padding: 1rem 1.25rem; font-size: 1.05rem; font-weight: 800; }
.kiosk-ghost { flex: 1; background: transparent; border: 2px solid var(--line); border-radius: 12px; padding: .85rem; font-weight: 700; color: var(--muted); }
.kiosk-input { width: 100%; font-size: 1.1rem; padding: .85rem; }
.kiosk-btn-big { background: var(--cheddar); color: #fff; border: 0; border-radius: 999px; padding: 1rem 2.5rem; font-size: 1.1rem; font-weight: 800; margin-top: 1rem; }

/* paying */
.kiosk-pay-lead { font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; }
.kiosk-qr { display: inline-block; background: #fff; padding: 1rem; border-radius: 16px; border: 1px solid var(--line); }
.kiosk-qr canvas { display: block; }

/* idle + done */
.kiosk-idle { background: var(--surface); border-radius: 20px; padding: 2rem 2.5rem; text-align: center; max-width: 30rem; }
.kiosk-idle h2 { margin: 0 0 .5rem; font-size: 1.6rem; }
.kiosk-done { background: var(--surface); border-radius: 24px; padding: 2.5rem; text-align: center; max-width: 32rem; }
.kiosk-done-tick { width: 5rem; height: 5rem; margin: 0 auto 1rem; border-radius: 50%; background: #2e7d32; color: #fff; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; }
.kiosk-done h2 { margin: 0 0 1rem; font-size: 1.8rem; }
.kiosk-done-sub { color: var(--muted); margin: 0; font-size: .95rem; }
.kiosk-done-num { font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-size: 4rem; font-weight: 800; color: var(--cheddar); line-height: 1.1; margin: .25rem 0 .75rem; }
.kiosk-done .kiosk-add { margin-top: 1.5rem; }

/* portrait kiosk: cart drops under the menu */
@media (max-width: 720px) {
  .kiosk-main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .kiosk-cart { border-left: 0; border-top: 1px solid var(--line); max-height: 45vh; }
  .kiosk-opts { grid-template-columns: 1fr 1fr; }
}

/* payment diagnostic */
.diag-row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.diag-row:last-of-type { border-bottom: 0; }
.diag-row span { color: var(--muted); }
.diag-ok { color: #2e7d32; }
.diag-bad { color: #c0392b; }
.diag-warn { margin: .6rem 0 0; padding: .55rem .7rem; border-radius: 8px; background: #fdecea; border: 1px solid #f5c6c2; color: #8a2a20; font-size: .82rem; line-height: 1.45; }
.diag-note { margin: .7rem 0 0; padding: .6rem .7rem; border-radius: 8px; background: #fff7e8; border: 1px solid #f0dcb4; color: #6b5327; font-size: .82rem; line-height: 1.5; }

/* ---- on-screen keyboard (kiosk + register) ---- */
.kb-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(30,20,12,.75); display: flex; align-items: flex-end; justify-content: center; padding: 1rem; }
.kb-panel { width: min(760px, 100%); background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 -10px 50px rgba(0,0,0,.4); }
.kb-head { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-weight: 800; }
.kb-x { background: transparent; border: 0; font-size: 1.2rem; color: var(--muted); padding: .2rem .5rem; cursor: pointer; }
.kb-display { padding: .9rem 1rem; font-size: 1.5rem; font-weight: 700; min-height: 3.4rem; border-bottom: 1px solid var(--line); background: var(--ceramic); word-break: break-word; }
.kb-display.is-empty { color: var(--muted); font-weight: 500; }
.kb-caret { display: inline-block; width: 2px; height: 1.3rem; background: var(--cheddar); margin-left: 2px; vertical-align: middle; animation: kbBlink 1s step-end infinite; }
@keyframes kbBlink { 50% { opacity: 0; } }
.kb-rows { padding: .6rem .5rem; display: grid; gap: .4rem; }
.kb-row { display: flex; gap: .3rem; justify-content: center; }
.kb-key { flex: 1 1 0; min-width: 0; max-width: 4.5rem; height: 3.2rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 1.15rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.kb-key:active { background: var(--ceramic); transform: translateY(1px); }
.kb-key.on { background: var(--cheddar); border-color: var(--cheddar); color: #fff; }
.kb-wide { max-width: 6rem; }
.kb-space { flex: 4 1 0; max-width: none; font-size: .9rem; color: var(--muted); }
.kb-foot { padding: .6rem 1rem 1rem; }
.kb-done { width: 100%; background: var(--cheddar); color: #fff; border: 0; border-radius: 12px; padding: 1rem; font-size: 1.05rem; font-weight: 800; cursor: pointer; }

/* ---- kiosk name + cash ---- */
.kiosk-namebtn { width: 100%; text-align: left; padding: .95rem 1rem; border: 2px dashed var(--line); border-radius: 12px; background: var(--surface); font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.kiosk-namebtn.has { border-style: solid; border-color: var(--cheddar); color: var(--ink); font-weight: 800; }
.kiosk-foot-stack { flex-direction: column; align-items: stretch; gap: .5rem; }
.kiosk-foot-stack .kiosk-add { width: 100%; }
.kiosk-cash-btn { width: 100%; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: .9rem; font-size: 1rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.kiosk-cash-btn:active { background: var(--ceramic); }
.kiosk-pending-mark { width: 5rem; height: 5rem; margin: 0 auto 1rem; border-radius: 50%; background: #fff3d6; border: 2px solid var(--cheddar); display: grid; place-items: center; font-size: 2.2rem; }
.kiosk-pending-amt { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin: .25rem 0 .5rem; }

/* ---- register name ---- */
.pos-name { padding: .6rem .85rem 0; }
.pos-name[hidden] { display: none; }
.pos-namebtn { width: 100%; padding: .6rem .7rem; border: 1px dashed var(--line); border-radius: 8px; background: transparent; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; text-align: left; }
.pos-namebtn.has { border-style: solid; border-color: var(--cheddar); color: var(--ink); font-weight: 800; }

/* ---- kiosk counter payments queue ---- */
#kioskQueue[hidden] { display: none; }
.kq-head { margin-bottom: .6rem; }
.kq-head h2 { margin: 0 0 .15rem; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.kq-head .muted { margin: 0; font-size: .82rem; }
.kq-count { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--cheddar); color: #fff; font-size: .78rem; font-weight: 800; }
.kq-list { display: grid; gap: .5rem; margin-bottom: 1.5rem; }
.kq-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .7rem .85rem; border: 1px solid var(--cheddar); border-left-width: 4px; border-radius: 10px; background: #fffdf6; }
.kq-top { display: flex; align-items: baseline; gap: .6rem; }
.kq-num { font-weight: 800; font-size: 1.05rem; }
.kq-amt { font-weight: 800; color: var(--cheddar); }
.kq-meta { color: var(--muted); font-size: .8rem; margin-top: .1rem; }
.kq-items { font-size: .8rem; margin-top: .2rem; }
.kq-actions { display: flex; gap: .4rem; }
.kq-void { color: #c0392b; }

/* ---- cash tender pad (approving kiosk counter payments) ---- */
.tn-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(30,20,12,.7); display: grid; place-items: center; padding: 1.25rem; }
.tn-modal { width: min(400px, 100%); background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.tn-head { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.tn-x { background: transparent; border: 0; font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: .1rem .4rem; }
.tn-body { padding: 1rem; }
.tn-due { display: flex; justify-content: space-between; align-items: baseline; padding: .5rem .7rem; border-radius: 8px; background: var(--ceramic); margin-bottom: .9rem; }
.tn-due strong { font-size: 1.35rem; }
.tn-input { width: 100%; font-size: 1.6rem; font-weight: 800; text-align: right; padding: .6rem .7rem; font-family: var(--mono); }
.tn-quick { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0; }
.tn-quick button { flex: 1 1 4.5rem; padding: .55rem .3rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; font-size: .85rem; color: var(--ink); cursor: pointer; }
.tn-quick button:active { background: var(--ceramic); }
.tn-change { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem; border-radius: 8px; background: var(--ceramic); min-height: 3rem; }
.tn-change strong { font-size: 1.5rem; font-family: var(--mono); }
.tn-change.ok { background: #e8f5e9; color: #1b5e20; }
.tn-change.short { background: #fdecea; color: #8a2a20; }
.tn-foot { display: flex; gap: .5rem; justify-content: flex-end; padding: .8rem 1rem; border-top: 1px solid var(--line); background: var(--ceramic); }
.tn-done { padding: 1.75rem; text-align: center; }
.tn-done-tick { width: 3.5rem; height: 3.5rem; margin: 0 auto .75rem; border-radius: 50%; background: #2e7d32; color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; }
.tn-done-label { color: var(--muted); font-size: .85rem; margin-top: .75rem; }
.tn-done-amt { font-size: 2.6rem; font-weight: 800; font-family: var(--mono); color: var(--cheddar); line-height: 1.1; margin-bottom: 1.1rem; }
