/* =========================================================
   Ember & Olive — screens, dialogs & shared components
   ========================================================= */

/* ---------- views & routing ---------- */
.view { display: none; flex-direction: column; gap: 16px; min-width: 0; }
.view.active { display: flex; animation: viewIn .55s var(--ease); }
#view-overview { gap: 18px; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
.view:not(#view-overview) .card { animation-play-state: running; }
.view.static .card { animation: none; }
body:not([data-view="overview"]) .ov-only { display: none; }
body[data-view="overview"] .not-ov { display: none; }
#headAction .arrow-circle svg { width: 17px; height: 17px; }
.clickable { cursor: pointer; }

/* sidebar extras */
.nav-badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--lime); color: var(--ink); font-size: 9.5px; font-weight: 700; display: grid; place-items: center; z-index: 2; box-shadow: 0 0 0 2px var(--dark); animation: pop .4s var(--ease); }
.nav-btn.fav::before { content: ''; position: absolute; left: 3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--lime); }
.nav-bottom .nav-btn.active { background: #fff; color: var(--ink); }

/* top bar extras */
.profile { border-radius: 999px; padding: 3px 10px 3px 3px; text-align: left; transition: background .25s; }
.profile:hover { background: var(--soft); }
.p-txt { display: block; }
.pop-row { display: flex; justify-content: space-between; align-items: center; padding: 0 0 4px; }
.pop-h.sub { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; color: var(--muted); font-weight: 500; }
.link-btn { font-size: 11.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; padding: 4px 8px; }
.link-btn:hover { color: var(--ink); }
.menu-note { font-size: 11.5px; color: var(--muted); padding: 6px 14px 10px; }
#quickMenu { min-width: 240px; }
#notifList { max-height: 360px; overflow: auto; }
.notif { width: 100%; text-align: left; align-items: center; position: relative; }
.notif.unread::after { content: ''; position: absolute; right: 10px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-2); transform: translateY(-50%); }
.notif > span:last-child { min-width: 0; padding-right: 14px; }
#ticketsSort i { transition: transform .4s var(--ease); }
#ticketsSort.flipped i { transform: rotate(180deg); }

/* overview extras */
.t-empty { list-style: none; color: var(--muted); font-size: 12px; text-align: center; padding: 18px 8px; }
.order { cursor: pointer; }
.order.leaving, .ticket.leaving { animation: slideOut .45s var(--ease) forwards; }
.st-txt.s-new { color: #2b4fb3; } .st-txt.s-cooking { color: #9a6400; } .st-txt.s-ready { color: #557a00; }
.st-txt.s-paid { color: var(--ink); } .st-txt.s-cancelled { color: #b4471b; }
.note { color: inherit; text-align: left; }
.dc-pill { background: #fff; text-align: left; transition: border-color .3s; }
.dc-pill:hover { border-color: #cfcfc8; }
.dc-pill:hover .dim { transform: rotate(180deg); }
.dc-pill .dim { transition: transform .5s var(--ease); }
.tool.active { background: #fff; color: var(--ink); }
.tool:not(.active):hover { color: #fff; background: rgba(255, 255, 255, .12); }
.prompt input.tt { flex: 1; border: 0; background: transparent; font: inherit; font-size: inherit; color: var(--ink); outline: none; min-width: 0; height: 100%; }
.prompt input.tt::placeholder { color: rgba(20, 20, 20, .78); }
.ans-link { margin-left: auto; font-size: 11.5px; color: var(--lime); display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; border: 1px solid #333; transition: background .2s; }
.ans-link:hover { background: #2b2b2b; }
.ans-link i[data-i] { width: 12px; height: 12px; }
.ans-link + .ans-x { margin-left: 0; }

.dp-alt { position: relative; animation: viewIn .45s var(--ease); }
.dp-alt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.dp-alt-head b { font-size: 16px; font-weight: 500; }
.dp-alt-head small { color: #8d8d87; margin-left: 8px; font-weight: 400; }
.btn-lime { height: 40px; padding: 0 16px; border-radius: 99px; background: var(--lime); color: var(--ink); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: transform .2s var(--ease); }
.btn-lime:active { transform: scale(.96); }
.btn-lime i[data-i] { width: 15px; height: 15px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.res-card { display: flex; align-items: center; gap: 12px; background: #1f1f1f; border: 1px solid #2b2b2b; border-radius: 18px; padding: 12px 14px; animation: slideIn .45s var(--ease) backwards; }
.res-card.s-cancelled { opacity: .5; }
.rc-time { font-size: 18px; font-weight: 300; letter-spacing: -.02em; min-width: 72px; }
.rc-main { flex: 1; min-width: 0; }
.rc-main b { display: block; font-weight: 500; font-size: 13px; }
.rc-main small { color: #8d8d87; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-acts { display: flex; gap: 6px; }
.res-card .btn-ghost { background: #2a2a2a; color: #eee; border-color: #333; }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.q-card { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 20px; background: #1f1f1f; border: 1px solid #2b2b2b; color: #eee; text-align: left; font-size: 14px; transition: background .25s, transform .3s var(--ease); }
.q-card:hover { background: var(--lime); color: var(--ink); transform: translateY(-3px); }
.q-card span { flex: 1; }
.q-card i[data-i] { color: var(--lime); }
.q-card:hover i[data-i] { color: var(--ink); }
.def-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.def-card { background: #1f1f1f; border: 1px solid #2b2b2b; border-radius: 20px; padding: 16px 18px; }
.def-card b { color: var(--lime); font-weight: 500; }
.def-card p { color: #bdbdb7; font-size: 12.5px; line-height: 1.5; margin-top: 6px; }

/* ---------- shared components ---------- */
.chip { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--ink-2); white-space: nowrap; text-transform: capitalize; }
.chip.s-new, .chip.t-reserved, .chip.r-confirmed { background: #e6edff; color: #2b4fb3; }
.chip.s-cooking, .chip.t-cleaning, .chip.i-low { background: #fff1d6; color: #8f5c00; }
.chip.s-ready, .chip.t-seated, .chip.r-seated { background: var(--lime); color: var(--ink); }
.chip.s-served { background: #ecece6; color: var(--ink-2); }
.chip.s-paid { background: var(--ink); color: #fff; }
.chip.s-cancelled, .chip.r-cancelled, .chip.i-critical { background: #ffe5d6; color: #b4471b; }
.chip.t-free { background: #fff; box-shadow: inset 0 0 0 1px #dcdcd5; }
.chip.i-ok { background: var(--lime-soft); color: #4c6400; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-height: 128px; }
.kpi-h { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.kpi-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; }
.kpi-ic i[data-i] { width: 16px; height: 16px; }
.kpi-v { font-size: 32px; letter-spacing: -.04em; font-weight: 400; line-height: 1.1; margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-v small { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.kpi.small-v .kpi-v { font-size: 20px; letter-spacing: -.02em; font-weight: 500; }
.kpi > small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.lime { background: var(--lime); }
.kpi.lime .kpi-ic { background: rgba(255, 255, 255, .55); }
.kpi.lime small, .kpi.lime .kpi-h { color: #39430f; }

.v-card { padding: 16px 18px; }
.v-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.v-bar .tabs { margin-top: 0; }
.v-bar-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#oTabsWrap .tabs { margin: 14px 0 0; }
#oBody { margin-top: 16px; }
.tab em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: 6px; font-weight: 500; }
.tab.active em { color: var(--ink-2); }
.seg button i[data-i] { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.search { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 99px; background: var(--soft); color: var(--muted); min-width: 240px; transition: box-shadow .25s, background .25s; }
.search:focus-within { background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.search i[data-i] { width: 16px; height: 16px; }
.search input { border: 0; background: transparent; outline: none; font: inherit; font-size: 13px; color: var(--ink); flex: 1; min-width: 0; }
.select-pill.sm { height: 40px; }
.btn-dark.sm, .btn-ghost.sm { height: 34px; padding: 0 14px; font-size: 12px; }
.btn-dark.sm i[data-i], .btn-ghost.sm i[data-i] { width: 14px; height: 14px; }
.btn-dark:not(.wide):not(.sm) { padding: 0 20px; }
.btn-ghost { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .25s, border-color .25s, transform .2s var(--ease), color .25s; }
.btn-ghost:hover { background: var(--soft); border-color: #d6d6cf; }
.btn-ghost:active { transform: scale(.96); }
.btn-ghost i[data-i] { width: 15px; height: 15px; }
.btn-ghost.danger, .btn-dark.danger { color: #c0461b; }
.btn-ghost.danger:hover { background: #fff1ea; border-color: #ffd1bd; }
.btn-dark.danger { background: #c0461b; color: #fff; }
.btn-dark.danger:hover { background: #a33a15; }
.btn-ghost.icon-only { width: 34px; padding: 0; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; text-align: center; grid-column: 1 / -1; }
.empty span { font-size: 34px; }
.empty b { font-weight: 500; }
.lg-sq { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-sq.t-free { background: #fff; box-shadow: inset 0 0 0 1.5px #cfcfc8; } .lg-sq.t-seated { background: var(--lime); }
.lg-sq.t-reserved { background: #c9d8ff; } .lg-sq.t-cleaning { background: #ffe0a3; }

/* data tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dtable th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; padding: 8px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.dtable td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.dtable td small { display: block; font-size: 10.5px; }
.dtable tbody tr { transition: background .2s; cursor: pointer; }
.dtable tbody tr:hover { background: #fafaf7; }
.dtable .r { text-align: right; }
.dtable .ellip { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.ch-cell { display: inline-flex; align-items: center; gap: 6px; }
.ch-cell i[data-i] { width: 14px; height: 14px; color: var(--muted); }
.adv-btn { height: 30px; padding: 0 12px; border-radius: 99px; background: var(--dark); color: #fff; font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .25s, transform .2s var(--ease); position: relative; overflow: hidden; }
.adv-btn:hover { background: var(--lime); color: var(--ink); }
.adv-btn:active { transform: scale(.94); }
.adv-btn i[data-i] { width: 13px; height: 13px; }

/* ---------- orders board ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.b-col { background: var(--soft); border-radius: 22px; padding: 10px; min-height: 240px; }
.b-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; }
.b-h b { font-size: 13px; font-weight: 600; }
.b-list { display: flex; flex-direction: column; gap: 10px; }
.b-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 24px 0; border: 1.5px dashed #dcdcd5; border-radius: 16px; }
.ocard { background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; animation: slideIn .45s var(--ease) backwards; border: 1.5px solid transparent; }
.ocard:hover { transform: translateY(-3px); box-shadow: 0 14px 24px -16px rgba(0, 0, 0, .35); }
.ocard.late { border-color: #ffc8ad; }
.ocard.late .oc-time { color: #b4471b; font-weight: 600; }
.oc-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.oc-time { font-size: 11px; color: var(--muted); }
.oc-where { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); margin: 4px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-where i[data-i] { width: 13px; height: 13px; }
.oc-items { list-style: none; display: flex; flex-direction: column; gap: 3px; font-size: 12px; padding: 8px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.oc-items li { display: flex; gap: 6px; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.oc-foot b { font-size: 13px; }

/* ---------- menu ---------- */
.mgrid, .sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mcard, .scard { display: flex; flex-direction: column; gap: 4px; padding: 18px; }
.mcard.off, .scard.off { background: #fafaf7; }
.mcard.off .mc-e, .mcard.off .mc-n, .mcard.off .mc-price { opacity: .45; }
.mc-top, .sc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.mc-e { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; transition: transform .5s var(--ease); }
.mcard:hover .mc-e { transform: rotate(-10deg) scale(1.08); }
.mc-n { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.mc-price { font-size: 26px; letter-spacing: -.04em; margin: 8px 0 4px; }
.mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.mc-stats div { background: var(--soft); border-radius: 12px; padding: 7px 9px; }
.mc-stats small { display: block; font-size: 9.5px; }
.mc-stats b { font-size: 13px; font-weight: 600; }
.mc-bar { height: 5px; background: var(--soft); border-radius: 99px; margin: 10px 0 4px; overflow: hidden; }
.mc-bar i { display: block; height: 100%; background: var(--lime-2); border-radius: 99px; animation: grow 1s var(--ease) backwards; }
.mc-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
.mc-actions .btn-ghost:not(.icon-only) { flex: 1; }

/* ---------- tables ---------- */
.tv-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.tv-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 18px; }
.t-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-2); }
.t-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zone { margin-top: 20px; }
.zone h4 { font-size: 13px; font-weight: 500; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.zone h4 small { font-weight: 400; }
.tiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tbl { position: relative; height: 92px; border-radius: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; background: #fff; box-shadow: inset 0 0 0 1.5px #dcdcd5; transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.tbl:hover { transform: translateY(-3px); }
.tbl.wide { grid-column: span 2; }
.tbl.round { border-radius: 50%; width: 92px; justify-self: center; }
.tbl.t-seated { background: var(--lime); box-shadow: none; }
.tbl.t-reserved { background: #e6edff; box-shadow: inset 0 0 0 1.5px #c9d8ff; }
.tbl.t-cleaning { background: repeating-linear-gradient(-45deg, #fff6e2 0 8px, #ffefcc 8px 16px); box-shadow: inset 0 0 0 1.5px #ffe0a3; }
.tbl.sel { box-shadow: 0 0 0 3px var(--ink); transform: translateY(-3px); }
.tbl-n { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.tbl-s { font-size: 10px; color: var(--ink-2); }
.tbl .avatar { position: absolute; top: 6px; right: 6px; }
.avatar.xs { width: 22px; height: 22px; font-size: 8.5px; }
.avatar.lg { width: 54px; height: 54px; font-size: 16px; }
.td-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.td-h > div { flex: 1; }
.td-h b { display: block; font-weight: 500; }
.td-n { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-weight: 600; font-size: 17px; background: var(--soft); }
.td-n.t-seated { background: var(--lime); } .td-n.t-reserved { background: #e6edff; } .td-n.t-cleaning { background: #fff1d6; }
.td-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.td-acts > :first-child { grid-column: 1 / -1; }
.res-list { list-style: none; display: flex; flex-direction: column; max-height: 420px; overflow: auto; margin: 0 -6px; }
.res-item { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 12px; transition: background .2s; }
.res-item:hover { background: var(--soft); }
.res-item.r-cancelled { opacity: .5; }
.ri-time { font-size: 12px; font-weight: 600; min-width: 62px; font-variant-numeric: tabular-nums; }
.ri-main { flex: 1; min-width: 0; }
.ri-main b { display: block; font-weight: 500; font-size: 12.5px; }
.ri-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- staff ---------- */
.scard b.mc-n { margin-top: 2px; }
.sched-card .card-head small { display: block; margin-top: 2px; }
.sched { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.sched th { font-weight: 500; color: var(--muted); font-size: 11px; padding: 8px 6px; text-align: center; }
.sched th:first-child { text-align: left; }
.sched th small { display: block; color: var(--ink); font-size: 14px; font-weight: 500; }
.sched td { padding: 4px; text-align: center; border-top: 1px solid var(--line); }
.sched td:first-child { text-align: left; padding: 8px 6px; }
.sched .today { background: #fafbf2; }
.sched th.today small { color: var(--olive-2); }
.sched tfoot td { color: var(--muted); padding: 10px 6px; }
.sched tfoot b { color: var(--ink); }
.sched .r { text-align: right; }
.who { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.who small { margin-left: 4px; }
.day { width: 100%; min-width: 74px; height: 34px; border-radius: 10px; border: 1.5px dashed #dcdcd5; font-size: 10.5px; color: var(--muted); transition: background .25s, border-color .25s, color .25s; }
.day:hover { border-color: var(--ink); color: var(--ink); }
.day.on { background: var(--lime); border: 0; color: var(--ink); font-weight: 600; }
.day.on:hover { background: var(--lime-2); }

/* ---------- inventory ---------- */
.dtable.inv tbody tr { cursor: default; }
.dtable.inv tr.s-critical td:first-child { box-shadow: inset 3px 0 0 #e4652e; }
.dtable.inv tr.s-low td:first-child { box-shadow: inset 3px 0 0 #f0b43c; }
.it { display: flex; align-items: center; gap: 10px; text-align: left; }
.it b { display: block; font-weight: 500; font-size: 13px; }
.it:hover b { text-decoration: underline; text-underline-offset: 2px; }
.it-e { width: 36px; height: 36px; border-radius: 11px; background: var(--soft); display: grid; place-items: center; font-size: 18px; flex: none; }
.stock { min-width: 140px; }
.stock b { font-weight: 500; }
.sbar { position: relative; height: 6px; border-radius: 99px; background: var(--soft); margin-top: 6px; }
.sbar i { display: block; height: 100%; border-radius: 99px; background: var(--lime-2); transition: width .6s var(--ease); }
.s-low .sbar i { background: #f0b43c; } .s-critical .sbar i { background: #e4652e; }
.sbar .par { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink); border-radius: 2px; opacity: .5; }
.po-tag { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.row-acts { display: flex; gap: 6px; align-items: center; }
.po-list { list-style: none; display: flex; flex-direction: column; }
.po { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.po:first-child { border-top: 0; }
.po-main { flex: 1; min-width: 0; }
.po-main b { display: block; font-weight: 500; font-size: 13px; }
.po-cost { font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- reports ---------- */
.r-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.r-rev { grid-column: span 2; }
.rchart { display: flex; gap: 10px; height: 260px; }
.r-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; color: var(--muted); width: 40px; text-align: right; padding-bottom: 22px; }
.r-plot { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rbars { flex: 1; display: flex; align-items: flex-end; justify-content: space-around; gap: 5px; background: repeating-linear-gradient(to bottom, transparent 0 calc(50% - 1px), var(--line) calc(50% - 1px) 50%); }
.rb { flex: 1; max-width: 34px; height: var(--h); background: var(--ink); border-radius: 99px 99px 6px 6px; position: relative; cursor: pointer; animation: growH .9s var(--ease) backwards; animation-delay: calc(var(--i) * 25ms); transition: background .25s; }
.rb.hl { background: var(--lime); }
.rb:hover { background: #3c3c3a; }
.rb.hl:hover { background: var(--lime-2); }
.rb:hover .bar-tip { opacity: 1; transform: translate(-50%, 0); }
@keyframes growH { from { height: 0; } }
.rlabels { display: flex; justify-content: space-around; gap: 5px; margin-top: 8px; font-size: 10px; color: var(--muted); }
.rlabels span { flex: 1; max-width: 34px; text-align: center; white-space: nowrap; display: flex; justify-content: center; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; flex: none; }
.dseg { animation: dIn 1s var(--ease) backwards; animation-delay: calc(var(--i) * 120ms); transition: stroke-width .25s; }
.dseg:hover { stroke-width: 20; }
@keyframes dIn { from { stroke-dasharray: 0 999; } }
.d-v { font-size: 15px; font-weight: 600; fill: var(--ink); font-family: inherit; }
.d-l { font-size: 8px; fill: var(--muted); font-family: inherit; }
.d-legend { list-style: none; flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 140px; }
.d-legend li { display: grid; grid-template-columns: 10px 1fr auto; gap: 2px 8px; align-items: center; font-size: 12.5px; }
.d-legend i { width: 10px; height: 10px; border-radius: 3px; }
.d-legend small { grid-column: 2 / -1; }
.rank { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.rank li { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) 70px auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.rank .avatar.xs { width: 36px; height: 36px; font-size: 11px; }
.rk { width: 22px; height: 22px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 10.5px; font-weight: 600; }
.rank li:first-child .rk { background: var(--lime); }
.rk-n b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-n small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-bar { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: var(--ink); border-radius: 99px; animation: grow 1s var(--ease) backwards; }
.hbars { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; }
.hb { height: 26px; background: var(--soft); border-radius: 9px; overflow: hidden; }
.hb i { display: block; height: 100%; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); animation: grow 1s var(--ease) backwards; }

/* ---------- settings ---------- */
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.set-grid .full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-2); min-width: 0; }
.field > span { font-weight: 500; }
.field input, .field select, .field textarea {
  height: 44px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 0 14px;
  font: inherit; font-size: 13.5px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(212, 242, 90, .5); }
.field .invalid, .invalid { border-color: #e4652e !important; box-shadow: 0 0 0 3px rgba(228, 101, 46, .15) !important; }
.static-v { height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 14px; background: var(--soft); color: var(--ink); font-size: 13.5px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.hint { font-size: 12px; color: var(--ink-2); background: var(--lime-soft); border-radius: 12px; padding: 10px 14px; }
.pref-list { display: flex; flex-direction: column; }
.pref { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.pref:first-child { border-top: 0; padding-top: 0; }
.pref b { display: block; font-weight: 500; font-size: 13.5px; }
.data-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.data-card small { display: block; margin-top: 4px; }
.data-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.set-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.dirty { font-size: 12px; color: #9a6400; margin-right: auto; }

/* ---------- help ---------- */
.help-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 28px; flex-wrap: wrap; }
.help-hero h2 { font-size: 34px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.help-hero p { color: #39430f; margin: 8px 0 16px; }
.help-hero .search { background: #fff; min-width: min(420px, 100%); height: 46px; }
.help-status { display: flex; align-items: center; gap: 8px; font-size: 12px; background: rgba(255, 255, 255, .6); padding: 8px 14px; border-radius: 99px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.quick { text-align: left; display: flex; flex-direction: column; gap: 4px; position: relative; padding: 20px; }
.quick .q-e { font-size: 28px; margin-bottom: 8px; transition: transform .5s var(--ease); display: inline-block; }
.quick:hover .q-e { transform: scale(1.15) rotate(-8deg); }
.quick b { font-weight: 500; font-size: 15px; }
.quick > i[data-i] { position: absolute; top: 18px; right: 18px; color: var(--muted); transition: transform .4s var(--ease), color .3s; }
.quick:hover > i[data-i] { transform: translate(3px, -3px); color: var(--ink); }
.help-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.help-side { display: flex; flex-direction: column; gap: 16px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 500; font-size: 13.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i[data-i] { transition: transform .35s var(--ease); color: var(--muted); }
.faq details[open] summary i[data-i] { transform: rotate(180deg); color: var(--ink); }
.faq details p { font-size: 13px; color: var(--ink-2); line-height: 1.6; padding: 0 0 16px; animation: viewIn .35s var(--ease); }
.kbd-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.kbd-list li { display: flex; align-items: center; gap: 12px; font-size: 13px; }
kbd { min-width: 54px; text-align: center; font-family: inherit; font-size: 11.5px; font-weight: 600; background: var(--soft); border-radius: 8px; padding: 5px 8px; box-shadow: inset 0 -2px 0 #e2e2dc; }
#supForm { display: flex; flex-direction: column; gap: 10px; }
.sup-list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sup-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; background: var(--soft); border-radius: 14px; padding: 10px 12px; font-size: 12px; animation: slideIn .4s var(--ease); }
.sup-list b { font-weight: 500; }
.sup-list small { grid-column: 1; }
.sup-list .chip { grid-row: 1 / 3; grid-column: 2; align-self: center; }

/* ---------- modal & drawer ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(15, 15, 12, .38); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  background: #fff; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(20px) scale(.97); transition: opacity .3s, transform .45s var(--ease);
}
.modal.wide { width: min(1040px, 100%); }
.modal-wrap.open .modal-scrim { opacity: 1; }
.modal-wrap.open .modal { opacity: 1; transform: none; }
.modal-wrap.side { place-items: stretch end; padding: 12px; }
.modal-wrap.side .modal { width: min(460px, 100%); max-height: none; height: 100%; transform: translateX(40px); }
.modal-wrap.side.open .modal { transform: none; }
.modal-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 24px 12px; }
.modal-h h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.modal-h small { display: block; margin-top: 3px; font-size: 12px; }
.modal-b { padding: 6px 24px 18px; overflow: auto; flex: 1; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-f .danger:first-child { margin-right: auto; }
.modal.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.m-text { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.banner { background: #e6edff; color: #2b4fb3; font-size: 12.5px; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.banner.danger { background: #ffe5d6; color: #b4471b; }
.steps { display: flex; justify-content: space-between; margin: 4px 0 18px; position: relative; }
.steps::before { content: ''; position: absolute; left: 14px; right: 14px; top: 13px; height: 2px; background: var(--line); }
.step { display: grid; justify-items: center; gap: 4px; position: relative; z-index: 1; }
.step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 11px; font-weight: 600; color: var(--muted); }
.step small { font-size: 10px; }
.step.done span { background: var(--ink); color: var(--lime); box-shadow: none; }
.step.cur span { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 4px rgba(212, 242, 90, .35); animation: pulseDot 1.6s infinite; }
.step.cur small { color: var(--ink); font-weight: 600; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 7px rgba(212, 242, 90, .15); } }
.modal .kv { margin: 0 0 14px; }
.line-items { list-style: none; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 8px 0; margin-bottom: 14px; }
.line-items li, .cart li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.li-e { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-size: 17px; }
.li-n { min-width: 0; }
.li-n small { display: block; font-size: 10.5px; }
.kv.totals .grand { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; }
.kv.totals .grand dt, .kv.totals .grand dd { font-size: 16px; font-weight: 600; color: var(--ink); }

/* POS */
.pos { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; }
.pos-l { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pos-l .search { min-width: 0; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { height: 32px; padding: 0 14px; border-radius: 99px; background: var(--soft); font-size: 12px; transition: background .25s, color .25s; }
.chip-btn:hover { background: #ebebe5; }
.chip-btn.active { background: var(--ink); color: #fff; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.pos-item { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: transform .25s var(--ease), box-shadow .25s; }
.pos-item:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pos-item:active { transform: scale(.96); }
.pos-item.off { opacity: .4; cursor: not-allowed; }
.pi-e { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 4px; }
.pos-item b { font-size: 12.5px; font-weight: 500; line-height: 1.25; }
.pos-item em { position: absolute; top: 8px; right: 8px; min-width: 22px; height: 22px; border-radius: 99px; background: var(--lime); font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; animation: pop .35s var(--ease); }
.pos-r { display: flex; flex-direction: column; gap: 12px; background: var(--soft); border-radius: 22px; padding: 14px; min-width: 0; }
.seg.full { display: flex; background: #fff; }
.seg.full button { flex: 1; }
.seg.full .ind { background: var(--lime); box-shadow: none; }
.cart { list-style: none; display: flex; flex-direction: column; max-height: 220px; overflow: auto; background: #fff; border-radius: 16px; padding: 6px 10px; }
.cart li { animation: slideIn .3s var(--ease); }
.cart .cart-empty { display: block; font-size: 12px; color: var(--muted); text-align: center; padding: 18px 0; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty b { min-width: 16px; text-align: center; }
.qty .mini { width: 24px; height: 24px; }
.pos-r .kv.totals { margin: 0; }
.amount-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount-pick label { cursor: pointer; }
.amount-pick input { position: absolute; opacity: 0; pointer-events: none; }
.amount-pick span { display: grid; place-items: center; height: 46px; border-radius: 14px; border: 1px solid var(--line); font-weight: 600; color: var(--ink); transition: background .25s, border-color .25s; }
.amount-pick input:checked + span { background: var(--lime); border-color: var(--lime); }
.tips { padding-left: 18px; display: flex; flex-direction: column; gap: 12px; }
.tips li { font-size: 13px; }
.tips b { display: block; font-weight: 500; }
.tips span { color: var(--ink-2); font-size: 12.5px; }

/* ---------- reduce motion preference ---------- */
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

/* ---------- print ---------- */
@media print {
  body { background: #fff; padding: 0; }
  .blob, .sidebar, .topbar, .head-controls, .burst, .burst-arrow, .toasts, .ai-bar, .modal-wrap { display: none !important; }
  .app { display: block; box-shadow: none; padding: 0; background: #fff; }
  .card, .dark-panel { box-shadow: none !important; border: 1px solid #ddd; break-inside: avoid; animation: none !important; opacity: 1 !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .kpis, .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv-layout, .help-cols { grid-template-columns: minmax(0, 1fr); }
  .tv-side { position: static; }
  .r-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .profile .p-txt { display: none; }
  .kpis { gap: 12px; }
  .kpi-v { font-size: 24px; }
  .board, .r-grid, .set-grid, .pos, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .r-rev { grid-column: auto; }
  .search { min-width: 0; flex: 1; }
  .v-bar-r { width: 100%; }
  .modal-wrap { padding: 10px; }
  .modal-wrap.side { padding: 0; }
  .modal-wrap.side .modal { border-radius: 24px 0 0 24px; }
  .modal-h, .modal-b, .modal-f { padding-left: 18px; padding-right: 18px; }
  .help-hero h2 { font-size: 26px; }
  .quick-grid { grid-template-columns: minmax(0, 1fr); }
  .rank li { grid-template-columns: 22px 36px minmax(0, 1fr) auto; }
  .rank .rk-bar { display: none; }
}

/* ---------- compact density for laptop-sized screens ---------- */
@media (max-width: 1600px), (max-height: 900px) {
  .app { gap: 14px; padding: 14px; }
  .main, .view, #view-overview, .grid, .kpis, .r-grid, .side, .c-tls, .tv-side { gap: 12px; }
  .topbar { gap: 10px; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn.sq { width: 42px; height: 42px; }
  .icon-btn.dark { width: 46px; height: 46px; }
  .avatar { width: 34px; height: 34px; }
  .pill { height: 40px; font-size: 12.5px; }
  .pill-ico, .arrow-circle { width: 30px; height: 30px; }
  .page-head { padding: 2px 4px 0; }
  h1 { font-size: 34px; }
  .burst { width: 56px; height: 56px; }
  .burst svg { width: 26px; height: 26px; }
  .burst-arrow { width: 22px; height: 22px; margin-left: -24px; }
  .greet-mark { width: 34px; height: 34px; }

  .sidebar { top: 14px; height: calc(100vh - 28px); min-height: 0; padding: 14px 0; gap: 18px; border-radius: 24px; }
  .logo { width: 44px; height: 44px; }
  .nav, .nav-bottom { gap: 6px; }
  .nav-btn, .nav-ind { width: 40px; height: 40px; }

  .card { padding: 16px; border-radius: 22px; }
  .card-head { margin-bottom: 10px; }
  h3 { font-size: 15px; }
  .kpi { min-height: 0; padding: 14px 16px; gap: 4px; }
  .kpi-v { font-size: 26px; }
  .kpi.small-v .kpi-v { font-size: 17px; }
  .kpi-ic { width: 30px; height: 30px; }
  .v-card { padding: 12px 14px; }
  .search, .select-pill.sm { height: 36px; }
  .tab { height: 30px; padding: 0 12px; font-size: 12px; }
  .btn-dark, .btn-ghost, .btn-white { height: 38px; }

  .big-num { font-size: 29px; }
  .mid-num { font-size: 23px; }
  .spark { height: 38px; margin: 8px 0 6px; }
  .split { margin: 12px -16px -16px; }
  .split > div { padding: 10px 16px 14px; }
  .ana-stat .val { font-size: 27px; }
  .bars-wrap { height: 150px; margin-top: 16px; }
  .tabs { margin-top: 14px; }
  .gauge { width: 92px; height: 92px; }
  .kit-q b { font-size: 38px; }
  .ticket { padding: 6px 2px; }
  .order { padding: 7px 6px; }
  .o-ico { width: 38px; height: 38px; font-size: 18px; }
  .orders { max-height: 262px; }
  .c-pro { min-height: 300px; }
  .c-pro h2 { font-size: 30px; }
  .cc { height: 140px; }
  .line-wrap { height: 230px; }
  .pulse-wrap { height: 200px; }
  .occ-blob { width: 116px; height: 116px; }
  .c-ins h2 { font-size: 20px; }
  .prep-tile { height: 150px; }
  .lolli { height: 132px; }
  .ts-num { font-size: 32px; }
  .t-v { font-size: 29px; }
  .tile { min-height: 116px; }
  .dark-panel { padding: 18px; border-radius: 28px; }
  .dp-title { margin: 18px 0; }
  .dp-title h2 { font-size: clamp(34px, 4.6vw, 64px); }
  .bolt-circle { width: 46px; height: 46px; }
  .dp-tabs button { height: 36px; padding: 0 18px; }
  .q-big, .f-big { font-size: 42px; }
  .prompt { height: 50px; font-size: 16px; }
  .tool { width: 42px; height: 42px; }

  .mgrid, .sgrid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
  .mcard, .scard { padding: 14px; }
  .mc-e { width: 46px; height: 46px; font-size: 24px; }
  .mc-price { font-size: 22px; margin: 4px 0 2px; }
  .b-col { padding: 8px; border-radius: 18px; }
  .ocard { padding: 10px 12px; }
  .tbl { height: 80px; }
  .tbl.round { width: 80px; }
  .rchart { height: 220px; }
  .donut { width: 130px; height: 130px; }
  .help-hero { padding: 22px; }
  .help-hero h2 { font-size: 28px; }
  .quick { padding: 16px; }
  .field input, .field select { height: 40px; }
}
/* keep four stat cards in one row until the screen is really narrow */
@media (max-width: 1100px) and (min-width: 821px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) and (min-width: 821px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1600px), (max-height: 900px) {
  .split .badge { position: static; display: inline-flex; margin-top: 6px; }
  .assign .btn-dark { white-space: nowrap; padding: 0 12px; }
  .ana-stats { gap: 10px 28px; padding-left: 6px; }
  .ana-stat .lbl { margin-right: 6px; }
}

/* rupee axis labels (e.g. "Rs 7.5 L") need a little more room */
.y-axis { width: 48px; white-space: nowrap; }
.x-axis { margin-left: 58px; }
.r-y { width: 52px; white-space: nowrap; }

/* ---------- real photos ---------- */
.ph { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; background: var(--soft); }
.o-ico, .li-e, .it-e, .pi-e, .t-ic, .plate { overflow: hidden; }
.o-ico { width: 44px; height: 44px; }
.plate .ph { width: 70px; height: 70px; border-radius: 50%; transition: transform .9s var(--ease); }
.ph-sm { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.ph-xs { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.ph-kpi { display: inline-block; width: 30px; height: 30px; border-radius: 9px; vertical-align: -6px; margin-right: 8px; }
.oc-items li { align-items: center; }
.sup { display: inline-flex; align-items: center; gap: 8px; }
.toast .t-ic .ph { border-radius: 50%; }
.li-e { width: 42px; height: 42px; border-radius: 12px; }
.line-items li, .cart li { grid-template-columns: 42px minmax(0, 1fr) auto auto; }
.dtable.inv .it-e { width: 44px; height: 44px; border-radius: 12px; }
.rank .it-e { border-radius: 11px; }

/* menu cards: full-width dish photo */
.mc-photo { position: relative; height: 150px; margin: -18px -18px 12px; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; overflow: hidden; display: grid; place-items: center; font-size: 54px; }
.mc-photo .ph { border-radius: 0; transition: transform .7s var(--ease), filter .3s; }
.mcard:hover .mc-photo .ph { transform: scale(1.07); }
.mcard.off .mc-photo .ph { filter: grayscale(1); opacity: .55; }
.mc-photo .switch { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .94); padding: 4px 10px 4px 4px; border-radius: 99px; color: var(--ink-2); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .4); }
.mcard.off .mc-price, .mcard.off .mc-n { opacity: .45; }

/* POS tiles: photo on top */
.pos-item .pi-e { width: 100%; height: 86px; border-radius: 12px; font-size: 30px; margin-bottom: 6px; }
.pos-item .pi-e .ph { transition: transform .5s var(--ease); }
.pos-item:hover .pi-e .ph { transform: scale(1.06); }
.pos-item em { z-index: 1; top: 14px; right: 14px; }
.pos-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); max-height: 460px; }

/* photo upload field */
.photo-pick { display: flex; gap: 14px; align-items: center; }
.pp-prev { width: 110px; height: 80px; border-radius: 14px; overflow: hidden; background: var(--soft); display: grid; place-items: center; flex: none; }
.pp-prev em { font-style: normal; font-size: 32px; }
.pp-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pp-acts small { width: 100%; }
.pp-acts label { cursor: pointer; }

/* help: photo credits */
.credits-card summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.credits-card summary::-webkit-details-marker { display: none; }
.credits-card summary b { display: block; font-weight: 500; font-size: 15px; }
.credits-card summary i[data-i] { transition: transform .35s var(--ease); color: var(--muted); }
.credits-card details[open] summary i[data-i] { transform: rotate(180deg); }
.credits { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 16px; }
.credits li { display: flex; gap: 10px; align-items: center; font-size: 12px; min-width: 0; }
.credits img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.credits span { min-width: 0; }
.credits a { color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credits small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1600px), (max-height: 900px) {
  .mc-photo { margin: -14px -14px 10px; height: 136px; }
}
.mc-stats b { white-space: nowrap; font-size: 12.5px; }
.mc-stats div { min-width: 0; overflow: hidden; }
