:root {
    color-scheme: light;
    --brand-blue: #005586;
    --brand-yellow: #f6e057;
    --brand-lavender: #a1aed9;
    --brand-green: #33803d;
    --brand-cream: #e3dcb5;
    --brand-red: #a5301f;
    --brand-orange: #f37433;

    --page-background: var(--brand-blue);
    --board-background: #fffdf5;
    --card-background: #ffffff;
    --text: #102f40;
    --muted: #516772;
    --black: #111111;
    --soft-blue: #e8f3f8;
    --soft-green: #e4f0e5;
    --soft-orange: #fff0e7;
    --radius: 14px;
    --shadow: 0 12px 32px rgba(0, 35, 56, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 17px;
}

/* A data refresh can replace rows above the current viewport. Keep the updated
 * page unpainted until its saved order/timer anchor has been restored. */
html.viewport-restore-pending .page-shell {
    visibility: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--page-background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-shell {
    width: min(1400px, calc(100% - 28px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.dashboard-login {
    display: grid;
    width: min(520px, 100%);
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    align-content: center;
    gap: 28px;
}

.dashboard-login-logo {
    display: block;
    width: min(360px, 80%);
    height: auto;
    margin: 0 auto;
}

.dashboard-login-card {
    padding: clamp(28px, 6vw, 42px);
    border: 4px solid var(--black);
    border-radius: 20px;
    background: var(--board-background);
    box-shadow: var(--shadow);
}

.dashboard-login-card .eyebrow {
    color: var(--brand-blue);
}

.dashboard-login-card h1 {
    margin-bottom: 14px;
    color: var(--brand-blue);
    font-size: clamp(2.5rem, 10vw, 4rem);
}

.dashboard-login-intro {
    margin-bottom: 24px;
    color: var(--muted);
    font-weight: 700;
}

.dashboard-login-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 3px solid var(--brand-red);
    border-radius: 10px;
    background: #fff0ed;
    color: var(--brand-red);
    font-weight: 900;
}

.dashboard-login-form {
    display: grid;
    gap: 18px;
}

.dashboard-login-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-login-form input {
    width: 100%;
    min-height: 54px;
    padding: 10px 13px;
    border: 3px solid var(--black);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.dashboard-login-form input:focus-visible,
.dashboard-login-form button:focus-visible {
    outline: 4px solid var(--brand-orange);
    outline-offset: 3px;
}

.dashboard-login-form button {
    min-height: 56px;
    margin-top: 4px;
    border: 3px solid var(--black);
    border-radius: 10px;
    background: var(--brand-yellow);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.dashboard-login-form button:hover {
    background: #ffeb67;
}

.masthead,
.section-heading,
.order-heading,
.capacity-copy,
.board-footer,
.operations-card-heading,
.operations-card-title-row,
.release-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.masthead {
    margin-bottom: 22px;
    color: white;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--brand-yellow);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.board-section .eyebrow {
    color: var(--brand-blue);
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    letter-spacing: -0.035em;
}

h1 {
    margin-bottom: 4px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 0.98;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.service-date {
    margin-bottom: 0;
    color: var(--brand-cream);
    font-size: 1.04rem;
    font-weight: 700;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 2px solid var(--brand-lavender);
    border-radius: 999px;
    background: rgba(0, 42, 67, 0.5);
    color: white;
    font-size: 0.88rem;
    font-weight: 800;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-yellow);
    box-shadow: 0 0 0 4px rgba(246, 224, 87, 0.2);
}

.operations-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.6fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.operations-card {
    min-height: 190px;
    padding: 18px 20px;
    border: 3px solid var(--black);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.operations-card--dough {
    background: var(--brand-yellow);
}

.operations-card--salads {
    background: var(--brand-cream);
}

.operations-card--release {
    background: var(--soft-orange);
}

.summary-label {
    display: block;
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.operations-total,
.release-total {
    display: block;
    margin-top: 8px;
    color: var(--brand-blue);
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 0.9;
}

.operations-caption {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.number--short {
    color: var(--brand-red) !important;
}

.number-control {
    display: grid;
    gap: 5px;
    min-width: 104px;
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.number-control input {
    width: 100%;
    min-height: 50px;
    padding: 5px 9px;
    border: 3px solid var(--black);
    border-radius: 9px;
    background: white;
    color: var(--text);
    font-size: 1.4rem;
    font-weight: 900;
    text-align: center;
}

.number-control input:focus-visible {
    outline: 4px solid var(--brand-orange);
    outline-offset: 2px;
}

.number-control--compact {
    min-width: 88px;
}

.number-control--compact input {
    min-height: 42px;
    font-size: 1.1rem;
}

.inventory-equation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    padding-top: 12px;
    border-top: 2px solid rgba(17, 17, 17, 0.3);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.inventory-equation strong {
    color: var(--text);
}

.operations-card-title-row {
    align-items: flex-start;
    margin-bottom: 12px;
}

.save-inventory-button,
.sync-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 3px solid var(--black);
    border-radius: 9px;
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
    transition: transform 100ms ease, filter 100ms ease;
}

.save-inventory-button {
    background: var(--brand-green);
    color: white;
}

.sync-button {
    background: var(--brand-orange);
}

.save-inventory-button:hover,
.sync-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.save-inventory-button:focus-visible,
.sync-button:focus-visible {
    outline: 4px solid var(--brand-yellow);
    outline-offset: 3px;
}

.salad-stock-list {
    display: grid;
    gap: 9px;
}

.salad-stock-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) 90px 82px 98px;
    align-items: end;
    gap: 11px;
    padding: 10px 11px;
    border: 2px solid var(--black);
    border-radius: 9px;
    background: white;
}

.salad-stock-row > strong {
    align-self: center;
    color: var(--brand-green);
    font-size: 0.95rem;
    font-weight: 900;
}

.stock-stat {
    display: grid;
    align-self: center;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.stock-stat b {
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
}

.stock-stat--remaining b {
    color: var(--brand-green);
}

.release-card-heading {
    justify-content: flex-start;
    margin-top: 8px;
}

.release-card-heading span {
    color: var(--muted);
    font-weight: 800;
}

.release-slot-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.release-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border: 3px solid var(--black);
    border-radius: 9px;
    background: var(--brand-yellow);
}

.release-slot time {
    color: var(--brand-blue);
    font-size: 1.18rem;
    font-weight: 900;
}

.release-slot span {
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 900;
    text-align: right;
    text-transform: uppercase;
}

.empty-state {
    margin: 18px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.board-section {
    padding: 22px;
    border: 4px solid var(--brand-cream);
    border-radius: 18px;
    background: var(--board-background);
    box-shadow: var(--shadow);
}

.section-heading {
    margin-bottom: 18px;
}

.window-list {
    display: grid;
    gap: 14px;
}

.pickup-window[hidden],
.prep-view-empty[hidden] {
    display: none !important;
}

.pickup-window,
.pickup-window--available,
.pickup-window--full,
.pickup-window--over {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 190px;
    min-height: 142px;
    overflow: hidden;
    border: 3px solid var(--black);
    border-radius: var(--radius);
    background: var(--card-background);
}

.window-time {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 16px 10px;
    border-right: 3px solid var(--black);
    background: var(--brand-yellow);
    color: var(--brand-blue);
    text-align: center;
}

.window-time time {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 0.95;
}

.window-time > span {
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.window-pizza-total {
    display: block;
    margin-top: 14px;
    padding: 6px 9px;
    border: 2px solid var(--black);
    border-radius: 7px;
    background: var(--brand-blue);
    color: white;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.window-orders {
    display: grid;
}

.order-row {
    padding: 17px 20px 18px;
    border-left: 7px solid transparent;
    background: white;
}

.order-row + .order-row {
    border-top: 2px solid var(--black);
}

.order-row--salad {
    border-left-color: var(--brand-green);
    background: var(--soft-green);
}

.order-heading {
    align-items: flex-start;
}

.customer-name {
    display: block;
    color: var(--brand-blue);
    font-size: 1.14rem;
    font-weight: 900;
}

.order-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px 10px;
}

.receipt-number {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border: 2px solid var(--black);
    border-radius: 6px;
    background: var(--brand-cream);
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.order-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.order-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    margin-top: 12px;
    padding: 9px 11px;
    border: 2px solid var(--black);
    border-left: 7px solid var(--brand-orange);
    border-radius: 7px;
    background: var(--brand-yellow);
    color: var(--text);
}

.order-note--internal {
    border-left-color: var(--brand-red);
    background: #f8d8d2;
}

.order-note--internal strong {
    color: var(--brand-red);
}

.order-note--customer {
    border-left-color: var(--brand-blue);
    background: #e4eef7;
}

.order-note--customer strong {
    color: var(--brand-blue);
}

.order-note strong {
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.order-note span {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
    white-space: pre-wrap;
}

.badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 3px 10px;
    border: 2px solid var(--black);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.badge--candidate {
    background: var(--brand-orange);
    color: var(--text);
}

.badge--released {
    background: var(--brand-green);
    color: white;
}

.badge--salad {
    background: white;
    color: var(--brand-green);
}

.badge--drink {
    background: var(--soft-blue);
    color: var(--brand-blue);
}

.item-list {
    display: grid;
    gap: 9px;
    margin: 13px 0 0;
    padding: 0;
    list-style: none;
}

.item-row {
    display: block;
    min-width: 0;
}

.item-main {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-size: 1rem;
}

.item-quantity {
    min-width: 2rem;
    color: var(--brand-red);
    font-size: 1.05rem;
    font-weight: 900;
}

.item-name {
    color: var(--text);
    font-weight: 900;
}

.modifier-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 13px;
    margin: 5px 0 0 2.45rem;
    padding: 0;
    list-style: none;
    color: var(--brand-red);
    font-size: 0.88rem;
    font-weight: 900;
}

.modifier-list li {
    padding: 2px 0;
}

.modifier-list .modifier--salad {
    padding: 3px 7px;
    border: 2px solid var(--brand-green);
    border-radius: 6px;
    background: white;
    color: var(--brand-green);
}

.capacity-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border-left: 3px solid var(--black);
    background: var(--soft-blue);
}

.capacity-copy {
    margin-bottom: 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

.capacity-copy span {
    color: var(--muted);
    text-transform: uppercase;
}

.capacity-copy strong {
    color: var(--brand-blue);
    font-size: 1.24rem;
    font-weight: 900;
}

.capacity-track {
    height: 14px;
    overflow: hidden;
    border: 2px solid var(--black);
    border-radius: 999px;
    background: white;
}

.capacity-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-green);
}

.pickup-window--full .capacity-track span {
    background: var(--brand-orange);
}

.pickup-window--over .capacity-track span {
    background: var(--brand-red);
}

.capacity-status {
    margin-top: 8px;
    color: var(--brand-green);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.pickup-window--full .capacity-status {
    color: #88431c;
}

.pickup-window--over .capacity-status {
    color: var(--brand-red);
}

.board-footer {
    padding: 14px 4px 0;
    color: var(--brand-cream);
    font-size: 0.77rem;
    font-weight: 700;
}

@media (max-width: 1120px) {
    .operations-grid {
        grid-template-columns: 1fr 1fr;
    }

    .operations-card--salads {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .pickup-window {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .capacity-block {
        grid-column: 1 / -1;
        border-top: 3px solid var(--black);
        border-left: 0;
    }
}

@media (max-width: 720px) {
    html {
        font-size: 16px;
    }

    .page-shell {
        width: min(100% - 16px, 1400px);
        padding-top: 18px;
    }

    .masthead,
    .section-heading,
    .board-footer,
    .operations-card-heading,
    .operations-card-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .operations-grid {
        grid-template-columns: 1fr;
    }

    .operations-card--salads {
        grid-column: auto;
        grid-row: auto;
    }

    .salad-stock-row {
        grid-template-columns: minmax(140px, 1fr) 88px;
    }

    .stock-stat {
        display: inline-flex;
        align-items: baseline;
        gap: 5px;
    }

    .pickup-window,
    .pickup-window--available,
    .pickup-window--full,
    .pickup-window--over {
        grid-template-columns: 1fr;
    }

    .window-time {
        align-items: baseline;
        justify-content: flex-start;
        flex-direction: row;
        gap: 7px;
        border-right: 0;
        border-bottom: 3px solid var(--black);
        text-align: left;
    }

    .window-time time {
        font-size: 1.9rem;
    }

    .window-pizza-total {
        margin: 0 0 0 auto;
    }

    .capacity-block {
        border-top: 3px solid var(--black);
    }

    .order-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-badges {
        justify-content: flex-start;
    }
}

/* Service-date controls */
.masthead-tools {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.date-navigation {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.date-step,
.today-link,
.date-picker button {
    border: 3px solid var(--black);
    border-radius: 9px;
    font-weight: 900;
    text-decoration: none;
}

.date-step {
    display: inline-flex;
    width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    background: var(--brand-yellow);
    color: var(--brand-blue);
    font-size: 1.35rem;
}

.date-picker {
    display: grid;
    gap: 4px;
}

.date-picker > label {
    color: var(--brand-yellow);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.date-picker-row {
    display: flex;
    align-items: stretch;
}

.date-picker input {
    min-height: 48px;
    padding: 7px 10px;
    border: 3px solid var(--black);
    border-right: 0;
    border-radius: 9px 0 0 9px;
    background: white;
    color: var(--text);
    font-weight: 900;
}

.date-picker button {
    min-height: 48px;
    padding: 0 15px;
    border-radius: 0 9px 9px 0;
    background: var(--brand-orange);
    color: var(--text);
    cursor: pointer;
}

.today-link {
    padding: 6px 10px;
    background: var(--brand-lavender);
    color: var(--text);
    font-size: 0.74rem;
    text-transform: uppercase;
}

.date-step:hover,
.today-link:hover,
.date-picker button:hover {
    filter: brightness(1.04);
}

.date-step:focus-visible,
.today-link:focus-visible,
.date-picker input:focus-visible,
.date-picker button:focus-visible {
    outline: 4px solid var(--brand-yellow);
    outline-offset: 3px;
}

@media (max-width: 720px) {
    .masthead-tools {
        width: 100%;
        justify-items: stretch;
    }

    .date-navigation {
        width: 100%;
        align-items: flex-end;
    }

    .date-picker {
        min-width: 0;
        flex: 1;
    }

    .date-picker-row,
    .date-picker input {
        width: 100%;
        min-width: 0;
    }

    .today-link,
    .live-indicator {
        justify-self: start;
    }
}

.board-empty-state {
    margin: 0;
    padding: 34px 22px;
    border: 3px dashed var(--black);
    border-radius: var(--radius);
    background: white;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 900;
    text-align: center;
}

/* Sprint 3: live Square connection and actionable sync feedback. */
.message-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.message,
.configuration-notice {
    padding: 13px 16px;
    border: 3px solid var(--black);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-weight: 800;
}

.message--success {
    background: var(--soft-green);
    border-left: 12px solid var(--brand-green);
}

.message--warning {
    background: var(--brand-yellow);
    border-left: 12px solid var(--brand-orange);
}

.message--error {
    background: #f8ded8;
    border-left: 12px solid var(--brand-red);
}

.configuration-notice {
    margin: -6px 0 18px;
    background: #f8ded8;
}

.configuration-notice--sample {
    background: var(--brand-cream);
}

.configuration-notice code {
    padding: 1px 5px;
    border: 1px solid rgba(17, 17, 17, 0.45);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.65);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
}

/* Sprint 3.2: configurable service grid and faster kitchen scanning. */
.setup-panel {
    margin: 0 0 18px;
    border: 3px solid var(--black);
    border-radius: var(--radius);
    background: var(--brand-cream);
    box-shadow: var(--shadow);
}

.setup-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    cursor: pointer;
    color: var(--text);
    font-weight: 900;
}

.setup-panel > summary small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
}

.setup-summary-hours {
    padding: 6px 10px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: white;
    color: var(--brand-blue);
    white-space: nowrap;
}

.setup-form {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.8fr) auto;
    align-items: end;
    gap: 16px;
    padding: 0 18px 18px;
}

.setup-section {
    display: grid;
    gap: 10px;
}

.setup-section-heading strong,
.setup-section-heading span {
    display: block;
}

.setup-section-heading span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.hours-grid {
    display: grid;
    gap: 6px;
}

.hours-row {
    display: grid;
    grid-template-columns: minmax(125px, 1fr) 120px 120px;
    align-items: end;
    gap: 8px;
    padding: 7px 9px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: white;
}

.hours-row label {
    display: grid;
    gap: 3px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.day-toggle {
    display: flex !important;
    align-items: center;
    align-self: center;
    gap: 8px;
    color: var(--text) !important;
    font-size: 0.86rem !important;
}

.day-toggle input {
    width: 20px;
    height: 20px;
    accent-color: var(--brand-green);
}

.hours-row input[type="time"],
.setup-section textarea {
    width: 100%;
    border: 2px solid var(--black);
    border-radius: 7px;
    background: white;
    color: var(--text);
    font-weight: 900;
}

.hours-row input[type="time"] {
    min-height: 38px;
    padding: 3px 6px;
}

.setup-section textarea {
    min-height: 178px;
    padding: 9px 11px;
    resize: vertical;
    line-height: 1.45;
}

.save-settings-button {
    min-height: 48px;
    padding: 0 16px;
    border: 3px solid var(--black);
    border-radius: 9px;
    background: var(--brand-green);
    color: white;
    cursor: pointer;
    font-weight: 900;
}

.availability-group {
    margin-top: 13px;
    padding-top: 12px;
    border-top: 2px solid rgba(17, 17, 17, 0.35);
}

.availability-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.availability-heading strong {
    color: var(--brand-blue);
    font-size: 1rem;
}

.availability-heading span {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.availability-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.availability-times time {
    padding: 5px 8px;
    border: 2px solid var(--black);
    border-radius: 7px;
    background: var(--brand-yellow);
    color: var(--brand-blue);
    font-size: 0.84rem;
    font-weight: 900;
}

.availability-group--one .availability-times time {
    background: var(--brand-lavender);
    color: var(--text);
}

.availability-empty {
    margin: 7px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.badge--cookie {
    background: var(--brand-yellow);
    color: var(--text);
}

.order-row--cookie:not(.order-row--salad) {
    border-left-color: var(--brand-orange);
    background: #fff7d1;
}

.item-row--cookie .item-name {
    color: #7a3a12;
}

.modifier-list {
    gap: 7px;
}

.modifier {
    padding: 3px 7px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: var(--soft-blue);
    color: var(--brand-blue);
}

.modifier--salad {
    border-color: var(--brand-green);
    background: white;
    color: var(--brand-green);
}

.modifier--removal {
    border-color: var(--black);
    background: var(--brand-red);
    color: white;
    font-size: 0.94rem;
    letter-spacing: 0.025em;
}

.pickup-window--empty {
    min-height: 96px;
}

.pickup-window--empty .window-time {
    background: var(--brand-cream);
}

.pickup-window--empty .window-pizza-total {
    background: white;
    color: var(--brand-blue);
}

.empty-slot-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 100%;
    padding: 18px 20px;
    color: var(--muted);
}

.empty-slot-message strong {
    color: var(--brand-green);
    font-size: 1.05rem;
}

.empty-slot-message span {
    font-size: 0.8rem;
    font-weight: 800;
    text-align: right;
}

@media (max-width: 1120px) {
    .setup-form {
        grid-template-columns: 1fr 1fr;
    }

    .save-settings-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .setup-panel > summary,
    .empty-slot-message {
        align-items: flex-start;
        flex-direction: column;
    }

    .setup-form {
        grid-template-columns: 1fr;
    }

    .hours-row {
        grid-template-columns: 1fr 1fr;
    }

    .day-toggle {
        grid-column: 1 / -1;
    }

    .empty-slot-message span {
        text-align: left;
    }

    .order-note {
        grid-template-columns: 1fr;
    }
}

.modifier-list .modifier {
    padding: 3px 7px;
}

.modifier-list .modifier--removal {
    border-color: var(--black);
    background: var(--brand-red);
    color: white;
}

/* Sprint 3.4: modifier inventories and prep controls inside Service Setup. */
.setup-content {
    display: grid;
    gap: 18px;
    padding: 0 18px 18px;
}

.setup-form {
    grid-template-columns: 1fr;
    padding: 0;
}

.setup-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.prep-form {
    display: grid;
    gap: 12px;
    padding-top: 17px;
    border-top: 3px solid var(--black);
}

.prep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 9px;
}

.prep-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;
}

.prep-input--dough {
    background: var(--brand-yellow);
}

.prep-input--salad {
    border-left: 8px solid var(--brand-green);
}

.prep-input--side {
    border-left: 8px solid var(--brand-lavender);
}

.prep-input input {
    width: 100%;
    min-height: 40px;
    padding: 4px 6px;
    border: 2px solid var(--black);
    border-radius: 7px;
    background: white;
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 900;
    text-align: center;
}

.prep-input small {
    grid-column: 1 / -1;
    color: var(--text);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
}

.operations-grid {
    grid-template-columns: minmax(210px, 0.8fr) minmax(320px, 1.35fr) minmax(300px, 1fr);
}


.stock-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.stock-row {
    display: grid;
    grid-template-columns: minmax(145px, 1.2fr) repeat(3, minmax(72px, 0.65fr));
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: white;
}

.stock-row > strong {
    color: var(--brand-blue);
    font-size: 0.9rem;
    font-weight: 900;
}

.prep-timing-section {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 2px solid rgba(17, 17, 17, 0.3);
}

.prep-timing-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.prep-timing-heading > strong {
    color: var(--brand-blue);
    font-size: 0.88rem;
    font-weight: 900;
}

.prep-timing-heading > span {
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 850;
    text-transform: uppercase;
}

.prep-timing-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 2px solid var(--black);
    background: white;
    font-size: 0.78rem;
}

.prep-timing-table th,
.prep-timing-table td {
    padding: 7px 8px;
    border-right: 1px solid rgba(17, 17, 17, 0.25);
    text-align: center;
    vertical-align: top;
}

.prep-timing-table tr > *:last-child {
    border-right: 0;
}

.prep-timing-table thead th {
    background: var(--soft-green);
    color: var(--brand-green);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1.2;
}

.prep-timing-table tbody td {
    height: 43px;
    border-top: 1px solid rgba(17, 17, 17, 0.25);
    vertical-align: middle;
}

.prep-timing-cell--empty {
    background: white;
}

.prep-timing-slot {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: center;
    gap: 3px;
    padding: 3px 6px;
    border: 1px solid var(--black);
    border-radius: 999px;
    background: var(--brand-cream);
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    white-space: nowrap;
    transition: background 120ms ease, color 120ms ease, opacity 120ms ease;
}

.prep-timing-slot b {
    color: var(--brand-red);
}

.prep-timing-slot:hover {
    filter: brightness(0.97);
}

.prep-timing-slot:focus-visible {
    outline: 3px solid var(--brand-blue);
    outline-offset: 2px;
}

.prep-timing-slot.is-complete {
    border-color: #6d6d6d;
    background: #c9c9c9;
    color: #4d4d4d;
    text-decoration: line-through;
}

.prep-timing-slot.is-complete b {
    color: inherit;
}

.prep-timing-slot.is-saving {
    cursor: wait;
    opacity: 0.62;
}

.prep-timing-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.receipt-number--fallback {
    background: white;
    color: var(--brand-red);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-transform: none;
}

.badge--side {
    background: var(--brand-lavender);
    color: var(--text);
}

.order-row--side {
    border-right: 7px solid var(--brand-lavender);
}

.order-row--cookie {
    box-shadow: inset 0 7px 0 var(--brand-orange), inset 0 -7px 0 var(--brand-orange);
}

.badge--cookie {
    background: var(--brand-orange);
    color: var(--text);
}

.modifier-list .modifier--side {
    border-color: var(--brand-blue);
    background: var(--brand-lavender);
    color: var(--text);
}

.modifier-list .modifier--cookie {
    border-color: var(--black);
    background: var(--brand-orange);
    color: var(--text);
}

@media (max-width: 1260px) {
    .operations-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .setup-menu-grid,
    .operations-grid {
        grid-template-columns: 1fr;
    }

    .stock-row {
        grid-template-columns: 1fr 1fr;
    }

    .stock-row > strong {
        grid-column: 1 / -1;
    }
}

.operations-card--salads {
    grid-column: auto;
    grid-row: auto;
}

/* Sprint 3.5: click-through Square order inspector. */
.order-row[data-order-details-url] {
    cursor: pointer;
    transition: outline-color 120ms ease, transform 120ms ease;
}

.order-row[data-order-details-url]:hover {
    outline: 4px solid var(--brand-blue);
    outline-offset: -4px;
}

.order-row[data-order-details-url]:focus-visible {
    outline: 5px solid var(--brand-yellow);
    outline-offset: -5px;
}

.order-details-hint {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.order-details-dialog {
    width: min(1080px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 4px solid var(--black);
    border-radius: 14px;
    background: var(--board-background);
    color: var(--text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.order-details-dialog::backdrop {
    background: rgba(0, 31, 49, 0.78);
}

.order-details-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 40px);
}

.order-details-dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 4px solid var(--black);
    background: var(--brand-blue);
    color: white;
}

.order-details-dialog-toolbar strong {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.order-details-close {
    min-height: 40px;
    padding: 7px 15px;
    border: 3px solid var(--black);
    border-radius: 8px;
    background: var(--brand-yellow);
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.order-details-dialog-body {
    overflow: auto;
    padding: 18px;
}

.order-details-loading,
.order-details-error,
.order-details-warning {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 3px solid var(--black);
    border-radius: 10px;
}

.order-details-loading {
    background: var(--brand-cream);
}

.order-details-error {
    background: #f8d8d2;
    color: var(--brand-red);
}

.order-details-warning {
    margin: 16px 0;
    background: var(--soft-orange);
}

.order-details-loading span,
.order-details-error p,
.order-details-warning p {
    margin: 0;
}

.order-details-content {
    display: grid;
    gap: 16px;
}

.order-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 3px solid var(--black);
    border-radius: 10px;
    background: var(--brand-cream);
}

.order-details-header .eyebrow {
    color: var(--brand-blue);
}

.order-details-header h2 {
    margin: 0;
    color: var(--brand-blue);
}

.order-details-pickup {
    margin: 5px 0 0;
    font-weight: 800;
}

.order-details-statuses {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.detail-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 9px;
    border: 2px solid var(--black);
    border-radius: 999px;
    background: white;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-pill--reference {
    background: var(--brand-yellow);
}

.detail-pill--released {
    background: var(--brand-green);
    color: white;
}

.detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.detail-summary-grid > div {
    min-width: 0;
    padding: 10px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: white;
}

.detail-summary-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-summary-grid strong {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 3px;
    font-size: 0.84rem;
}

.order-details-section {
    padding: 15px;
    border: 3px solid var(--black);
    border-radius: 10px;
    background: white;
}

.order-details-section h3 {
    margin: 0 0 12px;
    color: var(--brand-blue);
}

.unpaid-order-removal {
    border-color: var(--brand-red);
    background: #fff4ef;
}

.unpaid-order-removal h3 {
    color: var(--brand-red);
}

.unpaid-order-removal p {
    margin-bottom: 10px;
}

.unpaid-order-removal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.unpaid-order-removal-button {
    border: 3px solid var(--black);
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--brand-red);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.unpaid-order-removal-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.unpaid-order-removal-warning {
    margin-top: 10px;
    margin-bottom: 0 !important;
    font-size: 0.8rem;
    font-weight: 800;
}

.detail-item-list {
    display: grid;
    gap: 8px;
}

.detail-item {
    padding: 10px;
    border: 2px solid var(--black);
    border-left: 8px solid var(--brand-blue);
    border-radius: 8px;
    background: var(--soft-blue);
}

.detail-item--hidden {
    border-left-color: var(--muted);
    background: #f1f1ef;
}

.detail-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-item-heading > span {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-item p,
.detail-item ul {
    margin: 5px 0 0;
}

.detail-item code,
.raw-details code {
    overflow-wrap: anywhere;
}

.order-debug-clues {
    background: #fff7d1;
}

.debug-source-line {
    margin: 12px 0 0;
}

.debug-fulfillments {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.debug-fulfillments > div {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: white;
}

.debug-fulfillments span {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.raw-details {
    border: 3px solid var(--black);
    border-radius: 10px;
    background: white;
}

.raw-details summary {
    padding: 11px 14px;
    background: var(--brand-lavender);
    font-weight: 900;
    cursor: pointer;
}

.raw-details[open] summary {
    border-bottom: 3px solid var(--black);
}

.raw-details pre {
    max-height: 440px;
    overflow: auto;
    margin: 0;
    padding: 14px;
    background: #111b21;
    color: #f7f7ee;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.76rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .order-details-dialog {
        width: calc(100% - 14px);
        max-height: calc(100vh - 14px);
    }

    .order-details-dialog-shell {
        max-height: calc(100vh - 22px);
    }

    .order-details-dialog-body {
        padding: 10px;
    }

    .order-details-header {
        flex-direction: column;
    }

    .order-details-statuses {
        justify-content: flex-start;
    }

    .detail-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Sprint 3.6: independent, persistent eight-minute bake timers. */
.item-main {
    justify-content: space-between;
    gap: 12px;
}

.item-label {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
}

.pizza-bake-controls {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* Sprint 8.3: move the oven map into its own column between the order and slot capacity. */
.order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0;
}

.order-content {
    min-width: 0;
    padding: 17px 20px 18px;
}

.order-oven-panel {
    display: flex;
    min-width: 116px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 13px 11px;
    border-left: 2px solid var(--black);
    background: var(--brand-cream);
}

.order-oven-entry {
    display: grid;
    justify-items: center;
}

.oven-position-selector {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, 42px);
    grid-template-rows: repeat(2, 42px);
    gap: 7px;
    padding: 7px;
    border: 3px solid var(--black);
    border-radius: 11px;
    background: white;
}

.oven-position-selector button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 3px solid var(--black);
    border-radius: 7px;
    background: white;
    color: transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.oven-position-selector button:hover {
    background: var(--brand-yellow);
}

.oven-position-selector button.is-occupied {
    background: #8d989d;
    color: white;
    opacity: 0.7;
}

.oven-position-selector button.is-selected {
    background: var(--brand-orange);
    color: var(--black);
    opacity: 1;
    box-shadow: inset 0 0 0 2px white;
}

.oven-position-selector button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 4px solid var(--brand-yellow);
    outline-offset: 2px;
}

.oven-position-selector--assigned {
    background: var(--soft-orange);
}

.bake-timer {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 5px;
    margin-left: 0;
}

.bake-timer-button,
.bake-timer-reset {
    border: 3px solid var(--black);
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
}

.bake-timer-button {
    display: grid;
    min-width: 112px;
    min-height: 48px;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 9px;
    background: var(--soft-blue);
}

.bake-timer-button span {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bake-timer-button strong {
    min-width: 3.25rem;
    color: var(--brand-blue);
    font-size: 1.18rem;
    line-height: 1;
    text-align: right;
}

.bake-timer-reset {
    width: 44px;
    min-height: 48px;
    border-radius: 9px;
    background: white;
    font-size: 1.35rem;
    line-height: 1;
}

.bake-timer-button:hover,
.bake-timer-reset:hover {
    filter: brightness(1.04);
}

.bake-timer-button:focus-visible,
.bake-timer-reset:focus-visible {
    outline: 4px solid var(--brand-orange);
    outline-offset: 2px;
}

.bake-timer--running .bake-timer-button {
    background: var(--brand-yellow);
}

.bake-timer--paused .bake-timer-button {
    background: var(--brand-lavender);
}

.bake-timer--done .bake-timer-button {
    background: var(--brand-red);
    color: white;
    cursor: default;
    animation: bake-timer-alert 900ms ease-in-out infinite alternate;
}

.bake-timer--done .bake-timer-button strong {
    color: white;
}

.bake-timer--done .bake-timer-reset {
    background: var(--brand-yellow);
}

@keyframes bake-timer-alert {
    from { outline: 0 solid rgba(165, 48, 31, 0); }
    to { outline: 6px solid rgba(165, 48, 31, 0.28); }
}

@media (prefers-reduced-motion: reduce) {
    .bake-timer--done .bake-timer-button {
        animation: none;
    }
}

@media (max-width: 720px) {
    .item-main {
        align-items: flex-start;
    }

    .pizza-bake-controls {
        gap: 6px;
    }

    .order-row {
        grid-template-columns: 1fr;
    }

    .order-oven-panel {
        min-width: 0;
        align-items: center;
        padding: 12px 16px 15px;
        border-top: 2px solid var(--black);
        border-left: 0;
    }

    .order-oven-entry {
        width: 100%;
    }


    .bake-timer-button {
        min-width: 104px;
    }
}

/* Sprint 3.6.4: compact toolbar and unified prepared-item summary. */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.masthead--compact {
    justify-content: flex-end;
    margin-bottom: 12px;
}

.masthead-tools--single-row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.compact-dashboard-title {
    margin: 0 auto 0 0;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    line-height: 1.1;
    white-space: nowrap;
}

.masthead-tools--single-row .date-navigation {
    align-items: center;
}

.masthead-tools--single-row .date-picker {
    display: block;
}

.prep-input--cookie {
    border-left: 8px solid var(--brand-orange);
}

@media (max-width: 720px) {
    .masthead-tools--single-row {
        display: flex;
        justify-content: flex-start;
    }

    .compact-dashboard-title {
        flex: 1 1 100%;
        white-space: normal;
    }

    .masthead-tools--single-row .date-navigation {
        flex: 1 1 100%;
    }

    .masthead-tools--single-row .today-link,
    .masthead-tools--single-row .live-indicator {
        justify-self: auto;
    }
}

/* Sprint 3.7: unscheduled Square POS walk-ins and local slot assignment. */
.unscheduled-lane {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 0;
    margin-bottom: 16px;
    overflow: hidden;
    border: 4px dashed var(--brand-orange);
    border-radius: var(--radius);
    background: var(--soft-orange);
    transition: background 120ms ease, outline-color 120ms ease, transform 120ms ease;
}

.unscheduled-lane-heading {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    padding: 17px;
    border-right: 3px solid var(--black);
    background: var(--brand-orange);
}

.unscheduled-lane-heading strong {
    display: block;
    margin-top: 5px;
    color: var(--brand-blue);
    font-size: 1.45rem;
    font-weight: 900;
}

.unscheduled-lane-heading > span {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.unscheduled-orders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
}

.unscheduled-orders > .order-row + .order-row {
    border-top: 0;
    border-left: 3px solid var(--black);
}

.unscheduled-orders > p {
    align-self: center;
    margin: 0;
    padding: 24px;
    color: var(--muted);
    font-weight: 900;
}

.order-row--walk-in {
    border-left-color: var(--brand-orange);
    cursor: grab !important;
}

.order-row--walk-in:active {
    cursor: grabbing !important;
}

.order-row--dragging {
    opacity: 0.42;
    outline: 5px dashed var(--brand-orange) !important;
}

.badge--walk-in {
    background: var(--brand-yellow);
    color: var(--brand-blue);
}

.badge--pickup-adjusted {
    background: var(--brand-lavender);
    color: var(--brand-blue);
}

.walk-in-paid-time {
    color: var(--brand-red);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.walk-in-drop-hint {
    display: block;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 2px dashed rgba(17, 17, 17, 0.35);
    color: var(--brand-blue);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.walk-in-drop-zone--active {
    outline: 7px solid var(--brand-orange);
    outline-offset: -7px;
    background: var(--soft-orange) !important;
    transform: scale(1.006);
}

.walk-in-assignment-pending {
    cursor: progress;
}

.walk-in-assignment-pending * {
    cursor: progress !important;
}

@media (max-width: 900px) {
    .unscheduled-lane {
        grid-template-columns: 1fr;
    }

    .unscheduled-lane-heading {
        min-height: auto;
        flex-direction: row;
        align-items: center;
        border-right: 0;
        border-bottom: 3px solid var(--black);
    }

    .unscheduled-orders {
        grid-template-columns: 1fr;
    }

    .unscheduled-orders > .order-row + .order-row {
        border-top: 2px solid var(--black);
        border-left: 7px solid var(--brand-orange);
    }
}

/* Staff-authored order notes. */
.internal-note-editor {
    background: var(--soft-orange);
}

.customer-note-editor {
    background: #e4eef7;
}

.internal-note-editor-heading h3,
.internal-note-editor-heading p {
    margin: 0;
}

.internal-note-editor-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.internal-note-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.internal-note-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.internal-note-form textarea {
    width: 100%;
    min-height: 108px;
    resize: vertical;
    padding: 10px 11px;
    border: 3px solid var(--black);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font: inherit;
    font-weight: 750;
    line-height: 1.35;
    text-transform: none;
}

.internal-note-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.internal-note-actions button {
    min-height: 42px;
    padding: 7px 13px;
    border: 3px solid var(--black);
    border-radius: 8px;
    background: var(--brand-blue);
    color: white;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.internal-note-actions .internal-note-clear {
    background: white;
    color: var(--brand-red);
}

.internal-note-actions button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.internal-note-status {
    color: var(--brand-blue);
    font-size: 0.78rem;
    font-weight: 900;
}

/* Local pickup-time editors for scheduled and walk-in orders. */
.walk-in-slot-editor,
.scheduled-slot-editor {
    background: var(--brand-cream);
}

.scheduled-slot-editor {
    background: var(--soft-blue);
}

.walk-in-slot-editor-heading,
.scheduled-slot-editor-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.walk-in-slot-editor-heading h3,
.walk-in-slot-editor-heading p,
.scheduled-slot-editor-heading h3,
.scheduled-slot-editor-heading p {
    margin: 0;
}

.walk-in-slot-editor-heading p,
.scheduled-slot-editor-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.ticket-name-preview {
    max-width: 42%;
    padding: 6px 9px;
    border: 2px solid var(--black);
    border-radius: 999px;
    background: var(--brand-yellow);
    font-size: 0.76rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.walk-in-slot-form,
.scheduled-slot-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(80px, auto);
    align-items: end;
    gap: 10px;
}

.walk-in-slot-form label,
.scheduled-slot-form label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.walk-in-slot-form select,
.walk-in-slot-form input[type="time"],
.walk-in-slot-form button,
.scheduled-slot-form select,
.scheduled-slot-form input[type="datetime-local"],
.scheduled-slot-form button {
    min-height: 42px;
    border: 3px solid var(--black);
    border-radius: 8px;
    font: inherit;
    font-weight: 900;
}

.walk-in-slot-form select,
.walk-in-slot-form input[type="time"],
.scheduled-slot-form select,
.scheduled-slot-form input[type="datetime-local"] {
    width: 100%;
    padding: 7px 10px;
    background: white;
}

.walk-in-custom-time[hidden] {
    display: none;
}

.walk-in-slot-form button,
.scheduled-slot-form button {
    padding: 7px 13px;
    background: var(--brand-blue);
    color: white;
    cursor: pointer;
}

.walk-in-slot-form button:disabled,
.scheduled-slot-form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.walk-in-slot-status,
.scheduled-slot-status {
    align-self: center;
    color: var(--brand-blue);
    font-size: 0.78rem;
    font-weight: 900;
}

@media (max-width: 760px) {
    .walk-in-slot-editor-heading,
    .scheduled-slot-editor-heading {
        display: grid;
    }

    .ticket-name-preview {
        max-width: none;
        width: fit-content;
    }

    .walk-in-slot-form,
    .scheduled-slot-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

.pickup-time-adjusted-summary {
    display: block;
    margin-top: 4px;
    color: var(--brand-red);
    font-size: 0.82rem;
    font-weight: 900;
}

/* Sprint 3.8.1: reliable order inspector trigger. */
.order-details-trigger {
    border: 0;
    border-bottom: 1px solid currentColor;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.order-details-trigger:hover,
.order-details-trigger:focus-visible {
    opacity: 0.72;
}

.order-detail-tabs { display:flex; gap:.5rem; margin-bottom:1rem; border-bottom:1px solid var(--line, #d7d0c7); }
.order-detail-tab { border:0; background:transparent; padding:.7rem .9rem; font-weight:700; cursor:pointer; }
.order-detail-tab.is-active { border-bottom:3px solid currentColor; }
.order-detail-panel[hidden] { display:none !important; }
.order-detail-panel pre { max-height:65vh; overflow:auto; white-space:pre-wrap; }

/* Sprint 3.8.4: assign walk-ins from the compact capacity card. */
.availability-slot-drop {
    cursor: copy;
    transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.availability-slot-drop.walk-in-drop-zone--active {
    outline: 4px solid var(--brand-orange);
    outline-offset: 1px;
    box-shadow: 0 0 0 4px rgba(244, 135, 54, 0.25);
    transform: translateY(-2px) scale(1.06);
}

.availability-slot-drop.walk-in-drop-zone--unavailable {
    cursor: not-allowed;
    opacity: 0.35;
    filter: grayscale(0.8);
}


.auto-sync-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.auto-sync-status::before {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--brand-green);
    content: "";
}

.sync-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.prep-view-control {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 5px 11px;
    border: 3px solid var(--black);
    border-radius: 9px;
    background: white;
    color: var(--text);
    cursor: pointer;
}

.prep-view-control input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    accent-color: var(--brand-green);
}

.prep-view-control span {
    display: grid;
    gap: 1px;
    line-height: 1.05;
    white-space: nowrap;
}

.prep-view-control strong {
    font-size: 0.84rem;
    font-weight: 900;
}

.prep-view-control small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.prep-view-control--active {
    background: var(--soft-green);
}

.prep-view-control:focus-within {
    outline: 4px solid var(--brand-green);
    outline-offset: 3px;
}

.prep-view-empty {
    margin: 0;
    padding: 22px;
    border: 3px dashed var(--black);
    border-radius: var(--radius);
    background: var(--brand-cream);
    color: var(--brand-blue);
    font-weight: 900;
    text-align: center;
}

.incremental-sync-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 3px solid var(--black);
    border-radius: 9px;
    background: var(--brand-yellow);
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
}

.incremental-sync-button:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
}

.incremental-sync-button:focus-visible {
    outline: 4px solid var(--brand-green);
    outline-offset: 3px;
}

.incremental-sync-button:disabled,
.sync-button:disabled {
    cursor: wait;
    filter: grayscale(0.35);
    opacity: 0.72;
    transform: none;
}

.auto-refresh-control {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 5px 8px 5px 11px;
    border: 3px solid var(--black);
    border-radius: 9px;
    background: white;
    font-size: 0.82rem;
    font-weight: 900;
}

.auto-refresh-toggle,
.auto-refresh-interval {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.auto-refresh-toggle input {
    width: 19px;
    height: 19px;
    accent-color: var(--brand-green);
}

.auto-refresh-interval select {
    min-height: 31px;
    border: 2px solid var(--black);
    border-radius: 6px;
    background: white;
    color: var(--text);
    font: inherit;
}

@media (max-width: 800px) {
    .sync-controls {
        width: 100%;
        justify-content: stretch;
    }

    .sync-controls > *,
    .sync-controls form,
    .sync-controls button {
        flex: 1 1 auto;
    }

    .auto-refresh-control {
        justify-content: center;
    }

    .prep-view-control {
        justify-content: center;
    }
}

.auto-refresh-control--unavailable {
    opacity: 0.62;
}

.auto-refresh-scope-note {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* The release-candidate badge is the production completion action. */
.badge--candidate-action {
    font: inherit;
    cursor: pointer;
    appearance: none;
}

.badge--candidate-action:hover,
.badge--candidate-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 2px 2px 0 var(--black);
}

.badge--candidate-action:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}




/* v0.4.11: compact whole-pie breakdown inside Dough Inventory. */
.dough-pizza-breakdown {
    margin-top: 14px;
    padding-top: 11px;
    border-top: 2px solid rgba(17, 17, 17, 0.3);
}

.dough-pizza-breakdown-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.dough-pizza-breakdown-heading strong {
    color: var(--brand-blue);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dough-pizza-breakdown-heading span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
}

.dough-pizza-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dough-pizza-list li {
    padding: 2px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.16);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.15;
}

.dough-pizza-list li:last-child {
    border-bottom: 0;
}

.dough-pizza-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

/* Sprint 7: rebuildable Square customer history. */
.badge--customer {
    border: 1px solid var(--black);
    color: var(--black);
    font-weight: 950;
}

.badge--customer-first-timer {
    background: var(--brand-yellow);
}

.badge--customer-returning {
    background: var(--brand-lavender);
}

.badge--customer-regular {
    background: #b9dfbc;
}

.customer-history-sync-button {
    min-height: 38px;
    padding: 7px 11px;
    border: 2px solid var(--brand-blue);
    border-radius: 7px;
    background: white;
    color: var(--brand-blue);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
}

.customer-history-sync-button:hover,
.customer-history-sync-button:focus-visible {
    background: #eaf5fb;
}

.customer-history-sync-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.order-details-tabs {
    display: flex;
    gap: 4px;
    margin: -2px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(17, 17, 17, 0.18);
}

.order-details-tab {
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.order-details-tab.is-active {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: white;
}

.customer-history-loading,
.customer-history-empty {
    padding: 22px;
    border: 2px dashed rgba(17, 17, 17, 0.28);
    border-radius: 8px;
    color: var(--muted);
}

.customer-history-loading p,
.customer-history-empty p {
    margin: 5px 0 0;
}

.customer-history-content {
    display: grid;
    gap: 14px;
}

.customer-history-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: #f8f5e9;
}

.customer-history-header > div {
    display: grid;
    gap: 2px;
}

.customer-history-header span:not(.badge) {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.customer-history-list {
    display: grid;
    gap: 10px;
}

.customer-history-order {
    padding: 12px;
    border: 2px solid rgba(17, 17, 17, 0.25);
    border-radius: 8px;
    background: white;
}

.customer-history-order--current {
    border-color: var(--brand-blue);
    box-shadow: inset 4px 0 0 var(--brand-blue);
}

.customer-history-order > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.customer-history-order > header > div {
    display: grid;
    gap: 2px;
}

.customer-history-order header span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.history-current-label {
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--brand-blue);
    color: white !important;
    font-size: 0.68rem !important;
    text-transform: uppercase;
}

.customer-history-order ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.customer-history-order li {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding-top: 5px;
    border-top: 1px solid rgba(17, 17, 17, 0.13);
    font-size: 0.84rem;
}

.customer-history-order li span {
    color: var(--muted);
    font-weight: 750;
}

.customer-history-older summary {
    padding: 9px 0;
    color: var(--brand-blue);
    font-weight: 900;
    cursor: pointer;
}

/* Sprint 8: compact branding, modal service setup, and daily customer mix. */
.pizzeria-mari-logo {
    display: block;
    width: clamp(210px, 24vw, 315px);
    height: auto;
    margin-right: auto;
    object-fit: contain;
}

.service-notes-button {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: var(--brand-yellow);
    color: var(--black);
    font-weight: 900;
    cursor: pointer;
}

.service-notes-button:hover,
.service-notes-button:focus-visible {
    background: white;
    color: var(--black);
    outline: 3px solid rgba(246, 224, 87, 0.38);
    outline-offset: 2px;
}

.service-notes-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.12);
    font-size: 0.74rem;
    line-height: 1;
}

.service-notes-button:hover .service-notes-count,
.service-notes-button:focus-visible .service-notes-count {
    background: rgba(17, 17, 17, 0.12);
}

.service-notes-unread {
    position: absolute;
    top: -9px;
    right: -9px;
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--black);
    border-radius: 50%;
    background: var(--brand-orange);
    color: var(--black);
    font-size: 0.86rem;
    font-weight: 1000;
    line-height: 1;
    box-shadow: 0 2px 0 rgba(17, 17, 17, 0.2);
}

.service-notes-button--unread {
    box-shadow: 0 0 0 4px rgba(246, 224, 87, 0.22);
}

.service-notes-unread[hidden],
.service-notes-count[hidden] {
    display: none !important;
}

.service-notes-dialog {
    width: min(760px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow: hidden;
    border: 4px solid var(--black);
    border-radius: var(--radius);
    background: var(--brand-cream);
    box-shadow: 0 24px 70px rgba(0, 20, 32, 0.45);
}

.service-notes-dialog::backdrop {
    background: rgba(0, 35, 56, 0.72);
}

.service-notes-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 36px);
}

.service-notes-dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 3px solid var(--black);
    background: var(--brand-blue);
    color: white;
}

.service-notes-dialog-toolbar > div {
    display: grid;
    gap: 2px;
}

.service-notes-dialog-toolbar strong {
    font-size: 1.2rem;
}

.service-notes-dialog-toolbar span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8rem;
    font-weight: 800;
}

.service-notes-close {
    padding: 7px 12px;
    border: 2px solid var(--black);
    border-radius: 7px;
    background: white;
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.service-notes-dialog-body {
    display: grid;
    min-height: 0;
    grid-template-rows: minmax(180px, 1fr) auto;
}

.service-notes-list {
    display: grid;
    align-content: start;
    gap: 10px;
    overflow: auto;
    padding: 16px 18px;
    background: #fffdf3;
}

.service-notes-empty {
    margin: 16px 0;
    color: var(--muted);
    font-weight: 850;
    text-align: center;
}

.service-note {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 2px solid var(--black);
    border-radius: 10px;
    background: white;
    box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.12);
}

.service-note time {
    color: var(--brand-blue);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.service-note p {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.service-note-form {
    display: grid;
    gap: 8px;
    padding: 14px 18px 16px;
    border-top: 3px solid var(--black);
    background: var(--brand-yellow);
}

.service-note-form > label {
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.service-note-form textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    padding: 10px 12px;
    border: 3px solid var(--black);
    border-radius: 9px;
    background: white;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    line-height: 1.35;
}

.service-note-form textarea:focus-visible {
    outline: 4px solid var(--brand-orange);
    outline-offset: 2px;
}

.service-note-form-actions {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-note-form-actions > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.service-note-form-actions button {
    min-height: 42px;
    padding: 8px 15px;
    border: 3px solid var(--black);
    border-radius: 8px;
    background: var(--brand-orange);
    color: var(--text);
    font-weight: 950;
    cursor: pointer;
}

.service-note-form-actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.service-setup-button {
    min-height: 42px;
    padding: 8px 13px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: var(--brand-yellow);
    color: var(--black);
    font-weight: 900;
    cursor: pointer;
}

.service-setup-button:hover,
.service-setup-button:focus-visible {
    background: white;
    color: var(--black);
    outline: 3px solid rgba(246, 224, 87, 0.38);
    outline-offset: 2px;
}

.service-setup-dialog {
    width: min(1080px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow: hidden;
    border: 4px solid var(--black);
    border-radius: var(--radius);
    background: var(--brand-cream);
    box-shadow: 0 24px 70px rgba(0, 20, 32, 0.45);
}

.service-setup-dialog::backdrop {
    background: rgba(0, 35, 56, 0.72);
}

.service-setup-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 36px);
}

.service-setup-dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 3px solid var(--black);
    background: var(--brand-yellow);
}

.service-setup-dialog-toolbar > div {
    display: grid;
    gap: 2px;
}

.service-setup-dialog-toolbar strong {
    font-size: 1.2rem;
}

.service-setup-dialog-toolbar span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.service-setup-close {
    padding: 7px 12px;
    border: 2px solid var(--black);
    border-radius: 7px;
    background: white;
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.service-setup-dialog-body {
    overflow: auto;
    padding: 18px;
}

.customer-visit-summary {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2.4fr);
    align-items: stretch;
    gap: 14px;
    margin: -6px 0 20px;
    padding: 12px 14px;
    border: 3px solid var(--black);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.customer-visit-summary-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-right: 14px;
    border-right: 2px solid rgba(17, 17, 17, 0.2);
}

.customer-visit-summary-heading > div {
    display: grid;
    gap: 3px;
}

.customer-visit-summary-heading > div > strong {
    color: var(--brand-blue);
    font-size: 1rem;
}

.customer-visit-summary-heading > span {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 850;
    white-space: nowrap;
}

.customer-visit-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.customer-visit-metric {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--soft-blue);
}

.customer-visit-metric > strong {
    color: var(--brand-blue);
    font-size: 1.35rem;
    line-height: 1;
}

.customer-visit-metric > span {
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-visit-metric > small {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
}

.customer-visit-metric--first { background: #eef4ff; }
.customer-visit-metric--returning { background: #f4efff; }
.customer-visit-metric--regular { background: var(--soft-green); }
.customer-visit-metric--unknown { background: #f2f2f2; }
.customer-visit-metric--vip { background: var(--brand-yellow); }

@media (max-width: 900px) {
    .customer-visit-summary {
        grid-template-columns: 1fr;
    }

    .customer-visit-summary-heading {
        padding-right: 0;
        padding-bottom: 8px;
        border-right: 0;
        border-bottom: 2px solid rgba(17, 17, 17, 0.2);
    }

    .customer-visit-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pizzeria-mari-logo {
        width: min(100%, 300px);
        margin-right: 0;
    }

    .service-notes-button,
    .service-setup-button {
        order: 2;
    }

    .masthead-tools--single-row .date-navigation {
        order: 3;
    }

    .masthead-tools--single-row .today-link,
    .masthead-tools--single-row .live-indicator {
        order: 4;
    }

    .customer-visit-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .service-notes-dialog-body {
        grid-template-rows: minmax(150px, 1fr) auto;
    }

    .service-notes-dialog-toolbar {
        align-items: flex-start;
    }

    .service-note-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

/* Service feedback: shared production state, boxed-ready orders, and modifier prep. */
.badge--boxed-action {
    border: 2px solid var(--black);
    background: var(--brand-yellow);
    color: var(--text);
    cursor: pointer;
    font: inherit;
}

.badge--boxed-action.is-boxed {
    background: #777f83;
    color: white;
}

.badge--boxed-action:disabled {
    cursor: wait;
    opacity: 0.65;
}

.order-row--boxed,
.order-row--boxed .order-content,
.order-row--boxed .order-oven-panel {
    background: #c5c9cb;
}

.order-row--boxed {
    border-left-color: #62696d;
    box-shadow: inset 0 0 0 4px #62696d;
}

.order-row--boxed .customer-name,
.order-row--boxed .item-name,
.order-row--boxed .item-quantity,
.order-row--boxed .modifier,
.order-row--boxed .order-note {
    opacity: 1;
}

.bake-timer.is-saving,
.oven-position-selector.is-saving {
    opacity: 0.7;
    pointer-events: none;
}

.modifier-prep-breakdown {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 2px solid rgba(17, 17, 17, 0.3);
}

.modifier-prep-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.modifier-prep-list li {
    padding: 3px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.16);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.15;
}

@media (max-width: 600px) {
    .modifier-prep-list {
        grid-template-columns: 1fr;
    }
}

/* Service feedback 0.5.7: stable prep view, per-pizza controls, countdown, alerts. */
.pizza-bake-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pizza-bake-unit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pizza-unit-label,
.oven-unit-label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.oven-unit-label {
    display: block;
    max-width: 108px;
    margin-bottom: 4px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pizza-countdown {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: grid;
    width: 132px;
    height: 132px;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 12px;
    border: 4px solid var(--black);
    border-radius: 50%;
    background: var(--brand-yellow);
    box-shadow: 0 10px 28px rgba(0, 35, 56, 0.3);
    color: var(--text);
    cursor: pointer;
    pointer-events: auto;
    text-align: center;
    touch-action: manipulation;
}

.pizza-countdown:focus-visible {
    outline: 4px solid white;
    outline-offset: 3px;
}

.pizza-countdown strong {
    color: var(--brand-blue);
    font-size: 3rem;
    font-weight: 950;
    line-height: 0.86;
    letter-spacing: -0.04em;
}

.pizza-countdown span {
    color: var(--black);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.pizza-countdown--finished {
    background: var(--brand-green);
    color: white;
}

.pizza-countdown--finished strong,
.pizza-countdown--finished span {
    color: white;
}

.pizza-breakdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: grid;
    overflow: hidden;
    place-items: center;
    padding: 18px;
    background: rgba(0, 35, 56, 0.72);
    cursor: pointer;
    touch-action: manipulation;
}

.pizza-breakdown-overlay[hidden] {
    display: none;
}

.pizza-breakdown-overlay:focus {
    outline: none;
}

.pizza-breakdown-card {
    width: min(520px, 100%);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    padding: 24px;
    border: 4px solid var(--black);
    border-radius: 18px;
    background: var(--board-background);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
    color: var(--text);
    scrollbar-gutter: stable;
}

.pizza-breakdown-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--black);
}

.pizza-breakdown-eyebrow {
    display: block;
    color: var(--brand-red);
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pizza-breakdown-header h2 {
    margin: 3px 0 0;
    color: var(--brand-blue);
    font-size: clamp(1.55rem, 4vw, 2.1rem);
    line-height: 1;
}

.pizza-breakdown-total {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 3px solid var(--black);
    border-radius: 999px;
    background: var(--brand-yellow);
    color: var(--black);
    font-size: 0.84rem;
    white-space: nowrap;
}

.pizza-breakdown-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.pizza-breakdown-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 8px 10px;
    border: 2px solid var(--black);
    border-radius: 10px;
    background: white;
}

.pizza-breakdown-list strong {
    color: var(--brand-red);
    font-size: 1.15rem;
    font-weight: 950;
}

.pizza-breakdown-list span {
    overflow-wrap: anywhere;
    font-weight: 850;
    line-height: 1.1;
}

.pizza-breakdown-empty {
    margin: 22px 0 0;
    padding: 18px;
    border: 2px dashed var(--muted);
    border-radius: 10px;
    color: var(--muted);
    font-weight: 850;
    text-align: center;
}

.pizza-breakdown-close-hint {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.new-order-toast-region {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 80;
    display: grid;
    width: min(380px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 10px;
    contain: layout style;
    pointer-events: none;
}

.new-order-toast-clear {
    min-height: 36px;
    justify-self: end;
    padding: 6px 12px;
    border: 3px solid var(--black);
    border-radius: 8px;
    background: white;
    color: var(--brand-red);
    box-shadow: 0 6px 18px rgba(0, 35, 56, 0.22);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 950;
    pointer-events: auto;
}

.new-order-toast-clear:hover,
.new-order-toast-clear:focus-visible {
    background: var(--brand-red);
    color: white;
}

.new-order-toast-clear:focus-visible {
    outline: 4px solid white;
    outline-offset: 2px;
}

.new-order-toast-clear[hidden] {
    display: none;
}

.new-order-toast-list {
    display: grid;
    min-width: 0;
    min-height: 0;
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - 92px);
    grid-template-columns: minmax(0, 1fr);
    grid-auto-flow: row;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.new-order-toast {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 4px;
    padding: 13px 14px;
    border: 4px solid var(--black);
    border-radius: 12px;
    background: var(--brand-yellow);
    box-shadow: 0 12px 30px rgba(0, 35, 56, 0.32);
    color: var(--text);
    cursor: pointer;
    pointer-events: auto;
}

.new-order-toast-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.new-order-toast-heading strong {
    min-width: 0;
    color: var(--brand-red);
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    overflow-wrap: anywhere;
}

.new-order-toast-heading button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 2px solid var(--black);
    border-radius: 50%;
    background: white;
    color: var(--black);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 950;
    line-height: 1;
}

.new-order-toast > span {
    font-size: 1.05rem;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.new-order-toast > small {
    font-size: 0.82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.new-order-toast > .new-order-toast-hint {
    margin-top: 3px;
    opacity: 0.72;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .pizza-bake-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .pizza-countdown {
        right: 10px;
        bottom: 10px;
        width: 110px;
        height: 110px;
    }

    .pizza-countdown-logo {
        inset: 6px;
    }

    .pizza-countdown-copy {
        inset: 0;
        padding: 8px;
    }

    .pizza-countdown strong {
        font-size: 2.3rem;
    }

    .pizza-countdown span {
        font-size: 0.68rem;
    }

    .pizza-breakdown-overlay {
        padding: 12px;
    }

    .pizza-breakdown-card {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 18px;
    }

    .pizza-breakdown-header {
        gap: 12px;
    }

    .pizza-breakdown-total {
        font-size: 0.72rem;
    }

    .pizza-breakdown-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Service stabilization 0.5.10: the dashboard owns viewport locking. */
html,
body,
#production-board,
.window-list,
.pickup-window,
.order-row {
    overflow-anchor: none;
}

html {
    scroll-behavior: auto !important;
}

/* Service polish 0.5.13: walk-in visit mix and zero-pie finale. */
@media (min-width: 901px) {
    .customer-visit-metrics {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.customer-visit-metric--walk-in {
    background: var(--soft-orange);
}

.pizza-finale-burst {
    position: fixed;
    z-index: 140;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.pizza-finale-burst::before,
.pizza-finale-burst::after {
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border: 6px solid var(--brand-yellow);
    border-radius: 50%;
    content: "";
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
    animation: pizza-finale-ring 900ms ease-out forwards;
}

.pizza-finale-burst::after {
    border-color: var(--brand-blue);
    animation-delay: 90ms;
}

.pizza-finale-burst > span {
    position: absolute;
    left: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--brand-orange);
    opacity: 0;
    animation: pizza-finale-particle 1150ms cubic-bezier(0.12, 0.75, 0.25, 1) var(--burst-delay) forwards;
}

.pizza-finale-burst > span:nth-child(4n + 1) { background: var(--brand-yellow); }
.pizza-finale-burst > span:nth-child(4n + 2) { background: var(--brand-lavender); }
.pizza-finale-burst > span:nth-child(4n + 3) { background: var(--brand-green); }
.pizza-finale-burst > span:nth-child(4n + 4) { background: var(--brand-orange); }

@keyframes pizza-finale-particle {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1.2);
    }
    72% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(var(--burst-x), var(--burst-y)) rotate(var(--burst-spin)) scale(0.55);
    }
}

@keyframes pizza-finale-ring {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(4.8);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pizza-finale-burst {
        display: none;
    }
}

/* Zero-pizza finale 0.5.30: one-minute full-screen pizza-slice rain. */
.pizza-finale-rain {
    position: fixed;
    inset: 0;
    z-index: 139;
    overflow: hidden;
    pointer-events: none;
    contain: layout paint;
}

.pizza-finale-slice {
    position: absolute;
    top: -110px;
    display: block;
    width: 1em;
    height: 1em;
    font-size: var(--pizza-rain-size, 48px);
    line-height: 1;
    opacity: 0;
    filter: drop-shadow(0 5px 3px rgb(0 0 0 / 0.2));
    will-change: transform, opacity;
    animation: pizza-finale-rain-fall var(--pizza-rain-duration, 7s) linear forwards;
}

@keyframes pizza-finale-rain-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -40px, 0) rotate(var(--pizza-rain-start-rotate, 0deg));
    }
    7% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--pizza-rain-drift, 0), calc(100vh + 220px), 0) rotate(var(--pizza-rain-end-rotate, 720deg));
    }
}

@media (prefers-reduced-motion: reduce) {
    .pizza-finale-rain {
        display: none;
    }
}

.pizza-countdown--celebrate {
    animation: pizza-finale-pop 900ms cubic-bezier(0.18, 0.85, 0.3, 1.25);
}

@keyframes pizza-finale-pop {
    0%, 100% { transform: scale(1) rotate(0deg); }
    22% { transform: scale(1.16) rotate(-5deg); }
    45% { transform: scale(0.96) rotate(4deg); }
    68% { transform: scale(1.08) rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
    .pizza-countdown--celebrate {
        animation: none;
    }
}


/* Service safety 0.5.15: make explicitly unpaid orders impossible to miss. */
.order-row--unpaid {
    border-left-color: var(--brand-red);
    box-shadow: inset 0 0 0 5px var(--brand-red);
}

.order-row--unpaid .order-content {
    background: #fff1eb;
}

.order-row--unpaid .order-oven-panel {
    background: #f6d6c9;
}

.order-unpaid-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 11px 0 5px;
    padding: 10px 12px;
    border: 3px solid var(--brand-red);
    border-radius: 8px;
    background: var(--brand-red);
    color: white;
}

.order-unpaid-warning strong {
    font-size: 1rem;
    font-weight: 950;
    letter-spacing: 0.055em;
}

.order-unpaid-warning span {
    font-size: 0.82rem;
    font-weight: 850;
}

@media (max-width: 720px) {
    .order-unpaid-warning {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

/* Dashboard-only verbal orders. */
.manual-order-button {
    min-height: 42px;
    padding: 8px 13px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: var(--brand-green);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.manual-order-button:hover,
.manual-order-button:focus-visible {
    background: white;
    color: var(--brand-green);
    outline: 3px solid rgba(51, 128, 61, 0.28);
    outline-offset: 2px;
}

.manual-order-dialog {
    width: min(940px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow: hidden;
    border: 4px solid var(--black);
    border-radius: var(--radius);
    background: var(--brand-cream);
    box-shadow: 0 24px 70px rgba(0, 20, 32, 0.45);
}

.manual-order-dialog::backdrop {
    background: rgba(0, 35, 56, 0.72);
}

.manual-order-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 36px);
}

.manual-order-dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 3px solid var(--black);
    background: var(--brand-blue);
    color: white;
}

.manual-order-dialog-toolbar > div {
    display: grid;
    gap: 2px;
}

.manual-order-dialog-toolbar strong {
    font-size: 1.2rem;
}

.manual-order-dialog-toolbar span {
    font-size: 0.8rem;
    font-weight: 800;
    opacity: 0.9;
}

.manual-order-close {
    padding: 7px 12px;
    border: 2px solid white;
    border-radius: 7px;
    background: white;
    color: var(--brand-blue);
    font-weight: 900;
    cursor: pointer;
}

.manual-order-dialog-body {
    overflow: auto;
    padding: 18px;
}

.manual-order-form {
    display: grid;
    gap: 18px;
}

.manual-order-callout {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 12px;
    border: 2px solid var(--brand-blue);
    border-radius: 8px;
    background: white;
}

.manual-order-callout strong {
    color: var(--brand-blue);
    white-space: nowrap;
}

.manual-order-callout span {
    color: var(--muted);
    font-weight: 700;
}

.manual-order-basics {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 0.8fr) minmax(130px, 0.7fr);
    gap: 12px;
}

.manual-order-form label {
    display: grid;
    gap: 5px;
    font-weight: 800;
}

.manual-order-form label > span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.manual-order-form input,
.manual-order-form select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 2px solid var(--black);
    border-radius: 7px;
    background: white;
    color: var(--text);
    font: inherit;
}

.manual-order-items {
    display: grid;
    gap: 10px;
}

.manual-order-items-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.manual-order-items-heading > div {
    display: grid;
    gap: 2px;
}

.manual-order-items-heading span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.manual-order-add-item,
.manual-order-remove-item {
    border: 2px solid var(--black);
    border-radius: 7px;
    background: white;
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.manual-order-add-item {
    padding: 7px 10px;
}

.manual-order-item-list {
    display: grid;
    gap: 9px;
}

.manual-order-item-row {
    display: grid;
    grid-template-columns: 80px minmax(220px, 1fr) minmax(130px, 0.45fr) auto;
    align-items: end;
    gap: 9px;
    padding: 10px;
    border: 2px solid rgba(17, 17, 17, 0.22);
    border-radius: 8px;
    background: white;
}

.manual-order-remove-item {
    min-height: 42px;
    padding: 8px 10px;
}

.manual-order-submit {
    min-height: 46px;
    padding: 9px 16px;
    border: 3px solid var(--black);
    border-radius: 8px;
    background: var(--brand-yellow);
    color: var(--text);
    font-weight: 950;
    cursor: pointer;
}

.manual-order-actions {
    display: flex;
    justify-content: flex-end;
}

.badge--manual {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: white;
}

.badge--manual-match {
    border-color: var(--black);
    background: var(--brand-yellow);
    color: var(--brand-blue);
}

.badge--manual-paid {
    border-color: var(--black);
    background: var(--brand-green);
    color: white;
}

.badge--manual-payment-warning {
    border-color: var(--black);
    background: var(--brand-red);
    color: white;
}

.manual-payment-details {
    background: var(--brand-yellow);
}

.manual-payment-details--paid {
    border-color: var(--brand-green);
    background: #eef8ef;
}

.manual-payment-details p {
    margin: 7px 0 0;
}

.manual-payment-state strong {
    color: var(--brand-green);
    font-size: 1.05rem;
    font-weight: 950;
}

.manual-payment-token {
    display: block;
    width: fit-content;
    margin-top: 12px;
    padding: 10px 14px;
    border: 3px solid var(--black);
    border-radius: 9px;
    background: white;
    color: var(--brand-blue);
    font-size: 1.3rem;
    font-weight: 950;
    letter-spacing: 0.02em;
}

.manual-payment-help {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.manual-payment-link-details {
    display: grid;
    gap: 6px;
    margin: 12px 0 0;
}

.manual-payment-link-details > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px;
}

.manual-payment-link-details dt {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.manual-payment-link-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 900;
}

.manual-payment-discrepancy {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    padding: 10px;
    border: 3px solid var(--brand-red);
    border-radius: 8px;
    background: white;
}

.manual-payment-discrepancy strong {
    color: var(--brand-red);
}

@media (max-width: 760px) {
    .manual-order-basics,
    .manual-order-item-row {
        grid-template-columns: 1fr;
    }

    .manual-order-items-heading,
    .manual-order-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .manual-order-actions,
    .manual-order-submit,
    .manual-order-add-item,
    .manual-order-remove-item {
        width: 100%;
    }
}

/* Dashboard-only order removal: destructive locally, never mutates Square. */
.dashboard-order-removal {
    border-color: var(--brand-red);
    background: #fff4ef;
}

.dashboard-order-removal h3 {
    color: var(--brand-red);
}

.dashboard-order-removal p {
    margin-bottom: 10px;
}

.dashboard-order-removal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-order-removal-button {
    border: 3px solid var(--black);
    border-radius: 8px;
    padding: 8px 12px;
    background: var(--brand-red);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

.dashboard-order-removal-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.dashboard-order-removal-warning {
    margin-top: 10px;
    margin-bottom: 0 !important;
    font-size: 0.8rem;
    font-weight: 800;
}

/* Service ergonomics 0.5.17: distinct badges, VIPs, and fixed timer utilities. */
:root {
    --cookie-brown: #7a4a24;
    --drink-deep-blue: #003a5d;
}

.customer-name-wrap {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.vip-star {
    display: inline-grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid var(--black);
    border-radius: 50%;
    background: var(--brand-yellow);
    color: var(--black);
    font-size: 1rem;
    line-height: 1;
}

.badge--cookie {
    background: var(--cookie-brown);
    color: var(--brand-cream);
}

.badge--drink {
    background: var(--drink-deep-blue);
    color: var(--brand-cream);
}

.badge--merch {
    background: var(--brand-cream);
    color: var(--brand-blue);
}

.vip-customer-editor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vip-customer-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.vip-customer-button {
    min-height: 44px;
    padding: 8px 13px;
    border: 3px solid var(--black);
    border-radius: 9px;
    background: var(--brand-yellow);
    color: var(--black);
    cursor: pointer;
    font-weight: 900;
}

.vip-customer-button.is-vip {
    background: var(--brand-cream);
}

.active-timer-rail {
    position: fixed;
    top: 50%;
    right: 14px;
    z-index: 70;
    display: grid;
    width: 178px;
    max-height: calc(100vh - 220px);
    gap: 8px;
    transform: translateY(-50%);
    pointer-events: none;
}

.active-timer-rail[hidden] {
    display: none;
}

.active-timer-rail-item {
    display: grid;
    width: 100%;
    gap: 2px;
    padding: 8px 10px;
    border: 3px solid var(--black);
    border-radius: 10px;
    background: var(--brand-yellow);
    box-shadow: 0 7px 18px rgba(0, 35, 56, 0.28);
    color: var(--text);
    cursor: pointer;
    pointer-events: auto;
    text-align: left;
}

.active-timer-rail-item--paused {
    background: var(--brand-lavender);
}

.active-timer-rail-item--done {
    background: var(--brand-red);
    color: white;
}

.active-timer-rail-customer,
.active-timer-rail-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active-timer-rail-customer {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.active-timer-rail-time {
    font-size: 1.35rem;
    font-weight: 950;
    line-height: 1;
}

.active-timer-rail-meta {
    font-size: 0.67rem;
    font-weight: 800;
}

.jump-to-top {
    position: fixed;
    left: 16px;
    bottom: 18px;
    z-index: 65;
    min-height: 46px;
    padding: 8px 13px;
    border: 3px solid var(--black);
    border-radius: 999px;
    background: var(--brand-cream);
    box-shadow: 0 7px 18px rgba(0, 35, 56, 0.25);
    color: var(--brand-blue);
    cursor: pointer;
    font-weight: 950;
}

.jump-to-top:hover,
.jump-to-top:focus-visible {
    background: white;
}

@media (max-width: 820px) {
    .active-timer-rail {
        right: 8px;
        width: 158px;
        max-height: calc(100vh - 205px);
        gap: 6px;
    }

    .active-timer-rail-item {
        padding: 7px 8px;
    }

    .active-timer-rail-time {
        font-size: 1.2rem;
    }

    .jump-to-top {
        left: 10px;
        bottom: 10px;
    }
}

/* Service hierarchy 0.5.18: clearer production and customer-status controls. */
.badge--salad {
    border-color: var(--brand-green);
    background: var(--brand-green);
    color: white;
}

.badge--boxed-action {
    border-color: var(--black);
    background: var(--black);
    color: white;
}

.badge--boxed-action:hover,
.badge--boxed-action:focus-visible {
    background: #2b2b2b;
    color: white;
}

.badge--boxed-action.is-boxed {
    background: #777f83;
    color: white;
}

.customer-name-wrap .badge--customer {
    min-height: 24px;
    padding: 2px 7px;
    border-width: 2px;
    border-radius: 5px;
    font-size: 0.66rem;
    letter-spacing: 0.055em;
    line-height: 1.1;
    box-shadow: none;
}

.customer-name-wrap .badge--customer-first-timer {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: var(--brand-cream);
}

.customer-name-wrap .badge--customer-returning {
    border-color: var(--black);
    background: var(--brand-lavender);
    color: var(--black);
}

.customer-name-wrap .badge--customer-regular {
    border-color: var(--brand-red);
    background: var(--brand-red);
    color: var(--brand-cream);
}

.order-capacity-control {
    display: flex;
    justify-content: flex-start;
    margin-top: 13px;
}

.order-capacity-control .badge--candidate-action {
    min-height: 36px;
    padding-inline: 13px;
}


/* Service card refinement 0.5.23: preserve flexible cards while relocating controls. */
.item-main {
    flex-wrap: wrap;
}

.item-label {
    flex: 1 1 220px;
}

.pizza-bake-controls {
    max-width: 100%;
}

.order-boxed-inline {
    width: 142px;
    min-height: 52px;
    padding: 5px 10px;
    border-radius: 9px;
    white-space: nowrap;
}

.order-boxed-fallback {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.order-row--cookie:not(.order-row--boxed) {
    box-shadow: inset 0 6px 0 var(--cookie-brown), inset 0 -6px 0 var(--cookie-brown);
}

.order-row--cookie:not(.order-row--salad):not(.order-row--boxed) {
    border-left-color: var(--cookie-brown);
    background: #f2e5d8;
}

.capacity-release-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.capacity-release-details p {
    margin-bottom: 0;
}

.capacity-release-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.capacity-release-actions .badge--candidate-action {
    min-height: 40px;
    padding-inline: 13px;
}

@media (max-width: 720px) {
    .capacity-release-details {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Service card refinement 0.5.24: boxed action left of timer stack; understated customer history. */
.pizza-bake-controls {
    align-items: stretch;
    flex-wrap: nowrap;
}

.pizza-bake-stack {
    display: grid;
    gap: 8px;
}

.order-boxed-inline {
    display: grid;
    align-self: stretch;
    grid-template-rows: auto 0.8rem;
    align-content: center;
    justify-items: center;
    justify-content: center;
    gap: 2px;
}

.order-boxed-meta {
    min-height: 0.8rem;
    visibility: hidden;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 0.8rem;
}

.order-boxed-meta.is-visible {
    visibility: visible;
}

.customer-name-wrap .badge--customer,
.customer-name-wrap .badge--customer-first-timer,
.customer-name-wrap .badge--customer-returning,
.customer-name-wrap .badge--customer-regular {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #9a6a00;
    font-size: 0.7rem;
    letter-spacing: 0.055em;
    line-height: 1.15;
}

@media (max-width: 760px) {
    .pizza-bake-controls {
        flex-wrap: wrap;
    }

    .order-boxed-inline {
        min-height: 48px;
    }
}


/* Customer visit medal 0.5.29: playful pizza achievement badges. */
.visit-medal {
    --crust: #b86f2c;
    --crust-light: #e4a654;
    --cheese: #f3cd54;
    --sauce: #b33b2f;
    --basil: #33803d;
    position: relative;
    display: inline-grid;
    width: 50px;
    height: 46px;
    flex: 0 0 50px;
    place-items: center;
    vertical-align: middle;
    isolation: isolate;
}

/* Former ribbon hooks are repurposed as tiny playful cheese drips. */
.visit-medal-ribbon {
    position: absolute;
    top: 30px;
    width: 8px;
    height: 10px;
    border-radius: 0 0 7px 7px;
    background: var(--cheese);
    box-shadow: inset 0 -2px 0 rgba(184,111,44,.22);
    z-index: 0;
}
.visit-medal-ribbon--left { left: 11px; transform: rotate(8deg); }
.visit-medal-ribbon--right { right: 11px; transform: rotate(-8deg); }

.visit-medal-core {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 38px;
    height: 38px;
    transform: translateX(-50%);
    border: 4px solid var(--crust);
    border-radius: 50%;
    background:
        radial-gradient(circle at 27% 31%, var(--sauce) 0 3px, transparent 3.5px),
        radial-gradient(circle at 72% 32%, var(--sauce) 0 3px, transparent 3.5px),
        radial-gradient(circle at 70% 72%, var(--sauce) 0 2.7px, transparent 3.2px),
        radial-gradient(circle at 27% 72%, var(--basil) 0 2.2px, transparent 2.7px),
        var(--cheese);
    box-shadow:
        inset 0 0 0 2px #ffe8a2,
        0 1px 0 rgba(0,35,56,.16);
    z-index: 1;
}

.visit-medal-core::before,
.visit-medal-core::after,
.visit-medal-flourish::before,
.visit-medal-flourish::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.visit-medal-core::before {
    inset: 3px;
    border: 1px solid rgba(184,111,44,.22);
    border-radius: 50%;
}

.visit-medal-flourish {
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 3;
}
.visit-medal-flourish--left { left: 4px; top: 14px; }
.visit-medal-flourish--right { right: 4px; top: 14px; }

.visit-medal-number {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    min-width: 20px;
    padding: 2px 3px 1px;
    border-radius: 999px;
    background: rgba(255,248,226,.94);
    color: #111;
    font-size: .98rem;
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1;
    text-align: center;
}

/* 1 visit: a simple little cheese pizza token. */
.visit-medal--tier-1 {
    width: 42px;
    height: 40px;
    flex-basis: 42px;
}
.visit-medal--tier-1 .visit-medal-ribbon,
.visit-medal--tier-1 .visit-medal-flourish { display: none; }
.visit-medal--tier-1 .visit-medal-core {
    width: 32px;
    height: 32px;
    top: 3px;
    border-width: 3px;
    background:
        radial-gradient(circle at 30% 33%, var(--sauce) 0 2.5px, transparent 3px),
        radial-gradient(circle at 70% 66%, var(--sauce) 0 2.5px, transparent 3px),
        var(--cheese);
}
.visit-medal--tier-1 .visit-medal-number { top: 12px; font-size: .86rem; }

/* 2-4 visits: more toppings + the first cheese drips. */
.visit-medal--tier-2 .visit-medal-flourish { display: none; }
.visit-medal--tier-2 .visit-medal-core {
    background:
        radial-gradient(circle at 26% 29%, var(--sauce) 0 3px, transparent 3.5px),
        radial-gradient(circle at 72% 29%, var(--sauce) 0 3px, transparent 3.5px),
        radial-gradient(circle at 69% 73%, var(--sauce) 0 2.7px, transparent 3.2px),
        radial-gradient(circle at 31% 70%, #865729 0 2px, transparent 2.5px),
        var(--cheese);
}

/* 5-9 visits: double crust ring and basil leaves. */
.visit-medal--tier-3 .visit-medal-core {
    box-shadow:
        inset 0 0 0 2px #ffe8a2,
        0 0 0 2px var(--crust-light),
        0 1px 0 rgba(0,35,56,.16);
}
.visit-medal--tier-3 .visit-medal-flourish::before {
    inset: 1px;
    border-radius: 90% 10% 90% 10%;
    background: var(--basil);
    transform: rotate(35deg);
}
.visit-medal--tier-3 .visit-medal-flourish--right::before { transform: rotate(-35deg) scaleX(-1); }

/* 10-24 visits: pizza-wheel scallops around the crust. */
.visit-medal--tier-4 {
    width: 54px;
    flex-basis: 54px;
}
.visit-medal--tier-4 .visit-medal-core {
    box-shadow:
        inset 0 0 0 2px #ffe8a2,
        0 0 0 2px var(--crust-light),
        0 0 0 5px rgba(243,205,84,.38),
        0 1px 0 rgba(0,35,56,.16);
}
.visit-medal--tier-4 .visit-medal-flourish::before,
.visit-medal--tier-4 .visit-medal-flourish::after {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sauce);
    box-shadow: 0 8px 0 var(--crust-light);
}
.visit-medal--tier-4 .visit-medal-flourish::after { left: 2px; top: -5px; background: var(--basil); }

/* 25-49 visits: loaded pizza with crust 'handles' and green garnish. */
.visit-medal--tier-5 {
    width: 58px;
    height: 50px;
    flex-basis: 58px;
}
.visit-medal--tier-5 .visit-medal-core {
    width: 40px;
    height: 40px;
    top: 1px;
    box-shadow:
        inset 0 0 0 2px #ffe8a2,
        0 0 0 3px var(--crust-light),
        0 0 0 6px rgba(51,128,61,.18),
        0 1px 0 rgba(0,35,56,.16);
}
.visit-medal--tier-5 .visit-medal-flourish::before {
    inset: 0;
    border-radius: 100% 0 100% 0;
    background: var(--basil);
    transform: rotate(45deg);
}
.visit-medal--tier-5 .visit-medal-flourish::after {
    width: 6px;
    height: 6px;
    border: 2px solid var(--crust-light);
    border-radius: 50%;
    top: 2px;
    left: 2px;
}

/* 50-99 visits: deluxe pie with a sauce-red outer halo and extra toppings. */
.visit-medal--tier-6 {
    width: 62px;
    height: 54px;
    flex-basis: 62px;
}
.visit-medal--tier-6 .visit-medal-ribbon {
    width: 10px;
    height: 13px;
    top: 34px;
}
.visit-medal--tier-6 .visit-medal-core {
    width: 42px;
    height: 42px;
    top: 0;
    box-shadow:
        inset 0 0 0 2px #ffe8a2,
        0 0 0 3px var(--crust-light),
        0 0 0 6px rgba(179,59,47,.24),
        0 0 0 8px rgba(243,205,84,.25),
        0 2px 0 rgba(0,35,56,.16);
}
.visit-medal--tier-6 .visit-medal-flourish::before {
    inset: 0;
    border-radius: 100% 0 100% 0;
    background: var(--basil);
    transform: rotate(45deg);
}
.visit-medal--tier-6 .visit-medal-flourish::after {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sauce);
    left: 3px;
    top: -5px;
    box-shadow: 0 16px 0 #865729;
}
.visit-medal--tier-6 .visit-medal-number { top: 14px; }

/* 100+ visits: ridiculous supreme-pizza achievement badge. */
.visit-medal--tier-7 {
    width: 68px;
    height: 58px;
    flex-basis: 68px;
}
.visit-medal--tier-7 .visit-medal-ribbon {
    width: 11px;
    height: 15px;
    top: 36px;
    background: linear-gradient(180deg, var(--cheese), #e0ad31);
}
.visit-medal--tier-7 .visit-medal-core {
    width: 46px;
    height: 46px;
    top: -1px;
    border-width: 5px;
    background:
        radial-gradient(circle at 22% 25%, var(--sauce) 0 3px, transparent 3.5px),
        radial-gradient(circle at 50% 20%, #865729 0 2.3px, transparent 2.8px),
        radial-gradient(circle at 78% 28%, var(--sauce) 0 3px, transparent 3.5px),
        radial-gradient(circle at 73% 68%, var(--basil) 0 2.4px, transparent 2.9px),
        radial-gradient(circle at 48% 78%, var(--sauce) 0 2.8px, transparent 3.3px),
        radial-gradient(circle at 25% 69%, #865729 0 2.3px, transparent 2.8px),
        var(--cheese);
    box-shadow:
        inset 0 0 0 2px #ffe8a2,
        0 0 0 3px var(--crust-light),
        0 0 0 6px rgba(51,128,61,.22),
        0 0 0 9px rgba(179,59,47,.16),
        0 0 0 11px rgba(243,205,84,.25),
        0 2px 0 rgba(0,35,56,.16);
}
.visit-medal--tier-7 .visit-medal-core::after {
    left: 50%;
    top: -12px;
    width: 16px;
    height: 10px;
    transform: translateX(-50%);
    border-radius: 50% 50% 20% 20%;
    background:
        radial-gradient(circle at 28% 55%, var(--sauce) 0 2px, transparent 2.4px),
        radial-gradient(circle at 72% 55%, var(--basil) 0 2px, transparent 2.4px),
        var(--cheese);
    border: 2px solid var(--crust);
}
.visit-medal--tier-7 .visit-medal-flourish::before {
    inset: 0;
    border-radius: 100% 0 100% 0;
    background: var(--basil);
    transform: rotate(45deg) scale(1.15);
}
.visit-medal--tier-7 .visit-medal-flourish::after {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sauce);
    top: 1px;
    left: 1px;
    box-shadow: 0 10px 0 #865729;
}
.visit-medal--tier-7 .visit-medal-number {
    top: 14px;
    font-size: 1rem;
}

@media (max-width: 760px) {
    .visit-medal { width: 46px; height: 43px; flex-basis: 46px; }
    .visit-medal-core { width: 34px; height: 34px; }
    .visit-medal-number { top: 12px; min-width: 19px; font-size: .84rem; }
    .visit-medal--tier-5 { width: 52px; flex-basis: 52px; }
    .visit-medal--tier-6 { width: 56px; flex-basis: 56px; }
    .visit-medal--tier-7 { width: 60px; height: 52px; flex-basis: 60px; }
    .visit-medal--tier-7 .visit-medal-core { width: 40px; height: 40px; }
    .visit-medal--tier-7 .visit-medal-number { top: 13px; }
}




/* Prep List + Recipes: shared service-day checklist and prep reference library. */
.prep-list-button,
.recipes-button {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 2px solid var(--black);
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.prep-list-button,
.recipes-button {
    background: var(--brand-yellow);
    color: var(--black);
}

.prep-list-button:hover,
.prep-list-button:focus-visible,
.recipes-button:hover,
.recipes-button:focus-visible {
    background: white;
    color: var(--black);
    outline: 3px solid rgba(246, 224, 87, 0.38);
    outline-offset: 2px;
}

.prep-list-count,
.recipes-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.12);
    font-size: 0.74rem;
    line-height: 1;
}

.recipes-count {
    background: rgba(17, 17, 17, 0.12);
}

.prep-list-count[hidden],
.recipes-count[hidden] {
    display: none !important;
}

.prep-list-dialog,
.recipes-dialog {
    width: min(1050px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow: hidden;
    border: 4px solid var(--black);
    border-radius: var(--radius);
    background: var(--brand-cream);
    box-shadow: 0 24px 70px rgba(0, 20, 32, 0.45);
}

.prep-list-dialog::backdrop,
.recipes-dialog::backdrop {
    background: rgba(0, 35, 56, 0.72);
}

.prep-list-dialog-shell,
.recipes-dialog-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100vh - 36px);
}

.prep-list-dialog-toolbar,
.recipes-dialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-bottom: 3px solid var(--black);
}

.prep-list-dialog-toolbar {
    background: var(--brand-green);
    color: white;
}

.recipes-dialog-toolbar {
    background: var(--brand-lavender);
    color: var(--text);
}

.prep-list-dialog-toolbar > div,
.recipes-dialog-toolbar > div {
    display: grid;
    gap: 2px;
}

.prep-list-dialog-toolbar strong,
.recipes-dialog-toolbar strong {
    font-size: 1.2rem;
}

.prep-list-dialog-toolbar span,
.recipes-dialog-toolbar span {
    font-size: 0.8rem;
    font-weight: 800;
}

.prep-list-dialog-toolbar span {
    color: rgba(255, 255, 255, 0.8);
}

.prep-list-close,
.recipes-close {
    padding: 7px 12px;
    border: 2px solid var(--black);
    border-radius: 7px;
    background: white;
    color: var(--text);
    font-weight: 900;
    cursor: pointer;
}

.prep-list-dialog-body {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
    overflow: hidden;
}

.prep-list-main {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto minmax(120px, 1fr) auto auto;
    background: #fffdf3;
}

.prep-list-status-row,
.recipe-library-heading {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 2px solid var(--black);
    background: white;
}

.prep-list-status-row > span,
.recipe-library-heading > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.prep-task-list {
    display: grid;
    align-content: start;
    gap: 9px;
    overflow: auto;
    padding: 14px 16px;
}

.prep-list-empty,
.recipe-list-empty {
    margin: 18px;
    color: var(--muted);
    font-weight: 850;
    text-align: center;
}

.prep-task-row {
    display: grid;
    grid-template-columns: 42px 38px minmax(0, 1fr) minmax(150px, 210px) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 2px solid var(--black);
    border-radius: 10px;
    background: white;
    box-shadow: 2px 2px 0 rgba(17, 17, 17, 0.1);
}

.prep-task-row.is-complete {
    background: #eef1ea;
    opacity: 0.7;
}


.prep-task-reorder {
    display: grid;
    gap: 3px;
}

.prep-task-move {
    width: 36px;
    min-height: 30px;
    padding: 0;
    border: 2px solid var(--black);
    border-radius: 6px;
    background: var(--brand-yellow);
    color: var(--black);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
}

.prep-task-move:disabled {
    opacity: 0.25;
    cursor: default;
}

.prep-task-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prep-task-check input {
    width: 28px;
    height: 28px;
    margin: 0;
    accent-color: var(--brand-green);
    cursor: pointer;
}

.prep-task-text {
    min-width: 0;
    font-size: 1rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.prep-task-row.is-complete .prep-task-text {
    text-decoration: line-through;
}

.prep-task-assignee {
    width: 100%;
    min-height: 40px;
    padding: 6px 8px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: white;
    color: var(--text);
    font-weight: 800;
}

.prep-task-remove,
.prep-team-remove,
.recipe-delete {
    min-height: 38px;
    padding: 6px 9px;
    border: 2px solid var(--black);
    border-radius: 7px;
    background: white;
    color: var(--brand-red);
    font-weight: 900;
    cursor: pointer;
}

.prep-task-add-form {
    display: grid;
    gap: 7px;
    padding: 12px 16px 15px;
    border-top: 3px solid var(--black);
    background: var(--brand-yellow);
}

.prep-task-add-form > label,
.recipe-add-form label,
.recipe-edit-form label {
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.prep-task-add-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 210px) auto;
    gap: 8px;
}

.prep-task-add-grid input,
.prep-task-add-grid select,
.prep-assignee-form input,
.recipe-add-form input,
.recipe-add-form textarea,
.recipe-edit-form input,
.recipe-edit-form textarea {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: white;
    color: var(--text);
}

.prep-task-add-grid button,
.prep-assignee-form button,
.recipe-add-form > button,
.recipe-save {
    min-height: 42px;
    padding: 8px 13px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: var(--brand-orange);
    color: var(--text);
    font-weight: 950;
    cursor: pointer;
}

.prep-team-panel {
    display: grid;
    min-height: 0;
    align-content: start;
    grid-template-rows: auto minmax(80px, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border-left: 3px solid var(--black);
    background: var(--soft-green);
}

.prep-team-panel > div:first-child {
    display: grid;
    gap: 3px;
}

.prep-team-panel > div:first-child span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.prep-team-list {
    display: grid;
    align-content: start;
    gap: 7px;
    overflow: auto;
}

.prep-team-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 9px;
    border: 2px solid var(--black);
    border-radius: 8px;
    background: white;
    font-weight: 850;
}

.prep-assignee-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
}

.recipes-dialog-body {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    overflow: hidden;
}

.recipe-library-panel {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto minmax(100px, 1fr) auto;
    background: #fffdf3;
}

.recipe-list {
    display: grid;
    align-content: start;
    gap: 10px;
    overflow: auto;
    padding: 14px 16px;
}

.recipe-card {
    border: 2px solid var(--black);
    border-radius: 10px;
    background: white;
    box-shadow: 2px 2px 0 rgba(17, 17, 17, 0.1);
}

.recipe-card summary {
    padding: 12px 14px;
    color: var(--brand-blue);
    font-size: 1rem;
    font-weight: 950;
    cursor: pointer;
}

.recipe-card[open] summary {
    border-bottom: 2px solid var(--black);
    background: var(--soft-blue);
}

.recipe-edit-form {
    display: grid;
    gap: 8px;
    padding: 12px 14px 14px;
}

.recipe-edit-form textarea,
.recipe-add-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.35;
}

.recipe-edit-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.recipe-add-form {
    display: grid;
    min-height: 0;
    align-content: start;
    gap: 8px;
    overflow: auto;
    padding: 16px;
    border-left: 3px solid var(--black);
    background: var(--brand-yellow);
}

.recipe-add-form > strong {
    margin-bottom: 2px;
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .prep-list-dialog-body,
    .recipes-dialog-body {
        grid-template-columns: 1fr;
        overflow: auto;
    }

    .prep-list-main,
    .recipe-library-panel {
        min-height: 420px;
    }

    .prep-team-panel,
    .recipe-add-form {
        border-top: 3px solid var(--black);
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .prep-list-button,
    .recipes-button {
        order: 2;
    }

    .prep-list-dialog-toolbar,
    .recipes-dialog-toolbar {
        align-items: flex-start;
    }

    .prep-task-row {
        grid-template-columns: 42px 38px minmax(0, 1fr) auto;
    }

    .prep-task-assignee {
        grid-column: 3 / -1;
    }

    .prep-task-add-grid {
        grid-template-columns: 1fr;
    }

    .prep-task-add-grid button,
    .prep-assignee-form button,
    .recipe-add-form > button,
    .recipe-save,
    .recipe-delete {
        min-height: 48px;
    }
}

/* Online ordering reserve settings. */
.online-reserve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 9px;
    margin-top: 10px;
}

.toolbar-label--compact {
    display: none;
}

/* Cut instructions remain visible across the full card, even after boxing. */
.order-row--double-cut:not(.order-row--unpaid) {
    border-left-color: var(--brand-red);
    box-shadow: inset 0 0 0 4px var(--brand-red);
}

.order-row--double-cut:not(.order-row--unpaid),
.order-row--double-cut:not(.order-row--unpaid) .order-content,
.order-row--double-cut:not(.order-row--unpaid) .order-oven-panel {
    background-image: repeating-linear-gradient(
        90deg,
        rgba(165, 48, 31, 0.16) 0,
        rgba(165, 48, 31, 0.16) 3px,
        transparent 3px,
        transparent 56px
    );
}

.order-row--dont-cut:not(.order-row--unpaid) {
    border-left-color: var(--brand-red);
    box-shadow: inset 0 0 0 4px var(--brand-red);
}

.order-row--dont-cut:not(.order-row--unpaid),
.order-row--dont-cut:not(.order-row--unpaid) .order-content,
.order-row--dont-cut:not(.order-row--unpaid) .order-oven-panel {
    background-image:
        linear-gradient(
            45deg,
            transparent 46%,
            rgba(165, 48, 31, 0.16) 47%,
            rgba(165, 48, 31, 0.16) 53%,
            transparent 54%
        ),
        linear-gradient(
            -45deg,
            transparent 46%,
            rgba(165, 48, 31, 0.16) 47%,
            rgba(165, 48, 31, 0.16) 53%,
            transparent 54%
        );
    background-size: 68px 68px;
}

/*
 * iPad 11 landscape: keep both primary toolbars to one compact row.
 * Firefox Responsive Design Mode does not consistently update the CSS
 * orientation media feature when a device preset is rotated, so this is
 * deliberately keyed only to the landscape viewport-width range.
 */
@media (min-width: 901px) and (max-width: 1280px) {
    .masthead-tools--single-row {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .pizzeria-mari-logo {
        width: clamp(175px, 17.5vw, 210px);
        min-width: 0;
    }

    .manual-order-button,
    .service-notes-button,
    .prep-list-button,
    .recipes-button,
    .service-setup-button {
        min-height: 38px;
        flex: 0 0 auto;
        gap: 5px;
        padding: 6px 8px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .toolbar-label--full {
        display: none;
    }

    .toolbar-label--compact {
        display: inline;
    }

    .service-notes-count,
    .prep-list-count,
    .recipes-count {
        min-width: 19px;
        height: 19px;
        padding: 0 5px;
        font-size: 0.67rem;
    }

    .masthead-tools--single-row .date-navigation {
        flex: 0 0 auto;
        gap: 4px;
    }

    .masthead-tools--single-row .date-step {
        width: 38px;
        min-height: 38px;
        font-size: 1.1rem;
    }

    .masthead-tools--single-row .date-picker input {
        width: 132px;
        min-height: 38px;
        padding: 5px 7px;
        font-size: 0.78rem;
    }

    .masthead-tools--single-row .date-picker button {
        min-height: 38px;
        padding: 0 8px;
        font-size: 0.78rem;
    }

    .board-section .section-heading {
        align-items: center;
        gap: 12px;
    }

    .board-section .section-heading > div:first-child {
        flex: 0 0 auto;
    }

    .board-section .section-heading h2 {
        font-size: 1.55rem;
        white-space: nowrap;
    }

    .board-section .section-heading .eyebrow {
        font-size: 0.67rem;
    }

    .board-section .sync-controls {
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .board-section .sync-controls > *,
    .board-section .sync-controls form {
        flex: 0 0 auto;
        min-width: 0;
    }

    .board-section .prep-view-control,
    .board-section .incremental-sync-button,
    .board-section .auto-refresh-control,
    .board-section .customer-history-sync-button,
    .board-section .sync-button {
        min-height: 38px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .board-section .prep-view-control {
        gap: 6px;
    }

    .board-section .prep-view-control input,
    .board-section .auto-refresh-toggle input {
        width: 17px;
        height: 17px;
    }

    .board-section .prep-view-control small {
        display: none;
    }

    .board-section .auto-refresh-control {
        gap: 6px;
        padding-right: 6px;
    }

    .board-section .auto-refresh-scope-note {
        display: none;
    }

    .board-section .auto-refresh-toggle,
    .board-section .auto-refresh-interval {
        gap: 4px;
    }

    .board-section .auto-refresh-interval select {
        min-height: 27px;
        padding: 1px 2px;
    }
}
