
/* Theme tokens. The cart bar, toasts, modal and drawer are appended to
   <body> — OUTSIDE .hm-app — so the tokens must be declared on those roots
   too, or every var() in them resolves to nothing (transparent bar, etc.). */
.hm-app,
.hm-cart-bar, .hm-toast-wrap, .hm-modal-overlay,
.hm-drawer-overlay, .hm-drawer {

	--hm-ink: #1e293b;
	--hm-ink-2: #475569;
	--hm-muted: #64748b;
	--hm-faint: #94a3b8;        /* decorative only — never body copy */

	--hm-bg: #f4f6f9;
	--hm-card: #ffffff;
	--hm-elevated: #ffffff;
	--hm-line: #e8ecf1;
	--hm-line-2: #d8dee7;

	--hm-primary: #6d28d9;
	--hm-primary-2: #7c3aed;
	--hm-primary-3: #8b5cf6;    /* lighter brand violet — hero gradient tail */
	--hm-primary-soft: #f3f0ff;
	--hm-on-primary: #ffffff;

	--hm-green: #16a34a;
	--hm-green-soft: #dcfce7;
	--hm-green-ink: #15803d;
	--hm-red: #dc2626;
	--hm-red-soft: #fee2e2;
	--hm-blue: #2563eb;
	--hm-blue-soft: #dbeafe;
	--hm-amber-soft: #fef3c7;
	--hm-amber-ink: #b45309;

	--hm-head-1: #ffffff;
	--hm-head-2: #f7f5ff;
	--hm-head-3: #fdf6ec;          /* faint amber tint — keeps violet→amber identity, pale */
	--hm-head-ink: #1e293b;
	--hm-head-sub: #64748b;
	--hm-head-border: #ece8f6;
	--hm-head-accent: #7c3aed;

	--hm-ring: rgba(124, 58, 237, 0.45);
	/* Primary-button glow. Tokenised so it can never drift from the brand
	   again: both values were left at the old amber theme's rgb(217,119,6),
	   which put an orange halo under every violet button on hover. */
	--hm-primary-glow: rgba(124, 58, 237, 0.25);
	--hm-primary-glow-2: rgba(124, 58, 237, 0.35);

	--hm-radius: 14px;
	--hm-radius-sm: 10px;
	--hm-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
	--hm-shadow-lg: 0 10px 36px rgba(15, 23, 42, 0.16);

	--hm-text-xs: 12px;
	--hm-text-sm: 13px;
	--hm-text-base: 15px;
	--hm-text-md: 16px;
	--hm-text-lg: 18px;
	--hm-text-xl: 21px;
	--hm-skeleton: linear-gradient(100deg, rgba(148,163,184,0.12) 30%, rgba(148,163,184,0.22) 50%, rgba(148,163,184,0.12) 70%);
}

/* Floating widgets sit on <body>, so they don't inherit the app font. */
.hm-cart-bar, .hm-toast-wrap, .hm-modal-overlay, .hm-drawer {
	font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.hm-app {
	color-scheme: light;
	font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif;
	color: var(--hm-ink);
	background: var(--hm-bg);
	border-radius: var(--hm-radius);
	padding: 0;
	margin: 0 auto;
	max-width: 1180px;
	line-height: 1.5;
	font-size: var(--hm-text-base);
	-webkit-font-smoothing: antialiased;
}

.hm-app *, .hm-app *::before, .hm-app *::after,
.hm-cart-bar, .hm-cart-bar *, .hm-toast-wrap, .hm-toast-wrap *,
.hm-modal-overlay, .hm-modal-overlay *, .hm-drawer-overlay,
.hm-drawer, .hm-drawer * { box-sizing: border-box; }
.hm-app h1, .hm-app h2, .hm-app h3, .hm-app h4 { margin: 0; line-height: 1.3; }

.hm-app img { max-width: 100%; display: block; }
.hm-app button { font-family: inherit; }
.hm-app input, .hm-app select, .hm-app textarea { font-family: inherit; font-size: 14px; }
.hm-app svg.hm-i { width: 1em; height: 1em; flex: 0 0 auto; vertical-align: -0.14em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hm-app a:focus-visible,
.hm-app button:focus-visible,
.hm-app input:focus-visible,
.hm-app select:focus-visible,
.hm-app textarea:focus-visible,
.hm-app [tabindex]:focus-visible {
	outline: 3px solid var(--hm-ring);
	outline-offset: 2px;
	border-radius: 8px;
}
.hm-app .hm-field input:focus-visible,
.hm-app .hm-field select:focus-visible,
.hm-app .hm-field textarea:focus-visible {
	outline-offset: 0;
	border-color: var(--hm-primary-2);
	border-radius: 10px;
}

.hm-boot { padding: 20px 16px 40px; color: var(--hm-muted); }
.hm-boot-bar { display: flex; align-items: center; gap: 10px; padding: 8px 4px 18px; color: var(--hm-muted); font-size: var(--hm-text-sm); }

.hm-spinner {
	width: 38px; height: 38px; margin: 0 auto 14px;
	border: 3px solid var(--hm-line); border-top-color: var(--hm-primary-2);
	border-radius: 50%; animation: hm-spin 0.8s linear infinite;
}
@keyframes hm-spin { to { transform: rotate(360deg); } }

.hm-skel { background: var(--hm-skeleton); background-size: 200% 100%; animation: hm-shimmer 1.3s ease-in-out infinite; border-radius: 8px; }
@keyframes hm-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.hm-skel-row { display: flex; gap: 14px; align-items: center; background: var(--hm-card); border-radius: var(--hm-radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--hm-shadow); }
.hm-skel-thumb { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 12px; }
.hm-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.hm-skel-line { height: 12px; }
.hm-skel-line.w-60 { width: 60%; } .hm-skel-line.w-40 { width: 40%; } .hm-skel-line.w-80 { width: 80%; }
.hm-skel-pill { width: 64px; height: 34px; border-radius: 10px; flex: 0 0 auto; }
.hm-skel-card { background: var(--hm-card); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); padding: 16px; height: 132px; }

.hm-gate-card {
	max-width: 420px; margin: 40px auto; padding: 44px 32px; text-align: center;
	background: var(--hm-card); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow);
}
.hm-gate-icon { display: inline-flex; color: var(--hm-primary-2); margin-bottom: 14px; }
.hm-gate-icon svg.hm-i { width: 44px; height: 44px; stroke-width: 1.7; }
.hm-gate-card h2 { margin-bottom: 8px; }
.hm-gate-card p { color: var(--hm-ink-2); margin-bottom: 20px; }

.hm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	padding: 11px 18px; min-height: 44px; border: 0; border-radius: 10px; cursor: pointer;
	font-size: 14px; font-weight: 600; text-decoration: none !important;
	transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease, opacity 0.15s ease;
	line-height: 1.2; white-space: nowrap;
}
.hm-btn svg.hm-i { width: 16px; height: 16px; }
.hm-btn:active { transform: scale(0.97); }
.hm-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hm-btn-primary {
	background: var(--hm-primary-2); color: var(--hm-on-primary) !important;
	box-shadow: 0 2px 8px var(--hm-primary-glow);
}
.hm-btn-primary:hover { background: var(--hm-primary); box-shadow: 0 4px 12px var(--hm-primary-glow-2); color: var(--hm-on-primary); }

.hm-btn-dark { background: var(--hm-primary-2); color: var(--hm-on-primary) !important; }
.hm-btn-dark:hover { background: var(--hm-primary); color: var(--hm-on-primary); }
.hm-btn-green { background: var(--hm-green); color: #fff !important; }
.hm-btn-green:hover { background: #15803d; color: #fff; }
.hm-btn-ghost { background: transparent; color: var(--hm-ink-2) !important; border: 1.5px solid var(--hm-line-2); }
.hm-btn-ghost:hover { border-color: var(--hm-muted); background: var(--hm-bg); }
.hm-btn-danger-ghost { background: var(--hm-red-soft); color: var(--hm-red) !important; }
.hm-btn-danger-ghost:hover { background: var(--hm-red); color: #fff !important; }
.hm-btn-sm { padding: 7px 12px; min-height: 36px; font-size: 12.5px; border-radius: 8px; }
.hm-btn-block { width: 100%; }

.hm-badge {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 3px 10px; border-radius: 999px;
	font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
.hm-badge svg.hm-i { width: 11px; height: 11px; stroke-width: 2.6; }
.hm-badge-placed { background: var(--hm-amber-soft); color: var(--hm-amber-ink); }
.hm-badge-preparing { background: var(--hm-blue-soft); color: var(--hm-blue); }
.hm-badge-delivered { background: var(--hm-green-soft); color: var(--hm-green-ink); }
.hm-badge-cancelled { background: var(--hm-bg); color: var(--hm-muted); text-decoration: line-through; }
.hm-badge-open { background: var(--hm-blue-soft); color: var(--hm-blue); }
.hm-badge-billed { background: var(--hm-amber-soft); color: var(--hm-amber-ink); }
.hm-badge-paid { background: var(--hm-green-soft); color: var(--hm-green-ink); }
.hm-badge-free { background: var(--hm-bg); color: var(--hm-muted); }
.hm-badge-occupied { background: var(--hm-red-soft); color: var(--hm-red); }

.hm-toast-wrap {
	position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 999999;
	display: flex; flex-direction: column; gap: 10px; align-items: stretch;
	pointer-events: none; transition: bottom 0.25s ease;
	width: max-content; max-width: min(92vw, 430px);
}
.hm-toast-wrap.lifted { bottom: 92px; }

/* Frosted card per toast: severity reads from the icon chip, its glow and the
   timer bar, so the surface stays light and the message stays legible. */
.hm-toast {
	position: relative; display: flex; align-items: center; gap: 12px;
	width: 100%; padding: 13px 18px 13px 14px; overflow: hidden;
	background: rgba(255, 255, 255, 0.88);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	backdrop-filter: blur(14px) saturate(160%);
	color: var(--hm-ink); border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 16px;
	font-size: var(--hm-text-sm); font-weight: 600; line-height: 1.4; letter-spacing: 0.1px;
	box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.32), 0 2px 6px rgba(15, 23, 42, 0.07),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
	animation: hm-toast-in 0.42s cubic-bezier(0.22, 1.22, 0.36, 1);
	text-align: left; overflow-wrap: anywhere;
}
/* Tinted wash behind the glass — keeps the card light but colour-coded. */
.hm-toast::before {
	content: ''; position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(135deg, var(--hm-bg), rgba(255, 255, 255, 0));
}
.hm-toast > span { position: relative; z-index: 1; }
.hm-toast > span:last-of-type { flex: 1; min-width: 0; }

.hm-toast-ico {
	position: relative; flex: none; display: grid; place-items: center;
	width: 32px; height: 32px; border-radius: 11px; color: #fff;
	background: linear-gradient(145deg, var(--hm-ink-2), var(--hm-ink));
	box-shadow: 0 6px 14px -4px rgba(30, 41, 59, 0.55);
}
.hm-toast-ico svg.hm-i { width: 19px; height: 19px; }

/* Drains over the same 2800 ms the toast is held open. */
.hm-toast-timer {
	position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
	border-radius: 0 3px 3px 0; transform-origin: left center;
	background: linear-gradient(90deg, var(--hm-ink-2), var(--hm-ink));
	animation: hm-toast-drain 2.8s linear forwards;
}

.hm-toast.ok::before { background: linear-gradient(135deg, var(--hm-green-soft), rgba(255, 255, 255, 0)); }
.hm-toast.ok .hm-toast-ico {
	background: linear-gradient(145deg, #22c55e, var(--hm-green));
	box-shadow: 0 6px 16px -4px rgba(22, 163, 74, 0.6);
}
.hm-toast.ok .hm-toast-timer { background: linear-gradient(90deg, #22c55e, var(--hm-green)); }

.hm-toast.err::before { background: linear-gradient(135deg, var(--hm-red-soft), rgba(255, 255, 255, 0)); }
.hm-toast.err .hm-toast-ico {
	background: linear-gradient(145deg, #ef4444, var(--hm-red));
	box-shadow: 0 6px 16px -4px rgba(220, 38, 38, 0.6);
}
.hm-toast.err .hm-toast-timer { background: linear-gradient(90deg, #ef4444, var(--hm-red)); }

.hm-toast.is-out { animation: hm-toast-out 0.28s cubic-bezier(0.4, 0, 1, 1) forwards; }
@keyframes hm-toast-in { from { opacity: 0; transform: translateY(16px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes hm-toast-out { to { opacity: 0; transform: translateY(8px) scale(0.96); } }
@keyframes hm-toast-drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }

.hm-modal-overlay {
	position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); z-index: 99999;
	display: flex; align-items: center; justify-content: center; padding: 18px;
	animation: hm-fade 0.18s ease;
}
@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }
.hm-modal {
	background: var(--hm-elevated); border-radius: 16px; box-shadow: var(--hm-shadow-lg);
	width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
	animation: hm-pop 0.2s ease;
}
@keyframes hm-pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: none; } }
.hm-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--hm-line); }
.hm-modal-head h3 { font-size: 17px; }
.hm-modal-close { display: inline-flex; align-items: center; justify-content: center; background: var(--hm-bg); border: 0; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; color: var(--hm-ink-2); }
.hm-modal-close svg.hm-i { width: 16px; height: 16px; }
.hm-modal-close:hover { background: var(--hm-line); }
.hm-modal-body { padding: 20px 22px; }

.hm-modal-body > .hm-field:last-child,
.hm-modal-body > .hm-field-row:last-child .hm-field,
.hm-modal-body > .hm-switch-row:last-child { margin-bottom: 0; }
.hm-modal-foot { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }

.hm-modal.hm-modal-wide { max-width: 920px; }

.hm-field { margin-bottom: 16px; min-width: 0; }
/* Caption only. This must NOT reach checkbox/switch labels: `.hm-field label`
   (0,1,1) used to out-rank `.hm-check` (0,1,0), forcing display:block + a bottom
   margin onto them — the checkbox then stacked above its text and floated high.
   The child combinator + :not() keep captions styled and components untouched. */
.hm-field > label:not(.hm-check):not(.hm-switch), .hm-field > span { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--hm-ink-2); margin-bottom: 6px; letter-spacing: 0.2px; }
.hm-field input[type="text"], .hm-field input[type="number"], .hm-field input[type="url"],
.hm-field input[type="password"], .hm-field input[type="email"], .hm-field input[type="time"], .hm-field input[type="tel"],
.hm-field select, .hm-field textarea {
	width: 100%; padding: 11px 13px; min-height: 44px; border: 1.5px solid var(--hm-line-2); border-radius: 10px;
	background: var(--hm-card); color: var(--hm-ink); outline: none; transition: border-color 0.15s;
}
.hm-field textarea { min-height: 64px; }

.hm-field select {
	appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 13px center; background-size: 16px;
}
.hm-field input:focus, .hm-field select:focus, .hm-field textarea:focus { border-color: var(--hm-primary-2); }
.hm-field .hint { font-size: 12px; line-height: 1.45; color: var(--hm-muted); margin-top: 6px; }
.hm-field-row { display: flex; gap: 14px; }
.hm-field-row .hm-field { flex: 1; }
.hm-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; user-select: none; min-height: 40px; }
.hm-switch input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--hm-primary-2); }

.hm-switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 26px; margin: 0 0 12px; }
/* Anything with the `hidden` attribute must actually hide — .hm-btn & co set
   display:inline-flex/flex, which otherwise beats the UA [hidden] rule. */
.hm-app [hidden] { display: none !important; }

.hm-preview:empty { display: none; }
.hm-preview {
	margin-top: 6px; padding: 12px 14px; border-radius: 10px;
	background: var(--hm-primary-soft); border: 1px dashed var(--hm-line-2);
}
.hm-preview-label { font-size: 12px; font-weight: 600; color: var(--hm-muted); margin-bottom: 8px; letter-spacing: 0.2px; }
.hm-preview-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hm-preview-chip {
	font-size: 12.5px; font-weight: 700; color: var(--hm-primary);
	background: var(--hm-card); border: 1px solid var(--hm-line-2);
	border-radius: 7px; padding: 4px 9px;
}
.hm-preview-more { font-size: 12.5px; font-weight: 600; color: var(--hm-muted); }

.hm-customer-app { max-width: 560px; overflow: hidden; box-shadow: var(--hm-shadow); }

.hm-cust-head {
	background: linear-gradient(135deg, var(--hm-head-1), var(--hm-head-2) 55%, var(--hm-head-3));
	color: var(--hm-head-ink); border-bottom: 1px solid var(--hm-head-border);
	padding: 26px 20px 20px; position: relative;
}
.hm-cust-head h1 { font-size: var(--hm-text-xl); letter-spacing: 0.3px; display: flex; align-items: center; gap: 9px; }
.hm-cust-head h1 svg.hm-i { width: 22px; height: 22px; color: var(--hm-head-accent); opacity: 1; }
.hm-cust-head .sub { color: var(--hm-head-sub); opacity: 1; font-size: var(--hm-text-sm); margin-top: 3px; }
.hm-table-chip {
	position: absolute; top: 22px; right: 18px;
	background: var(--hm-primary-soft); border: 1px solid var(--hm-line-2);
	color: var(--hm-primary); padding: 8px 14px; border-radius: 12px; text-align: center;
}
.hm-table-chip .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; display: block; }
.hm-table-chip .num { font-size: 19px; font-weight: 800; line-height: 1.1; }

.hm-cust-tabs { display: flex; background: var(--hm-card); border-bottom: 1px solid var(--hm-line); position: sticky; top: 0; z-index: 20; }
.hm-cust-tab {
	flex: 1; padding: 14px 8px; min-height: 50px; background: none; border: 0; border-bottom: 3px solid transparent;
	font-size: 14px; font-weight: 600; color: var(--hm-muted); cursor: pointer; position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.hm-cust-tab svg.hm-i { width: 16px; height: 16px; }
.hm-cust-tab.active { color: var(--hm-primary); border-bottom-color: var(--hm-primary-2); }
.hm-tab-count {
	background: var(--hm-primary-2); color: var(--hm-on-primary); font-size: 11px; font-weight: 700;
	border-radius: 999px; padding: 1px 7px; margin-left: 2px;
}

.hm-cat-bar {
	display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 6px;
	scrollbar-width: none; -ms-overflow-style: none;
}
.hm-cat-bar::-webkit-scrollbar { display: none; }
.hm-cat-chip {
	flex: 0 0 auto; padding: 8px 16px; min-height: 38px; border-radius: 999px; border: 1.5px solid var(--hm-line-2);
	background: var(--hm-card); font-size: 13px; font-weight: 600; color: var(--hm-ink-2); cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hm-cat-chip:active { transform: scale(0.96); }
.hm-cat-chip.active { background: var(--hm-primary-2); border-color: var(--hm-primary-2); color: var(--hm-on-primary); }

.hm-menu-lock {
	display: flex; align-items: center; gap: 10px;
	margin: 8px 16px 0; padding: 12px 14px;
	background: var(--hm-amber-soft); color: var(--hm-amber-ink);
	border: 1px solid #fcd9a3; border-radius: 12px;
	font-size: 13.5px; font-weight: 600; line-height: 1.4;
}
.hm-menu-lock .hm-i { flex: 0 0 auto; width: 18px; height: 18px; }

.hm-menu-list { padding: 10px 16px 120px; }
.hm-menu-group-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--hm-muted); margin: 18px 2px 10px; }

.hm-dish {
	display: flex; gap: 14px; background: var(--hm-card); border-radius: var(--hm-radius);
	padding: 14px; margin-bottom: 10px; box-shadow: var(--hm-shadow); align-items: center;
	animation: hm-rise 0.3s ease both;
}
.hm-dish-img {
	width: 76px; height: 76px; flex: 0 0 76px; border-radius: 12px; object-fit: cover;
	background: var(--hm-primary-soft);
}
.hm-dish-img.ph { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; color: var(--hm-primary-2); }
.hm-dish-info { flex: 1; min-width: 0; }
.hm-dish-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.hm-veg-dot { width: 16px; height: 16px; flex: 0 0 16px; border: 1.5px solid; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; }
.hm-veg-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.hm-veg-dot.veg { border-color: #15803d; } .hm-veg-dot.veg::after { background: #15803d; }
.hm-veg-dot.nonveg { border-color: #b91c1c; } .hm-veg-dot.nonveg::after { background: #b91c1c; border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hm-dish-desc { font-size: 12.5px; color: var(--hm-muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-dish-price { font-size: 14.5px; font-weight: 700; margin-top: 6px; color: var(--hm-ink); }

.hm-stepper { display: flex; align-items: center; border: 1.5px solid var(--hm-primary-2); border-radius: 10px; overflow: hidden; background: var(--hm-primary-soft); }
.hm-stepper button { width: 40px; height: 44px; border: 0; background: none; color: var(--hm-primary); font-size: 18px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hm-stepper button:active { background: var(--hm-primary-glow); }
.hm-stepper span { min-width: 26px; text-align: center; font-weight: 700; font-size: 14px; color: var(--hm-primary); }
.hm-add-btn {
	border: 1.5px solid var(--hm-primary-2); background: var(--hm-primary-soft); color: var(--hm-primary);
	font-weight: 800; font-size: 13px; padding: 0 20px; min-height: 44px; border-radius: 10px; cursor: pointer;
	letter-spacing: 0.5px; transition: background 0.15s, color 0.15s;
}
.hm-add-btn:hover { background: var(--hm-primary-2); color: var(--hm-on-primary); }
.hm-add-btn:active { transform: scale(0.96); }

.hm-cart-bar {
	position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
	width: min(520px, calc(100vw - 32px)); z-index: 90;
	background: var(--hm-primary-2); color: var(--hm-on-primary); opacity: 1;
	border-radius: 14px; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center;
	box-shadow: 0 10px 28px rgba(124, 58, 237, 0.45), 0 2px 8px rgba(15, 23, 42, 0.25); cursor: pointer;
	/* Own entrance keyframe so it doesn't reset the centering translateX(-50%). */
	animation: hm-cart-rise 0.25s ease both;
}
/* Keep translateX(-50%) at every step so the bar stays centered, and end fully opaque. */
@keyframes hm-cart-rise {
	from { opacity: 0; transform: translateX(-50%) translateY(12px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hm-cart-bar .left b { font-size: 15px; }
.hm-cart-bar .left span { display: block; font-size: 12px; opacity: 0.95; }
.hm-cart-bar .right { font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.hm-cart-bar .right svg.hm-i { width: 16px; height: 16px; }
.hm-cart-bar:focus-visible { outline: 3px solid var(--hm-ring); outline-offset: 2px; }
.hm-cart-bar .hm-cart-cta { display: none; }

/* Phone: "2 items · total" on one line beside a white call-to-action pill. The
   pill is a plain span because the whole bar is already the button, and a real
   button nested inside role="button" is invalid and confuses screen readers. */
@media (max-width: 640px) {
	.hm-cart-bar {
		justify-content: flex-start; flex-wrap: wrap; gap: 6px;
		padding: 8px 8px 8px 18px; border-radius: 20px;
		background: linear-gradient(135deg, var(--hm-primary-2), var(--hm-primary));
	}
	.hm-cart-bar .left b { font-weight: 800; }
	.hm-cart-bar .left span, .hm-cart-bar .right svg.hm-i { display: none; }
	.hm-cart-bar .right::before { content: '\00b7'; }
	.hm-cart-bar .hm-cart-cta {
		display: flex; align-items: center; margin-left: auto;
		min-height: 44px; padding: 0 20px; border-radius: var(--hm-radius);
		background: var(--hm-on-primary); color: var(--hm-primary);
		font-size: 15px; font-weight: 800; white-space: nowrap;
	}
	.hm-cart-bar:active .hm-cart-cta { background: var(--hm-primary-soft); }
}
/* Smallest phones: without this a 4-digit total pushes the pill to a second line. */
@media (max-width: 359px) {
	.hm-cart-bar { padding-left: 14px; }
	.hm-cart-bar .left b, .hm-cart-bar .right, .hm-cart-bar .hm-cart-cta { font-size: 14px; }
	.hm-cart-bar .hm-cart-cta { padding: 0 14px; }
}

.hm-drawer-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 9999; animation: hm-fade 0.2s; }
.hm-drawer {
	position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
	width: min(560px, 100vw); max-height: 80vh; overflow-y: auto; z-index: 10000;
	background: var(--hm-elevated); border-radius: 22px 22px 0 0; padding: 10px 20px 24px;
	animation: hm-slide-up 0.25s ease;
}
@keyframes hm-slide-up { from { transform: translate(-50%, 40%); opacity: 0.5; } to { transform: translate(-50%, 0); opacity: 1; } }
.hm-drawer-grip { width: 44px; height: 5px; background: var(--hm-line-2); border-radius: 99px; margin: 6px auto 14px; }
.hm-drawer h3 { font-size: 17px; margin-bottom: 14px; }
.hm-featured-drawer h3 { display: flex; align-items: center; gap: 8px; }

.hm-featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-featured-tile {
	display: block; aspect-ratio: 1 / 1; border-radius: var(--hm-radius-sm); overflow: hidden;
	background: var(--hm-card); border: 1px solid var(--hm-line);
	transition: transform 0.15s, box-shadow 0.15s;
}
.hm-featured-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hm-featured-tile:hover { transform: translateY(-2px); box-shadow: var(--hm-shadow); }
.hm-featured-viewall { margin-top: 12px; }
.hm-cart-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hm-line); }
.hm-cart-row .nm { flex: 1; font-size: 14px; font-weight: 600; }
.hm-cart-row .amt { font-weight: 700; font-size: 14px; min-width: 70px; text-align: right; }
.hm-cart-totals { padding: 14px 0 6px; font-size: 14px; color: var(--hm-ink-2); }
.hm-cart-totals .row { display: flex; justify-content: space-between; padding: 3px 0; }
.hm-cart-totals .grand { font-weight: 800; font-size: 16px; color: var(--hm-ink); }

.hm-order-view { padding: 18px 16px 60px; }
.hm-status-banner {
	border-radius: var(--hm-radius); padding: 18px; margin-bottom: 16px; text-align: center;
	background: var(--hm-card); box-shadow: var(--hm-shadow);
}
.hm-status-banner .ico { display: inline-flex; color: var(--hm-primary-2); }
.hm-status-banner .ico svg.hm-i { width: 34px; height: 34px; stroke-width: 1.7; }
.hm-status-banner h3 { margin: 6px 0 4px; font-size: 17px; }
.hm-status-banner p { font-size: 13px; color: var(--hm-ink-2); }
.hm-status-banner.paid { background: linear-gradient(135deg, var(--hm-green-soft), var(--hm-card)); }
.hm-status-banner.paid .ico { color: var(--hm-green); }

.hm-oi-card { background: var(--hm-card); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); padding: 6px 16px; margin-bottom: 14px; }
.hm-oi-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--hm-line); }
.hm-oi-row:last-child { border-bottom: 0; }
.hm-oi-row .nm { flex: 1; min-width: 0; }
.hm-oi-row .nm b { font-size: 14px; }
.hm-oi-row .nm .meta { font-size: 12px; color: var(--hm-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.hm-oi-row .amt { font-weight: 700; font-size: 14px; }
.hm-cancel-link {
	border: 0; background: var(--hm-red-soft); color: var(--hm-red); font-size: 11.5px; font-weight: 700;
	border-radius: 8px; padding: 6px 10px; min-height: 36px; cursor: pointer; white-space: nowrap;
}
.hm-cancel-link small { display: block; font-weight: 600; opacity: 0.8; font-size: 10px; }

.hm-bill-summary { background: var(--hm-card); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); padding: 16px; margin-bottom: 14px; font-size: 14px; }
.hm-bill-summary .row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--hm-ink-2); }
.hm-bill-summary .grand { font-weight: 800; color: var(--hm-ink); font-size: 17px; border-top: 2px dashed var(--hm-line-2); margin-top: 8px; padding-top: 10px; }

.hm-pay-card { background: var(--hm-card); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); padding: 20px 16px; text-align: center; margin-bottom: 14px; }
.hm-pay-card h4 { font-size: 15px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.hm-pay-card h4 svg.hm-i { width: 17px; height: 17px; color: var(--hm-primary-2); }
.hm-pay-qr { max-width: 220px; margin: 0 auto 12px; border-radius: 12px; border: 1px solid var(--hm-line); }
.hm-upi-chip {
	display: inline-flex; align-items: center; gap: 8px; background: var(--hm-bg);
	border: 1.5px dashed var(--hm-muted); padding: 10px 14px; min-height: 44px; border-radius: 10px;
	font-size: 14px; font-weight: 700; cursor: pointer; color: var(--hm-ink);
}
.hm-upi-chip svg.hm-i { width: 15px; height: 15px; color: var(--hm-muted); }
.hm-pay-note { font-size: 12.5px; color: var(--hm-muted); margin-top: 10px; }

/* --- Customer-facing apps: modern phone treatment ----------------------
   The hero card is shared: both apps opt in with .hm-cust-head-hero — the QR
   menu and the delivery storefront — so the two cannot drift apart. What is
   still written as .hm-customer-app is deliberately QR-only: the storefront
   takes .hm-cust-tab / .hm-dish from the base rules, and an unscoped change
   there would alter its approved look. */

/* Hero card. The violet full-bleed header read as a flat band; this is the
   approved design instead: a lavender card inset at the same 14px gutter as
   the menu below it, with the dish artwork bleeding off its right edge. The
   artwork supplies its own colour, so the card only has to carry the copy. */
.hm-customer-app, .hm-online-app { background: #f6f5fc; }

.hm-cust-head-hero {
	position: relative;
	display: flex;
	align-items: center;
	margin: 14px 14px 2px;
	padding: 0;
	min-height: 236px;
	border: 0;
	border-radius: 26px;
	overflow: hidden;
	background: linear-gradient(100deg, #f8f3ff 0%, #ece3fd 22%, #e2d6fa 40%, #e2d6fa 100%);
	color: var(--hm-ink);
	isolation: isolate;
}
/* Soft light bloom behind the copy, for depth — clipped by the card. */
.hm-cust-head-hero::before {
	content: ""; position: absolute; z-index: 0; top: -90px; left: -70px;
	width: 240px; height: 240px; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.75), transparent 70%);
	pointer-events: none;
}

.hm-cust-head-hero .hm-hero-copy {
	position: relative; z-index: 2;
	flex: 1 1 auto; min-width: 0; max-width: 60%;
	padding: 22px 0 22px 18px;
}

.hm-hero-eyebrow {
	display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
	background: #ffffff; color: #4c1d95;
	font-size: 12px; font-weight: 700;
	padding: 7px 13px; border-radius: 999px;
	box-shadow: 0 2px 8px rgba(76, 29, 149, 0.10);
}
.hm-hero-eyebrow svg.hm-i { width: 14px; height: 14px; color: var(--hm-primary-2); }
.hm-hero-eyebrow i { font-style: normal; color: #a78bfa; }

.hm-cust-head-hero h1 {
	display: block; margin-top: 13px;
	font-size: 34px; line-height: 1.04; font-weight: 800; letter-spacing: -0.6px;
	color: #140a30;
}
.hm-cust-head-hero h1 .l1,
.hm-cust-head-hero h1 .l2 { display: block; }
.hm-cust-head-hero h1 .l2 { color: var(--hm-primary-2); }

.hm-cust-head-hero .sub {
	color: #574f6e; font-size: 14px; line-height: 1.45; margin-top: 11px; max-width: 158px;
}

/* Table number as a solid violet pill, matching the primary buttons below. */
.hm-cust-head-hero .hm-table-chip {
	position: static; display: inline-flex; align-items: center; gap: 0;
	margin-top: 17px; padding: 11px 19px;
	border: 0; border-radius: 999px; text-align: left;
	background: linear-gradient(135deg, var(--hm-primary-2), var(--hm-primary));
	color: #ffffff;
	box-shadow: 0 8px 18px rgba(109, 40, 217, 0.30);
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.hm-cust-head-hero .hm-table-chip svg.hm-i { width: 18px; height: 18px; margin-right: 9px; }
.hm-cust-head-hero .hm-table-chip .lbl,
.hm-cust-head-hero .hm-table-chip .num {
	display: inline; font-size: 15px; line-height: 1.2;
	text-transform: none; letter-spacing: 0; opacity: 1;
}
.hm-cust-head-hero .hm-table-chip .lbl { font-weight: 700; margin-right: 5px; }
.hm-cust-head-hero .hm-table-chip .num { font-weight: 800; }

/* The artwork fills the right of the card. It is cropped only slightly, so
   its own flat lavender margin survives on the left and the card gradient
   ends on that exact colour (#e2d6fa) — the join needs no mask, which
   several mobile browsers still drop silently. */
.hm-hero-art {
	position: absolute; z-index: 1;
	top: 0; bottom: 0; right: 4px; width: 66%;
	pointer-events: none;
}
/* A short fade dissolves the remaining tonal step where the artwork's own
   gradient meets the flat card colour. Where mask-image is unsupported the
   join is a ~12/255 step, which is already close to invisible. */
.hm-hero-art img {
	height: 100%; width: auto; margin-left: auto; object-fit: cover; object-position: right center;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}

@media (max-width: 380px) {
	.hm-cust-head-hero { min-height: 218px; }
	.hm-cust-head-hero .hm-hero-copy { max-width: 62%; padding-left: 15px; }
	.hm-cust-head-hero h1 { font-size: 29px; }
	.hm-cust-head-hero .sub { font-size: 13px; }
	.hm-hero-eyebrow { font-size: 11px; padding: 6px 11px; }
}

/* Delivery storefront, on the shared hero. Two differences it has to carry:
   the open/closed pill takes the table chip's slot, so it takes the chip's
   geometry and lift but keeps its own green/red — a violet “Closed” would
   read as open; and the storefront is not width-capped the way the QR app is,
   so the card earns more height once there is room for it. */
.hm-cust-head-hero .hm-online-pills { justify-content: flex-start; margin-top: 17px; }
.hm-cust-head-hero .hm-online-pill {
	padding: 11px 17px; font-size: 14px; font-weight: 800;
	box-shadow: 0 8px 18px rgba(20, 10, 48, 0.12);
}
.hm-cust-head-hero .hm-online-pill svg.hm-i { width: 17px; height: 17px; }

@media (min-width: 760px) {
	.hm-online-app .hm-cust-head-hero { min-height: 280px; }
	.hm-online-app .hm-cust-head-hero .hm-hero-copy { max-width: 72%; padding-left: 30px; }
}

/* Glassy sticky tab bar: menu content softly shows through as it scrolls,
   with a near-opaque fallback where backdrop-filter is unsupported. */
.hm-customer-app .hm-cust-tabs {
	background: rgba(255, 255, 255, 0.90);
	-webkit-backdrop-filter: saturate(1.6) blur(10px); backdrop-filter: saturate(1.6) blur(10px);
}

/* Menu cards: a hairline border plus a softer resting shadow, lifting on
   hover so a dish reads as tappable. */
.hm-customer-app .hm-dish {
	border: 1px solid var(--hm-line);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.hm-customer-app .hm-dish:hover { box-shadow: var(--hm-shadow); border-color: var(--hm-line-2); }
.hm-customer-app .hm-dish-img { border-radius: 14px; }

/* Order tab: the status icon sits in a soft circular chip. */
.hm-customer-app .hm-status-banner .ico {
	width: 54px; height: 54px; border-radius: 50%;
	align-items: center; justify-content: center;
	background: var(--hm-primary-soft); margin-bottom: 8px;
}
.hm-customer-app .hm-status-banner.paid .ico { background: var(--hm-green-soft); }

.hm-manager-app, .hm-admin-app, .hm-super-app, .hm-chef-app { max-width: none; background: var(--hm-bg); padding: 22px clamp(16px, 3vw, 40px) 30px; }

.hm-live-dot { display: inline-block; width: 8px; height: 8px; background: #4ade80; border-radius: 50%; margin-right: 6px; animation: hm-pulse 1.6s infinite; }
.hm-live-dot.is-off { background: var(--hm-red); animation: none; }
@keyframes hm-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 6px; }
.hm-stat { display: flex; align-items: center; gap: 12px; background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: 12px; box-shadow: var(--hm-shadow); padding: 14px 16px; }
.hm-stat-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--hm-primary-soft); color: var(--hm-primary-2); }
.hm-stat-ico svg.hm-i { width: 20px; height: 20px; }
.hm-stat .v { font-size: 22px; font-weight: 800; line-height: 1.1; }
.hm-stat .l { font-size: 11.5px; color: var(--hm-muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; margin-top: 2px; }

.hm-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 16px; }

.hm-tcard { background: var(--hm-card); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); overflow: hidden; border-top: 4px solid var(--hm-line); }
.hm-tcard.has-order { border-top-color: var(--hm-primary-2); }
.hm-tcard.is-billed { border-top-color: var(--hm-blue); }
.hm-tcard.flash { animation: hm-flash 1.2s ease 2; }
@keyframes hm-flash { 0%, 100% { box-shadow: var(--hm-shadow); } 50% { box-shadow: 0 0 0 4px var(--hm-primary-glow-2); } }

.hm-tcard-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--hm-line); }
.hm-tcard-head .tno { font-weight: 800; font-size: 15.5px; display: inline-flex; align-items: center; gap: 7px; }
.hm-tcard-head .tno svg.hm-i { width: 16px; height: 16px; color: var(--hm-muted); }
.hm-tcard-head .meta { font-size: 11.5px; color: var(--hm-muted); }
.hm-tcard-body { padding: 6px 16px 12px; }
.hm-tcard-empty { color: var(--hm-muted); font-size: 13px; text-align: center; padding: 22px 0 26px; }

.hm-mi-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--hm-line); }
.hm-mi-row:last-child { border-bottom: 0; }
.hm-mi-row .nm { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; }
.hm-mi-row .nm small { color: var(--hm-muted); font-weight: 500; }
.hm-mi-actions { display: flex; gap: 5px; }
.hm-chip-btn {
	display: inline-flex; align-items: center; gap: 4px;
	border: 1px solid var(--hm-line-2); background: var(--hm-card); border-radius: 7px; cursor: pointer;
	font-size: 11px; font-weight: 700; padding: 6px 9px; min-height: 32px; color: var(--hm-ink-2);
}
.hm-chip-btn svg.hm-i { width: 12px; height: 12px; }
.hm-chip-btn:hover { border-color: var(--hm-muted); }
.hm-chip-btn.go-green:hover { background: var(--hm-green-soft); color: var(--hm-green-ink); border-color: #86efac; }
.hm-chip-btn.go-blue:hover { background: var(--hm-blue-soft); color: var(--hm-blue); border-color: #93c5fd; }
.hm-chip-btn.go-red:hover { background: var(--hm-red-soft); color: var(--hm-red); border-color: #fca5a5; }

.hm-tcard-foot { padding: 11px 16px 14px; border-top: 1px solid var(--hm-line); }
.hm-tcard-total { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.hm-tcard-btns { display: flex; flex-wrap: wrap; gap: 7px; }

.hm-paymethod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-paymethod {
	border: 2px solid var(--hm-line-2); border-radius: 14px; background: var(--hm-card); cursor: pointer;
	padding: 20px 10px; text-align: center; transition: border-color 0.15s, background 0.15s; font-family: inherit; color: var(--hm-ink);
}
.hm-paymethod:hover { border-color: var(--hm-primary-2); background: var(--hm-primary-soft); }
.hm-paymethod .ico { display: inline-flex; color: var(--hm-primary-2); margin-bottom: 6px; }
.hm-paymethod .ico svg.hm-i { width: 30px; height: 30px; stroke-width: 1.7; }
.hm-paymethod b { font-size: 14.5px; display: block; }
.hm-paymethod span { display: block; font-size: 12px; color: var(--hm-muted); margin-top: 2px; }

.hm-shell { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }

.hm-side {
	position: sticky; top: 18px;
	background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius);
	box-shadow: var(--hm-shadow); padding: 14px; display: flex; flex-direction: column; gap: 6px;
}
.hm-side-nav { display: flex; flex-direction: column; gap: 4px; }
.hm-side-link {
	display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
	border: 0; background: transparent; cursor: pointer; color: var(--hm-ink-2);
	padding: 11px 13px; border-radius: var(--hm-radius-sm); font-size: 14px; font-weight: 600;
	transition: background 0.15s, color 0.15s;
}
.hm-side-link svg.hm-i { width: 18px; height: 18px; color: var(--hm-faint); transition: color 0.15s; }
.hm-side-link:hover { background: var(--hm-bg); color: var(--hm-ink); }
.hm-side-link.active { background: var(--hm-primary-soft); color: var(--hm-primary); }
.hm-side-link.active svg.hm-i { color: var(--hm-primary-2); }

.hm-side-count {
	margin-left: auto; min-width: 20px; padding: 1px 7px;
	border-radius: 999px; background: var(--hm-bg); color: var(--hm-muted);
	font-size: 11.5px; font-weight: 700; text-align: center;
}
.hm-side-link.active .hm-side-count { background: var(--hm-card); color: var(--hm-primary-2); }

.hm-side-card { margin-top: 14px; padding: 18px 16px; border-radius: var(--hm-radius); background: var(--hm-primary-soft); border: 1px solid var(--hm-line); text-align: center; }
.hm-side-card-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--hm-card); color: var(--hm-primary-2); box-shadow: var(--hm-shadow); margin-bottom: 12px; }
.hm-side-card-ico svg.hm-i { width: 22px; height: 22px; }
.hm-side-card b { display: block; font-size: 14.5px; color: var(--hm-ink); }
.hm-side-card p { font-size: 12px; color: var(--hm-muted); margin: 5px 0 14px; line-height: 1.45; }
.hm-side-featured .hm-side-card-ico { margin-bottom: 0; }
.hm-featured-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; text-align: left; }

.hm-main { min-width: 0; }
.hm-page-head { margin-bottom: 18px; }
.hm-page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.2px; }
.hm-crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--hm-muted); margin-top: 4px; }
.hm-crumbs svg.hm-i { width: 13px; height: 13px; color: var(--hm-faint); }
.hm-crumbs .cur { color: var(--hm-ink-2); font-weight: 600; }
.hm-page-sub { font-size: 13.5px; color: var(--hm-muted); margin-top: 6px; }

.hm-page-sub .hm-live-dot { position: relative; top: -1px; vertical-align: middle; }

/* Staff board page head — the Kitchen, Manager, Hotel Admin and Super Admin
   boards all render it through HM.pageHead. Breadcrumb → title → subtitle on
   the left, with the
   banner bleeding into the card's right edge. The lettering is baked into the
   artwork, so this needs no web font; the left edge is masked so the image
   dissolves into the card instead of butting against it. */
.hm-page-head-hero {
	display: flex;
	align-items: center;
	gap: 18px;
	min-height: 112px;
	padding: 18px 0 18px 22px;
	border-radius: var(--hm-radius);
	background: var(--hm-card);
	border: 1px solid var(--hm-line);
	box-shadow: var(--hm-shadow);
	overflow: hidden;
}
.hm-page-head-hero .hm-page-head-text { flex: 1 1 300px; min-width: 0; }
.hm-page-head-hero .hm-crumbs { margin-top: 0; margin-bottom: 7px; }
.hm-page-head-hero h1 { font-size: 32px; line-height: 1.15; }
.hm-page-head-hero .hm-page-sub { margin-top: 7px; }

/* The banner is sized from its own height, not from the space left over: the
   artwork is 2.7:1, so a width-driven box would either double the height of
   the head or crop the lettering off. A fixed height lets the image set its own
   width (`width: auto`), which keeps the box exactly the artwork — the mask
   then lands on the artwork's left edge instead of on a dead strip beside it.
   The -18px margins cancel the card's padding so it bleeds to the card edge. */
.hm-page-hero {
	flex: 0 1 auto;
	min-width: 0;
	height: 132px;
	margin: -18px 0;
	-webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 26%);
	mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 26%);
}
/* object-position pins the plate; if the column is too narrow for the full
   banner the crop eats the empty left margin, never the food. */
.hm-page-hero img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: cover; object-position: right center; }

@media (max-width: 1100px) {
	.hm-page-head-hero h1 { font-size: 26px; }
}

/* Under the sidebar's own breakpoint the banner would be a sliver, so the
   head falls back to a plain stacked title inside the card. */
@media (max-width: 860px) {
	.hm-page-head-hero { display: block; padding: 16px; }
	.hm-page-hero { display: none; }
	.hm-page-head-hero h1 { font-size: 22px; }
}

.hm-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hm-toolbar-spacer { flex: 1 1 auto; }

.hm-search { position: relative; flex: 1 1 260px; min-width: 200px; max-width: 380px; }
.hm-search-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--hm-faint); display: inline-flex; pointer-events: none; }
.hm-search-ico svg.hm-i { width: 17px; height: 17px; }
.hm-search input {
	width: 100%; padding: 11px 14px 11px 40px; min-height: 44px;
	border: 1.5px solid var(--hm-line-2); border-radius: var(--hm-radius-sm);
	background: var(--hm-card); color: var(--hm-ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.hm-search input:focus { border-color: var(--hm-primary-2); box-shadow: 0 0 0 3px var(--hm-ring); }

.hm-select { position: relative; }
.hm-select select {
	appearance: none; -webkit-appearance: none;
	padding: 11px 38px 11px 14px; min-height: 44px; min-width: 168px;
	border: 1.5px solid var(--hm-line-2); border-radius: var(--hm-radius-sm);
	background: var(--hm-card); color: var(--hm-ink); cursor: pointer; outline: none; font-weight: 600;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.hm-select select:focus { border-color: var(--hm-primary-2); box-shadow: 0 0 0 3px var(--hm-ring); }
.hm-select-caret { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--hm-muted); pointer-events: none; }

.hm-list-meta { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; }
.hm-total { font-size: 13px; color: var(--hm-muted); font-weight: 600; }
.hm-total b { color: var(--hm-primary); }

.hm-panel-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.hm-panel-bar h2 { font-size: 17px; }
.hm-panel-bar .hm-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.hm-panel-bar-end { justify-content: flex-end; }

.hm-card-table { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); overflow: hidden; }
/* Sideways-scrolling tables: a soft edge shadow appears only on the side that has
   more content, so a clipped column reads as "scroll", not "broken". */
.hm-card-table > div[style*="overflow-x"] {
	background:
		linear-gradient(to right, var(--hm-card) 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat local,
		linear-gradient(to left, var(--hm-card) 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0)) left center / 10px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0)) right center / 10px 100% no-repeat scroll;
}

.hm-table-list { width: 100%; border-collapse: collapse; font-size: 14px; }
.hm-table-list th { text-align: left; padding: 13px 16px; background: transparent; color: var(--hm-muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; border-bottom: 1px solid var(--hm-line); }
.hm-table-list td { padding: 12px 16px; border-bottom: 1px solid var(--hm-line); vertical-align: middle; color: var(--hm-ink); }
.hm-table-list tbody tr:last-child td { border-bottom: 0; }
.hm-table-list tbody tr { transition: background 0.12s; }
.hm-table-list tbody tr:hover td { background: var(--hm-bg); }
.hm-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.hm-simple-table th:last-child, .hm-simple-table td:last-child { text-align: right; }
.hm-simple-table .hm-row-actions { justify-content: flex-end; }
.hm-simple-table .c-count { width: 150px; white-space: nowrap; color: var(--hm-ink-2); }

.hm-menu-table thead th { text-align: center; }
.hm-menu-table thead th:nth-child(2) { text-align: left; }
.hm-menu-table .c-idx { width: 8px; padding-left: 0; padding-right: 0; }
.hm-menu-table .c-cat, .hm-menu-table .c-price, .hm-menu-table .c-status, .hm-menu-table .c-act { text-align: center; white-space: nowrap; }
.hm-menu-table tbody tr { position: relative; }
.hm-menu-table tbody td:nth-child(2) { box-shadow: inset 4px 0 0 -1px var(--row-accent, var(--hm-primary-2)); }
.hm-menu-table tbody tr.is-hidden td:nth-child(2) { box-shadow: inset 4px 0 0 -1px var(--hm-faint); }
.hm-menu-table tbody tr.is-hidden { opacity: 0.72; }

.hm-row-index { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; font-size: 12px; font-weight: 700; color: var(--hm-muted); }

.hm-item-cell { display: flex; align-items: center; gap: 13px; }
.hm-item-thumb { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; object-fit: cover; background: var(--hm-primary-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--hm-primary-2); }
.hm-item-meta { min-width: 0; }
.hm-item-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.hm-item-meta small { color: var(--hm-muted); font-size: 12.5px; }

.hm-cat-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--hm-primary-soft); color: var(--hm-primary); white-space: nowrap; }

.hm-cat-pill.hm-cat-c0 { background: #ffe9e0; color: #c2410c; }
.hm-cat-pill.hm-cat-c1 { background: #e0eaff; color: #1d4ed8; }
.hm-cat-pill.hm-cat-c2 { background: #fde9f3; color: #be185d; }
.hm-cat-pill.hm-cat-c3 { background: #def7ec; color: #047857; }
.hm-cat-pill.hm-cat-c4 { background: #f3f0ff; color: #6d28d9; }
.hm-cat-pill.hm-cat-c5 { background: #fef3c7; color: #b45309; }   /* amber  — overflow   */

.hm-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 0.5px; }
.hm-status-dot.on { background: var(--hm-green); }
.hm-status-dot.off { background: var(--hm-faint); }
/* td only — as a bare .c-status this also restyled the <th>, so the STATUS
   header rendered bigger/darker than every other column header. */
.hm-menu-table td.c-status { font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--hm-ink-2); }

.hm-icon-actions { display: inline-flex; gap: 8px; justify-content: center; }
.hm-icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	border: 1.5px solid var(--hm-line-2); border-radius: 9px; background: var(--hm-card); color: var(--hm-ink-2);
	cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.hm-icon-btn svg.hm-i { width: 16px; height: 16px; }
.hm-icon-btn:hover { border-color: var(--hm-primary-2); color: var(--hm-primary); background: var(--hm-primary-soft); }
.hm-icon-btn.danger:hover { border-color: var(--hm-red); color: var(--hm-red); background: var(--hm-red-soft); }

.hm-qr-cell { width: 92px; }
.hm-qr-box { width: 84px; height: 84px; background: #fff; border: 1px solid var(--hm-line-2); border-radius: 8px; padding: 4px; }
.hm-qr-box svg { width: 100%; height: 100%; }

/* Bottom padding is short on purpose: the last field already carries a 20px
   bottom margin, so the visual gap under the form matches the top gap. */
.hm-settings-card { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); padding: 26px 28px 8px; }
.hm-settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
.hm-settings-grid .hm-field { margin-bottom: 20px; }

.hm-settings-grid .hm-field-wide { grid-column: 1 / -1; }
@media (max-width: 820px) { .hm-settings-grid { grid-template-columns: minmax(0, 1fr); } }
.hm-settings-section { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--hm-muted); margin: 12px 0 20px; grid-column: 1 / -1; border-bottom: 1px solid var(--hm-line); padding-bottom: 9px; }
.hm-settings-grid > .hm-settings-section:first-child { margin-top: 0; }

.hm-empty-note { text-align: center; color: var(--hm-muted); padding: 36px 12px; font-size: 14px; }

.hm-bill-table .c-num, .hm-bill-table .c-total, .hm-bill-table .c-items { white-space: nowrap; }
.hm-bill-table .c-act { text-align: right; }
.hm-bill-no { font-weight: 800; color: var(--hm-ink); }
.hm-bill-table td small { color: var(--hm-muted); font-size: 12px; }
.hm-bill-date { font-variant-numeric: tabular-nums; white-space: nowrap; }

.hm-pay-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.hm-pay-pill.online { background: var(--hm-blue-soft); color: var(--hm-blue); }
.hm-pay-pill.offline { background: var(--hm-amber-soft); color: var(--hm-amber-ink); }
.hm-pay-pill.none { background: var(--hm-bg); color: var(--hm-muted); }

.hm-ostatus { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; }
.hm-ostatus .dot { width: 8px; height: 8px; border-radius: 50%; }
.hm-ostatus.paid { color: var(--hm-green-ink); } .hm-ostatus.paid .dot { background: var(--hm-green); }
.hm-ostatus.billed { color: var(--hm-blue); } .hm-ostatus.billed .dot { background: var(--hm-blue); }
.hm-ostatus.cancelled { color: var(--hm-muted); } .hm-ostatus.cancelled .dot { background: var(--hm-faint); }
.hm-ostatus.open { color: var(--hm-amber-ink); } .hm-ostatus.open .dot { background: var(--hm-primary-2); }

.hm-date-range { display: inline-flex; align-items: center; gap: 6px; }
.hm-date-range input[type="date"] {
	padding: 10px 12px; min-height: 44px; border: 1.5px solid var(--hm-line-2); border-radius: var(--hm-radius-sm);
	background: var(--hm-card); color: var(--hm-ink); outline: none; font-family: inherit;
}
.hm-date-range input[type="date"]:focus { border-color: var(--hm-primary-2); box-shadow: 0 0 0 3px var(--hm-ring); }
.hm-date-range span { color: var(--hm-muted); font-size: 12.5px; }

/* ---------------------------------------------------------- header widgets (bell + profile)
   These live in the page shell, OUTSIDE .hm-app, so they use literal palette
   values (the --hm-* custom properties are only defined on .hm-app). */

.hm-head-tools { display: inline-flex; align-items: center; gap: 10px; }

/* Sign-out shown to a signed-in account that holds no hotel capability, so it
   is never stranded on a locked page with no way to switch accounts.
   Literal colors: this lives in the page shell, outside .hm-app, where the
   theme tokens are not in scope (see the note at the top of this file). */
.hm-head-signout {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 999px;
	border: 1px solid #e2e8f0; background: #f8fafc; color: #1e293b;
	font-size: 14px; font-weight: 600; text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}
.hm-head-signout:hover { background: #ffffff; color: #6d28d9; }
.hm-head-signout svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* Hamburger (featured-products drawer trigger). Shown only on mobile — see the
   mobile-header media block near the end of this file. NOTE: this lives in the
   page shell (outside .hm-app), so literal colors + explicit svg strokes are
   required; var(--hm-*) resolves to nothing here and the icon paints invisible. */
.hm-hamburger {
	display: none; align-items: center; justify-content: center;
	width: 46px; height: 46px; flex: none;
	border: 0; border-radius: 50%;
	background: #ffffff; color: #3f3d56; cursor: pointer;
	box-shadow: 0 4px 14px rgba(45, 26, 94, 0.12);
	transition: transform 0.15s, box-shadow 0.15s, color 0.15s;
	-webkit-tap-highlight-color: transparent;
}
.hm-hamburger svg {
	width: 22px; height: 22px;
	stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none;
}
.hm-hamburger:hover { color: #6d28d9; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(45, 26, 94, 0.18); }
.hm-hamburger:active { transform: translateY(0); }

.hm-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.hm-bell:hover { background: #f1f5f9; border-color: #cbd5e1; }
.hm-bell svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-bell-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #7c3aed; color: #fff; font-size: 11px; font-weight: 800; display: none; align-items: center; justify-content: center; line-height: 1; border: 2px solid #ffffff; }
.hm-bell-badge.show { display: inline-flex; }

.hm-bell-ring svg { transform-origin: 50% 2px; animation: hm-bell-swing 0.9s ease; }
.hm-bell-ring .hm-bell-badge { animation: hm-badge-pulse 0.9s ease; }
@keyframes hm-bell-swing {
	0%, 100% { transform: rotate(0); }
	15% { transform: rotate(14deg); }
	30% { transform: rotate(-12deg); }
	45% { transform: rotate(9deg); }
	60% { transform: rotate(-6deg); }
	75% { transform: rotate(3deg); }
}
@keyframes hm-badge-pulse {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
	30% { transform: scale(1.35); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.hm-profile { position: relative; }
.hm-profile-btn { display: inline-flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc; color: #1e293b; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; transition: background 0.15s; }
.hm-profile-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.hm-profile-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #7c3aed; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 13px; overflow: hidden; }
.hm-profile-avatar img { width: 100%; height: 100%; }
.hm-profile-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-profile-caret { width: 15px; height: 15px; opacity: 0.7; }

.hm-profile-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: #ffffff; border: 1px solid #e8ecf1; border-radius: 14px; box-shadow: 0 10px 36px rgba(15, 23, 42, 0.16); padding: 8px; z-index: 1200; display: none; }
.hm-profile-menu.open { display: block; }
.hm-profile-head { padding: 10px 12px 12px; border-bottom: 1px solid #e8ecf1; margin-bottom: 6px; }
.hm-profile-head .nm { font-weight: 800; color: #1e293b; font-size: 14px; }
.hm-profile-head .rl { font-size: 12px; color: #64748b; margin-top: 2px; }
.hm-profile-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #475569; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.hm-profile-menu a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: #94a3b8; }
.hm-profile-menu a:hover { background: #f3f0ff; color: #6d28d9; }
.hm-profile-menu a:hover svg { color: #7c3aed; }
.hm-profile-menu a.danger:hover { background: #fee2e2; color: #dc2626; }
.hm-profile-menu a.danger:hover svg { color: #dc2626; }

/* Notification panel. Lives in the page shell, outside .hm-app, so every
   colour here is a literal: var(--hm-*) resolves to nothing at this level and
   would paint invisible. */
.hm-notif { position: relative; display: inline-flex; }
.hm-notif-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-width: calc(100vw - 24px); background: #ffffff; border: 1px solid #e8ecf1; border-radius: 14px; box-shadow: 0 10px 36px rgba(15, 23, 42, 0.16); z-index: 1200; display: none; overflow: hidden; }
.hm-notif-menu.open { display: block; }
.hm-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid #e8ecf1; }
.hm-notif-title { font-weight: 800; color: #1e293b; font-size: 14px; }
.hm-notif-close { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #64748b; cursor: pointer; }
.hm-notif-close:hover { background: #f1f5f9; color: #1e293b; }
.hm-notif-close svg { width: 16px; height: 16px; }
.hm-notif-list { max-height: 420px; overflow-y: auto; padding: 6px; }
.hm-notif-empty { padding: 26px 18px; text-align: center; font-size: 13px; color: #64748b; line-height: 1.5; }
.hm-notif-row { display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 10px 11px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; text-align: left; font-family: inherit; }
.hm-notif-row:hover { background: #f3f0ff; }
.hm-notif-row.unseen { background: #faf7ff; }
.hm-notif-row.unseen:hover { background: #f3f0ff; }
.hm-notif-ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: #f3f0ff; color: #7c3aed; }
.hm-notif-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-notif-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hm-notif-row-title { font-size: 13.5px; font-weight: 700; color: #1e293b; line-height: 1.35; }
.hm-notif-body { font-size: 12.5px; color: #475569; line-height: 1.4; word-break: break-word; }
.hm-notif-when { font-size: 11.5px; color: #94a3b8; font-weight: 600; }
.hm-notif-dot { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 12px; border-radius: 50%; background: #7c3aed; }
.hm-bell:focus-visible, .hm-notif-close:focus-visible, .hm-notif-row:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }

/* Deep-link landing marks. These live inside .hm-app, so they can use the
   tokens; the ring stays after the fade so the card is still findable once
   the animation has run. */
.hm-app .hm-card-focus { outline: 2px solid var(--hm-primary); outline-offset: 2px; animation: hm-focus-pop 1.4s ease; }
.hm-app tr.hm-row-focus > td { background: var(--hm-primary-glow); animation: hm-focus-fade 1.4s ease; }
@keyframes hm-focus-pop {
	0% { box-shadow: 0 0 0 0 var(--hm-primary-glow-2); }
	60% { box-shadow: 0 0 0 10px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes hm-focus-fade {
	0% { background-color: var(--hm-primary-glow-2); }
	100% { background-color: var(--hm-primary-glow); }
}

@keyframes hm-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 760px) {
	.hm-customer-app { max-width: 720px; }
	.hm-menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
	.hm-menu-list .hm-menu-group-title { grid-column: 1 / -1; }
	.hm-menu-list .hm-dish { margin-bottom: 0; }
	.hm-menu-list .hm-empty-note { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.hm-shell { grid-template-columns: 1fr; gap: 14px; }
	.hm-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
	.hm-side-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
	.hm-side-link { width: auto; }
	.hm-side-card { display: none; }
}

@media (max-width: 640px) {
	.hm-app { border-radius: 0; }
	.hm-admin-app, .hm-manager-app, .hm-chef-app, .hm-super-app { padding: 12px; }
	.hm-board-grid { grid-template-columns: 1fr; margin-top: 12px; }
	.hm-stats { grid-template-columns: 1fr 1fr; }
	.hm-page-head h1 { font-size: 21px; }
	.hm-tcard-btns .hm-btn { flex: 1 1 auto; justify-content: center; }
	.hm-search { max-width: none; flex-basis: 100%; }
	.hm-select select { min-width: 0; width: 100%; }
	.hm-select { flex: 1 1 140px; }
	.hm-settings-card { padding: 16px 14px; }
	.hm-date-range { flex: 1 1 100%; }
	.hm-date-range input[type="date"] { flex: 1 1 auto; min-width: 0; }
	.hm-profile-name { display: none; }

	.hm-menu-table .c-cat { display: none; }
	.hm-bill-table .c-items { display: none; }
	.hm-field-row { flex-direction: column; gap: 0; }
	.hm-table-chip { position: static; display: inline-block; margin-top: 12px; }
	.hm-settings-card { padding: 20px 16px 6px; }
	.hm-panel-bar .hm-actions { width: 100%; }
	.hm-panel-bar-end .hm-actions .hm-btn { flex: 1 1 auto; }

	.hm-menu-table, .hm-menu-table tbody { display: block; }
	.hm-menu-table thead { display: none; }
	.hm-menu-table tbody tr {
		display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: 16px; row-gap: 10px;
		grid-template-areas: "item item item" "price status act";
		padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--hm-line);
		box-shadow: inset 4px 0 0 var(--row-accent, var(--hm-primary-2));
	}
	.hm-menu-table tbody tr.is-hidden { box-shadow: inset 4px 0 0 var(--hm-faint); }
	.hm-menu-table tbody tr:last-child { border-bottom: 0; }
	.hm-menu-table tbody td { padding: 0; border: 0; text-align: left; }
	.hm-menu-table tbody tr td:nth-child(2),
	.hm-menu-table tbody tr.is-hidden td:nth-child(2) { grid-area: item; box-shadow: none; }
	.hm-menu-table tbody .c-idx { display: none; }
	.hm-menu-table tbody .c-price { grid-area: price; }
	.hm-menu-table tbody .c-status { grid-area: status; }
	.hm-menu-table tbody .c-act { grid-area: act; justify-self: end; }

	/* Inventory / Billing keep their columns and scroll sideways inside the card —
	   but cells stay on one line so dates and amounts never wrap letter by letter. */
	.hm-inv-table, .hm-bill-table { min-width: 660px; }
	.hm-inv-table th, .hm-inv-table td, .hm-bill-table th, .hm-bill-table td { white-space: nowrap; }
	.hm-inv-table .hm-item-name { white-space: normal; min-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
	.hm-app *, .hm-app *::before, .hm-app *::after,
	.hm-toast, .hm-modal, .hm-drawer, .hm-cart-bar, .hm-dish,
	.hm-bell-ring svg, .hm-bell-ring .hm-bell-badge {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.hm-toast-timer { animation: none; }
	.hm-spinner { animation: hm-spin 0.8s linear infinite; }

	.hm-auth-submit.is-loading::before { animation: hm-spin 0.8s linear infinite !important; }
	.hm-live-dot { animation: none; opacity: 1; }
	.hm-skel { animation: none; }

	/* Footer decorative SVGs live outside .hm-app — disable them here too. */
	.hm-anim-utensil, .hm-anim-bowl, .hm-anim-bowl .hm-bowl-steam path,
	.hm-dish-badge.hm-anim-badge { animation: none !important; }
	.hm-anim-bowl .hm-bowl-steam path { opacity: 0.6; }
}

/* ==========================================================================
   Plugin page header & footer (templates/page.php — theme-independent shell)
   These live OUTSIDE .hm-app, so they use literal palette values.
   ========================================================================== */

body.hm-page {
	margin: 0;
	background: #f4f6f9;
	color: #1e293b;
	font-family: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* The one page-shell header for every Vamora Serve page: hotel brand, the
   workspace / board switcher (staff only) and the bell + profile cluster.
   Literal colors and explicit svg fill/stroke only — the shell sits outside
   .hm-app, where the --hm-* tokens are not in scope and var() paints nothing. */

.hm-topbar {
	position: relative;
	z-index: 30;
	background:
		radial-gradient(120% 230% at 100% 0%, rgba(124, 58, 237, 0.11) 0%, rgba(124, 58, 237, 0.04) 36%, rgba(255, 255, 255, 0) 62%),
		#ffffff;
	border-bottom: 1px solid #ece8f6;
	box-shadow: 0 1px 10px rgba(15, 23, 42, 0.05);
}

.hm-topbar svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* No width cap: the boards (.hm-admin-app & co) are max-width: none with this
   same clamp() gutter, so sharing it is what puts the brand column directly
   above the sidebar instead of floating it inward on a wide screen. */
.hm-topbar-inner {
	padding: 12px clamp(16px, 3vw, 40px);
	display: flex;
	align-items: center;
	gap: 14px;
}

/* The brand holds a column as wide as a board's sidebar (.hm-shell's 250px
   track), so the logo sits over the board nav instead of shifting with the
   length of the hotel name beside it. */
.hm-topbar-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 0 0 250px;
	text-decoration: none;
	color: #1e293b;
	justify-content: center;
}
.hm-topbar-brand:focus-visible { outline: 2px solid #7c3aed; outline-offset: 4px; border-radius: 10px; }

.hm-topbar-logo { display: block; height: 70px; width: auto; max-width: 100%; object-fit: contain; }

.hm-topbar-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; flex: 0 0 42px;
	border-radius: 13px;
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(109, 40, 217, 0.28);
}
.hm-topbar-mark svg { width: 22px; height: 22px; }

.hm-topbar-name {
	font-size: 19px; font-weight: 800; letter-spacing: 0.2px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hm-topbar-sep { width: 1px; height: 40px; flex: 0 0 1px; background: #e6e2f2; }

.hm-topbar-right {
	margin-left: auto;
	display: inline-flex; align-items: center; justify-content: flex-end;
	gap: 18px; flex-wrap: wrap;
}

/* Workspace switcher. Holds the board links (Kitchen / Manager / Hotel Admin /
   Super Admin) that used to sit in the profile menu — same links, same
   capability gate, just a more discoverable home next to the hotel name. */

.hm-ws { position: relative; flex: 0 0 auto; }

.hm-ws-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 9px 14px;
	border: 1px solid transparent; border-radius: 12px;
	background: transparent; color: #1e293b; cursor: pointer;
	font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.hm-ws-btn:hover { background: #f5f2ff; border-color: #e6ddfb; color: #6d28d9; }
.hm-ws-btn:focus-visible { outline: 2px solid #7c3aed; outline-offset: 2px; }
.hm-ws-btn[aria-expanded="true"] { background: #f3f0ff; border-color: #ddd1fa; color: #6d28d9; }

.hm-ws-ico { display: inline-flex; color: #7c3aed; }
.hm-ws-ico svg { width: 20px; height: 20px; }
.hm-ws-label { white-space: nowrap; }
.hm-ws-caret { width: 16px; height: 16px; opacity: 0.65; transition: transform 0.18s ease; }
.hm-ws-btn[aria-expanded="true"] .hm-ws-caret { transform: rotate(180deg); opacity: 1; }

.hm-ws-menu {
	position: absolute; top: calc(100% + 10px); left: 0;
	min-width: 272px; padding: 8px;
	background: #ffffff;
	border: 1px solid #e8ecf1; border-radius: 16px;
	box-shadow: 0 18px 46px rgba(45, 26, 94, 0.18);
	z-index: 1200; display: none;
}
.hm-ws-menu.open { display: block; }

.hm-ws-head { padding: 10px 12px 12px; border-bottom: 1px solid #eef1f5; margin-bottom: 6px; }
.hm-ws-head-lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.hm-ws-head-name { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 800; color: #1e293b; word-break: break-word; }

.hm-ws-group { padding: 6px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }

.hm-ws-item {
	display: flex; align-items: center; gap: 11px;
	padding: 9px 12px; border-radius: 11px;
	color: #475569; text-decoration: none;
	font-size: 13.5px; font-weight: 600;
	transition: background 0.14s ease, color 0.14s ease;
}
.hm-ws-item-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; flex: 0 0 32px;
	border-radius: 10px; background: #f3f0ff; color: #7c3aed;
	transition: background 0.14s ease, color 0.14s ease;
}
.hm-ws-item-ico svg { width: 17px; height: 17px; }
.hm-ws-item-txt { flex: 1 1 auto; min-width: 0; }
.hm-ws-item-go { width: 15px; height: 15px; flex: 0 0 15px; color: #cbd5e1; }
.hm-ws-item:hover { background: #f3f0ff; color: #6d28d9; }
.hm-ws-item:hover .hm-ws-item-ico { background: #6d28d9; color: #ffffff; }
.hm-ws-item:hover .hm-ws-item-go { color: #7c3aed; }
.hm-ws-item:focus-visible { outline: 2px solid #7c3aed; outline-offset: -2px; }

/* A board this account cannot open yet: the link still shows (it lands on that
   board's own sign-in) but reads as secondary, so it is an invitation rather
   than a destination. */
.hm-ws-item.is-login { color: #64748b; font-weight: 500; }
.hm-ws-item.is-login .hm-ws-item-ico { background: #f1f5f9; color: #94a3b8; }

.hm-ws-empty { padding: 8px 12px 10px; margin: 0; font-size: 12.5px; color: #64748b; line-height: 1.5; }

.hm-site-main {
	flex: 1 0 auto;
	width: 100%;
}

.hm-site-footer {
	margin-top: 56px;
}

.hm-footer-dishes-wrap {
	background: linear-gradient(135deg, #faf8ff 0%, #f5f0ff 60%, #f3f0ff 100%);
	border-top: 1px solid #ece6fb;
	position: relative;
	overflow: hidden;
	padding: 56px 20px 52px;
}

.hm-footer-dishes-wrap::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 40% at 20% 50%, rgba(124, 58, 237, 0.09) 0%, transparent 70%),
		radial-gradient(ellipse 50% 60% at 80% 30%, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
	pointer-events: none;
}

.hm-footer-dishes-wrap::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-image: radial-gradient(circle, rgba(124,58,237,0.06) 1px, transparent 1px);
	background-size: 32px 32px;
	pointer-events: none;
}

.hm-footer-dishes-inner {
	max-width: 1180px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.hm-footer-section-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 8px;
	color: var(--hm-primary, #6d28d9);
	font-size: clamp(19px, 4.2vw, 26px);
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Sub-line under the heading, so the strip reads as a section rather than a
   stray row of cards. */
.hm-footer-section-sub {
	margin: 0 auto 32px;
	max-width: 420px;
	text-align: center;
	font-size: 13.5px;
	line-height: 1.5;
	color: #6b6484;
}

.hm-footer-section-label svg {
	width: 22px;
	height: 22px;
	stroke: var(--hm-primary-2, #7c3aed);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
	flex: none;
}

.hm-footer-section-label::before,
.hm-footer-section-label::after {
	content: '';
	flex: 1;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(124,58,237,0.5), transparent);
	max-width: 120px;
}

.hm-special-dishes {
	/* One auto-fitting grid instead of a wrapping flex row: every card in a row
	   is the same width and height at every viewport, and the last line never
	   leaves an orphan card stretched across the page. */
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	justify-content: center;
	gap: 22px;
	max-width: 1200px;
	margin: 0 auto;
}

/* NOTE: the customer menu reuses several of these class names (.hm-dish-card is
   footer-only, but .hm-dish-img / .hm-dish-info / .hm-dish-name / .hm-dish-desc /
   .hm-dish-price are shared). All footer dish rules are therefore scoped under
   .hm-special-dishes so they never leak onto the customer menu. */
.hm-special-dishes .hm-dish-card {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(124, 58, 237, 0.10);
	box-shadow: 0 2px 6px rgba(76, 29, 149, 0.05), 0 12px 28px -12px rgba(76, 29, 149, 0.22);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	cursor: default;
}

/* Soft violet wash behind the text block, so the card isn't a flat white
   rectangle once the photo ends. */
.hm-special-dishes .hm-dish-card::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 58%;
	background: linear-gradient(180deg, rgba(124, 58, 237, 0) 0%, rgba(124, 58, 237, 0.05) 100%);
	pointer-events: none;
}

.hm-special-dishes .hm-dish-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 2px 6px rgba(76, 29, 149, 0.06), 0 26px 46px -18px rgba(76, 29, 149, 0.38);
	border-color: rgba(124, 58, 237, 0.28);
}

.hm-special-dishes .hm-dish-img-wrap {
	position: relative;
	width: 100%;
	/* Fixed ratio rather than a fixed pixel height: the photo keeps its shape
	   from a 320px phone to a 1180px desktop without a rule per breakpoint. */
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

/* Bottom scrim — keeps the overlay chip readable over a bright photo. */
.hm-special-dishes .hm-dish-img-wrap::after {
	content: '';
	position: absolute;
	inset: auto 0 0 0;
	height: 52%;
	background: linear-gradient(180deg, rgba(23, 10, 46, 0) 0%, rgba(23, 10, 46, 0.34) 100%);
	pointer-events: none;
}

/* Category chip, lifted off the meta row and onto the photo. In the meta row a
   long label ("Main Course - Veg") wrapped to three lines on a phone and shoved
   the price out of alignment. */
.hm-special-dishes .hm-dish-chip {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: calc(100% - 20px);
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.2px;
	color: #4c1d95;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(124, 58, 237, 0.2);
	box-shadow: 0 2px 8px rgba(23, 10, 46, 0.14);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hm-special-dishes .hm-dish-chip svg {
	width: 12px;
	height: 12px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hm-special-dishes .hm-dish-img-wrap.hm-dish-no-img {
	background: linear-gradient(135deg, #f7f3ff, #efe8fd);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* No photo means no bright area to darken — the scrim would only muddy the
   placeholder bowl. */
.hm-special-dishes .hm-dish-img-wrap.hm-dish-no-img::after { display: none; }

.hm-special-dishes .hm-dish-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 0;
	background: none;
	transition: transform 0.35s ease;
}

.hm-special-dishes .hm-dish-card:hover .hm-dish-img {
	transform: scale(1.07);
}

.hm-special-dishes .hm-dish-info {
	position: relative;
	z-index: 1;
	padding: 14px 15px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.hm-special-dishes .hm-dish-name {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	font-size: 15px;
	font-weight: 800;
	color: #1b1335;
	line-height: 1.35;
	margin: 0;
}

.hm-special-dishes .hm-dish-name .hm-veg-dot {
	/* Optical alignment with the first line of a dish name that wraps. */
	margin-top: 2px;
}

.hm-special-dishes .hm-dish-desc {
	font-size: 12.5px;
	color: #6b6484;
	line-height: 1.5;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	/* Reserve both lines so the price rules line up across a row whether a dish
	   has a one-line or a two-line description. */
	min-height: calc(2 * 1.5 * 12.5px);
}

.hm-special-dishes .hm-dish-meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px dashed rgba(124, 58, 237, 0.18);
}

.hm-special-dishes .hm-dish-price {
	font-size: 18px;
	font-weight: 800;
	margin: 0;
	letter-spacing: -0.2px;
	color: var(--hm-primary, #6d28d9);
}

/* Footer special-dish badge — violet pill (scoped so the customer menu badge,
   which reuses .hm-dish-badge, keeps its own amber styling). */
.hm-special-dishes .hm-dish-badge {
	color: var(--hm-primary, #6d28d9);
	background: var(--hm-primary-soft, #f3f0ff);
	border: 1px solid rgba(124, 58, 237, 0.25);
}

.hm-special-dishes .hm-dish-badge svg {
	stroke: currentColor;
}

/* Footer order controls (Add button / stepper / sold-out label). The apps
   inject these only on the two cart-bearing pages; elsewhere the host stays
   empty and the card is a pure showcase. Literal hex, not var(--hm-*): the
   footer is outside .hm-app where the tokens are declared. */
.hm-special-dishes .hm-dish-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	margin-top: 10px;
	padding: 10px 14px;
	border: 0;
	border-radius: 12px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.hm-special-dishes .hm-dish-add svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.hm-special-dishes .hm-dish-add:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(124, 58, 237, 0.34);
	filter: brightness(1.04);
}

.hm-special-dishes .hm-dish-add:active {
	transform: translateY(0);
}

.hm-special-dishes .hm-dish-add:focus-visible {
	outline: 3px solid rgba(124, 58, 237, 0.45);
	outline-offset: 2px;
}

.hm-special-dishes .hm-dish-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-top: 12px;
	border: 1.5px solid #7c3aed;
	border-radius: 12px;
	overflow: hidden;
	background: #f3f0ff;
}

.hm-special-dishes .hm-dish-stepper button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #6d28d9;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.hm-special-dishes .hm-dish-stepper button:hover { background: #e9e2fc; }
.hm-special-dishes .hm-dish-stepper button svg { width: 16px; height: 16px; }

.hm-special-dishes .hm-dish-stepper span {
	flex: 1;
	text-align: center;
	font-size: 15px;
	font-weight: 800;
	color: #4c1d95;
}

.hm-special-dishes .hm-dish-oos {
	display: inline-block;
	margin-top: 12px;
	font-size: 12.5px;
	font-weight: 700;
	color: #94a3b8;
}

/* Admin item-list "Featured" chip. Inside .hm-app, so tokens resolve. */
.hm-feat-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 8px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 20px;
	color: var(--hm-primary);
	background: var(--hm-primary-soft);
	border: 1px solid var(--hm-primary-glow);
	vertical-align: middle;
}

.hm-feat-pill svg.hm-i {
	width: 12px;
	height: 12px;
}

.hm-dish-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	color: var(--hm-amber-ink, #b45309);
	background: var(--hm-amber-soft, #fef3c7);
	border: 1px solid #f4d58a;
	border-radius: 20px;
	padding: 3px 10px;
	letter-spacing: 0.3px;
}

.hm-dish-badge svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
	flex: none;
}

@keyframes hm-bob {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50%      { transform: translateY(-4px) rotate(3deg); }
}
.hm-anim-utensil { animation: hm-bob 2.6s ease-in-out infinite; transform-origin: 50% 80%; }
.hm-footer-section-label svg:last-of-type.hm-anim-utensil { animation-delay: 0.4s; }

.hm-anim-bowl { width: 56px; height: 56px; }
.hm-anim-bowl path { fill: none; stroke: rgba(124, 58, 237, 0.55); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-anim-bowl .hm-bowl-body, .hm-anim-bowl .hm-bowl-base { stroke: rgba(109, 40, 217, 0.6); }
.hm-anim-bowl .hm-bowl-steam path { stroke: rgba(124, 58, 237, 0.4); opacity: 0; animation: hm-steam 3s ease-in-out infinite; }
.hm-anim-bowl .hm-bowl-steam .s1 { animation-delay: 0s; }
.hm-anim-bowl .hm-bowl-steam .s2 { animation-delay: 0.6s; }
.hm-anim-bowl .hm-bowl-steam .s3 { animation-delay: 1.2s; }
@keyframes hm-steam {
	0%   { opacity: 0; transform: translateY(2px); }
	35%  { opacity: 0.9; }
	100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes hm-badge-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
	50%      { box-shadow: 0 0 10px 1px rgba(124, 58, 237, 0.45); }
}
.hm-dish-badge.hm-anim-badge { animation: hm-badge-glow 2.4s ease-in-out infinite; }

/* The footer sits OUTSIDE .hm-app, so literal palette values are used here
   (matching the header convention) — the --hm-* tokens don't reach it. */

.hm-footer-main {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(60% 70% at 100% 100%, #ece3fd 0%, rgba(236, 227, 253, 0) 60%),
		radial-gradient(50% 60% at 0% 100%, #efe8fd 0%, rgba(239, 232, 253, 0) 65%),
		linear-gradient(180deg, #f9f8fe 0%, #fdfcff 45%, #f7f4fe 100%);
	border-top: 1px solid #ece6fb;
}

/* Decorations only: they must never swallow a click meant for a link. */
.hm-footer-deco {
	position: absolute;
	pointer-events: none;
	user-select: none;
	height: auto;
}
.hm-footer-deco-leaf { top: 0; right: 0; width: 158px; }
.hm-footer-deco-veg  { left: 0; bottom: 0; width: 290px; }

.hm-footer-main-inner {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
	padding: 52px 20px 44px;
	display: grid;
	grid-template-columns: 1.4fr 0.9fr 1fr 0.95fr 1.4fr;
	gap: 36px 30px;
	align-items: start;
}

.hm-footer-heading {
	position: relative;
	margin: 0 0 20px;
	padding-bottom: 10px;
	font-size: 16px;
	font-weight: 800;
	color: #1e293b;
}
.hm-footer-heading::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 30px; height: 3px;
	border-radius: 999px;
	background: #7c3aed;
}

/* Columns sit between hairlines, as in the reference; the first nav column
   opens the group so the about column keeps a clean edge. */
.hm-footer-nav {
	position: relative;
	padding-left: 28px;
	border-left: 1px solid #e8e8f0;
}
.hm-footer-nav:last-of-type { border-right: 1px solid #e8e8f0; padding-right: 28px; }
.hm-footer-col-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; margin-bottom: 14px;
	border-radius: 50%; background: #efe9fd;
}
.hm-footer-col-ico svg {
	width: 20px; height: 20px;
	stroke: #6d28d9; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.hm-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hm-footer-links a {
	display: inline-flex; align-items: center; gap: 8px;
	color: #475569; text-decoration: none; font-size: 13.5px; font-weight: 500;
	transition: color 0.15s, transform 0.15s;
}
.hm-footer-links a:hover { color: #6d28d9; transform: translateX(3px); }
.hm-footer-chev {
	width: 14px; height: 14px; flex: none;
	stroke: #7c3aed; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.hm-footer-about-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hm-footer-about-logo { height: 90px; width: auto; object-fit: contain; }
.hm-footer-about-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 12px; background: #f3f0ff;
}
.hm-footer-about-icon svg { width: 22px; height: 22px; stroke: #7c3aed; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hm-footer-about-name { font-size: 19px; font-weight: 800; color: #1e293b; }
.hm-footer-tagline { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; color: #16a34a; }
.hm-footer-desc { margin: 0 0 18px; font-size: 13.5px; line-height: 1.65; color: #475569; }

.hm-footer-socials { display: flex; gap: 10px; }
.hm-footer-social {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: #ffffff; color: #7c3aed;
	box-shadow: 0 2px 10px rgba(109, 40, 217, 0.10);
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.hm-footer-social:hover { background: #7c3aed; color: #ffffff; transform: translateY(-2px); }
.hm-footer-social svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.hm-footer-news-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
	align-items: center;
	margin-bottom: 26px;
	padding: 22px;
	border-radius: 18px;
	background: #f1ecfd;
}
.hm-footer-news-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 58px; height: 58px; border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed, #6d28d9);
	box-shadow: 0 6px 16px rgba(109, 40, 217, 0.28);
}
.hm-footer-news-ico svg {
	width: 26px; height: 26px;
	stroke: #ffffff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.hm-footer-news-text .hm-footer-desc { margin-bottom: 0; }
.hm-footer-news-card .hm-footer-news { grid-column: 1 / -1; margin: 14px 0 0; }
.hm-footer-heading-plain { margin-bottom: 4px; padding-bottom: 0; }
.hm-footer-heading-plain::after { content: none; }

.hm-footer-news { display: flex; gap: 8px; margin-bottom: 20px; }
.hm-footer-news input {
	flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 10px 14px;
	border: 1.5px solid #e2dcf5; border-radius: 10px;
	background: #ffffff; color: #1e293b; font-family: inherit; font-size: 13.5px; outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.hm-footer-news input::placeholder { color: #94a3b8; }
.hm-footer-news input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18); }
.hm-footer-news button {
	flex: none; width: 46px; min-height: 46px; border: 0; border-radius: 10px;
	background: #7c3aed; color: #ffffff; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background 0.15s;
}
.hm-footer-news button:hover { background: #6d28d9; }
.hm-footer-news button:disabled { opacity: 0.6; cursor: wait; }
.hm-footer-news button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.hm-footer-badges { display: flex; align-items: stretch; }
.hm-footer-badge {
	display: flex; flex-direction: column; align-items: center; gap: 10px;
	flex: 1 1 0; min-width: 0; padding: 0 12px;
	font-size: 12.5px; font-weight: 700; color: #334155; line-height: 1.3; text-align: center;
	border-left: 1px solid #e4ddf3;
}
.hm-footer-badge:first-child { border-left: 0; padding-left: 0; }
.hm-footer-badge svg {
	box-sizing: border-box; width: 42px; height: 42px; flex: none; padding: 10px;
	border-radius: 50%; background: #efe9fd;
	stroke: #6d28d9; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round;
}

.hm-footer-bottom {
	background: #321b6b;
}

.hm-footer-bottom-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 22px 20px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 18px;
}

.hm-site-copy { margin: 0; font-size: 12.5px; color: #ffffff; }

.hm-footer-orn { display: flex; align-items: center; gap: 12px; }
.hm-footer-orn-line {
	width: 120px; max-width: 18vw; height: 2px; border-radius: 999px;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff);
}
.hm-footer-orn-line.flip { background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0)); }
.hm-footer-orn-ico { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25)); }

.hm-footer-made {
	margin: 0; justify-self: end;
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 12.5px; color: #ffffff;
}
.hm-footer-heart { width: 15px; height: 15px; fill: #c4b5fd; }

@media (max-width: 1024px) {
	.hm-footer-main-inner { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
	.hm-footer-about, .hm-footer-updates { grid-column: 1 / -1; }
	.hm-footer-nav { padding-left: 20px; }
	.hm-footer-nav:last-of-type { border-right: 0; padding-right: 0; }
	.hm-footer-deco-veg { width: 200px; opacity: 0.85; }
	.hm-footer-deco-leaf { width: 110px; }
}

@media (max-width: 560px) {
	.hm-footer-main-inner { grid-template-columns: 1fr; padding: 40px 16px 36px; }
	.hm-footer-nav { padding-left: 0; border-left: 0; }
	.hm-footer-deco { display: none; }
	.hm-footer-news-card { padding: 18px; }
	.hm-footer-bottom-inner { grid-template-columns: 1fr; justify-items: center; gap: 12px; text-align: center; }
	.hm-footer-made { justify-self: center; }
	.hm-footer-badges { flex-wrap: wrap; gap: 10px 0; }
	.hm-footer-badge { flex-basis: 50%; }
	.hm-footer-badge:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
	.hm-special-dishes { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
}

@media (max-width: 768px) {
	.hm-footer-dishes-wrap { padding: 44px 16px 40px; }
	.hm-footer-section-label { gap: 10px; }
	.hm-footer-section-label::before,
	.hm-footer-section-label::after { max-width: 60px; }
	.hm-footer-section-sub { margin-bottom: 26px; font-size: 13px; }
	/* Two even columns from here down. auto-fit would collapse to one column on
	   a narrow phone and leave a page of oversized cards. */
	.hm-special-dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.hm-special-dishes .hm-dish-info { padding: 12px 12px 14px; gap: 5px; }
	.hm-special-dishes .hm-dish-name { font-size: 14px; }
	.hm-special-dishes .hm-dish-desc { font-size: 12px; min-height: calc(2 * 1.5 * 12px); }
	.hm-special-dishes .hm-dish-price { font-size: 16.5px; }
	.hm-special-dishes .hm-dish-chip { top: 8px; left: 8px; padding: 4px 8px; font-size: 10.5px; }
	.hm-special-dishes .hm-dish-stepper button { width: 38px; height: 36px; }
}

@media (max-width: 480px) {
	.hm-footer-dishes-wrap { padding: 36px 16px 34px; }
	.hm-special-dishes { gap: 12px; }
	.hm-footer-section-label svg { display: none; }
	.hm-special-dishes .hm-dish-add { gap: 5px; padding: 9px 10px; font-size: 13px; }
}

/* Below this a two-up grid leaves the name and price too cramped to read. */
@media (max-width: 359px) {
	.hm-special-dishes { grid-template-columns: minmax(0, 1fr); }
	.hm-special-dishes .hm-dish-img-wrap { aspect-ratio: 16 / 9; }
}

.hm-dish-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
	gap: 14px;
	margin-bottom: 14px;
}
.hm-dish-list:empty { display: none; }

.hm-dish-row-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius-sm);
	background: var(--hm-bg);
}

.hm-dish-line {
	display: flex;
	gap: 10px;
	align-items: center;
}

.hm-dish-line input,
.hm-dish-line select {
	flex: 1;
	min-width: 0;
}

.hm-dish-line .s-dish-remove,
.hm-dish-line .hm-pick-btn {
	flex: none;
}

@media (max-width: 640px) {
	.hm-dish-line { flex-wrap: wrap; }
}

.hm-img-field {
	display: flex;
	gap: 10px;
	align-items: center;
}

.hm-img-field input {
	flex: 1;
	min-width: 0;
}

.hm-img-field .hm-pick-btn {
	flex: none;
	white-space: nowrap;
}

@media (max-width: 640px) {

	.hm-img-field { flex-direction: column; align-items: stretch; }
	.hm-img-field .hm-pick-btn { justify-content: center; }
}

/* ------------------------------------------------------- Mobile nav drawer
   Opened by the header hamburger. Reuses .hm-drawer-overlay / .hm-drawer for
   the tokens, font and z-index, then re-anchors the sheet to the left edge.
   Carries .hm-app, so the --hm-* tokens resolve inside it. */

/* Above the WordPress toolbar (z-index 99999/100000), which hotel staff never
   see but a site administrator does — without this it paints over the open
   drawer. The overlay stays one step below the sheet. */
.hm-nav-overlay { z-index: 100000; }
.hm-nav-drawer {
	top: 0; bottom: 0; left: 0; right: auto;
	z-index: 100001;
	transform: none;
	width: min(330px, 86vw); max-width: none; height: 100%; max-height: none;
	border-radius: 0 24px 24px 0;
	padding: 0 0 calc(18px + env(safe-area-inset-bottom));
	display: flex; flex-direction: column; gap: 2px;
	background: var(--hm-elevated);
	box-shadow: 18px 0 48px rgba(15, 23, 42, 0.22);
	animation: hm-slide-in-left 0.24s ease;
	overscroll-behavior: contain;
}
@keyframes hm-slide-in-left {
	from { transform: translateX(-100%); opacity: 0.6; }
	to   { transform: translateX(0); opacity: 1; }
}

.hm-nav-head {
	position: sticky; top: 0; z-index: 1;
	display: flex; align-items: center; gap: 11px;
	padding: calc(16px + env(safe-area-inset-top)) 16px 15px;
	background: linear-gradient(135deg, var(--hm-primary) 0%, var(--hm-primary-2) 100%);
	color: #ffffff;
	border-radius: 0 24px 0 0;
}
.hm-nav-head-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; flex: 0 0 40px;
	border-radius: 13px; background: rgba(255, 255, 255, 0.18);
}
.hm-nav-head-ico svg.hm-i { width: 20px; height: 20px; }
.hm-nav-head-txt { min-width: 0; flex: 1 1 auto; }
.hm-nav-head-txt b {
	display: block; font-size: 15px; font-weight: 800; line-height: 1.25;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hm-nav-head-txt span { display: block; font-size: 12px; opacity: 0.88; margin-top: 1px; }
.hm-nav-close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; flex: 0 0 36px;
	border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, 0.18); color: #ffffff;
}
.hm-nav-close:hover { background: rgba(255, 255, 255, 0.3); }
.hm-nav-close svg.hm-i { width: 18px; height: 18px; }

.hm-nav-group {
	margin: 14px 18px 6px;
	font-size: 11px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
	color: var(--hm-faint);
}
.hm-nav-list { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.hm-nav-item {
	display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
	min-height: 48px; padding: 10px 12px;
	border: 0; border-radius: var(--hm-radius-sm);
	background: transparent; color: var(--hm-ink-2);
	font-size: 14.5px; font-weight: 600; font-family: inherit;
	text-decoration: none; cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.hm-nav-item > span:not(.hm-side-count) { flex: 1 1 auto; min-width: 0; }
.hm-nav-item svg {
	width: 19px; height: 19px; flex: 0 0 19px; color: var(--hm-faint);
	fill: none; stroke: currentColor; stroke-width: 2;
	stroke-linecap: round; stroke-linejoin: round;
}
.hm-nav-item:hover { background: var(--hm-bg); color: var(--hm-ink); }
.hm-nav-item:active { background: var(--hm-line); }
.hm-nav-item.active { background: var(--hm-primary-soft); color: var(--hm-primary); }
.hm-nav-item.active svg { color: var(--hm-primary-2); }
.hm-nav-item.is-danger { color: var(--hm-red); }
.hm-nav-item.is-danger svg { color: var(--hm-red); }
.hm-nav-item.is-danger:hover { background: var(--hm-red-soft); color: var(--hm-red); }
.hm-nav-item .hm-side-count {
	margin-left: auto; min-width: 22px; padding: 2px 8px;
	border-radius: 999px; background: var(--hm-bg); color: var(--hm-muted);
	font-size: 11.5px; font-weight: 700; text-align: center;
}
.hm-nav-item.active .hm-side-count { background: var(--hm-card); color: var(--hm-primary-2); }
.hm-nav-item .hm-side-count.warn { background: var(--hm-amber-soft); color: var(--hm-amber-ink); }

body.hm-nav-open { overflow: hidden; }

/* --------------------------------------------------- Mobile header (≤900px)
   Two-row floating card: hamburger left · brand centered · bell + avatar
   right, with the workspace switcher on its own line beneath. Kept late in
   the file so no earlier rule can override it. Literal colors only — this is
   the page shell, outside .hm-app, where the --hm-* tokens don't exist. */

@media (max-width: 900px) {
	.hm-topbar {
		margin: 10px 10px 0;
		border: 0;
		border-radius: 20px;
		background: linear-gradient(135deg, #f6f3fc 0%, #f1ecfa 100%);
		box-shadow: 0 6px 24px rgba(109, 40, 217, 0.10);
	}

	.hm-topbar-inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: 10px;
		padding: 12px 14px;
	}
	.hm-hamburger { display: inline-flex; grid-column: 1; justify-self: start; }
	.hm-topbar-brand { grid-column: 2; justify-self: center; }
	.hm-topbar-right { grid-column: 3; justify-self: end; margin-left: 0; gap: 10px; }

	/* No room for a fourth item in the row, so the switcher takes its own
	   full-width line under the brand rather than truncating the hotel name. */
	.hm-topbar-sep { display: none; }
	.hm-ws { grid-column: 1 / -1; grid-row: 2; }
	.hm-ws-btn {
		width: 100%; justify-content: center;
		background: #ffffff; border-color: #ffffff;
		box-shadow: 0 4px 14px rgba(45, 26, 94, 0.12);
	}
	.hm-ws-menu { left: 0; right: 0; min-width: 0; }

	.hm-topbar-logo { height: 56px; max-width: 150px; }
	.hm-topbar-name { font-size: 17px; max-width: 40vw; }

	.hm-bell {
		width: 46px; height: 40px;
		border: 0; border-radius: 50%;
		background: #ffffff; color: #3f3d56;
		box-shadow: 0 4px 14px rgba(45, 26, 94, 0.12);
	}
	.hm-bell:hover { background: #ffffff; color: #6d28d9; }
	.hm-bell svg { width: 21px; height: 21px; }
	.hm-bell-badge { top: -3px; right: -3px; }

	/* The bell sits left of the avatar, so anchoring the panel to the bell's
	   right edge leaves the avatar's width spare; pull it flush instead and let
	   max-width keep it inside the viewport. */
	.hm-notif-menu { right: -56px; width: 340px; }
	.hm-notif-list { max-height: 66vh; }

	.hm-profile-btn { border: 0; background: transparent; padding: 0; gap: 4px; }
	.hm-profile-btn:hover { background: transparent; }
	.hm-profile-avatar {
		width: 44px; height: 36px; font-size: 16px;
		box-shadow: 0 4px 14px rgba(45, 26, 94, 0.12), 0 0 0 3px #ffffff;
	}
	.hm-profile-name { display: none; }
	.hm-profile-caret { width: 17px; height: 17px; }

	.hm-head-signout {
		width: 46px; height: 46px; padding: 0; justify-content: center;
		border: 0; border-radius: 50%;
		background: #ffffff; color: #3f3d56;
		box-shadow: 0 4px 14px rgba(45, 26, 94, 0.12);
	}
	.hm-head-signout span { display: none; }
	.hm-head-signout svg { width: 21px; height: 21px; }

	/* With the nav drawer in the header, the workspace row and the board's
	   own sidebar duplicate what the drawer already lists, so the header
	   collapses to one row. Gated on .hm-has-nav (set by JS only when a
	   hamburger exists) — without the drawer these are the only nav. */
	body.hm-has-nav .hm-ws { display: none; }
	body.hm-has-nav .hm-side { display: none; }

	.hm-topbar {
		position: sticky;
		top: 0;
		margin-top: calc(10px + env(safe-area-inset-top));
	}
}

/* Mobile board polish: tighter page head and stat tiles that stay readable
   at two per row, dropping to one on the narrowest phones. */
@media (max-width: 640px) {
	.hm-page-head { margin-bottom: 14px; }
	.hm-page-head h1 { font-size: 20px; line-height: 1.25; }
	.hm-page-sub { font-size: 13px; }

	.hm-stats { gap: 10px; }
	.hm-stat { padding: 12px 13px; gap: 10px; border-radius: 14px; }
	.hm-stat-ico { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; }
	.hm-stat-ico svg.hm-i { width: 17px; height: 17px; }
	.hm-stat .v { font-size: 19px; }
	.hm-stat .l { font-size: 10px; letter-spacing: 0.4px; }
}

@media (max-width: 400px) {
	.hm-stats { grid-template-columns: 1fr; }
}

/* Icon-only button, shared by the Hotel Admin and the Multi-Hotel add-on's staff rows. */
.hm-icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 8px; border: 0; cursor: pointer;
	background: transparent; color: var(--hm-muted); transition: background 0.15s, color 0.15s;
}
.hm-icon-btn:hover { background: var(--hm-card); color: var(--hm-primary-2); box-shadow: var(--hm-shadow); }
.hm-icon-btn svg.hm-i { width: 16px; height: 16px; }

.hm-auth-app { display: flex; justify-content: center; padding: 24px 16px; }
.hm-auth-card {
	width: 100%; max-width: 400px; margin: 32px auto; padding: 36px 30px;
	background: var(--hm-card); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow);
	text-align: center;
}
.hm-auth-icon { display: inline-flex; color: var(--hm-primary-2); margin-bottom: 12px; }
.hm-auth-icon svg.hm-i { width: 42px; height: 42px; stroke-width: 1.7; }
.hm-auth-icon-warn { color: var(--hm-amber-ink); }
.hm-auth-card h2 { margin: 0 0 6px; }
.hm-auth-sub { color: var(--hm-ink-2); margin: 0 0 20px; font-size: 14px; }
.hm-auth-card .hm-field { text-align: left; }
.hm-auth-alert {
	text-align: left; background: var(--hm-red-soft); color: var(--hm-red);
	border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 16px;
}

.hm-auth-alert-action {
	display: inline-block; margin-left: 6px; font-weight: 700;
	color: var(--hm-red); text-decoration: underline;
}

.hm-field-err {
	margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--hm-red);
}
.hm-field-hint {
	margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--hm-amber-ink);
}
.hm-app .hm-field input.has-error { border-color: var(--hm-red); }
.hm-app .hm-field input.has-error:focus { border-color: var(--hm-red); }

.hm-pass-wrap { display: block; position: relative; margin-bottom: 0; }
.hm-pass-wrap span { display: none; }
.hm-pass-wrap input { padding-right: 44px !important; }
.hm-pass-toggle {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
	background: none; border: none; cursor: pointer; color: var(--hm-muted); border-radius: 8px;
	transition: color 0.15s ease, background 0.15s ease;
}
.hm-pass-toggle:hover { color: var(--hm-ink-2); background: var(--hm-primary-soft); }
.hm-pass-toggle.on { color: var(--hm-primary-2); background: var(--hm-primary-soft); }
.hm-pass-toggle svg.hm-i { width: 18px; height: 18px; }
.hm-auth-remember {
	display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--hm-ink-2);
	margin: 4px 0 20px; text-align: left; cursor: pointer;
}
.hm-auth-remember input { width: 16px; height: 16px; accent-color: var(--hm-primary-2); }
.hm-auth-submit { width: 100%; justify-content: center; }

/* Loading state: a visible spinner, not just a dimmed button — staff on a slow
   connection otherwise cannot tell the tap registered. */
.hm-auth-submit.is-loading { opacity: 0.85; pointer-events: none; }
.hm-auth-submit.is-loading svg.hm-i { display: none; }
.hm-auth-submit.is-loading::before {
	content: ""; width: 16px; height: 16px; flex: 0 0 auto; border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff;
	animation: hm-spin 0.7s linear infinite;
}

.hm-auth-foot { margin: 16px 0 0; font-size: 13px; }
.hm-auth-foot a { color: var(--hm-primary); text-decoration: none; font-weight: 600; }
.hm-auth-foot a:hover { text-decoration: underline; }

.hm-auth-note {
	text-align: left; background: var(--hm-bg); color: var(--hm-ink-2);
	border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5;
	margin: 0 0 18px;
}
.hm-auth-actions { display: flex; flex-direction: column; gap: 10px; }
.hm-auth-action { width: 100%; justify-content: center; }

/* "Cooking" and "ready" share the same blue elsewhere, which on a kitchen
   screen makes the two states that matter most indistinguishable at a glance.
   Scoped to the kitchen board so the delivery board keeps its approved look. */
.hm-chef-app .hm-badge-ready { background: var(--hm-green-soft); color: var(--hm-green-ink); }

.hm-kqty { display: inline-block; min-width: 2.2em; font-size: 15px; font-weight: 800; color: var(--hm-primary); }

.hm-kitchen-ticket.is-ready { border-top-color: var(--hm-green); }
/* Plated and waiting on a server: still readable, but it must not compete with
   the tickets the kitchen still has to cook. Sorted last by the board too. */
.hm-kitchen-ticket.is-ready .hm-tcard-body { opacity: 0.72; }
/* Waiting too long: amber edge and timer. Colour is never the only signal —
   the timer also gains an alert icon. */
.hm-kitchen-ticket.is-late { border-top-color: var(--hm-amber-ink); }
.hm-tcard-head .meta.is-late { color: var(--hm-amber-ink); font-weight: 700; }

.hm-kitchen-note {
	display: flex; gap: 8px; align-items: flex-start;
	margin: 0 0 10px; padding: 8px 10px; border-radius: var(--hm-radius-sm);
	background: var(--hm-amber-soft); color: var(--hm-amber-ink);
	font-size: 13px; line-height: 1.45;
}
.hm-kitchen-note svg.hm-i { margin-top: 2px; flex: 0 0 auto; }

/* Age of one line, not of the whole ticket — a dish added to an hour-old order
   has only been waiting since it was added. */
.hm-kline-age { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 600; color: var(--hm-muted); }
.hm-kline-age.is-late { color: var(--hm-amber-ink); }

/* The delivery promise the kitchen is cooking against. */
.hm-keta {
	display: flex; gap: 8px; align-items: center;
	margin: 0 0 10px; padding: 7px 10px; border-radius: var(--hm-radius-sm);
	background: var(--hm-bg); color: var(--hm-ink-2);
	font-size: 12.5px; font-weight: 600;
}
.hm-keta svg.hm-i { width: 15px; height: 15px; flex: 0 0 auto; color: var(--hm-faint); }
.hm-keta.is-late { background: var(--hm-red-soft); color: var(--hm-red); }
.hm-keta.is-late svg.hm-i { color: var(--hm-red); }

/* One mute switch, kept out of the tablist above it. */
.hm-side-tools { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--hm-line); }
.hm-sound-toggle[aria-pressed="true"] { color: var(--hm-muted); }
.hm-sound-toggle[aria-pressed="true"] svg.hm-i { color: var(--hm-red); }

.hm-inv-pill {
	display: inline-block; padding: 3px 10px; border-radius: 999px;
	font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap;
}
.hm-inv-pill.ok { background: var(--hm-green-soft); color: var(--hm-green-ink); }
.hm-inv-pill.low { background: var(--hm-amber-soft); color: var(--hm-amber-ink); }
.hm-inv-pill.out { background: var(--hm-red-soft); color: var(--hm-red); }
.hm-inv-pill.none { background: var(--hm-bg); color: var(--hm-muted); }
.hm-item-name .hm-inv-pill { margin-left: 8px; vertical-align: 1px; }

.hm-inv-num-out { color: var(--hm-red); }
.hm-inv-num-low { color: var(--hm-amber-ink); }
.hm-inv-num-ok { color: var(--hm-green-ink); }
.hm-inv-table tr.is-out td { background: #fff7f7; }
.hm-inv-table .c-stock, .hm-inv-table .c-sold, .hm-inv-table .c-thresh { text-align: center; }

.hm-side-count.warn { background: var(--hm-amber-soft); color: var(--hm-amber-ink); }
.hm-stock-banner {
	display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
	padding: 10px 14px; border-radius: var(--hm-radius);
	background: var(--hm-amber-soft); color: var(--hm-amber-ink);
	border: 1px solid #fcd34d; font-size: 13.5px; font-weight: 600;
}
.hm-stock-banner svg.hm-i { width: 18px; height: 18px; flex: none; }
.hm-stock-banner span { flex: 1; }
.hm-stock-banner.is-err { background: var(--hm-red-soft); color: var(--hm-red); border-color: #fca5a5; }

.hm-oos-badge {
	display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
	background: var(--hm-red-soft); color: var(--hm-red);
	font-size: 11px; font-weight: 700; letter-spacing: 0.3px; vertical-align: 1px;
}
.hm-dish.is-oos .hm-dish-img { opacity: 0.45; filter: grayscale(0.6); }
.hm-dish.is-oos .hm-dish-name, .hm-dish.is-oos .hm-dish-desc { opacity: 0.6; }

/* Full-bleed inside the modal body so the rules run edge to edge and the first
   column lines up with the dialog title; the header stays put while scrolling. */
.hm-moves-wrap { max-height: 55vh; overflow-y: auto; margin: -8px -22px; }
.hm-moves-table th, .hm-moves-table td { font-size: 13px; white-space: nowrap; }
.hm-moves-table th:first-child, .hm-moves-table td:first-child { padding-left: 22px; }
.hm-moves-table th:last-child, .hm-moves-table td:last-child { padding-right: 22px; }
.hm-moves-table td:last-child { white-space: normal; min-width: 140px; }
.hm-moves-table thead th { position: sticky; top: 0; z-index: 1; background: var(--hm-elevated); }

/* Manager "Take Order" picker — reuses the customer menu classes inside a modal.
   Cap the list so the category bar (above) and total/Place Order (below) stay in
   view, and neutralise two customer-only quirks: the 120px bottom padding meant
   for the fixed cart bar, and the desktop 2-column grid (too tight in a modal). */
.hm-take-list { max-height: 52vh; overflow-y: auto; margin: 4px -6px 0; }
.hm-take-list .hm-menu-list { display: block; padding: 4px 6px 6px; }
.hm-take-list .hm-dish { margin-bottom: 10px; }
.hm-take-list .hm-dish:last-child { margin-bottom: 0; }
.hm-modal-body > .hm-cat-bar { padding: 2px 0 10px; }
.hm-take-total { font-size: 14px; font-weight: 600; color: var(--hm-ink-2); }
.hm-take-total b { color: var(--hm-ink); font-weight: 800; margin-left: 4px; }

.hm-badge-pending { background: var(--hm-amber-soft); color: var(--hm-amber-ink); }
.hm-badge-accepted { background: var(--hm-primary-soft); color: var(--hm-primary); }
.hm-badge-ready { background: var(--hm-blue-soft); color: var(--hm-blue); }
.hm-badge-out_for_delivery { background: var(--hm-primary-soft); color: var(--hm-primary-2); }
.hm-badge-rejected { background: var(--hm-red-soft); color: var(--hm-red); }

.hm-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.hm-online-pills { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hm-online-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
	font-size: var(--hm-text-sm); font-weight: 700; }
.hm-online-pill .hm-i { width: 15px; height: 15px; }
.hm-online-pill.open { background: var(--hm-green-soft); color: var(--hm-green-ink); }
.hm-online-pill.closed { background: var(--hm-red-soft); color: var(--hm-red); }
.hm-online-note { display: flex; align-items: center; gap: 10px; margin: 12px 14px; padding: 11px 14px;
	background: var(--hm-primary-soft); color: var(--hm-primary); border-radius: var(--hm-radius-sm);
	font-size: var(--hm-text-sm); font-weight: 600; }
.hm-online-note .hm-i { width: 17px; height: 17px; flex: none; }

.hm-picker-list { display: grid; gap: 10px; max-width: 520px; margin: 20px auto; }
.hm-picker-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px;
	background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius);
	box-shadow: var(--hm-shadow); cursor: pointer; text-align: left; font: inherit; color: var(--hm-ink); }
.hm-picker-card:hover { border-color: var(--hm-primary-2); }
.hm-picker-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px;
	background: var(--hm-primary-soft); color: var(--hm-primary); }
.hm-picker-name { flex: 1; font-weight: 700; font-size: var(--hm-text-md); }

.hm-checkout-form { max-width: 620px; margin: 0 auto; padding: 16px; background: var(--hm-card);
	border: 1px solid var(--hm-line); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); }
.hm-checkout-form h3 { display: flex; align-items: center; gap: 8px; margin: 20px 0 10px;
	font-size: var(--hm-text-md); font-weight: 800; color: var(--hm-ink); }
.hm-checkout-form h3:first-child { margin-top: 4px; }
.hm-checkout-form h3 .hm-i { width: 18px; height: 18px; color: var(--hm-primary-2); }
.hm-checkout-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--hm-line-2);
	border-radius: var(--hm-radius-sm); font: inherit; color: var(--hm-ink); background: var(--hm-card); resize: vertical; }
.hm-checkout-form textarea:focus { outline: none; border-color: var(--hm-primary-2); box-shadow: 0 0 0 3px var(--hm-ring); }

.hm-track-card { max-width: 620px; margin: 0 auto; padding: 16px; background: var(--hm-card);
	border: 1px solid var(--hm-line); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); }
.hm-track-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding-bottom: 12px; border-bottom: 1px solid var(--hm-line); }
.hm-track-id { font-weight: 800; font-size: var(--hm-text-md); color: var(--hm-ink); margin-right: 8px; }
.hm-track-when { font-size: var(--hm-text-xs); color: var(--hm-muted); }

/* Horizontal on wide screens, vertical on phones â€” six labels never fit in a
   phone-width row without truncating to uselessness. */
.hm-track-steps { display: flex; gap: 4px; margin: 18px 0; }
.hm-track-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.hm-track-step .dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	background: var(--hm-bg); border: 2px solid var(--hm-line-2); color: var(--hm-on-primary); z-index: 1; }
.hm-track-step .dot .hm-i { width: 14px; height: 14px; }
.hm-track-step .lbl { font-size: 11px; font-weight: 600; color: var(--hm-muted); text-align: center; line-height: 1.25; }
.hm-track-step.done .dot { background: var(--hm-green); border-color: var(--hm-green); }
.hm-track-step.done .lbl { color: var(--hm-ink-2); }
.hm-track-step.current .dot { background: var(--hm-primary-2); border-color: var(--hm-primary-2);
	box-shadow: 0 0 0 4px var(--hm-primary-soft); }
.hm-track-step.current .lbl { color: var(--hm-primary); font-weight: 800; }
.hm-track-step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px;
	background: var(--hm-line-2); }
.hm-track-step:first-child::before { display: none; }
.hm-track-step.done::before, .hm-track-step.current::before { background: var(--hm-green); }

.hm-track-eta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px;
	background: var(--hm-primary-soft); color: var(--hm-primary); border-radius: var(--hm-radius-sm);
	font-size: var(--hm-text-sm); font-weight: 600; margin-bottom: 16px; }
.hm-track-eta .hm-i { width: 16px; height: 16px; }

.hm-track-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hm-line); }
.hm-track-block h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 10px;
	font-size: var(--hm-text-sm); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--hm-muted); }
.hm-track-block h4 .hm-i { width: 15px; height: 15px; }
.hm-track-block p { margin: 0 0 4px; font-size: var(--hm-text-sm); color: var(--hm-ink); }
.hm-track-block p.sub { color: var(--hm-muted); }

.hm-track-dead { display: flex; gap: 12px; padding: 16px; border-radius: var(--hm-radius-sm); margin: 16px 0; }
.hm-track-dead .hm-i { width: 22px; height: 22px; flex: none; }
.hm-track-dead b { display: block; font-size: var(--hm-text-md); margin-bottom: 4px; }
.hm-track-dead p { margin: 0 0 3px; font-size: var(--hm-text-sm); }
.hm-track-dead p.sub { opacity: .75; }
.hm-track-dead.rejected { background: var(--hm-red-soft); color: var(--hm-red); }
.hm-track-dead.cancelled { background: var(--hm-bg); color: var(--hm-ink-2); }

.hm-ocard { background: var(--hm-card); border: 1px solid var(--hm-line); border-radius: var(--hm-radius);
	box-shadow: var(--hm-shadow); overflow: hidden; display: flex; flex-direction: column; }
.hm-ocard.is-pending { border-color: var(--hm-amber-ink); box-shadow: 0 0 0 2px var(--hm-amber-soft), var(--hm-shadow); }
.hm-ocard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
	padding: 12px 14px; border-bottom: 1px solid var(--hm-line); }
.hm-ocard-who { font-weight: 800; font-size: var(--hm-text-md); color: var(--hm-ink); }
.hm-ocard-id { font-size: var(--hm-text-xs); color: var(--hm-muted); font-weight: 600; }
.hm-ocard-body { padding: 12px 14px; flex: 1; }
.hm-ocard-addr { display: flex; gap: 8px; font-size: var(--hm-text-sm); color: var(--hm-ink-2); margin-bottom: 10px; }
.hm-ocard-addr .hm-i { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--hm-primary-2); }
.hm-ocard-note { padding: 8px 10px; background: var(--hm-amber-soft); color: var(--hm-amber-ink);
	border-radius: var(--hm-radius-sm); font-size: var(--hm-text-sm); margin-bottom: 10px; }
.hm-ocard-tel { display: inline-flex; align-items: center; gap: 5px; color: var(--hm-primary);
	font-size: var(--hm-text-sm); font-weight: 600; text-decoration: none; }
.hm-ocard-tel .hm-i { width: 14px; height: 14px; }
.hm-ocard-line { display: flex; justify-content: space-between; gap: 10px; font-size: var(--hm-text-sm);
	padding: 3px 0; color: var(--hm-ink-2); }
.hm-ocard-foot { padding: 12px 14px; border-top: 1px solid var(--hm-line); background: var(--hm-bg); }
.hm-ocard-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hm-ocard-eta { display: inline-flex; align-items: center; gap: 5px; font-size: var(--hm-text-xs);
	color: var(--hm-primary); font-weight: 600; margin-top: 8px; }
.hm-ocard-eta .hm-i { width: 13px; height: 13px; }
.hm-pause-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 12px 14px; margin-bottom: 14px; background: var(--hm-card); border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); }
.hm-pause-bar.is-paused { background: var(--hm-amber-soft); border-color: var(--hm-amber-ink); }
.hm-pause-text { font-size: var(--hm-text-sm); color: var(--hm-ink-2); }
.hm-pause-text b { color: var(--hm-ink); }

.hm-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
	font-size: var(--hm-text-sm); font-weight: 600; line-height: 1.3; color: var(--hm-ink); }
.hm-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--hm-primary-2); cursor: pointer; margin: 0; flex: none; }
.hm-check input[type="checkbox"]:focus-visible { outline: 2px solid var(--hm-primary-2); outline-offset: 2px; }

.hm-check + .hint { padding-left: 28px; margin-top: 4px; }

.hm-hours { columns: 2 480px; column-gap: 40px; }
.hm-hours-row {
	display: grid; align-items: center; justify-content: start; column-gap: 12px; padding: 5px 0;
	grid-template-columns: 96px auto 112px auto 112px;
	grid-template-areas: "day closed open sep close";
	break-inside: avoid;
}
.hm-hours-day { grid-area: day; font-weight: 600; font-size: var(--hm-text-sm); color: var(--hm-ink); }
.hm-hours-closed { grid-area: closed; margin: 0; white-space: nowrap; }
.hm-hours-row .o-day-open { grid-area: open; }
.hm-hours-sep { grid-area: sep; font-size: var(--hm-text-xs); color: var(--hm-muted); }
.hm-hours-row .o-day-close { grid-area: close; }
.hm-hours-row input[type="time"] { min-width: 0; }
.hm-hours-row input[type="time"]:disabled { opacity: .45; background: var(--hm-bg); cursor: not-allowed; }

/* Delivery areas: a caption row (desktop) / per-cell captions (phone) so a
   filled-in "20" and "200" are never ambiguous. */
.hm-area-list { max-width: 720px; }
.hm-area-head, .hm-area-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 10px; }
.hm-area-head { margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--hm-muted); letter-spacing: 0.2px; }
.hm-area-row { align-items: end; margin-bottom: 10px; }
.hm-area-cell { display: block; min-width: 0; }
.hm-area-cap { display: none; font-size: 11.5px; font-weight: 600; color: var(--hm-muted); margin-bottom: 4px; }
.hm-area-row .o-area-remove { width: 44px; min-height: 44px; padding: 0; }
.hm-add-row { margin-top: 2px; }

.hm-img-field .hm-btn-sm, .hm-dish-line .hm-btn-sm, .hm-area-row .hm-btn-sm { min-height: 44px; border-radius: 10px; }
.hm-img-field .hm-btn-sm, .hm-dish-line .hm-btn-sm { padding: 0 16px; }

.hm-link-field { max-width: 720px; }
.hm-online-qr { display: inline-block; margin-top: 16px; padding: 10px; width: 184px; max-width: 100%;
	background: #fff; border: 1px solid var(--hm-line-2); border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); }
.hm-online-qr svg { width: 100%; height: auto; display: block; }
.hm-online-qr + .hint { margin-top: 10px; }

.hm-type-delivery { display: inline-flex; align-items: center; gap: 6px; color: var(--hm-primary); font-weight: 600; }
.hm-type-delivery .hm-i { width: 15px; height: 15px; }

@media (max-width: 640px) {
	.hm-track-steps { flex-direction: column; gap: 0; align-items: stretch; }
	.hm-track-step { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 7px 0; }
	.hm-track-step .lbl { text-align: left; font-size: var(--hm-text-sm); }
	.hm-track-step::before { top: -50%; left: 12px; width: 2px; height: 100%; }

	.hm-hours-row {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 8px; padding: 12px 0;
		grid-template-areas: "day day closed" "open sep close";
		border-bottom: 1px solid var(--hm-line);
	}
	.hm-hours-row:last-child { border-bottom: 0; }
	.hm-hours-sep { text-align: center; }

	.hm-area-head { display: none; }
	.hm-area-cap { display: block; }
	.hm-area-head, .hm-area-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
	.hm-area-row .hm-area-cell:first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Delivery radius — the admin's pin and its plain-language preview, the
   customer's location check at checkout, and the distance on the board.
   Icon rules say `svg.hm-i` on purpose: `.hm-app svg.hm-i` (0,2,1) at the top
   of this file out-ranks a bare `.hm-geo-mark .hm-i` (0,2,0) and would keep
   its own 1em sizing.
   ========================================================================== */

/* The UA sheet's `[hidden] { display: none }` is a UA-origin rule, so ANY author
   rule that sets `display` beats it: `.hm-btn` (inline-flex) and `.hm-area-head`
   (grid) both stayed visible with the attribute set. This makes `hidden` mean
   hidden everywhere in the app — it also fixes the stuck "Load more" button and
   the delivery-areas caption row that showed with no areas. */
.hm-app [hidden] { display: none !important; }

.hm-geo-pin { max-width: 720px; }
.hm-geo-find { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-geo-find input[type="text"] { flex: 1 1 260px; min-width: 0; }
.hm-geo-find .hm-btn-sm, .hm-geo-acts .hm-btn-sm { min-height: 44px; border-radius: 10px; padding: 0 14px; }
.hm-geo-acts .hm-btn-sm { text-decoration: none; }

.hm-geo-coords { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 10px; align-items: end; margin-top: 10px; }
.hm-geo-cell { display: block; min-width: 0; }
.hm-geo-cell > span { display: block; font-size: 11.5px; font-weight: 600; color: var(--hm-muted); margin-bottom: 4px; }
.hm-geo-acts { display: flex; gap: 8px; }

.hm-radius-card { display: flex; gap: 18px; align-items: center; max-width: 720px; padding: 16px 18px;
	border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: var(--hm-card);
	box-shadow: var(--hm-shadow); color: var(--hm-muted); }
.hm-radius-card.is-on { color: var(--hm-primary-2); border-color: var(--hm-head-border);
	background: linear-gradient(180deg, var(--hm-primary-soft), var(--hm-card) 70%); }
.hm-radius-card.is-open { color: var(--hm-blue); }
.hm-radius-viz { flex: 0 0 96px; width: 96px; }
.hm-ring-svg { display: block; width: 100%; height: auto; }
.hm-ring-svg .r-fill { fill: currentColor; fill-opacity: 0.1; stroke: none; }
.hm-ring-svg .r-edge { fill: none; stroke: currentColor; stroke-opacity: 0.65; stroke-width: 2; stroke-dasharray: 6 6; }
.hm-ring-svg .r-mid { fill: none; stroke: currentColor; stroke-opacity: 0.28; stroke-width: 1.5; stroke-dasharray: 3 6; }
.hm-ring-svg .r-arm { stroke: currentColor; stroke-opacity: 0.5; stroke-width: 1.5; }
.hm-ring-svg .r-pin { fill: currentColor; stroke: none; }
.hm-radius-copy { min-width: 0; }
.hm-radius-copy > b { display: block; font-size: var(--hm-text-md); font-weight: 800;
	color: var(--hm-ink); margin-bottom: 6px; }
.hm-radius-copy p { margin: 0 0 6px; font-size: var(--hm-text-sm); line-height: 1.5; color: var(--hm-ink-2); }
.hm-radius-copy p:last-child { margin-bottom: 0; }
.hm-radius-copy p b { color: var(--hm-ink); }

.hm-geo { margin-bottom: 16px; padding: 14px; border: 1.5px solid var(--hm-line-2);
	border-radius: var(--hm-radius); background: var(--hm-bg); transition: border-color 0.2s, background 0.2s; }
.hm-geo-top { display: flex; gap: 12px; align-items: center; }
.hm-geo-mark { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
	border-radius: 11px; background: var(--hm-card); border: 1px solid var(--hm-line-2); color: var(--hm-muted); }
.hm-geo-mark svg.hm-i { width: 19px; height: 19px; }
.hm-geo-copy { flex: 1 1 auto; min-width: 0; }
.hm-geo-copy > b { display: flex; align-items: center; gap: 6px; font-size: var(--hm-text-sm);
	font-weight: 800; color: var(--hm-ink); }
.hm-geo-msg { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--hm-ink-2); }
.hm-geo-req { padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.5px; background: var(--hm-primary-soft); color: var(--hm-primary); }
.hm-geo-top .hm-btn { flex: 0 0 auto; }

.hm-geo.is-ok { border-color: var(--hm-green); background: var(--hm-green-soft); }
.hm-geo.is-ok .hm-geo-mark { color: var(--hm-green-ink); border-color: var(--hm-green); }
.hm-geo.is-warn { border-color: var(--hm-amber-ink); background: var(--hm-amber-soft); }
.hm-geo.is-warn .hm-geo-mark { color: var(--hm-amber-ink); }
.hm-geo.is-err { border-color: var(--hm-red); background: var(--hm-red-soft); }
.hm-geo.is-err .hm-geo-mark { color: var(--hm-red); border-color: var(--hm-red); }
.hm-geo.is-busy .hm-geo-mark { color: var(--hm-primary-2); }
.hm-geo.is-busy .hm-geo-mark svg.hm-i { animation: hm-spin 0.9s linear infinite; }

.hm-geo-meter { height: 6px; margin-top: 12px; border-radius: 999px;
	background: var(--hm-line-2); overflow: hidden; }
.hm-geo-meter > i { display: block; height: 100%; border-radius: 999px;
	background: var(--hm-green); transition: width 0.3s ease; }
.hm-geo.is-err .hm-geo-meter > i { background: var(--hm-red); }

.hm-geo-call { font-size: 12.5px; line-height: 1.45; color: var(--hm-ink-2); }
.hm-geo-call:not(:empty) { margin-top: 10px; }
.hm-geo-call a { font-weight: 700; color: var(--hm-primary); }

.hm-ocard-geo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.hm-ocard-km { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
	background: var(--hm-primary-soft); color: var(--hm-primary); font-size: var(--hm-text-xs); font-weight: 700; }
.hm-ocard-map { display: inline-flex; align-items: center; gap: 5px; color: var(--hm-primary);
	font-size: var(--hm-text-xs); font-weight: 600; text-decoration: none; }
.hm-ocard-map:hover { text-decoration: underline; }
.hm-ocard-km svg.hm-i, .hm-ocard-map svg.hm-i { width: 13px; height: 13px; }

@media (max-width: 640px) {
	.hm-geo-coords { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.hm-geo-acts { grid-column: 1 / -1; }
	.hm-geo-acts .hm-btn-sm { flex: 1 1 auto; }
	.hm-geo-find .hm-btn-sm { flex: 1 1 auto; }
	.hm-radius-card { flex-direction: column; align-items: flex-start; gap: 14px; }
	.hm-radius-viz { flex: 0 0 72px; width: 72px; }
	.hm-geo-top { flex-wrap: wrap; }
	.hm-geo-top .hm-btn { width: 100%; }
	.hm-footer-about-logo { height: 90px;}
}
