/*
 * The base look of a Blank.
 *
 * Plain CSS on purpose. There is no build step, no framework and no component
 * abstraction to learn, so Shield can restyle this application by editing this
 * one file and the Blade templates.
 *
 * Everything visual is driven by the custom properties below.
 */

:root {
    --font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Fredoka", var(--font-sans);

    --color-page: #fff9f0;
    --color-surface: #ffffff;
    --color-text: #1f2937;
    --color-muted: #5d6775;
    --color-border: #eadfd0;
    --color-accent: #fdbd2d;
    --color-accent-text: #1f2937;
    --color-accent-soft: #fff3d6;
    --color-danger: #ef4444;
    --color-danger-soft: #fde8e8;
    --color-success: #146c43;
    --color-success-soft: #e8f5ee;

    --g-sunshine: #fdbd2d;
    --g-tangerine: #f7931e;
    --g-crave: #ef4444;
    --g-charcoal: #1f2937;
    --g-cream: #fff9f0;

    --radius: 1.15rem;
    --radius-sm: 0.9rem;
    --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.06);
    --shadow-md: 0 8px 24px rgba(31, 41, 55, 0.1);
    --shadow-lg: 0 20px 48px rgba(31, 41, 55, 0.16);

    --space: 1rem;
    --container: 68rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-page);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
}

h2 {
    font-size: 1.25rem;
}

h3 {
    font-size: 1.05rem;
}

p {
    margin: 0 0 var(--space);
}

a {
    color: var(--color-text);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--g-tangerine);
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid var(--g-tangerine);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-surface);
    padding: 0.75rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.muted {
    color: var(--color-muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.lead {
    font-size: 1.125rem;
    color: var(--color-muted);
}

.stack > * + * {
    margin-top: var(--space);
}

/* ---------------------------------------------------------------- header */

.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4rem;
    padding-block: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    text-decoration: none;
}

.brand:hover {
    color: var(--color-text);
}

.brand img,
.brand-mark {
    max-height: 2.4rem;
    width: auto;
    height: 2.4rem;
    object-fit: contain;
}

.brand-mark--sm {
    max-height: 1.4rem;
    height: 1.4rem;
}

.brand-wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1;
    text-transform: lowercase;
    letter-spacing: -0.03em;
    color: var(--g-charcoal);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
}

.site-nav a,
.site-nav button {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover {
    color: var(--color-text);
}

.site-nav a[aria-current="page"] {
    color: var(--color-text);
    font-weight: 600;
}

.site-nav__rule {
    display: block;
    width: 1px;
    height: 1.15em;
    flex: 0 0 1px;
    background: var(--color-muted);
}

/* ---------------------------------------------------------------- content */

main {
    flex: 1 0 auto;
    padding-block: 2.5rem 3.5rem;
}

.page-header {
    margin-bottom: 1.75rem;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    padding-block: 1.5rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
}

/* ---------------------------------------------------------------- panels */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.card + .card,
.grid + .card {
    margin-top: 1.25rem;
}

.card__title {
    margin-bottom: 0.25rem;
}

/* A card for something that cannot be undone. */
.card--danger {
    border-color: var(--color-danger);
    background: var(--color-danger-soft);
}

.customer-home {
    max-width: 40rem;
    margin-inline: auto;
}

.customer-order__status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.15rem;
    font-weight: 650;
    font-size: 0.95rem;
    color: var(--g-tangerine);
}

.customer-order__live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--g-tangerine);
    flex-shrink: 0;
    animation: track-pulse 2s ease-in-out infinite;
}

.customer-order--live .customer-order__meta {
    margin-top: 0.1rem;
}

.customer-search__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.customer-search__form input[type="search"] {
    width: 100%;
    padding: 1rem 1.15rem;
    font-size: 1.125rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.customer-search__form .button {
    align-self: flex-start;
}

.customer-search__results {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    border-top: 1px solid var(--color-border);
}

.customer-search__results li + li {
    border-top: 1px solid var(--color-border);
}

.customer-search__results a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0;
    color: inherit;
    text-decoration: none;
}

.customer-search__logo {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.customer-search__copy {
    min-width: 0;
}

.customer-search__results a:hover,
.customer-search__results a:focus-visible {
    color: var(--g-tangerine);
}

.customer-search__name {
    display: block;
    font-weight: 600;
}

.customer-search__meta {
    display: block;
    color: var(--color-muted);
    font-size: 0.925rem;
}

.customer-search + .customer-mode {
    margin-top: 2rem;
}

.customer-address h2 {
    margin-bottom: 0.35rem;
}

.customer-address__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.customer-address__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.saved-address {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.saved-address__body {
    min-width: 0;
    flex: 1 1 12rem;
}

.saved-address__body p {
    margin: 0;
}

.saved-address__label {
    font-weight: 600;
}

.saved-address__badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--color-page);
    border: 1px solid var(--color-border);
    font-size: 0.75rem;
    font-weight: 550;
}

.saved-address__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.check-saved {
    margin: 1rem 0 1.25rem;
}

.check-saved label {
    margin-bottom: 0;
}

.customer-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.customer-mode__label {
    margin: 0;
    font-weight: 600;
}

.customer-owned {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.customer-owned__identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.customer-owned__name {
    margin: 0;
    font-weight: 600;
}

.customer-owned__action {
    margin: 0;
    margin-left: auto;
}

.customer-order {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1rem;
}

.customer-order:first-of-type {
    margin-top: 1.25rem;
}

/* Live orders sit alone in the card — no heading — so hug the order. */
.customer-live {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.customer-live .customer-order:first-child {
    margin-top: 0;
}

.customer-order + .customer-order {
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.customer-order__main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 14rem;
    color: inherit;
    text-decoration: none;
}

.customer-order__main:hover,
.customer-order__main:focus-visible {
    color: var(--g-tangerine);
}

.customer-order__logo,
.customer-order__mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.customer-order__logo {
    object-fit: cover;
}

.customer-order__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-page);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.customer-order__copy {
    min-width: 0;
    flex: 1 1 auto;
}

.customer-order__name {
    display: block;
    font-weight: 600;
}

.customer-order__meta {
    display: block;
    color: var(--color-muted);
    font-size: 0.925rem;
}

.customer-order__total {
    flex-shrink: 0;
    font-weight: 650;
    white-space: nowrap;
}

.customer-order__action {
    margin: 0;
}

.app-mode-switcher {
    position: fixed;
    left: max(1rem, env(safe-area-inset-left));
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.app-mode-switcher__label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.app-mode-switcher__select {
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-page);
    border: 1px solid var(--color-border);
    border-radius: 0.65rem;
    padding: 0.35rem 1.75rem 0.35rem 0.6rem;
    min-height: 2.25rem;
}

@media (min-width: 640px) {
    .customer-search__form {
        flex-direction: row;
        align-items: stretch;
    }

    .customer-search__form input[type="search"] {
        flex: 1 1 auto;
    }
}

.grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.stat__value {
    font-size: 1.75rem;
    font-weight: 650;
}

.stat__label {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.stat__hint {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0.15rem 0 0;
}

.stat__label a {
    color: inherit;
}

/* ---------------------------------------------------------------- hero */

.hero {
    display: grid;
    align-content: center;
    max-width: 34rem;
    /* Fills the space between header and footer so the message sits centred. */
    min-height: max(16rem, calc(100svh - 20rem));
    margin-inline: auto;
    padding-block: clamp(1.5rem, 1rem + 3vw, 3rem);
    text-align: center;
}

.hero__title {
    font-size: clamp(1.8rem, 1.35rem + 1.8vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 0.85rem;
}

.hero__lead {
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--color-muted);
    margin-bottom: 0;
}

.hero__note {
    margin: 2rem 0 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

/* ---------------------------------------------------------------- forms */

form {
    margin: 0;
}

.field {
    margin-bottom: 1.1rem;
}

label {
    display: block;
    font-weight: 550;
    font-size: 0.925rem;
    margin-bottom: 0.35rem;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
select,
textarea {
    width: 100%;
    font: inherit;
    color: inherit;
    padding: 0.6rem 0.7rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

textarea {
    min-height: 6rem;
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-weight: 450;
}

.checkbox input {
    margin-top: 0.3rem;
}

.hint {
    display: block;
    color: var(--color-muted);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.error {
    display: block;
    color: var(--color-danger);
    font-size: 0.875rem;
    margin-top: 0.3rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

/* ---------------------------------------------------------------- buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font: inherit;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--color-accent);
    color: var(--color-accent-text);
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    filter: brightness(1.08);
}

.button:disabled,
.button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.button--secondary {
    background: transparent;
    border-color: var(--g-charcoal);
    color: var(--g-charcoal);
}

.button--quiet {
    background: none;
    color: var(--color-muted);
    padding-inline: 0.25rem;
}

.button--danger {
    background: var(--color-danger);
    color: #fff;
}

.button--small {
    padding: 0.4rem 0.7rem;
    font-size: 0.875rem;
}

/* ---------------------------------------------------------------- messages */

.alert {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    background: var(--color-surface);
}

.toast-stack {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.65rem;
    width: min(28rem, calc(100vw - 2rem));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.12), 0 2px 8px rgba(31, 41, 55, 0.06);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.45;
    pointer-events: auto;
    animation: toast-enter 0.32s ease-out both;
}

.toast--success {
    border-color: rgba(22, 163, 74, 0.22);
}

.toast--success .toast__icon {
    color: #16a34a;
}

.toast--error {
    border-color: rgba(239, 68, 68, 0.22);
}

.toast--error .toast__icon {
    color: var(--color-danger);
}

.toast--leaving {
    animation: toast-leave 0.28s ease-in both;
}

.toast__icon {
    flex: 0 0 auto;
    margin-top: 0.05rem;
}

.toast__message {
    flex: 1 1 auto;
    min-width: 0;
}

.toast__list {
    margin: 0;
    padding-left: 1.1rem;
}

.toast__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin: -0.2rem -0.15rem -0.2rem 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.toast__close:hover,
.toast__close:focus-visible {
    background: #f9fafb;
    color: #1f2937;
    outline: none;
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translateY(0.85rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-leave {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(0.65rem);
    }
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-text);
}

.badge--muted {
    background: #eef0f4;
    color: var(--color-muted);
}

.badge--danger {
    background: var(--color-danger-soft);
    color: var(--color-danger);
}

/* ---------------------------------------------------------------- tables */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
td {
    text-align: left;
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin-top: 1.25rem;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    text-decoration: none;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------- admin */

.admin-shell {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 56rem) {
    .admin-shell {
        grid-template-columns: 14rem 1fr;
    }
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-nav a {
    display: block;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.admin-nav a:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.admin-nav a[aria-current="page"] {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-weight: 600;
}

.admin-nav__heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    margin: 1rem 0 0.35rem 0.7rem;
}

.admin-people {
    list-style: none;
    margin: 0.5rem 0 1rem;
    padding: 0;
}

.admin-people__person {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.admin-people__person:last-child {
    border-bottom: 0;
}

/* Setting a restaurant up from its website, step by step, while it happens. */

.site-setup__steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-setup__step {
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    gap: 0.15rem 0.85rem;
    align-items: start;
    position: relative;
    padding: 0.5rem 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
}

.site-setup__step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 1.9rem;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: var(--color-border);
}

.site-setup__marker {
    grid-row: 1;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.15rem;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    position: relative;
    z-index: 1;
}

.site-setup__label {
    grid-row: 1;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.site-setup__note {
    grid-column: 2;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.site-setup__note:empty {
    display: none;
}

.site-setup__step.is-working .site-setup__label,
.site-setup__step.is-done .site-setup__label,
.site-setup__step.is-skipped .site-setup__label,
.site-setup__step.is-failed .site-setup__label {
    color: var(--color-text);
    font-weight: 700;
}

.site-setup__step.is-working {
    background: var(--color-accent-soft);
}

.site-setup__step.is-working .site-setup__marker {
    border-color: var(--color-accent);
    animation: track-pulse 1.6s ease-in-out infinite;
}

.site-setup__step.is-done .site-setup__marker {
    border-color: var(--color-success);
    background: var(--color-success);
}

.site-setup__step.is-done .site-setup__marker::after {
    content: "";
    position: absolute;
    left: 0.3rem;
    top: 0.1rem;
    width: 0.3rem;
    height: 0.55rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.site-setup__step.is-skipped .site-setup__marker {
    border-color: var(--color-muted);
    background: var(--color-border);
}

.site-setup__step.is-failed .site-setup__marker {
    border-color: var(--color-danger);
    background: var(--color-danger-soft);
}

.site-setup__state {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.toolbar form {
    display: flex;
    gap: 0.5rem;
}

.toolbar input[type="search"] {
    min-width: 12rem;
}

.dish-waiting {
    margin-bottom: 1.25rem;
}

.dish-waiting p {
    margin: 0 0 0.5rem;
}

.dish-waiting__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 0.25rem 1rem;
    margin: 0.75rem 0;
    padding: 0;
    list-style: none;
}

/* Shared dish drawings. One card each: the picture, what it is filed under
   and the box for telling it what to do differently. */
.dish-pictures {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dish-picture {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.dish-picture__frame {
    display: block;
    width: 10rem;
    justify-self: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--color-page);
}

.dish-picture__frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.dish-picture__name {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.dish-picture__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.5rem 1rem;
    margin: 0 0 1rem;
}

.dish-picture__facts dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}

.dish-picture__facts dd {
    margin: 0.15rem 0 0;
    overflow-wrap: anywhere;
}

.dish-picture__redraw .field {
    margin-bottom: 0.75rem;
}

@media (min-width: 40rem) {
    .dish-picture {
        grid-template-columns: 10rem minmax(0, 1fr);
    }

    .dish-picture__frame {
        justify-self: start;
    }
}

/* ---------------------------------------------------------------- seo + analytics */

.search-preview {
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    max-width: 40rem;
}

.search-preview__title {
    color: #1a0dab;
    font-size: 1.2rem;
    line-height: 1.3;
    margin: 0 0 0.15rem;
}

.search-preview__url {
    color: #006621;
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
}

.search-preview__snippet {
    color: #4d5156;
    font-size: 0.9rem;
    margin: 0;
}

.search-preview__snippet--empty {
    color: var(--color-muted);
    font-style: italic;
}

.seo-image-preview {
    max-height: 8rem;
    width: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.analytics-chart {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    height: 9rem;
    margin: 1rem 0 1.5rem;
}

.analytics-chart__col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
}

.analytics-chart__bar-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Height is set in rem on each bar. Percentage heights (and flex-grow
   via a CSS variable in the flex shorthand) do not resolve on these
   flex children, so the graph was a flat line. */
.analytics-chart__bar {
    width: 100%;
    min-height: 2px;
    background: var(--color-accent);
    border-radius: 3px 3px 0 0;
}

.analytics-chart__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: var(--color-muted);
}

/* ---------------------------------------------------------------- centred auth pages */

.narrow {
    max-width: 26rem;
    margin-inline: auto;
}

.narrow--hint {
    max-width: 42rem;
}

.narrow .card {
    padding: 1.75rem;
}

.login-credentials {
    margin-bottom: 0;
}

.login-credentials--hint {
    display: grid;
    gap: 1rem;
    align-items: start;
}

.login-credentials__fields .field:last-child {
    margin-bottom: 0;
}

.login-hint-bubble {
    position: relative;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius);
    background: var(--color-accent-soft);
    color: var(--color-text);
    font-size: 0.875rem;
    line-height: 1.45;
}

.login-hint-bubble p {
    margin: 0;
}

.login-hint-bubble strong {
    font-weight: 650;
}

.login-hint-bubble::before {
    content: "";
    position: absolute;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--color-accent-soft);
    transform: rotate(45deg);
}

@media (min-width: 40rem) {
    .login-credentials--hint {
        grid-template-columns: minmax(0, 1fr) minmax(11rem, 13rem);
    }

    .login-hint-bubble {
        margin-top: 1.65rem;
    }

    .login-hint-bubble::before {
        top: 1.1rem;
        left: -0.3rem;
    }
}

@media (max-width: 39.99rem) {
    .login-hint-bubble::before {
        top: -0.3rem;
        left: 1.25rem;
    }
}

.form-footer {
    margin-top: 1.25rem;
    font-size: 0.925rem;
    color: var(--color-muted);
}

/* ---------------------------------------------------------------- error pages */

.centred {
    min-height: 60vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.error-reference {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    background: #eef0f4;
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
}

/* ---------------------------------------------------------------- Grubble */

.g-body,
.store-body {
    --g-tomato: var(--g-crave);
    --g-ink: var(--g-charcoal);
    --g-cream: #fff9f0;
    --g-leaf: var(--g-charcoal);
    background: var(--g-cream);
    color: var(--g-charcoal);
}

.g-body,
.store-body {
    font-family: var(--font-sans);
}

.g-body main,
.store-body main,
.kit-body .kit-content {
    padding-block: 0;
}

.g-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 249, 240, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 41, 55, 0.08);
}

.g-nav__inner,
.g-wrap,
.g-more__inner,
.g-footer__inner,
.onboard {
    width: min(72rem, calc(100% - 2rem));
    margin-inline: auto;
}

.g-nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4.5rem;
}

.g-logo,
.g-nav .brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.45rem;
    color: var(--g-charcoal);
    text-decoration: none;
}

.g-nav .brand img,
.g-nav .brand-mark {
    max-height: 2.5rem;
}

.g-nav__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.1rem;
}

.g-nav__links a,
.g-nav__links button {
    color: var(--g-charcoal);
    text-decoration: none;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.g-nav__cta {
    background: var(--g-sunshine);
    color: var(--g-charcoal);
}

.g-hero {
    display: grid;
    gap: 2rem;
    padding: 2.5rem 1rem 3rem;
    width: min(72rem, calc(100% - 2rem));
    margin-inline: auto;
}

@media (min-width: 52rem) {
    .g-hero {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        min-height: 28rem;
    }
}

.g-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--g-tangerine);
}

.g-hero__tag {
    margin: 0 0 0.85rem;
}

.g-hero__tag img {
    display: block;
    width: min(22rem, 100%);
    height: auto;
}

.g-hero h1 {
    font-size: clamp(2.1rem, 1.1rem + 3.6vw, 3.8rem);
    line-height: 1.05;
    margin-bottom: 0.8rem;
}

.g-hero__lead {
    display: inline-block;
    margin: 0;
    padding: 0.7rem 1rem;
    font-size: clamp(1.35rem, 1.05rem + 1.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--g-charcoal);
    background: var(--g-sunshine);
    border-radius: 0.95rem;
}

.g-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.g-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    padding: 0;
    list-style: none;
    color: var(--color-muted);
}

.g-hero__plate {
    display: grid;
    place-items: center;
}

.g-hero__mascot {
    width: min(22rem, 80%);
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(247, 147, 30, 0.28));
    transform: translate(0.75rem, -0.75rem);
}

.g-band {
    background: var(--g-charcoal);
    color: var(--g-cream);
    padding: 3.5rem 0;
}

.g-band h2,
.g-cta h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
}

.g-steps,
.g-cards {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 48rem) {
    .g-steps,
    .g-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.g-flow {
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0 0 2rem;
    list-style: none;
}

.g-flow li {
    position: relative;
    background: var(--g-cream);
    color: var(--g-charcoal);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    font-weight: 700;
    text-align: center;
}

.g-flow li + li::before {
    content: "↓";
    display: block;
    margin: 0 0 0.55rem;
    color: var(--g-sunshine);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}

@media (min-width: 48rem) {
    .g-flow {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        gap: 1.35rem;
    }

    .g-flow li + li::before {
        content: "→";
        position: absolute;
        left: -1.05rem;
        top: 50%;
        margin: 0;
        transform: translateY(-50%);
    }
}

.g-steps {
    list-style: none;
    padding: 0;
}

.g-cards article,
.g-price {
    background: #fff;
    color: var(--g-charcoal);
    border-radius: 1.25rem;
    padding: 1.25rem;
}

.g-price__name {
    font-weight: 800;
    font-size: 1.1rem;
    margin: 0 0 0.35rem;
}

.g-price__amount {
    font-size: clamp(2.4rem, 1.5rem + 3vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 0.75rem;
    color: var(--g-charcoal);
}

.g-price__amount span {
    font-size: 0.45em;
    font-weight: 700;
}

.g-price__features {
    display: grid;
    gap: 0.45rem;
    padding: 0;
    margin: 1rem 0 1.25rem;
    list-style: none;
}

.g-price__features li::before {
    content: "✓ ";
    color: var(--g-tangerine);
    font-weight: 800;
}

.g-price__note {
    margin: 0.85rem 0 0;
    font-size: 0.9rem;
}

.g-cards {
    grid-template-columns: 1fr 1fr;
}

@media (min-width: 48rem) {
    .g-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

.g-split {
    display: grid;
    gap: 1.5rem;
    padding-block: 3rem;
}

@media (min-width: 48rem) {
    .g-split {
        grid-template-columns: 1fr 1fr;
    }
}

.g-list {
    display: grid;
    gap: 0.6rem;
    padding-left: 1.1rem;
}

.g-wrap {
    padding-block: 3rem;
}

.g-wrap details {
    background: #fff;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.6rem;
}

.g-cta {
    text-align: center;
    padding: 3.5rem 1rem 4.5rem;
}

.g-more {
    padding: 2.5rem 0 2.75rem;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    background: var(--g-cream);
}

.g-more__heading {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin: 0 0 1.1rem;
}

.g-more__grid {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 34rem) {
    .g-more__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {
    .g-more__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.g-more__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 11.5rem;
    height: 100%;
    padding: 1.15rem 0.9rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    background: #fff;
    color: var(--g-charcoal);
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.g-more__card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.g-more__card--snaptab:hover {
    border-color: rgba(104, 88, 248, 0.45);
}

.g-more__card--agreewell:hover {
    border-color: rgba(59, 122, 107, 0.45);
}

.g-more__card--blnksp8c:hover {
    border-color: rgba(28, 25, 23, 0.25);
}

.g-more__card--grubble:hover,
.g-more__card--current {
    border-color: rgba(253, 189, 45, 0.55);
}

.g-more__card--call4:hover {
    border-color: rgba(37, 99, 235, 0.45);
}

.g-more__card--current:hover {
    transform: none;
    box-shadow: none;
}

.g-more__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.g-more__logo {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.g-more__logo--grubble {
    width: 3.4rem;
}

.g-more__name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    width: 100%;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
}

.g-more__name--snaptab {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.g-more__snap {
    color: var(--g-charcoal);
}

.g-more__tab {
    color: #6858f8;
}

.g-more__name--agreewell {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: #3b7a6b;
    letter-spacing: -0.01em;
}

.g-more__name--blnksp8c {
    font-family: ui-monospace, "SF Mono", "Cascadia Code", monospace;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    text-transform: lowercase;
}

.g-more__eight {
    color: #a8a29e;
    font-weight: 700;
}

.g-more__name--grubble {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.g-more__name--call4 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    color: #2563eb;
}

.g-more__desc {
    flex: 1 1 auto;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--color-muted);
}

.g-more__host {
    margin-top: auto;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
    color: #b5b1a9;
}

.g-footer {
    background: var(--g-charcoal);
    color: var(--g-cream);
    padding: 2.25rem 0;
}

.g-footer a {
    color: inherit;
}

.g-footer .brand-wordmark {
    color: var(--g-cream);
    margin: 0.35rem 0 0.4rem;
}

.g-footer__brand .brand-mark {
    max-height: 3rem;
}

.g-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
}

.g-footer__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.g-footer__meta p {
    margin: 0;
}

.g-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.g-footer__links a[aria-current="page"] {
    text-decoration: underline;
}

.g-legal {
    max-width: 46rem;
}

.g-legal h2 {
    margin-top: 2rem;
}

.g-legal h3 {
    margin-top: 1.35rem;
}

.g-legal ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.g-legal li + li {
    margin-top: 0.28rem;
}

.g-tour-hero {
    width: min(46rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.5rem 0 1.5rem;
}

.g-tour-hero h1 {
    font-size: clamp(2rem, 1.1rem + 3vw, 3.2rem);
}

.g-tour-hero__lead {
    font-size: 1.1rem;
    color: var(--color-muted);
}

.g-tour-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.1rem;
    width: min(72rem, calc(100% - 2rem));
    margin: 0 auto 1.5rem;
}

.g-tour-jump a {
    color: var(--g-tangerine);
    font-weight: 700;
    text-decoration: none;
}

.g-tour-jump a:hover,
.g-tour-jump a:focus-visible {
    text-decoration: underline;
}

.g-tour {
    list-style: none;
    margin: 0 auto 2rem;
    padding: 0;
    width: min(72rem, calc(100% - 2rem));
    display: grid;
    gap: 3.5rem;
}

.g-shot {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 56rem) {
    .g-shot--phone {
        grid-template-columns: minmax(0, 1fr) 22rem;
        align-items: center;
        gap: 2.5rem;
    }

    .g-shot--phone:nth-child(even) .g-shot__copy {
        order: 2;
    }
}

.g-shot__step {
    margin: 0 0 0.45rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--g-sunshine);
    color: var(--g-charcoal);
    font-weight: 800;
}

.g-shot__copy p {
    color: var(--color-muted);
}

.g-shot__pair {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 52rem) {
    .g-shot__pair {
        grid-template-columns: 1fr 1fr;
    }
}

.g-device {
    margin: 0;
}

.g-device img {
    display: block;
    width: 100%;
    height: auto;
    background: #111827;
}

.g-device figcaption {
    margin-top: 0.55rem;
    font-weight: 700;
}

.g-device--phone {
    max-width: 22rem;
    margin-inline: auto;
    padding: 0.55rem;
    background: #1f2937;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
}

.g-device--phone img {
    border-radius: 1.45rem;
}

.g-device--tablet,
.g-device--desktop {
    padding: 0.65rem;
    background: #1f2937;
    border-radius: 1.15rem;
    box-shadow: var(--shadow-lg);
}

.g-device--tablet img,
.g-device--desktop img {
    border-radius: 0.7rem;
}

.g-device--photo {
    overflow: hidden;
    border-radius: 1.15rem;
    box-shadow: var(--shadow-lg);
}

.g-device--photo img {
    background: transparent;
}

.g-peek__lead {
    max-width: 40rem;
    color: rgba(255, 249, 240, 0.82);
}

.g-peek__shots {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 52rem) {
    .g-peek__shots {
        grid-template-columns: 0.7fr 1.4fr 1fr;
        align-items: stretch;
    }
}

.g-peek__shot {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0.65rem;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 249, 240, 0.08);
    border-radius: 1.15rem;
    padding: 0.7rem;
}

.g-peek__shot img {
    display: block;
    width: 100%;
    height: 12rem;
    object-fit: cover;
    object-position: top;
    border-radius: 0.8rem;
    background: #141a22;
}

.g-peek__shot--wide img {
    object-position: center;
}

.g-peek__shot span {
    font-weight: 700;
}

.g-peek__more {
    margin: 1.25rem 0 0;
}

.g-peek__more a {
    color: var(--g-sunshine);
    font-weight: 700;
}

.onboard {
    padding: 2rem 0 4rem;
}

.onboard-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0;
    list-style: none;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.onboard-steps .is-current {
    font-weight: 800;
    color: var(--g-tangerine);
}

.store-hero {
    position: relative;
    overflow: hidden;
}

.store-cover {
    height: 12rem;
    width: 120%;
    margin-left: -10%;
    background-size: cover;
    background-position: center calc(50% + 50px);
    background-color: var(--g-tangerine);
    border-radius: 0 0 50% 50% / 0 0 3.5rem 3.5rem;
}

.store-hero__card {
    width: min(44rem, calc(100% - 2rem));
    margin: calc(-6rem - 50px) auto 1.5rem;
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
}

.store-logo {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: 1rem;
}

.store-status.is-open {
    color: var(--g-tangerine);
    font-weight: 800;
}

.store-hero__brand {
    display: block;
}

.store-hero__brand h1 {
    margin: 0.35rem 0 0;
}

.store-hero__spacer {
    display: none;
}

.store-hero__details > :first-child {
    margin-top: 0.75rem;
}

.store-hero__details > :last-child {
    margin-bottom: 0;
}

/*
 * Native storefront header. The whole hero is one fixed bar whose size is
 * interpolated from --store-hero-progress (0 at rest, 1 fully collapsed), and
 * a spacer holds its resting height in the flow. Nothing depends on sticky
 * positioning or on a state class, so the collapse cannot get stuck.
 */
html.is-native-app .store-hero {
    --store-hero-progress: 0;
    overflow: visible;
}

html.is-native-app .store-hero__bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12;
    overflow: hidden;
}

/*
 * The spacer holds the resting height of the fixed bar. Its bottom margin is
 * the breathing room above the category ticker at rest, and it closes as the
 * header collapses so the ticker still ends up flush under the compact bar.
 */
html.is-native-app .store-hero__spacer {
    display: block;
    height: var(--store-hero-full, 0px);
    margin-bottom: calc(1.5rem * (1 - var(--store-hero-progress)));
}

html.is-native-app .store-hero__cover-wrap {
    overflow: hidden;
    height: calc(12rem * (1 - var(--store-hero-progress)));
}

html.is-native-app .store-hero__cover-wrap .store-cover {
    height: 12rem;
}

html.is-native-app .store-hero__card {
    width: auto;
    max-width: none;
    margin-top: calc((-6rem - 50px) * (1 - var(--store-hero-progress)));
    margin-bottom: 0;
    margin-inline: calc(1rem * (1 - var(--store-hero-progress)));
    padding-inline: calc(1.25rem - 0.25rem * var(--store-hero-progress));
    padding-bottom: calc(1.25rem - 0.6rem * var(--store-hero-progress));
    padding-top: calc(
        1.25rem - 0.6rem * var(--store-hero-progress) +
            env(safe-area-inset-top, 0px) * var(--store-hero-progress)
    );
    border-radius: calc(1.25rem * (1 - var(--store-hero-progress)));
}

/*
 * The button's inset tracks the card's own content edge, so the lane the brand
 * row keeps clear only has to cover the button's width plus a 0.5rem gap.
 */
html.is-native-app .store-hero__brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 0.65rem;
    row-gap: calc(0.35rem * (1 - var(--store-hero-progress)));
    padding-right: calc(3.5rem - 0.5rem * var(--store-hero-progress));
}

html.is-native-app .store-hero__brand .store-logo {
    flex: 0 0 auto;
    width: calc(4.5rem - 2rem * var(--store-hero-progress));
    height: calc(4.5rem - 2rem * var(--store-hero-progress));
    border-radius: calc(1rem - 0.4rem * var(--store-hero-progress));
}

/*
 * The name starts on a full-width line under the logo and its basis shrinks
 * to nothing, so it lifts up beside the logo as the header collapses.
 */
html.is-native-app .store-hero__brand h1 {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc((1 - var(--store-hero-progress)) * 100%);
    min-width: 0;
    margin: 0;
    text-align: left;
    font-size: calc(1.5rem - 0.35rem * var(--store-hero-progress));
    line-height: 1.2;
}

html.is-native-app .store-hero--compact .store-hero__brand h1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.is-native-app .store-hero--compact .store-hero__card {
    box-shadow: 0 1px 0 rgba(31, 41, 55, 0.08);
}

html.is-native-app .store-hero__details {
    overflow: hidden;
    max-height: calc(var(--store-hero-details, 24rem) * (1 - var(--store-hero-progress)));
    opacity: calc(1 - var(--store-hero-progress) * 1.8);
}

html.is-native-app .store-hero--compact .store-hero__details {
    pointer-events: none;
}

/*
 * The home button is anchored to the fixed bar rather than to the collapsing
 * card, so it holds the same spot for the whole animation.
 */
html.is-native-app .store-hero__home {
    position: absolute;
    /* Sits low and large over the cover at rest, then rises into the bar. */
    top: calc(1.5rem - 0.95rem * var(--store-hero-progress) + env(safe-area-inset-top, 0px));
    /*
     * Lines up with the card's content edge at rest (its 1rem margin plus
     * 1.25rem padding) and travels out to the screen inset as the card grows
     * to full width, so it always matches the logo's inset on the left.
     */
    right: calc(2.25rem - 1.25rem * var(--store-hero-progress));
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(3rem - 0.5rem * var(--store-hero-progress));
    height: calc(3rem - 0.5rem * var(--store-hero-progress));
    border-radius: 999px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    background: rgba(255, 255, 255, 0.94);
    color: var(--g-charcoal);
    box-shadow: 0 1px 4px rgba(31, 41, 55, 0.18);
    text-decoration: none;
}

html.is-native-app .store-hero__home svg {
    width: calc(1.5rem - 0.25rem * var(--store-hero-progress));
    height: calc(1.5rem - 0.25rem * var(--store-hero-progress));
}

html.is-native-app .store-cats {
    top: var(--store-sticky-head, 0px);
}

.store-layout {
    width: min(72rem, calc(100% - 2rem));
    margin: 0 auto 6rem;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 60rem) {
    .store-layout {
        grid-template-columns: 1fr 20rem;
        align-items: start;
    }

    .store-layout > :first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .store-basket {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        margin-top: 1.75rem;
    }
}

.store-cats {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 0.6rem 1rem;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
}

.store-cats__track {
    white-space: nowrap;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.store-cats__track::-webkit-scrollbar {
    display: none;
}

.store-cats a {
    display: inline-block;
    vertical-align: top;
    white-space: nowrap;
    text-decoration: none;
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    color: inherit;
    font-weight: 700;
}

.store-cats a + a {
    margin-left: 0.75rem;
}

.store-cats a.is-active {
    background: var(--store-accent, var(--g-tangerine));
    color: #fff;
}

.store-cat {
    padding-top: 1rem;
}

.store-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 40rem) {
    .store-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.store-dish {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    background: #fff;
    border-radius: 1.15rem;
    overflow: hidden;
    color: inherit;
    min-height: 6.5rem;
}

.store-dish__link {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.85rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    min-height: 6.5rem;
}

.store-dish__link:hover {
    color: inherit;
}

.store-dish__img {
    position: relative;
    min-height: 6.5rem;
    background-size: cover;
    background-position: center;
    background-color: #f3d7a4;
}

.store-dish__body {
    padding: 0.7rem 0.5rem 0.7rem 0;
}

.store-dish__count {
    position: absolute;
    left: 0.4rem;
    bottom: 0.4rem;
    z-index: 1;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: var(--store-accent, var(--g-tangerine));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(31, 41, 55, 0.2);
    pointer-events: none;
}

.store-dish__count[hidden] {
    display: none;
}

.store-dish__quick {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 0.35rem;
    padding: 0 0.7rem 0 0.2rem;
}

.store-dish__step {
    margin: 0;
    display: flex;
}

.store-dish__step:has([data-item-minus]:disabled) {
    display: none;
}

.store-dish__btn {
    appearance: none;
    -webkit-appearance: none;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 999px;
    border: 2px solid #fff;
    background: var(--store-accent, var(--g-tangerine));
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(31, 41, 55, 0.2);
    touch-action: manipulation;
}

.store-dish__btn svg {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.store-dish__btn--minus {
    background: #fff;
    color: var(--g-charcoal);
    border-color: var(--color-border);
}

.store-dish__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.store-dish.is-sold {
    opacity: 0.55;
}

.store-dish__price {
    font-weight: 800;
    color: var(--store-accent, var(--g-tangerine));
}

.store-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    background: #fff3d6;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

.store-basket,
.basket {
    background: #fff;
    border-radius: 1.2rem;
    padding: 1rem;
}

@media (min-width: 60rem) {
    .store-basket {
        position: sticky;
        top: 4.25rem;
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (max-width: 59.99rem) {
    .store-basket,
    .store-basket > .basket {
        position: static;
        max-height: none;
        overflow: visible;
    }
}

.basket-fulfil {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.basket-line {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--color-border);
}

.basket-totals div {
    display: flex;
    justify-content: space-between;
}

.basket-total {
    font-weight: 800;
    font-size: 1.1rem;
}

.basket-compact-price,
.basket-fulfil--compact {
    display: none;
}

@keyframes store-basket-compact-in {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes store-basket-exit {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(calc(100% + 2.5rem));
        opacity: 0;
    }
}

.store-basket-peek {
    display: none;
}

@media (max-width: 59.99rem) {
    .store-basket-peek {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 10;
        background: #fff;
        border-radius: 1.2rem 1.2rem 0 0;
        padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 32px rgba(31, 41, 55, 0.12);
        transform: translateY(100%);
        pointer-events: none;
    }

    .store-basket-peek.is-visible {
        transform: translateY(0);
        pointer-events: auto;
    }

    .store-basket-peek.is-hidden {
        transform: translateY(100%);
        pointer-events: none;
    }

    .store-basket-peek__price {
        flex: 1;
        margin: 0;
        min-width: 0;
        text-align: left;
        font-weight: 800;
        font-size: 1.1rem;
    }

    .store-basket-peek__checkout {
        flex: 0 0 auto;
        margin-left: auto;
        width: auto;
        min-height: 2.4rem;
        padding: 0.4rem 1.1rem;
        font-size: 0.95rem;
        white-space: nowrap;
        touch-action: manipulation;
    }

    .store-basket-peek__fulfil {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 0;
        flex: 1;
    }

    @media (prefers-reduced-motion: no-preference) {
        .store-basket-peek.is-visible:not(.is-exiting) {
            animation: store-basket-compact-in 0.4s ease-out both;
        }

        .store-basket-peek.is-exiting {
            animation: store-basket-exit 0.35s ease-in forwards;
            pointer-events: none;
        }
    }
}
.store-add,
.ticket-actions .button,
.prep-pills .button {
    min-height: 2.8rem;
    width: 100%;
}

.store-item,
.store-check,
.track {
    width: min(40rem, calc(100% - 2rem));
    margin: 1.5rem auto 4rem;
}

.store-item--halves {
    width: min(56rem, calc(100% - 2rem));
}

.store-item__media {
    height: 16rem;
    border-radius: 1.25rem;
    background-size: cover;
    background-position: center;
    background-color: #f3d7a4;
}

.store-item__halves {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.store-item__halves::before {
    content: "";
    display: none;
    width: 100%;
    aspect-ratio: 1;
    min-height: 8rem;
    border-radius: 1.25rem;
    background-image: var(--half-icon, url("/images/grubble/dish.svg"));
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #faf6ef;
}

.store-item__halves-side--left {
    grid-column: 1;
}

.store-item__halves-side--right {
    grid-column: 2;
}

.store-item__halves-label {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.store-item__halves-side .store-mod {
    margin-bottom: 0.4rem;
}

.store-item__icon-regen {
    margin: 0;
    z-index: 1;
    padding: 0.4rem;
    line-height: 0;
    min-height: 2.75rem;
    min-width: 2.75rem;
}

.store-item__icon-regen svg {
    display: block;
    width: 1rem;
    height: 1rem;
}

.store-mods {
    border: 0;
    padding: 0;
    margin: 1rem 0;
}

.store-mods--halves {
    margin: 1.25rem 0;
}

.store-mods__heading {
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.store-mod {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border-radius: 0.9rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.4rem;
}

.store-mod--half {
    flex-wrap: nowrap;
}

.store-mod__pick {
    display: flex;
    flex: 1 1 12rem;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.store-mod__halves {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.85rem;
}

.store-mod__halves label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .store-item__halves::before,
    .store-item__icon-regen {
        display: none;
    }
}

@media (min-width: 641px) {
    .store-item__halves {
        grid-template-areas:
            "center center"
            "left right";
    }

    .store-item__halves::before {
        display: block;
        grid-area: center;
        margin-bottom: 0.5rem;
    }

    .store-item__icon-regen {
        grid-area: center;
        justify-self: end;
        align-self: start;
    }

    .store-item__halves-side--left {
        grid-area: left;
        grid-column: auto;
    }

    .store-item__halves-side--right {
        grid-area: right;
        grid-column: auto;
    }
}

@media (min-width: 768px) {
    .store-item__halves {
        grid-template-columns: minmax(0, 1fr) min(12rem, 28vw) minmax(0, 1fr);
        grid-template-areas: none;
    }

    .store-item__halves::before {
        grid-area: auto;
        grid-column: 2;
        grid-row: 1;
        margin-bottom: 0;
    }

    .store-item__icon-regen {
        grid-area: auto;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
    }

    .store-item__halves-side--left {
        grid-area: auto;
        grid-column: 1;
        grid-row: 1;
    }

    .store-item__halves-side--right {
        grid-area: auto;
        grid-column: 3;
        grid-row: 1;
    }
}

.check-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.check-steps {
    margin-bottom: 0.75rem;
}

.check-summary {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: #faf6ef;
}

.check-summary__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.check-summary__head h2 {
    margin: 0;
    font-size: 1rem;
}

.check-summary p {
    margin: 0;
}

.store-powered {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.85rem;
    padding-bottom: 1.5rem;
}

.store-powered a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: lowercase;
}

.track-header {
    margin-bottom: 1.25rem;
}

/*
 * Native order tracking: lock document scroll and scroll only #main so iOS
 * rubber-band cannot open a void above the cream page under the status bar.
 * Powered-by lives inside #main so it travels with the receipt.
 *
 * Same shape as the customer home: pin #main to the viewport with absolute
 * insets and 100dvh. A flex column with height:100% was fighting the keyboard
 * and leaving a tall empty band after navigations.
 */
html.is-native-app:has(body.store-body .track) {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background: var(--g-cream, var(--color-page));
}

html.is-native-app body.store-body:has(.track) {
    display: block;
    position: relative;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: var(--g-cream, var(--color-page));
}

html.is-native-app body.store-body:has(.track) #main {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
}

html.is-native-app body.store-body:has(.track) .track {
    margin-top: 0.75rem;
    margin-bottom: 2rem;
}

/* Keep the notch band cream if anything still bounces past the lock. */
html.is-native-app body.store-body:has(.track)::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 0px);
    background: var(--g-cream, var(--color-page));
    pointer-events: none;
    z-index: 30;
}

html.is-native-app .track-header {
    --store-hero-progress: 1;
    position: relative;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: 3.5rem;
}

html.is-native-app .track-header__home,
html.is-native-app .track-header .store-hero__home {
    position: absolute;
    top: env(safe-area-inset-top, 0px);
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    background: rgba(255, 255, 255, 0.94);
    color: var(--g-charcoal);
    box-shadow: 0 1px 4px rgba(31, 41, 55, 0.18);
    text-decoration: none;
}

html.is-native-app .track-header__home svg,
html.is-native-app .track-header .store-hero__home svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.track-header__restaurant {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.track-header__number {
    margin: 0 0 0.75rem;
}

.track-live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-muted);
}

.track-live__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--store-accent, var(--g-tangerine));
    animation: track-pulse 2s ease-in-out infinite;
}

@keyframes track-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.85);
    }
}

.track-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
}

.track-card__title {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}

.track-card--status {
    border: 2px solid color-mix(in srgb, var(--store-accent, var(--g-tangerine)) 28%, var(--color-border));
    background: color-mix(in srgb, var(--store-accent, var(--g-tangerine)) 8%, var(--color-surface));
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.track-card--status.is-updated {
    border-color: color-mix(in srgb, var(--store-accent, var(--g-tangerine)) 45%, var(--color-border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-accent, var(--g-tangerine)) 18%, transparent);
}

.track-status {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
}

.track-eta {
    margin: 0;
    font-size: 0.95rem;
}

.track-cancelled {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-danger-soft);
    color: var(--color-danger);
    font-weight: 600;
}

.track-progress {
    --track-marker-size: 1.35rem;
    --track-step-pad-x: 0.65rem;
    --track-step-pad-y: 0.55rem;
    --track-marker-nudge: 0.1rem;
    --track-step-gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.track-progress__step {
    display: grid;
    grid-template-columns: var(--track-marker-size) 1fr;
    gap: 0 0.85rem;
    align-items: start;
    position: relative;
    padding: var(--track-step-pad-y) var(--track-step-pad-x);
    border-radius: 0.85rem;
}

.track-progress__step:not(:last-child) {
    padding-bottom: 0.85rem;
    margin-bottom: var(--track-step-gap);
}

.track-progress__step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--track-step-pad-x) + var(--track-marker-size) / 2);
    top: calc(var(--track-step-pad-y) + var(--track-marker-nudge) + var(--track-marker-size));
    bottom: calc(-1 * (var(--track-step-gap) + var(--track-step-pad-y) + var(--track-marker-nudge)));
    width: 2px;
    transform: translateX(-50%);
    background: var(--color-border);
}

.track-progress__step.is-done:not(:last-child)::after {
    background: var(--store-accent, var(--g-tangerine));
}

.track-progress__marker {
    width: var(--track-marker-size);
    height: var(--track-marker-size);
    margin-top: var(--track-marker-nudge);
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    position: relative;
    z-index: 1;
}

.track-progress__step.is-done .track-progress__marker {
    border-color: var(--store-accent, var(--g-tangerine));
    background: var(--store-accent, var(--g-tangerine));
}

.track-progress__step.is-done .track-progress__marker::after {
    content: "";
    position: absolute;
    left: 0.32rem;
    top: 0.15rem;
    width: 0.35rem;
    height: 0.6rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.track-progress__step.is-current {
    background: color-mix(in srgb, var(--color-success) 12%, var(--color-surface));
}

.track-progress__step.is-current .track-progress__marker {
    border-color: var(--color-success);
    background: var(--color-success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-success) 22%, transparent);
}

.track-progress__step.is-current .track-progress__marker::after {
    content: "";
    position: absolute;
    left: 0.32rem;
    top: 0.15rem;
    width: 0.35rem;
    height: 0.6rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.track-progress__label {
    padding-top: 0.15rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.track-progress__step.is-done .track-progress__label,
.track-progress__step.is-current .track-progress__label {
    color: var(--color-text);
    font-weight: 700;
}

.track-receipt__fulfil,
.track-receipt__payment {
    margin: 0 0 0.75rem;
}

.track-receipt__payment {
    margin-bottom: 0;
    text-align: right;
    font-size: 0.9rem;
}

.track-receipt .basket-totals {
    margin-top: 0.35rem;
}

.track-hint {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
}

/* Printed-chit QR page (phone) -------------------------------------------- */

.kit-ticket {
    max-width: 28rem;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

.kit-ticket__header {
    text-align: center;
    margin-bottom: 1rem;
}

.kit-ticket__restaurant {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kit-ticket__number {
    margin: 0.35rem 0 0;
    font-size: 2.25rem;
    line-height: 1;
}

.kit-ticket__kind {
    margin: 0.4rem 0 0;
    color: var(--color-muted);
}

.kit-ticket__flash {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: var(--color-accent-soft, #fff3e0);
    font-weight: 600;
    text-align: center;
}

.kit-ticket__actions,
.kit-ticket__banner,
.kit-ticket__receipt {
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: var(--color-surface, #fff);
}

.kit-ticket__prompt,
.kit-ticket__banner-title,
.kit-ticket__section-title {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.kit-ticket__go {
    width: 100%;
    margin-bottom: 0.5rem;
}

.kit-ticket__hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    text-align: center;
}

.kit-ticket__meta {
    margin-bottom: 0.75rem;
}

.kit-ticket__meta p {
    margin: 0;
}

.kit-ticket__notes {
    margin: 0.5rem 0 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* ---------------------------------------------------------------- kitchen */

.kit-body {
    --kit-bg: #f3f4fa;
    --kit-bg-fade: #fafbfd;
    --kit-surface: #ffffff;
    --kit-border: var(--color-border);
    --kit-text: var(--g-charcoal);
    --kit-muted: var(--color-muted);
    --kit-accent: var(--g-tangerine);
    --kit-accent-soft: var(--color-accent-soft);
    --kit-nav-bg: var(--g-charcoal);
    --kit-nav-text: var(--g-cream);
    --kit-nav-muted: rgba(255, 249, 240, 0.78);
    --kit-nav-border: rgba(255, 249, 240, 0.12);
    --color-page: var(--kit-bg);
    --color-surface: var(--kit-surface);
    --color-text: var(--kit-text);
    --color-muted: var(--kit-muted);
    --color-border: var(--kit-border);
    --color-accent: var(--g-sunshine);
    --color-accent-text: var(--g-charcoal);
    --color-accent-soft: var(--kit-accent-soft);
    --radius: 0.75rem;
    --radius-sm: 0.625rem;

    display: block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.5;
    background-color: var(--kit-bg);
    /* The fade starts past the sidebar plus the capped content column so the
       sticky form bar, which paints flat --kit-bg, never shows an edge. */
    background-image: linear-gradient(
        to right,
        var(--kit-bg) calc(16rem + 1000px),
        var(--kit-bg-fade)
    );
    color: var(--kit-text);
}

.kit-body h1,
.kit-body h2,
.kit-body h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--kit-text);
}

.kit-body h1 {
    font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.625rem);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
}

.kit-body h2 {
    font-size: 1.0625rem;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.kit-body h3 {
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin: 0 0 0.5rem;
}

.kit-module__title,
.kit-new > h2,
.kit-page > section > h2,
.kit-body .board-grid h2 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--kit-muted);
    line-height: 1.35;
    margin: 0 0 0.65rem;
}

.kit-body label {
    font-size: 0.875rem;
    font-weight: 500;
}

.kit-body .hint,
.kit-module__hint {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.45;
    color: var(--kit-muted);
}

.kit-body .button {
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: var(--radius);
    min-height: 2.75rem;
    padding: 0.65rem 1.15rem;
}

.kit-body .button--secondary {
    background: var(--kit-surface);
    border-color: var(--kit-border);
    color: var(--kit-text);
}

.kit-body .button:focus-visible {
    outline-color: var(--kit-accent);
}

.kit-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]),
.kit-body select,
.kit-body textarea {
    min-height: 2.75rem;
    border-color: var(--kit-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.kit-shell {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
}

.kit-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(31, 41, 55, 0.45);
    border: 0;
    padding: 0;
    cursor: pointer;
}

.kit-nav-backdrop[hidden] {
    display: none;
}

.kit-body.is-nav-open {
    overflow: hidden;
}

.kit-mobile-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    background: var(--kit-nav-bg);
    color: var(--kit-nav-text);
    border-bottom: 1px solid var(--kit-nav-border);
}

.kit-nav-toggle,
.kit-nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--kit-nav-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 249, 240, 0.08);
    color: var(--kit-nav-text);
    cursor: pointer;
    flex-shrink: 0;
}

.kit-mobile-head__logo {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.kit-mobile-head__title {
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.kit-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(18rem, calc(100vw - 3rem));
    background: var(--kit-nav-bg);
    color: var(--kit-nav-text);
    border-right: 0;
    padding: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.22s ease, visibility 0s linear 0.22s;
    pointer-events: none;
    visibility: hidden;
}

.kit-body.is-nav-open .kit-side {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    transition: transform 0.22s ease, visibility 0s;
}

.kit-side__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem 0.35rem;
}

.kit-nav-close {
    display: inline-flex;
}

.kit-side .kit-nav-close {
    border-color: rgba(255, 249, 240, 0.2);
    background: transparent;
    color: var(--g-cream);
}

.kit-logo {
    color: var(--kit-nav-text);
    min-width: 0;
}

.kit-side .brand-wordmark {
    color: var(--kit-nav-text);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.kit-rest {
    margin: 0;
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

.kit-support {
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--g-cream);
    background: rgba(255, 249, 240, 0.12);
    border-radius: var(--radius-sm);
}

.kit-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.35rem 0.65rem;
}

.kit-nav a,
.kit-side__foot a,
.kit-side__foot button {
    color: var(--kit-nav-muted);
    text-decoration: none;
    background: none;
    border: 0;
    font: inherit;
    display: block;
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-sm);
    min-height: 2.75rem;
    line-height: 1.35;
}

.kit-nav a:hover,
.kit-side__foot a:hover,
.kit-side__foot button:hover {
    background: rgba(255, 249, 240, 0.1);
    color: var(--kit-nav-text);
}

.kit-nav a[aria-current="page"] {
    background: var(--g-sunshine);
    color: var(--g-charcoal);
    font-weight: 600;
}

.kit-toggle {
    padding: 0.5rem 1rem;
}

.kit-toggle .button {
    width: 100%;
}

.kit-side__foot {
    margin-top: auto;
    padding: 0.75rem 0.65rem 0;
    border-top: 1px solid var(--kit-nav-border);
}

.kit-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 55.99rem) {
    :root {
        --kit-mobile-head-offset: 4.05rem;
    }

    html.is-native-app {
        --kit-mobile-head-offset: var(--app-native-head-shell);
    }

    .kit-mobile-head {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 60;
        border-bottom-color: var(--kit-border);
    }

    html.is-native-app .kit-side__head {
        padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
    }

    .kit-top {
        border-bottom: 0;
        top: var(--kit-mobile-head-offset);
        z-index: 45;
    }

    .kit-main {
        position: relative;
        z-index: 51;
        padding-top: var(--kit-mobile-head-offset);
    }

    .kit-body.is-nav-open .kit-main {
        z-index: auto;
    }

    .kit-body.is-nav-open .kit-side {
        z-index: 65;
    }
}

.kit-top {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--kit-surface);
    border-bottom: 1px solid var(--kit-border);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.08);
}

.kit-top__brand {
    display: none;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
}

.kit-top__logo {
    width: 2rem;
    height: 2rem;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.kit-top__name {
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kit-top__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
}

.kit-busy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kit-busy label {
    display: inline;
    margin: 0;
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--kit-muted);
}

.kit-busy select {
    width: auto;
    min-width: 10.5rem;
    flex: 0 0 auto;
}

.kit-content {
    flex: 1 1 auto;
    --kit-pad-x: 1rem;
    padding-inline: var(--kit-pad-x);
    padding-bottom: 4rem;
    width: 100%;
    max-width: 1000px;
    margin-inline: 0;
}

@media (min-width: 56rem) {
    .kit-nav-backdrop,
    .kit-mobile-head {
        display: none;
    }

    .kit-side .kit-nav-close {
        display: none;
    }

    html.is-native-app .app-native-head .kit-nav-toggle {
        display: none;
    }

    .kit-shell {
        display: block;
    }

    .kit-side {
        position: fixed;
        inset: 0 auto 0 0;
        width: 16rem;
        transform: none;
        transition: none;
        pointer-events: auto;
        visibility: visible;
        overflow-y: auto;
    }

    .kit-main {
        margin-left: 16rem;
    }

    .kit-side__head {
        padding-top: 1rem;
    }

    .kit-content {
        --kit-pad-x: 1.75rem;
        padding-bottom: 3rem;
    }

    .kit-page__head,
    .kit-head {
        margin-inline: calc(-1 * var(--kit-pad-x));
        padding-inline: var(--kit-pad-x);
    }

    .kit-top__brand {
        display: flex;
    }

    html.is-native-app .kit-side {
        z-index: 61;
    }

    html.is-native-app .kit-side__head {
        padding-top: calc(1rem + env(safe-area-inset-top, 0px));
    }

    html.is-native-app .kit-main {
        padding-top: var(--app-native-head-shell);
    }

    html.is-native-app .kit-top {
        top: auto;
        padding-top: 0.75rem;
    }
}

.kit-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kit-page__head,
.kit-head {
    margin-top: 0;
    margin-bottom: 1.25rem;
    margin-inline: calc(-1 * var(--kit-pad-x, 1rem));
    padding: 1.5rem var(--kit-pad-x, 1rem) 1rem;
}

.kit-page__lead,
.kit-head .muted {
    margin: 0.4rem 0 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--kit-muted);
}

.kit-module {
    background: var(--kit-surface);
    border: 1px solid var(--kit-border);
    border-radius: var(--radius);
    padding: 1.15rem 1rem;
    color: var(--kit-text);
}

.kit-module + .kit-module,
.kit-module + .kit-form-actions {
    margin-top: 0.15rem;
}

.kit-page--settings .kit-module + .kit-module,
.kit-page--settings .kit-module + .kit-form-actions {
    margin-top: 1rem;
}

.kit-module__hint {
    margin: 0 0 1rem;
}

.kit-module .field:last-child {
    margin-bottom: 0;
}

.kit-module .checkbox {
    margin-bottom: 0.75rem;
}

.kit-delivery-map {
    height: 16rem;
    margin-top: 0.75rem;
    border: 1px solid var(--kit-border);
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
    background: #e2e8f0;
}

.kit-delivery-map .kit-delivery-map__label {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: none;
    font-family: var(--font-sans);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.1rem 0.3rem;
    pointer-events: none;
}

.kit-delivery-map .kit-delivery-map__label--on {
    color: #15803d;
}

.kit-delivery-map .kit-delivery-map__label--off {
    color: #b91c1c;
}

.kit-delivery-map + .hint,
.kit-fsa-suggestions + .hint {
    margin-top: 0.5rem;
}

.kit-fsa-suggestions__lead {
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
}

.kit-fsa-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.kit-fsa-suggestion {
    appearance: none;
    border: 1px solid var(--kit-border);
    border-radius: var(--radius-sm);
    background: var(--kit-surface);
    color: var(--kit-text);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.45rem 0.65rem;
    cursor: pointer;
}

.kit-fsa-suggestion.is-selected {
    border-color: var(--kit-accent);
    background: var(--kit-accent-soft);
    color: var(--kit-accent);
}

.kit-fsa-suggestion:focus-visible {
    outline: 2px solid var(--kit-accent);
    outline-offset: 2px;
}

.kit-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: 0.5rem;
    padding: 0.85rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--kit-bg) 70%, transparent);
}

.kit-form-actions .button {
    width: 100%;
}

.kit-field-row {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 40rem) {
    .kit-field-row--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kit-field-row--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.kit-stats {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 48rem) {
    .kit-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.kit-body .stat {
    border-radius: var(--radius);
    padding: 1rem;
    background: var(--kit-surface);
    color: var(--kit-text);
}

.kit-body .stat__value {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
}

.kit-body .stat__label {
    font-size: 0.75rem;
}

.kit-body .card {
    border-radius: var(--radius);
    padding: 1.15rem 1rem;
    box-shadow: none;
    background: var(--kit-surface);
    color: var(--kit-text);
}


.kit-new {
    margin-bottom: 1.25rem;
}

.kit-content:has(.board) {
    display: flex;
    flex-direction: column;
    max-width: none;
}

.kit-page:has(.board) {
    flex: 1 1 auto;
    min-height: 0;
}

.board {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.kit-order-grid,
.board-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 48rem) {
    .kit-order-grid {
        grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    }

    .board-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        flex: 1 1 auto;
    }

    .board-col {
        min-height: 100%;
    }
}

.board-col {
    background: var(--kit-surface);
    border: 1px solid var(--kit-border);
    border-radius: var(--radius);
    padding: 0.85rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 4rem;
}

.board-col h2 {
    margin: 0;
}

.board-col--new {
    background: color-mix(in srgb, var(--g-sunshine) 14%, var(--kit-surface));
    border-color: color-mix(in srgb, var(--g-sunshine) 38%, var(--kit-border));
}

.board-col--new h2 {
    color: color-mix(in srgb, var(--g-sunshine) 55%, var(--kit-text));
}

.board-col--preparing {
    background: color-mix(in srgb, var(--g-tangerine) 12%, var(--kit-surface));
    border-color: color-mix(in srgb, var(--g-tangerine) 35%, var(--kit-border));
}

.board-col--preparing h2 {
    color: color-mix(in srgb, var(--g-tangerine) 55%, var(--kit-text));
}

.board-col--ready {
    background: color-mix(in srgb, #4ade80 12%, var(--kit-surface));
    border-color: color-mix(in srgb, #4ade80 35%, var(--kit-border));
}

.board-col--ready h2 {
    color: color-mix(in srgb, #4ade80 45%, var(--kit-text));
}

.board-col--out_for_delivery {
    background: color-mix(in srgb, #60a5fa 12%, var(--kit-surface));
    border-color: color-mix(in srgb, #60a5fa 35%, var(--kit-border));
}

.board-col--out_for_delivery h2 {
    color: color-mix(in srgb, #60a5fa 50%, var(--kit-text));
}

.kit-main:has(.kit-page--board) {
    min-height: 100dvh;
}

.kit-content:has(.kit-page--board) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.board-live {
    display: inline-flex;
    align-items: center;
}

.board-live__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--color-success);
    animation: track-pulse 2s ease-in-out infinite;
}

.board-live.is-offline .board-live__dot {
    background: var(--color-muted);
    animation: none;
    opacity: 0.7;
}

.kit-page--board {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.kit-page--board .board {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.kit-page--board .board-grid {
    flex: 1;
    min-height: 0;
    align-items: stretch;
}

.kit-page--board .board-col {
    min-height: 80%;
}

/* Live board: the counter screen framed like a dedicated display ---------- */
.board-screen {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    padding: 10px;
}

.board-screen__frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 22rem;
    border: 0.9rem solid var(--g-charcoal);
    border-radius: 1.85rem;
    background: #0b0d12;
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--g-charcoal) 70%, #fff),
        var(--shadow-lg);
}


.ticket {
    background: var(--kit-surface);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--kit-border);
    color: var(--kit-text);
}

.ticket--new {
    border-color: var(--g-sunshine);
    box-shadow: 0 0 0 1px var(--color-accent-soft);
}

.ticket header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.ticket-total {
    font-weight: 600;
    margin-top: 0.5rem;
}

.ticket-note {
    padding: 0.5rem 0.65rem;
    background: var(--kit-accent-soft);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.ticket-note {
    padding: 0.5rem 0.65rem;
    background: var(--kit-accent-soft);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.ticket-actions,
.prep-pills {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

#menu-page {
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
}

#menu-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-manage {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-manage .ai-hint,
.menu-import__status {
    margin: 0.6rem 0 0;
}

.menu-row,
.hours-row {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--kit-border);
}

.menu-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.menu-row:has(.menu-row__photo) {
    grid-template-columns: 3rem minmax(0, 1fr);
}

.menu-row:last-of-type {
    border-bottom: 0;
}

.hours-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    justify-content: space-between;
}

.hours-row:last-of-type {
    border-bottom: 0;
}

.hours-row__day {
    flex: 1 1 100%;
    font-weight: 600;
    font-size: 0.9375rem;
}

.hours-row__times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    flex: 1 1 auto;
}

.hours-row__times input[type="time"] {
    width: auto;
    min-width: 7rem;
    flex: 1 1 7rem;
}

@media (min-width: 40rem) {
    .hours-row {
        flex-wrap: nowrap;
    }

    .hours-row__day {
        flex: 0 0 6rem;
    }
}

#menu-page input.menu-cat-name {
    font: inherit;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    min-height: auto;
}

.menu-cat-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.menu-cat-head h2 {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    text-transform: none;
    color: var(--kit-text);
    margin: 0;
}

.menu-cat-delete {
    flex-shrink: 0;
    padding: 0.4rem;
    line-height: 0;
    min-height: 2.75rem;
    min-width: 2.75rem;
}

.menu-cat-delete svg {
    display: block;
    width: 1rem;
    height: 1rem;
}

.menu-row__photo {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.menu-row__body {
    min-width: 0;
}

.menu-row__body strong {
    display: block;
    font-size: 0.9375rem;
}

.menu-row__body p {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
}

.menu-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 39.99rem) {
    .menu-row:has(.menu-row__photo) {
        grid-template-areas:
            "photo body"
            "actions actions";
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .menu-row:not(:has(.menu-row__photo)) {
        grid-template-areas:
            "body"
            "actions";
        grid-template-columns: minmax(0, 1fr);
    }

    .menu-row__photo {
        grid-area: photo;
    }

    .menu-row__body,
    .menu-row > :not(.menu-row__photo):not(.menu-row__actions) {
        grid-area: body;
        min-width: 0;
    }

    .menu-row__actions {
        grid-area: actions;
        display: flex;
        gap: 0.5rem;
    }

    .menu-row__actions > .button,
    .menu-row__actions > form {
        flex: 1 1 0;
        min-width: 0;
    }

    .menu-row__actions > form {
        display: flex;
    }

    .menu-row__actions > form .button,
    .menu-row__actions > .button {
        width: 100%;
    }
}

@media (min-width: 40rem) {
    .menu-row:has(.menu-row__photo) {
        grid-template-columns: 3rem minmax(0, 1fr) auto;
    }

    .menu-row:not(:has(.menu-row__photo)) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .menu-row__actions {
        justify-self: end;
    }
}

.menu-add {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    margin-top: 0.25rem;
}

.menu-dialog {
    border: 1px solid var(--kit-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    width: min(40rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}

.menu-dialog h2 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--kit-text);
    margin: 0 0 1rem;
}

.menu-dialog fieldset.field {
    border: 0;
    margin: 0 0 1.1rem;
    padding: 0;
    min-width: 0;
}

.menu-dialog legend {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    padding: 0;
}

.menu-dialog .checkbox {
    margin-bottom: 0.75rem;
}

.menu-dialog .checkbox:last-child {
    margin-bottom: 0;
}

.menu-dialog::backdrop {
    background: rgba(31, 41, 55, 0.45);
}

.menu-dialog__photo {
    max-height: 5rem;
    border-radius: var(--radius-sm);
}

.menu-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.menu-options-table .table-wrap {
    margin-bottom: 0.5rem;
}

.menu-options-table td input {
    width: 100%;
    min-width: 0;
}

.menu-options-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

.menu-options-default-col {
    width: 1%;
    text-align: center;
    white-space: nowrap;
}

.menu-options-default-col input {
    width: auto;
}

.kit-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--kit-surface);
    border: 1px solid var(--kit-border);
    border-radius: var(--radius);
}

.kit-toolbar input[type="search"],
.kit-toolbar select,
.kit-toolbar input[type="date"] {
    width: 100%;
}

.kit-toolbar .button {
    width: 100%;
}

@media (min-width: 48rem) {
    .kit-toolbar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .kit-toolbar input[type="search"] {
        flex: 1 1 12rem;
        min-width: 10rem;
    }

    .kit-toolbar select,
    .kit-toolbar input[type="date"] {
        width: auto;
        flex: 0 1 auto;
    }

    .kit-toolbar .button {
        width: auto;
    }
}

.kit-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.kit-history-card {
    display: block;
    padding: 0.85rem 1rem;
    background: var(--kit-surface);
    border: 1px solid var(--kit-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
}

.kit-history-card:hover {
    border-color: var(--kit-accent);
    color: inherit;
}

.kit-history-card__top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.kit-history-card__order {
    font-weight: 600;
}

.kit-history-card__total {
    font-weight: 600;
    color: var(--kit-accent);
}

.kit-history-card__meta {
    font-size: 0.8125rem;
    color: var(--kit-muted);
}

.kit-history-table {
    display: none;
}

@media (min-width: 48rem) {
    .kit-history-list {
        display: none;
    }

    .kit-history-table {
        display: block;
        background: var(--kit-surface);
        border: 1px solid var(--kit-border);
        border-radius: var(--radius);
        padding: 0.25rem 0.5rem;
    }
}

.kit-marketing-link {
    display: block;
    padding: 0.75rem 0.85rem;
    background: var(--kit-surface);
    border: 1px solid var(--kit-border);
    border-radius: var(--radius-sm);
    word-break: break-all;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}

.kit-marketing-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--kit-surface);
    border-radius: var(--radius-sm);
}

.kit-marketing-qr img {
    border-radius: var(--radius-sm);
}

.kit-marketing-qr__note {
    margin: 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--kit-muted);
}

.kit-order-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kit-order-detail__back {
    font-size: 0.8125rem;
    font-weight: 500;
}

.kit-order-detail__meta {
    font-size: 0.8125rem;
    color: var(--kit-muted);
}

.kit-order-detail__lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kit-order-detail__lines li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--kit-border);
}

.kit-order-detail__lines li:last-child {
    border-bottom: 0;
}

.kit-order-detail__total {
    font-size: 1.125rem;
    font-weight: 600;
}

.field__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.field__header label {
    margin-bottom: 0;
}

.ai-hint {
    color: var(--color-danger);
}

.ai-hint[hidden] {
    display: none;
}

.inline {
    display: inline;
}

.ticket-dispatch {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--kit-border, var(--color-border));
}

.ticket-dispatch__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.ticket-dispatch__form select {
    flex: 1 1 8rem;
    min-height: 2.4rem;
}

.ticket-dispatch__assigned {
    margin: 0 0 0.4rem;
    font-size: 0.875rem;
}

.ticket-dispatch--accept {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    margin-bottom: 0.5rem;
}

.ticket-dispatch--accept select {
    width: 100%;
    min-height: 2.4rem;
}

.driver-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.driver-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: var(--kit-surface);
    border: 1px solid var(--kit-border, var(--color-border));
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
}

.driver-card--online {
    background: var(--color-success-soft);
    border-color: var(--color-success);
}

.driver-card--offline {
    background: var(--color-danger-soft);
    border-color: var(--color-danger);
}

a.driver-card:hover {
    border-color: var(--kit-accent);
    color: inherit;
}

.driver-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.driver-card__owed {
    margin: 0.25rem 0 0;
    font-weight: 600;
    color: var(--kit-text, var(--color-text));
}

.driver-card__credit {
    margin: 0.25rem 0 0;
    font-weight: 600;
    color: var(--kit-text, var(--color-text));
}

.driver-card__settled {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: var(--kit-muted, var(--color-muted));
}

.driver-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.driver-card__pay {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.kit-body .driver-card__pay input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="image"]) {
    width: 5.5rem;
    min-height: 2.25rem;
    margin: 0;
    padding: 0.4rem 0.5rem;
}

.driver-tips-owed {
    margin-top: 1rem;
}

.driver-earnings {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
}

.driver-earnings div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.driver-earnings__total {
    font-weight: 700;
    border-top: 1px solid var(--kit-border, var(--color-border));
    padding-top: 0.65rem;
}

.driver-ledger__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

.driver-ledger__head .kit-module__title {
    margin-bottom: 0;
}

.driver-ledger__head .kit-module__hint {
    margin: 0.65rem 0 0;
}

.driver-ledger__filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.driver-ledger__filter select {
    width: auto;
    min-width: 9rem;
}

.kit-body .driver-ledger__filter .button--pill {
    border-radius: 999px;
}

.driver-ledger {
    overflow-x: auto;
    margin: 0 0 1.25rem;
    background: var(--kit-bg, var(--color-page));
    border: 1px solid var(--kit-border, var(--color-border));
    border-radius: var(--radius-sm);
}

.driver-ledger table {
    margin: 0;
}

.driver-ledger th,
.driver-ledger td {
    white-space: nowrap;
}

.driver-ledger th:nth-child(n+3),
.driver-ledger td:nth-child(n+3) {
    text-align: right;
}

.drive-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #111827;
    color: #fff9f0;
    font-family: Inter, var(--font-sans);
}

.drive-top {
    padding: 1rem 1.1rem 0.5rem;
}

.drive-top__team {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.drive-top__note {
    margin: 0.2rem 0 0;
    color: rgba(255, 249, 240, 0.7);
    font-size: 0.8rem;
}

.drive-main {
    flex: 1;
    padding: 0.75rem 1.1rem 5.5rem;
}

.drive-nav {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #0b1220;
    border-top: 1px solid rgba(255, 249, 240, 0.12);
}

.drive-nav a,
.drive-nav button {
    background: none;
    border: 0;
    color: rgba(255, 249, 240, 0.75);
    padding: 0.9rem 0.4rem;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.drive-nav a[aria-current="page"],
.drive-nav a:hover,
.drive-nav button:hover {
    color: #fdbd2d;
}

.drive-presence {
    text-align: center;
    margin: 0.5rem 0 1.25rem;
}

.drive-presence__btn {
    width: 100%;
    min-height: 3.4rem;
    font-size: 1.2rem;
    background: #374151;
    color: #fff9f0;
}

.drive-presence__btn.is-on {
    background: #146c43;
}

.drive-job,
.drive-tonight,
.drive-page section,
.drive-empty {
    background: #1f2937;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.drive-job__kicker,
.drive-job__number {
    margin: 0;
    color: #fdbd2d;
    font-weight: 700;
}

.drive-job h2,
.drive-page h1,
.drive-page h2,
.drive-tonight h2 {
    color: #fff9f0;
}

.drive-job__address {
    font-size: 1.15rem;
    font-weight: 600;
}

.drive-job__status {
    margin: 0.35rem 0 0.75rem;
    font-weight: 700;
}

.drive-job__status.is-wait {
    color: #fdbd2d;
}

.drive-job__status.is-ready {
    color: #4ade80;
    font-size: 1.15rem;
}

.drive-actions {
    display: grid;
    gap: 0.6rem;
    margin-top: 1rem;
}

.drive-actions .button,
.drive-actions__nav {
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.drive-problem {
    display: grid;
    gap: 0.4rem;
}

.drive-problem input {
    min-height: 2.8rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 249, 240, 0.2);
    background: #111827;
    color: #fff9f0;
    padding: 0.5rem 0.75rem;
}

.drive-tonight__total {
    font-size: 1.25rem;
    font-weight: 700;
}

.drive-range {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.drive-switch {
    margin-bottom: 1rem;
}

.drive-switch select {
    width: 100%;
    min-height: 2.6rem;
    margin-top: 0.3rem;
}

.drive-body .hint,
.drive-body .muted,
.drive-body .lead {
    color: rgba(255, 249, 240, 0.72);
}

.drive-job__problem {
    color: #fca5a5;
}

/* Capacitor iOS / Android shell: pad notches and the home indicator. */

html.is-native-app .site-header,
html.is-native-app .g-nav {
    padding-top: env(safe-area-inset-top, 0px);
}

/*
 * The app shell renders its own header and no footer, but it also opens on
 * /login, which is a website page the phone marks native from script. Hide the
 * website chrome wherever it still turns up inside the apps.
 */
html.is-native-app .app-body .site-header,
html.is-native-app .site-footer {
    display: none;
}

/* The marketing footer stays: keep its last line off the home indicator. */
html.is-native-app .g-footer {
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
}

/* Powered-by is the last line of every storefront page, ordering and tracking. */
html.is-native-app .store-powered {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

html.is-native-app .drive-main--native {
    padding-top: var(--app-native-head-offset);
    /*
     * The driver nav sticks to the bottom of the shell and grows by the home
     * indicator, so the content above it has to clear both. The customer home
     * drops its bottom padding instead; that rule is kept off this shell.
     */
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

html.is-native-app .drive-context {
    padding: 0 1.1rem 0.75rem;
}

html.is-native-app .drive-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    grid-template-columns: repeat(3, 1fr);
}

html.is-native-app .store-basket-peek {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

/* Customer app shell for iOS / Android. */

/*
 * How far down a native page has to start. The header is fixed and paints
 * under the status bar, so -shell is the header itself and -offset adds the
 * gap a page wants below it. Every shell reads these rather than repeating
 * the sum: a second copy is how the driver page and the customer home drifted
 * apart in the first place.
 */
html.is-native-app {
    --app-native-head-body: calc(0.65rem + 2.75rem + 0.65rem);
    --app-native-head-gap: 0.75rem;
    --app-native-head-shell: calc(var(--app-native-head-body) + env(safe-area-inset-top, 0px));
    --app-native-head-offset: calc(var(--app-native-head-shell) + var(--app-native-head-gap));
}

html.is-native-app .kit-mobile-head {
    display: none;
}

@media (min-width: 40rem) {
    html.is-native-app {
        --app-native-head-gap: 1rem;
    }
}

.app-native-head,
.app-native-drawer,
.app-native-nav-backdrop {
    display: none;
}

html.is-native-app .app-native-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    z-index: 60;
}

html.is-native-app .app-native-drawer {
    display: flex;
    z-index: 61;
}

.app-native-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    border: 0;
    background: rgba(17, 24, 39, 0.45);
    cursor: pointer;
}

.app-native-nav-backdrop[hidden] {
    display: none;
}

.app-body.is-app-nav-open {
    overflow: hidden;
}

.app-native-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    align-items: center;
    column-gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: var(--color-surface);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

/*
 * iOS rubber-band backup: if the fixed header still travels with an overscroll,
 * paint a solid continuation above it so cream/slate cannot flash under the
 * status bar. Customer /app also locks document scroll (below) so this rarely
 * has to fire there.
 */
.app-native-head::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -100vmax;
    height: 100vmax;
    background: var(--color-surface);
    pointer-events: none;
    z-index: -1;
}

.app-native-head__start {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

html.is-native-app .app-native-head {
    padding-top: calc(0.65rem + env(safe-area-inset-top, 0px));
}

.app-native-nav-toggle,
.app-native-nav-close,
.app-native-head .kit-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-page);
    color: var(--color-text);
    cursor: pointer;
    flex-shrink: 0;
}

.app-native-head__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.app-native-head__brand img {
    display: block;
    max-height: 1.75rem;
    width: auto;
}

.app-native-head__brand .brand-wordmark {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--color-text);
}

.app-native-head__mode {
    flex-shrink: 0;
}

.app-mode-icons {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.15rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-page);
}

.app-mode-icons form {
    margin: 0;
}

.app-mode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 0;
    border-radius: calc(var(--radius-sm) - 2px);
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
}

.app-mode-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.app-mode-icon:hover,
.app-mode-icon:focus-visible {
    color: var(--color-text);
    background: rgba(17, 24, 39, 0.06);
}

.app-mode-icon.is-active {
    background: var(--g-sunshine);
    color: var(--g-charcoal);
}

/* Restaurant native header matches the kitchen side menu. */
html.is-native-app .kit-body .app-native-head {
    background: var(--kit-nav-bg);
    color: var(--kit-nav-text);
    border-bottom-color: var(--kit-nav-border);
}

html.is-native-app .kit-body .app-native-head::before {
    background: var(--kit-nav-bg);
}

html.is-native-app .kit-body .app-native-head .kit-nav-toggle {
    border-color: var(--kit-nav-border);
    background: rgba(255, 249, 240, 0.08);
    color: var(--kit-nav-text);
}

html.is-native-app .kit-body .app-native-head__brand .brand-wordmark {
    color: var(--kit-nav-text);
}

html.is-native-app .kit-body .app-mode-icons {
    border-color: var(--kit-nav-border);
    background: rgba(255, 249, 240, 0.08);
}

html.is-native-app .kit-body .app-mode-icon {
    color: var(--kit-nav-muted);
}

html.is-native-app .kit-body .app-mode-icon:hover,
html.is-native-app .kit-body .app-mode-icon:focus-visible {
    color: var(--kit-nav-text);
    background: rgba(255, 249, 240, 0.1);
}

/* Driver native header matches the drive shell. */
html.is-native-app .drive-body .app-native-head {
    background: #0b1220;
    color: #fff9f0;
    border-bottom-color: rgba(255, 249, 240, 0.12);
}

html.is-native-app .drive-body .app-native-head::before {
    background: #0b1220;
}

html.is-native-app .drive-body .app-native-head .app-native-nav-toggle {
    border-color: rgba(255, 249, 240, 0.12);
    background: rgba(255, 249, 240, 0.08);
    color: #fff9f0;
}

html.is-native-app .drive-body .app-native-head__brand .brand-wordmark {
    color: #fff9f0;
}

html.is-native-app .drive-body .app-mode-icons {
    border-color: rgba(255, 249, 240, 0.12);
    background: rgba(255, 249, 240, 0.08);
}

html.is-native-app .drive-body .app-mode-icon {
    color: rgba(255, 249, 240, 0.75);
}

html.is-native-app .drive-body .app-mode-icon:hover,
html.is-native-app .drive-body .app-mode-icon:focus-visible {
    color: #fff9f0;
    background: rgba(255, 249, 240, 0.1);
}

html.is-native-app .app-mode-switcher--fixed {
    display: none;
}

/*
 * Native mode switch: the page slides in the direction of the top-right icons.
 *
 * The two pages have to touch, and only the browser can hold them both: the
 * page being left is a snapshot taken before it unloaded. partials/head opts
 * the app into cross-document view transitions and native-app.js keeps one
 * only for a mode switch, so ordinary navigations still cut straight over.
 */
html.is-mode-arrive-left::view-transition-old(root),
html.is-mode-arrive-left::view-transition-new(root),
html.is-mode-arrive-right::view-transition-old(root),
html.is-mode-arrive-right::view-transition-new(root) {
    /* Replaces the cross-fade the browser animates by default. */
    mix-blend-mode: normal;
    animation-duration: 0.3s;
    animation-timing-function: ease;
    animation-fill-mode: both;
}

html.is-mode-arrive-right::view-transition-old(root) {
    animation-name: grubble-mode-leave-left;
}

html.is-mode-arrive-right::view-transition-new(root) {
    animation-name: grubble-mode-arrive-right;
}

html.is-mode-arrive-left::view-transition-old(root) {
    animation-name: grubble-mode-leave-right;
}

html.is-mode-arrive-left::view-transition-new(root) {
    animation-name: grubble-mode-arrive-left;
}

@keyframes grubble-mode-leave-left {
    to {
        transform: translateX(-100%);
    }
}

@keyframes grubble-mode-leave-right {
    to {
        transform: translateX(100%);
    }
}

@keyframes grubble-mode-arrive-right {
    from {
        transform: translateX(100%);
    }
}

@keyframes grubble-mode-arrive-left {
    from {
        transform: translateX(-100%);
    }
}

/*
 * Where a WebView cannot hold both pages, the arriving one is parked off-screen
 * before its first paint and native-app.js slides it in on a rendered frame. A
 * CSS animation on load is no use there: its clock starts when the document
 * resolves style, which on iOS and Android is long before the page is shown.
 */
html.is-native-app.is-mode-slide {
    overflow-x: hidden;
}

html.is-native-app.is-mode-slide body {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

html.is-native-app.is-mode-slide-left body {
    transform: translate3d(-100%, 0, 0);
}

html.is-native-app.is-mode-slide-right body {
    transform: translate3d(100%, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    html.is-native-app.is-mode-slide-left body,
    html.is-native-app.is-mode-slide-right body {
        transform: none;
    }
}

.app-native-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(18rem, calc(100vw - 3rem));
    flex-direction: column;
    background: var(--color-surface);
    color: var(--color-text);
    padding: 0 0 1.25rem;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    pointer-events: none;
    visibility: hidden;
}

.app-body.is-app-nav-open .app-native-drawer {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.app-native-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem 0.35rem;
}

html.is-native-app .app-native-drawer__head {
    padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
}

.app-native-drawer__brand {
    color: var(--color-text);
    min-width: 0;
}

.app-native-drawer__brand .brand-wordmark {
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.app-native-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.35rem 0.65rem;
}

.app-native-drawer__nav a,
.app-native-drawer__nav button {
    color: var(--color-muted);
    text-decoration: none;
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.75rem;
    font: inherit;
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
    line-height: 1.35;
}

.app-native-drawer__nav a:hover,
.app-native-drawer__nav button:hover {
    background: rgba(17, 24, 39, 0.06);
    color: var(--color-text);
}

.app-native-drawer__nav a[aria-current="page"] {
    background: var(--g-sunshine);
    color: var(--g-charcoal);
    font-weight: 600;
}

/* Driver native drawer matches the drive shell. */
html.is-native-app .drive-body .app-native-drawer {
    background: #0b1220;
    color: #fff9f0;
}

html.is-native-app .drive-body .app-native-drawer__brand,
html.is-native-app .drive-body .app-native-drawer__brand .brand-wordmark {
    color: #fff9f0;
}

html.is-native-app .drive-body .app-native-nav-close {
    border-color: rgba(255, 249, 240, 0.12);
    background: rgba(255, 249, 240, 0.08);
    color: #fff9f0;
}

html.is-native-app .drive-body .app-native-drawer__nav a,
html.is-native-app .drive-body .app-native-drawer__nav button {
    color: rgba(255, 249, 240, 0.78);
}

html.is-native-app .drive-body .app-native-drawer__nav a:hover,
html.is-native-app .drive-body .app-native-drawer__nav button:hover {
    background: rgba(255, 249, 240, 0.1);
    color: #fff9f0;
}

/*
 * Customer native /app: keep the canvas white under the header, put cream only
 * on #main, and make #main the scroll container. Document-level rubber-band is
 * what opens the cream strip between the iOS status bar and the fixed header;
 * scrolling inside #main keeps that bounce below the header instead.
 *
 * Pin #main with absolute insets instead of a flex column. On iOS the fixed
 * header (and drawer) sit in the body as flex children; first layout after
 * login was still reserving space for them while padding-top also cleared the
 * header, so the page started one bar too low. height:100% then drifted after
 * keyboard / navigation and flex-filled cream read as a huge footer.
 *
 * top: is the header shell only. The page gap is padding-top on #main so it
 * stays cream — putting the gap in top: left a white body strip above Find a
 * restaurant on Android.
 */
html.is-native-app:has(body.app-body:not(.kit-body):not(.drive-body)) {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background: var(--color-surface);
}

html.is-native-app body.app-body:not(.kit-body):not(.drive-body) {
    display: block;
    position: relative;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: var(--color-surface);
}

/* Every native shell starts below the fixed header. */
html.is-native-app body.app-body #main {
    padding-top: var(--app-native-head-offset);
}

html.is-native-app body.app-body:not(.kit-body):not(.drive-body) #main {
    position: absolute;
    /*
     * Sit flush under the fixed header (shell), then put the page gap in
     * padding-top. Using offset as top: left a white body strip between the
     * header and the cream #main — visible above Find a restaurant on Android.
     */
    top: var(--app-native-head-shell);
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    padding-top: var(--app-native-head-gap);
    /* The locked shell ends at the home indicator and there is no footer under
       it, so the web page's 3.5rem bottom band would read as an empty bar.
       Customer only: the driver shell needs its clearance for the bottom nav. */
    padding-bottom: 0;
    background: var(--color-page);
}

html.is-native-app body.app-body #main .container {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}


/*
 * Counter screen (POS).
 *
 * Built for the bar panel a kitchen bolts to the wall: 1920x720 pixels across
 * roughly 25x10cm, which is about twice the pixel density of a desk monitor.
 * Everything is therefore sized against the viewport rather than in fixed
 * pixels, so a glance from an arm's length away is enough and the whole board
 * fits the short height without scrolling the page.
 */

.pos-body {
    --pos-ink: #111827;
    --pos-shell: #141a22;
    --pos-bar: #1f2937;
    --pos-card: #fffdf8;
    --pos-cream: rgba(255, 249, 240, 0.86);
    --pos-new: var(--g-sunshine);
    --pos-cooking: var(--g-tangerine);
    --pos-ready: #34d399;
    --pos-road: #60a5fa;

    display: block;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    background: var(--pos-shell);
    color: var(--pos-cream);
    font-size: clamp(17px, 4.4vh, 40px);
    line-height: 1.25;
    overscroll-behavior: none;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.pos-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100vh;
    overflow: hidden;
}

/* The strip along the top ------------------------------------------------- */

.pos-bar {
    display: flex;
    align-items: center;
    gap: 0.6em;
    padding: 0 0.7em;
    height: 9.5vh;
    background: var(--pos-bar);
    border-bottom: 1px solid rgba(255, 249, 240, 0.14);
}

.pos-bar__brand {
    display: flex;
    align-items: center;
    gap: 0.45em;
    min-width: 0;
}

.pos-bar__logo {
    width: 1.5em;
    height: 1.5em;
    border-radius: 0.4em;
    object-fit: cover;
}

.pos-bar__name {
    font-family: var(--font-display);
    font-size: 0.95em;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-bar__screen {
    padding: 0.15em 0.55em;
    border-radius: 999px;
    background: rgba(255, 249, 240, 0.12);
    font-size: 0.6em;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pos-bar__state {
    margin: 0;
    padding: 0.2em 0.6em;
    border-radius: 999px;
    background: var(--g-crave);
    color: #fff;
    font-size: 0.62em;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pos-bar__right {
    display: flex;
    align-items: center;
    gap: 0.55em;
    margin-left: auto;
}

.pos-bar__clock {
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pos-bar__refresh {
    margin: 0;
    padding: 0.35em 0.7em;
    border: 1px solid rgba(255, 249, 240, 0.28);
    border-radius: 0.4em;
    background: rgba(255, 249, 240, 0.1);
    color: inherit;
    font: inherit;
    font-size: 0.58em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pos-bar__refresh:active {
    background: rgba(255, 249, 240, 0.22);
}

.pos-bar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.58em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 249, 240, 0.62);
}

.pos-bar__link::before {
    content: "";
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    background: var(--pos-ready);
}

.pos-bar__link.is-down {
    color: #fca5a5;
}

.pos-bar__link.is-down::before {
    background: var(--g-crave);
}

/* Lanes ------------------------------------------------------------------- */

.pos-lanes {
    min-height: 0;
    overflow: hidden;
    padding: 0.5vh 0.5vh 0;
}

.pos-lane-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.5vh;
    height: 100%;
}

.pos-lane {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    min-width: 0;
    border-radius: 0.5em;
    background: rgba(255, 249, 240, 0.05);
    overflow: hidden;
}

.pos-lane__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4em;
    margin: 0;
    padding: 0.25em 0.5em;
    font-family: var(--font-display);
    font-size: 0.7em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pos-ink);
    background: var(--pos-cream);
}

.pos-lane__count {
    min-width: 1.6em;
    padding: 0 0.3em;
    border-radius: 999px;
    background: var(--pos-ink);
    color: var(--pos-cream);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.pos-lane--new .pos-lane__head {
    background: var(--pos-new);
}

.pos-lane--preparing .pos-lane__head {
    background: var(--pos-cooking);
}

.pos-lane--ready .pos-lane__head {
    background: var(--pos-ready);
}

.pos-lane--out_for_delivery .pos-lane__head {
    background: var(--pos-road);
}

.pos-lane__cards {
    display: flex;
    flex-direction: column;
    gap: 0.4vh;
    min-height: 0;
    padding: 0.4vh;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pos-lane__cards::-webkit-scrollbar {
    display: none;
}

.pos-lane__empty {
    margin: 0;
    padding: 0.6em 0.4em;
    font-size: 0.62em;
    text-align: center;
    color: rgba(255, 249, 240, 0.35);
}

/* A card in a lane -------------------------------------------------------- */

.pos-ticket {
    flex: 0 0 auto;
}

.pos-ticket__face {
    position: relative;
    display: grid;
    gap: 0.15em;
    width: 100%;
    padding: 0.45em 0.55em;
    border: 0;
    border-left: 0.35em solid var(--pos-cooking);
    border-radius: 0.45em;
    background: var(--pos-card);
    color: var(--pos-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* Remaining time: left = received, right = target ready. Red fill shrinks. */
.pos-ticket__time {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    overflow: hidden;
    border-radius: 0 0 0.45em 0.45em;
    pointer-events: none;
}

.pos-ticket__time-fill {
    display: block;
    height: 100%;
    width: calc(var(--pos-time-left, 0) * 100%);
    background: var(--g-crave);
}

.pos-ticket--new .pos-ticket__face {
    border-left-color: var(--pos-new);
    box-shadow: 0 0 0 0.12em var(--pos-new);
    animation: pos-wait 1.6s ease-in-out infinite;
}

.pos-ticket--ready .pos-ticket__face {
    border-left-color: var(--pos-ready);
}

.pos-ticket--out_for_delivery .pos-ticket__face {
    border-left-color: var(--pos-road);
}

/* New tickets: brief red/white flashes every ~30s so unanswered orders stay noticed. */
.pos-ticket--new.is-new-flash .pos-ticket__face {
    animation: pos-new-flash 0.4s ease-in-out var(--pos-new-flash-count, 4);
}

@keyframes pos-wait {
    50% {
        box-shadow: 0 0 0 0.12em rgba(253, 189, 45, 0.25);
    }
}

@keyframes pos-new-flash {
    0%,
    100% {
        background: var(--pos-card);
        border-left-color: var(--pos-new);
        color: var(--pos-ink);
        box-shadow: 0 0 0 0.12em var(--pos-new);
    }

    50% {
        background: var(--g-crave);
        border-left-color: var(--g-crave);
        color: #fff;
        box-shadow: 0 0 0 0.12em var(--g-crave);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pos-ticket--new .pos-ticket__face,
    .pos-ticket--new.is-new-flash .pos-ticket__face {
        animation: none;
    }
}

.pos-ticket__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4em;
}

.pos-ticket__number {
    font-family: var(--font-display);
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1;
}

/* Past estimated ready time while still cooking ----------------------------- */

.pos-ticket.is-overdue .pos-ticket__number {
    color: var(--g-crave);
}

.pos-ticket.is-overdue .pos-ticket__face {
    border-left-color: var(--g-crave);
}

.pos-ticket.is-overdue.is-overdue-flash .pos-ticket__number {
    color: inherit;
}

.pos-ticket.is-overdue.is-overdue-flash .pos-ticket__face {
    animation: pos-overdue-flash 0.4s ease-in-out var(--pos-overdue-flash-count, 4);
}

@keyframes pos-overdue-flash {
    0%,
    100% {
        background: var(--pos-card);
        border-left-color: var(--g-crave);
        color: var(--pos-ink);
        box-shadow: none;
    }

    50% {
        background: var(--g-crave);
        border-left-color: var(--g-crave);
        color: #fff;
        box-shadow: 0 0 0 0.14em rgba(239, 68, 68, 0.85);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pos-ticket.is-overdue.is-overdue-flash .pos-ticket__face {
        animation: none;
        background: #fecaca;
        box-shadow: 0 0 0 0.14em rgba(239, 68, 68, 0.85);
    }
}

.pos-ticket__when {
    font-size: 0.68em;
    font-variant-numeric: tabular-nums;
    color: var(--color-muted);
}

.pos-tag {
    justify-self: start;
    padding: 0.12em 0.5em;
    border-radius: 999px;
    background: var(--pos-ink);
    color: var(--pos-cream);
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pos-tag--delivery {
    background: var(--pos-road);
    color: var(--pos-ink);
}

.pos-ticket__brief {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    font-size: 0.7em;
    line-height: 1.3;
}

.pos-ticket__foot {
    font-size: 0.62em;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* One order, filling the whole panel -------------------------------------- */

.pos-sheet {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(0, 23fr) minmax(0, 42fr) minmax(0, 35fr);
    gap: 0.6vh;
    padding: 0.6vh;
    background: var(--pos-shell);
}

.pos-sheet[hidden] {
    display: none;
}

.pos-sheet__order,
.pos-sheet__lines,
.pos-sheet__actions {
    min-width: 0;
    min-height: 0;
    padding: 0.5em 0.6em;
    border-radius: 0.5em;
    background: var(--pos-card);
    color: var(--pos-ink);
}

.pos-sheet__order {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    overflow-y: auto;
    scrollbar-width: none;
}

.pos-sheet__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35em;
}

.pos-sheet__number {
    width: 100%;
    font-family: var(--font-display);
    font-size: 2.1em;
    font-weight: 700;
    line-height: 0.95;
}

.pos-sheet__when {
    font-size: 0.65em;
    font-variant-numeric: tabular-nums;
    color: var(--color-muted);
}

.pos-sheet__who {
    margin: 0.15em 0 0;
    font-size: 0.9em;
    font-weight: 700;
}

.pos-sheet__phone {
    display: block;
    font-size: 0.72em;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.pos-sheet__where,
.pos-sheet__scheduled {
    margin: 0;
    font-size: 0.72em;
}

.pos-sheet__trip {
    display: grid;
    gap: 0.35em;
    margin-top: 0.35em;
}

.pos-sheet__map {
    width: 100%;
    /* em tracks the kiosk's large type so the preview is not a thin rem strip */
    height: 8.5em;
    min-height: 9rem;
    flex: 0 0 auto;
    border-radius: 0.45em;
    overflow: hidden;
    background: #dbe4ee;
    /* Preview only — never steal taps meant for Accept / Back. */
    pointer-events: none !important;
    touch-action: none;
}

.pos-sheet__map[hidden] {
    display: none !important;
}

.pos-sheet__map *,
.pos-sheet__map-svg,
.pos-sheet__map-tile {
    pointer-events: none !important;
}

.pos-sheet__map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #dbe4ee;
}

.pos-sheet__map-tiles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.pos-sheet__map-tile {
    position: absolute;
    display: block;
    max-width: none;
    border: 0;
    user-select: none;
    -webkit-user-drag: none;
}

.pos-sheet__map-svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.pos-sheet__trip-meta {
    margin: 0;
    font-size: 0.72em;
    font-weight: 700;
    color: var(--color-ink-muted, #5b6472);
}

.pos-sheet__directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4em;
    padding: 0.35em 0.85em;
    width: fit-content;
    border-radius: 0.4em;
    background: var(--color-accent-soft, #ffe8d6);
    color: var(--color-ink, #1f2937);
    font-size: 0.72em;
    font-weight: 700;
    text-decoration: none;
}

.pos-sheet__directions:hover,
.pos-sheet__directions:focus-visible {
    background: var(--g-crave, #e23c2f);
    color: #fff;
}

/* Directions iframe popup — full screen, × closes, content is left/right */

.pos-directions-popup {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: var(--pos-shell, #1f2937);
}

.pos-directions-popup[hidden] {
    display: none;
}

.pos-directions-popup__close {
    position: absolute;
    top: 0.35em;
    right: 0.35em;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6em;
    height: 2.6em;
    padding: 0;
    border: 2px solid var(--pos-ink, #1f2937);
    border-radius: 0.45em;
    background: var(--pos-card, #fff9f0);
    color: var(--pos-ink, #1f2937);
    font-family: var(--font-display, "Fraunces", Georgia, serif);
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.pos-directions-popup__close:active {
    transform: translateY(0.06em);
}

.pos-directions-popup__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

/* Same-origin directions document: directions left 1/3, map right 2/3 */

.pos-directions-body {
    margin: 0;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: #fff9f0;
    color: #1f2937;
    font-family: var(--font-sans, "Nunito Sans", system-ui, sans-serif);
}

.pos-directions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    width: 100%;
    min-height: 100vh;
    height: 100vh;
}

.pos-directions__head {
    display: flex;
    flex-direction: column;
    gap: 0.55em;
    min-width: 0;
    min-height: 0;
    padding: 1em 0.9em;
    overflow-y: auto;
    scrollbar-width: none;
    border-right: 1px solid rgba(31, 41, 55, 0.12);
    background: #fff9f0;
}

.pos-directions__order {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.pos-directions__meta {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #5b6472;
}

.pos-directions__legs {
    display: grid;
    gap: 0.7em;
    margin: 0;
}

.pos-directions__legs > div {
    display: grid;
    gap: 0.1em;
}

.pos-directions__legs dt {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5b6472;
}

.pos-directions__legs dd {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

.pos-directions__frame {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    border: 0;
    background: #dbe4ee;
}

.pos-directions__empty {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 1.25em 1em;
    font-size: 1rem;
    font-weight: 600;
    color: #5b6472;
    background: #dbe4ee;
}

.pos-sheet__scheduled {
    font-weight: 700;
    color: var(--g-crave);
}

.pos-sheet__note {
    margin: 0.2em 0 0;
    padding: 0.35em 0.5em;
    border-radius: 0.35em;
    background: var(--color-accent-soft);
    font-size: 0.72em;
    font-weight: 700;
}

.pos-sheet__lines {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.3em;
}

.pos-sheet__lines ul {
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
}

.pos-sheet__lines li {
    display: block;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9em;
}

.pos-sheet__lines li:last-child {
    border-bottom: 0;
}

.pos-line {
    display: flex;
    align-items: flex-start;
    gap: 0.4em;
    width: 100%;
    margin: 0;
    padding: 0.35em 0.1em 0.35em 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pos-line:active {
    background: color-mix(in srgb, var(--color-border) 55%, transparent);
}

.pos-line__qty {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-weight: 700;
}

.pos-line__body {
    flex: 1 1 auto;
    min-width: 0;
}

.pos-line__name {
    font-weight: 700;
}

.pos-line.is-checked .pos-line__name {
    text-decoration: line-through;
    color: var(--color-muted);
}

.pos-line.is-checked .pos-line__qty,
.pos-line.is-checked .pos-line__mod,
.pos-line.is-checked .pos-line__note {
    color: var(--color-muted);
}

.pos-line__mod,
.pos-line__note {
    display: block;
    padding-left: 0.6em;
    font-size: 0.78em;
}

.pos-line__mod {
    color: var(--color-muted);
}

.pos-line__note {
    font-weight: 700;
    color: var(--g-crave);
    text-transform: uppercase;
}

.pos-line__check {
    flex: 0 0 auto;
    width: 1.35em;
    height: 1.35em;
    margin-top: 0.05em;
    border: 2px solid var(--pos-ink);
    border-radius: 0.2em;
    background: var(--color-surface, #fff);
}

.pos-line.is-checked .pos-line__check {
    background: var(--pos-ink);
    box-shadow: inset 0 0 0 0.22em var(--color-surface, #fff);
}

.pos-sheet__total {
    margin: 0;
    padding-top: 0.2em;
    border-top: 2px solid var(--pos-ink);
    font-family: var(--font-display);
    font-size: 1.1em;
    font-weight: 700;
    text-align: right;
}

/* The keys on the right -------------------------------------------------- */

.pos-sheet__actions {
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    overflow-y: auto;
    scrollbar-width: none;
}

.pos-sheet__prompt {
    margin: 0;
    font-size: 0.62em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.pos-sheet__driver {
    margin: 0;
    font-size: 0.68em;
    color: var(--color-muted);
}

.pos-key--driver {
    min-height: 12vh;
    font-size: 0.88em;
}

.pos-driver-popup {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2vh;
    background: color-mix(in srgb, var(--pos-shell) 78%, transparent);
}

.pos-driver-popup[hidden] {
    display: none;
}

.pos-driver-popup__panel {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
    width: min(28rem, 100%);
    max-height: 92vh;
    padding: 0.7em;
    border-radius: 0.55em;
    background: var(--pos-card);
    color: var(--pos-ink);
    box-shadow: var(--shadow-lg);
}

.pos-accept,
.pos-reasons,
.pos-drivers {
    display: grid;
    gap: 0.3em;
}

.pos-drivers {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
}

.pos-accept {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pos-reasons[hidden] {
    display: none;
}

.pos-key {
    min-height: 11vh;
    padding: 0.2em 0.45em;
    border: 2px solid var(--pos-ink);
    border-radius: 0.45em;
    background: var(--pos-card);
    color: var(--pos-ink);
    font-family: var(--font-display);
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
}

.pos-key:active {
    transform: translateY(0.08em);
}

.pos-key:disabled {
    opacity: 0.5;
}

.pos-key--go {
    background: var(--pos-new);
    border-color: color-mix(in srgb, var(--pos-new) 60%, var(--pos-ink));
}

.pos-key--no {
    background: var(--color-danger-soft);
    border-color: var(--g-crave);
    color: #7f1d1d;
}

.pos-key--quiet {
    margin-top: auto;
    min-height: 8vh;
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-muted);
    font-size: 0.66em;
}

/* Sound, messages, printer ----------------------------------------------- */

.pos-chime {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 80;
    padding: 0.6em;
    border: 0;
    background: var(--g-crave);
    color: #fff;
    font: inherit;
    font-size: 0.78em;
    font-weight: 700;
    cursor: pointer;
}

.pos-flash {
    position: fixed;
    z-index: 90;
    top: 11vh;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.4em 0.9em;
    border-radius: 999px;
    background: var(--pos-ink);
    color: var(--pos-cream);
    font-size: 0.75em;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

/*
 * The chit is printed out of this frame, so it has to stay in the layout for
 * Chromium to render and print it. It is parked off screen instead.
 */
.pos-printer {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 58mm;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* Counter screens, listed in the kitchen ---------------------------------- */

.kit-screen__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.kit-screen__state {
    font-size: 0.8125rem;
    color: var(--kit-muted, var(--color-muted));
}

.kit-screen__state--on {
    font-weight: 600;
    color: var(--color-success);
}

.kit-screen__launch {
    margin: 0.75rem 0 0.25rem;
}

.kit-screen__launch .button {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

@media (min-width: 40rem) {
    .kit-screen__launch .button {
        width: auto;
        min-width: 12rem;
    }
}

.kit-screen__link {
    margin: 0.35rem 0 0;
    overflow-wrap: anywhere;
}

.kit-screen__link code {
    font-size: 0.875rem;
}

.kit-screen__qr {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.kit-screen__qr img {
    border-radius: var(--radius-sm);
    background: #fff;
}

.kit-screen__danger {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--kit-border, var(--color-border));
}

.kit-screen__code {
    margin: 0.5rem 0;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--g-charcoal);
    color: rgba(255, 249, 240, 0.9);
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-x: auto;
}

/* ---------------------------------------------------------------- kitchen reports */

.kit-report-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.kit-report-periods {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: var(--kit-surface);
    border: 1px solid var(--kit-border, var(--color-border));
}

.kit-report-periods__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    color: var(--kit-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.kit-report-periods__link[aria-current="page"] {
    background: var(--kit-accent);
    color: #fff;
}

.kit-report-periods__link:hover {
    color: var(--kit-text);
}

.kit-report-periods__link[aria-current="page"]:hover {
    color: #fff;
}

.kit-stats--report .stat__hint {
    margin-top: 0.35rem;
}

.kit-report-delta.is-up {
    color: #1f7a4d;
}

.kit-report-delta.is-down {
    color: #b42318;
}

.kit-report-chart-card__head {
    margin-bottom: 0.5rem;
}

.kit-report-chart {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    height: 9rem;
    margin: 0.75rem 0 0.25rem;
}

.kit-report-chart__col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
}

.kit-report-chart__bar-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.kit-report-chart__bar {
    width: 100%;
    min-height: 2px;
    background: var(--kit-accent);
    border-radius: 3px 3px 0 0;
}

.kit-report-chart__label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7rem;
    color: var(--kit-muted);
    text-transform: lowercase;
}

.kit-report-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 48rem) {
    .kit-report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.kit-report-mix {
    display: flex;
    overflow: hidden;
    height: 0.85rem;
    margin: 1rem 0 0.85rem;
    border-radius: 999px;
    background: var(--kit-bg);
}

.kit-report-mix__pickup {
    background: var(--kit-accent);
}

.kit-report-mix__delivery {
    background: var(--g-charcoal);
}

.kit-report-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.875rem;
}

.kit-report-legend__swatch {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.4rem;
    border-radius: 999px;
    vertical-align: -0.05rem;
}

.kit-report-legend__swatch.is-pickup {
    background: var(--kit-accent);
}

.kit-report-legend__swatch.is-delivery {
    background: var(--g-charcoal);
}

.kit-report-dishes {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.kit-report-dishes__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.kit-report-dishes__name {
    font-weight: 600;
}

.kit-report-dishes__qty {
    color: var(--kit-muted);
    white-space: nowrap;
}

.kit-report-dishes__track {
    margin-top: 0.35rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--kit-bg);
    overflow: hidden;
}

.kit-report-dishes__bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--kit-accent-soft, var(--color-accent-soft));
}

.kit-report-tickets {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.kit-report-tickets li {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--kit-border, var(--color-border));
    font-size: 0.875rem;
}

.kit-report-tickets li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.kit-report-tickets a {
    font-weight: 700;
    color: var(--kit-text);
    text-decoration: none;
}

.kit-report-tickets a:hover {
    color: var(--kit-accent);
}
