/* Grow Palm Beach — Partner Portal */
:root {
  --sand-50: #FBF7F0; --sand-100: #F4ECDC; --sand-200: #E6D6B5;
  --ink-900: #0B1F2D; --ink-700: #1F3A4A; --ink-500: #4A6678; --ink-300: #8FA5B3;
  --palm-700: #0F5C4A; --palm-500: #1D9E75; --palm-100: #D9F0E5;
  --coral-500: #E2693C; --coral-600: #C9542A; --coral-100: #FBE4DA;
  --gold-500: #D9A24A; --gold-100: #FBF0DC;
  --white: #fff; --radius: 14px; --radius-lg: 20px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, sans-serif; background: var(--sand-50); color: var(--ink-900); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.muted { color: var(--ink-500); }
.fine { color: var(--ink-300); font-size: 13px; margin: 8px 0 0; }
a { color: var(--palm-700); }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 20px; font: 600 15px Inter, sans-serif; cursor: pointer; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--coral-500); color: #fff; }
.btn--primary:hover { background: var(--coral-600); }
.btn--palm { background: var(--palm-500); color: #fff; }
.btn--palm:hover { background: var(--palm-700); }
.btn--ink { background: var(--ink-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-700); border: 1.5px solid rgba(11,31,45,.15); }
.btn--ghost:hover { background: var(--white); }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin: 14px 0 6px; }
.input { width: 100%; padding: 12px 14px; border: 1.5px solid rgba(11,31,45,.14); border-radius: 12px; background: #fff; font: 15.5px Inter, sans-serif; color: var(--ink-900); }
.input:focus { outline: none; border-color: var(--palm-500); }
.input--sm { width: auto; padding: 8px 12px; font-size: 14px; }
.input--narrow { max-width: 140px; }
.input--price { width: 96px; text-align: right; padding: 8px 10px; }

/* login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login__card { width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: 0 10px 30px rgba(11,31,45,.08); }
.login__card h1 { font-size: 32px; margin: 14px 0 6px; }
.login__card form { margin-top: 8px; }
.login__card .btn { margin-top: 16px; }
.notice { background: var(--palm-100); color: var(--palm-700); padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-top: 16px; }
.notice--err { background: var(--coral-100); color: var(--coral-600); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 20px; background: var(--ink-900); color: #fff; }
.top__brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.top__name { font-family: Fraunces, Georgia, serif; font-size: 20px; }
.top__sub { font-size: 12px; color: var(--ink-300); letter-spacing: .04em; text-transform: uppercase; }
.top .btn--ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.top .btn--ghost:hover { background: rgba(255,255,255,.08); }
.tabs { display: flex; gap: 4px; background: rgba(255,255,255,.08); padding: 4px; border-radius: 999px; order: 5; width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: transparent; color: #fff; border: 0; padding: 8px 16px; border-radius: 999px; font: 600 14px Inter, sans-serif; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; flex-shrink: 0; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink-900); }
.badge { background: var(--coral-500); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* views */
.view { max-width: 1280px; margin: 0 auto; padding: 20px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border-radius: var(--radius); padding: 12px 16px; box-shadow: 0 2px 8px rgba(11,31,45,.04); }
.bar__right { display: flex; gap: 8px; flex-wrap: wrap; }
.live { font-size: 13px; color: var(--ink-300); margin: 10px 2px 4px; }
.live--ok::before { content: "● "; color: var(--palm-500); }
.live--bad::before { content: "● "; color: var(--coral-500); }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { width: 46px; height: 26px; border-radius: 999px; background: var(--palm-500); position: relative; transition: background .15s; flex-shrink: 0; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 23px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + .switch__track { background: var(--coral-500); }
.switch input:checked + .switch__track::after { left: 3px; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--ink-900); outline-offset: 2px; }

/* order columns */
#tab-today { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: start; }
#tab-today > .bar, #tab-today > .live-row, #tab-today > .done { grid-column: 1 / -1; }
.col h2 { font-size: 22px; margin: 8px 2px 12px; display: flex; align-items: center; gap: 8px; }
.count { font: 600 13px Inter, sans-serif; background: var(--sand-200); color: var(--ink-700); border-radius: 999px; padding: 2px 9px; }
.orders { display: flex; flex-direction: column; gap: 12px; }
.empty { color: var(--ink-300); font-size: 14px; padding: 18px; background: rgba(255,255,255,.6); border: 1.5px dashed var(--sand-200); border-radius: var(--radius); margin: 0; text-align: center; }
.order { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: 0 2px 10px rgba(11,31,45,.06); border-left: 5px solid var(--sand-200); }
.order--new { border-left-color: var(--coral-500); animation: pulse 1.6s ease-in-out 3; }
.order--cooking { border-left-color: var(--gold-500); }
.order--ready { border-left-color: var(--palm-500); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--coral-100); } }
.order__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.order__num { font-family: Fraunces, Georgia, serif; font-size: 26px; }
.order__time { font-weight: 700; font-size: 15px; text-align: right; }
.order__time small { display: block; font-weight: 500; color: var(--ink-500); font-size: 12.5px; }
.order__time--soon { color: var(--coral-600); }
.order__who { margin: 6px 0 10px; font-size: 14.5px; color: var(--ink-700); }
.order__who a { color: var(--ink-700); text-decoration: none; font-weight: 600; }
.order__items { list-style: none; margin: 0 0 10px; padding: 10px 0 0; border-top: 1px solid var(--sand-100); }
.order__items li { padding: 3px 0; font-size: 15.5px; }
.order__items b { display: inline-block; min-width: 28px; }
.order__items small { display: block; margin-left: 28px; color: var(--ink-500); font-size: 13.5px; }
.order__note { background: var(--gold-100); border-radius: 10px; padding: 8px 10px; font-size: 14px; margin-bottom: 10px; }
.order__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.order__foot .btn { white-space: nowrap; }
.order__total { font-weight: 700; }
.done { background: #fff; border-radius: var(--radius); padding: 14px 16px; }
.done summary { cursor: pointer; font-weight: 600; }
.done .orders { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.done .order { box-shadow: none; border: 1px solid var(--sand-100); border-left-width: 5px; }

/* menu */
.cat { background: #fff; border-radius: var(--radius); padding: 6px 16px 10px; margin-top: 14px; }
.cat h2 { font-size: 20px; padding: 12px 0 6px; }
.item { display: grid; grid-template-columns: 56px minmax(0,1fr) auto auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--sand-100); }
.item__name { font-weight: 600; }
.item__name small { display: block; font-weight: 400; color: var(--ink-500); font-size: 13px; }
.item--off .item__name { color: var(--ink-300); text-decoration: line-through; }
.price { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-500); }

/* settings */
.settings { display: grid; gap: 16px; max-width: 760px; }
.card { background: #fff; border-radius: var(--radius); padding: 20px; }
.card h2 { font-size: 22px; margin-bottom: 4px; }
.hours-row { display: grid; grid-template-columns: 110px auto 1fr; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--sand-100); }
.hours-row:first-child { border-top: 0; }
.hours-row .times { display: flex; align-items: center; gap: 8px; }
.hours-row .times input { width: 130px; }
.hours-row label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.settings__save { display: flex; align-items: center; gap: 14px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink-900); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; z-index: 50; box-shadow: 0 10px 30px rgba(11,31,45,.25); }
.toast--err { background: var(--coral-600); }

@media (max-width: 960px) {
  #tab-today { grid-template-columns: 1fr; }
  .top { padding: 10px 14px; }
  .tabs { justify-content: flex-start; }
  .hours-row { grid-template-columns: 1fr; gap: 6px; }
}

/* receipt printer */
.live-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.pstat { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eef5f0; color: #1d5b3a; margin: 10px 0 4px; }
.pstat--off { background: #fdecea; color: #a12a1b; }
.pstat--warn { background: #fff4dc; color: #7a5300; }
.order__print { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-300); }
.order__print--bad { color: var(--coral-500); font-weight: 600; }
.printer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.printer-row + .printer-row { border-top: 1px solid #e6e9ec; }

.order__tip { display: block; font-size: 12px; font-weight: 600; color: var(--palm-500); }

/* ---------- v2: shell ---------- */
.top { padding-top: max(12px, env(safe-area-inset-top)); }
.top__logo { border-radius: 8px; }
.picker { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.picker option { color: var(--ink-900); }
.lang { display: inline-flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: inherit; font: 700 12px Inter, sans-serif; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink-900); }
.login .lang { background: var(--sand-100); color: var(--ink-700); }
.login .lang button[aria-pressed="true"] { background: var(--ink-900); color: #fff; }
.login__top { display: flex; justify-content: space-between; align-items: center; }
.login__logo { border-radius: 12px; }
.offline { background: var(--coral-500); color: #fff; text-align: center; padding: 8px 16px; font-weight: 600; font-size: 14px; position: sticky; top: 0; z-index: 25; }
.small { font-size: 13px; }

/* busy mode */
.busy { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.busy__label { font-size: 14px; color: var(--ink-500); font-weight: 600; }
.busy--on { background: var(--gold-100); padding: 4px 6px 4px 12px; border-radius: 999px; }
.busy--on .busy__label { color: #7a5300; }
.order__refund { font-size: 13px; color: var(--coral-600); font-weight: 600; margin-bottom: 8px; }

/* toolbars + segmented control */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .muted { margin: 0; }
.seg { display: inline-flex; background: #fff; border-radius: 999px; padding: 4px; box-shadow: 0 2px 8px rgba(11,31,45,.05); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font: 600 14px Inter, sans-serif; color: var(--ink-700); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink-900); color: #fff; }
.search { max-width: 340px; }

/* tables */
.table-wrap { background: #fff; border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); padding: 12px 14px; border-bottom: 1px solid var(--sand-100); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--sand-100); vertical-align: top; }
.table td small { display: block; color: var(--ink-500); font-size: 12.5px; }
.table .num { text-align: right; white-space: nowrap; }
.table a { color: var(--ink-700); font-weight: 600; text-decoration: none; }
.hrow { cursor: pointer; }
.hrow:hover td { background: var(--sand-50); }
.hdetail td { background: var(--sand-50); }
.hdetail__grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 20px; }
.hdetail__money > div { display: flex; justify-content: space-between; padding: 3px 0; }
.hdetail__money .strong { font-weight: 700; border-top: 1px solid var(--sand-200); margin-top: 4px; padding-top: 6px; }
.hdetail__money .bad { color: var(--coral-600); font-weight: 600; }
.hdetail__btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.btn--danger { color: var(--coral-600); border-color: var(--coral-100); }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sand-100); color: var(--ink-700); white-space: nowrap; }
.chip--paid { background: var(--coral-100); color: var(--coral-600); }
.chip--accepted { background: var(--gold-100); color: #7a5300; }
.chip--ready, .chip--ok, .chip--regular { background: var(--palm-100); color: var(--palm-700); }
.chip--refunded, .chip--bad { background: #fdecea; color: #a12a1b; }
.chip--warn { background: var(--gold-100); color: #7a5300; }

/* sales */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 16px 18px; }
.kpi__label { font-size: 12.5px; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi__value { font-family: Fraunces, Georgia, serif; font-size: 30px; margin-top: 4px; }
.kpi__sub { font-size: 13px; color: var(--ink-500); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 18px; overflow-x: auto; }
.bar-col { flex: 1 0 28px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 28px; }
.bar-col__bar { width: 100%; max-width: 44px; background: var(--coral-500); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bar-col__bar--alt { background: var(--palm-500); }
.bar-col__v { font-size: 11px; color: var(--ink-500); margin-bottom: 4px; white-space: nowrap; }
.bar-col__l { font-size: 11px; color: var(--ink-500); margin-top: 6px; white-space: nowrap; }
.top-item { display: grid; grid-template-columns: 24px minmax(0, 1.4fr) minmax(60px, 2fr) auto auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--sand-100); }
.top-item:first-child { border-top: 0; }
.top-item__n { color: var(--ink-300); font-weight: 700; }
.top-item__name { font-weight: 600; }
.top-item__bar { background: var(--sand-100); border-radius: 999px; height: 8px; overflow: hidden; }
.top-item__bar span { display: block; height: 100%; background: var(--coral-500); border-radius: 999px; }
.top-item__q, .top-item__c { font-size: 14px; color: var(--ink-500); white-space: nowrap; }
.card + .card, .grid2 + .card { margin-top: 0; }

/* menu */
.cat__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat__btns { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid rgba(11,31,45,.12); background: #fff; font-size: 16px; cursor: pointer; color: var(--ink-700); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.item__photo { width: 56px; height: 56px; border-radius: 12px; border: 0; background: var(--sand-100); padding: 0; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.item__photo img { width: 100%; height: 100%; object-fit: cover; }
.item__controls { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.item__controls .is-on { background: var(--gold-100); border-color: var(--gold-500); color: #7a5300; }
.item--off .item__photo { opacity: .5; }
.switch--sm .switch__label { font-size: 13px; min-width: 70px; }

/* settings extras */
.check { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-weight: 500; cursor: pointer; }
.check input, .radio input { width: 18px; height: 18px; accent-color: var(--palm-500); }
.closure { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--sand-100); }
.closure:first-child { border-top: 0; }
.closure-add { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.closure-add input[type=text] { flex: 1 1 200px; }

/* dialogs */
.dlg { border: 0; border-radius: var(--radius-lg); padding: 24px; width: min(520px, calc(100vw - 24px)); box-shadow: 0 20px 60px rgba(11,31,45,.3); }
.dlg::backdrop { background: rgba(11,31,45,.45); }
.dlg h2 { font-size: 24px; margin-bottom: 6px; }
.dlg__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.radio { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-weight: 600; cursor: pointer; }
.refund-amt { display: flex; align-items: center; gap: 6px; margin: 4px 0 4px 28px; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.photo-edit { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.photo-edit > div:last-child { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.photo-edit__img { width: 96px; height: 96px; border-radius: 14px; background: var(--sand-100); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.photo-edit__img img { width: 100%; height: 100%; object-fit: cover; }
textarea.input { resize: vertical; font: 15px Inter, sans-serif; }

/* Choices (modifier groups) */
.dlg { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.dlg--wide { width: min(600px, calc(100vw - 24px)); }
.dlg__left { margin-right: auto; }
.row2--even { grid-template-columns: 1fr 1fr; align-items: end; }
.check--box { margin-top: 0; min-height: 44px; }
.check--inline { margin-top: 0; font-size: 13px; }
.mods-edit { margin-top: 18px; border-top: 1px solid var(--sand-200, #eee6d8); padding-top: 4px; }
.mods-edit__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mods-edit__head .label { margin-bottom: 6px; }
.mods-list, .mod-opts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mods-list li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--sand-200, #eee6d8); border-radius: 12px; background: var(--sand-50, #fbf8f2); }
.mods-list li > div { flex: 1; min-width: 0; }
.mods-list b { display: block; }
.mods-list small { display: block; color: var(--ink-300); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mod-opts li { display: grid; grid-template-columns: 1fr 104px 36px 36px; gap: 6px; align-items: center; }
.mod-opts .mod-es { grid-column: 1 / -1; }
.mod-price { display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink-500, #556); }
.mod-price .input { padding-left: 8px; padding-right: 8px; }
.icon-btn--sm { width: 36px; height: 36px; min-width: 36px; font-size: 16px; }
.mod-es { display: none; }
.show-es .mod-es { display: block; }
#modNameEs { margin-top: 8px; }
#modOpts + .btn { margin-top: 10px; }
@media (max-width: 480px) {
  .mod-opts li { grid-template-columns: 1fr 36px 36px; padding-bottom: 8px; border-bottom: 1px solid var(--sand-200); }
  .mod-opts [data-o="name"] { grid-column: 1 / -1; }
  .mod-opts .mod-price { grid-column: 1; }
}

@media (max-width: 960px) {
  .grid2 { grid-template-columns: 1fr; }
  .hdetail__grid { grid-template-columns: 1fr; }
  .item { grid-template-columns: 48px minmax(0,1fr) auto; }
  .item__photo { width: 48px; height: 48px; }
  .item__controls { grid-column: 1 / -1; justify-content: flex-start; }
  .top-item { grid-template-columns: 20px minmax(0,1fr) auto auto; }
  .top-item__bar { display: none; }
  .bar__right { width: 100%; }
}
.order__foot > .btn:last-child { margin-left: auto; }

/* menu: collapsible categories */
.toolbar__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cat__toggle { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; min-width: 0; padding: 4px 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.cat__toggle h2 { padding: 8px 0 0; }
.cat__chev { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: var(--sand-100); color: var(--ink-700); font-size: 14px; transition: transform .15s ease; flex-shrink: 0; }
.cat--closed .cat__chev { transform: rotate(-90deg); }
.cat__sum { display: block; font-size: 13px; color: var(--ink-500); padding-bottom: 6px; }
.cat__flag { font-weight: 600; }
.cat__flag--off { color: #a33a2a; }
.cat__flag--price { color: #7a5300; background: var(--gold-100); padding: 1px 6px; border-radius: 6px; }
.cat--closed { padding-bottom: 4px; }
.input--needs { border-color: var(--gold-500); background: var(--gold-100); }
@media (max-width: 640px) { .cat--closed .cat__btns { display: none; } }

/* menu: find bar, filters, reorder, category actions */
.menu-find { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 4px; }
.menu-find__search { flex: 1 1 260px; max-width: 420px; }
.menu-find__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid rgba(11,31,45,.14); background: #fff; color: var(--ink-700); font: 600 13px Inter, sans-serif; cursor: pointer; }
.fchip b { font-weight: 700; color: var(--ink-500); }
.fchip.is-on { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.fchip.is-on b { color: #fff; }
.fchip[disabled] { opacity: .45; cursor: default; }
.menu-empty { padding: 30px 0; text-align: center; }
.cat__title h2 { padding: 12px 0 10px; }
.cat__toggle[disabled] { cursor: default; }
.cat__toggle[disabled] .cat__chev { visibility: hidden; }
.cat--hidden h2 { color: var(--ink-500); }
.cat__more { position: relative; }
.cat__menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(11,31,45,.18); padding: 6px; display: grid; }
.cat__menu button { text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 8px; font: 500 14.5px Inter, sans-serif; color: var(--ink-900); cursor: pointer; }
.cat__menu button:hover { background: var(--sand-100); }
.item--reorder { grid-template-columns: 44px minmax(0,1fr) auto; padding: 6px 0; }
.item--reorder .item__photo { width: 44px; height: 44px; cursor: default; }
.is-reordering .cat { outline: 2px dashed rgba(11,31,45,.12); outline-offset: -2px; }
@media (max-width: 640px) {
  .menu-find__search { max-width: none; }
  .cat__menu { right: -6px; min-width: 230px; }
}

/* delivery on order cards */
.order__dlv { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #eef4f8; font-size: 14px; }
.order__dlv--bad { background: #fbecea; }
.order__dlvhead { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.chip--dlv { background: var(--ink-900); color: #fff; }
.order__addr { margin-top: 4px; font-weight: 600; }
.order__addr small { display: block; font-weight: 400; color: var(--ink-500); }
.order__courier { margin-top: 4px; }
.order__dlverr { margin-top: 4px; color: #a33a2a; font-size: 13px; }
.order__dlvbtns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.order__dlvbtns:empty { display: none; }

/* In-dialog errors (toasts sit behind modal dialogs) */
.form-err { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #a12a1b; font-weight: 600; font-size: 14px; border: 1px solid #f3b8b0; }
.input.is-invalid { border-color: #c0392b !important; background: #fff6f5; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15); }

#codeForm { margin-top: 16px; }
.input--code { font-size: 24px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }

/* Red bar when the iPad is blocking order sounds */
.soundbar { position: sticky; top: 0; z-index: 60; display: block; width: 100%; border: 0; padding: 14px 16px; background: #c0392b; color: #fff;
  font: 700 16px/1.3 Inter, system-ui, sans-serif; text-align: center; cursor: pointer; animation: soundbar-pulse 1.6s ease-in-out infinite; }
@keyframes soundbar-pulse { 50% { background: #e0533f; } }
@media (prefers-reduced-motion: reduce) { .soundbar { animation: none; } }

.chip--fav { background: #fff4d6; color: #a46b00; font-weight: 700; }
