/* Isolated public demonstration; no operational Control Board selectors. */
.order-workflow {
    --workflow-ink: #10233f;
    --workflow-muted: #566579;
    --workflow-line: #dce3eb;
    --workflow-gold: #f2b544;
    --workflow-green: #17684b;
    color: var(--workflow-ink);
    background: linear-gradient(135deg, #fffdf8, #f3f6fa);
    border: 1px solid #e2e6eb;
    border-radius: 28px;
    padding: clamp(18px, 3vw, 40px);
    margin: 24px auto 32px;
    max-width: 1460px;
    scroll-margin-top: 24px;
    overflow: hidden;
}
.order-workflow *, .order-workflow *::before, .order-workflow *::after { box-sizing: border-box; }
.order-workflow [hidden] { display: none !important; }
/* Show the incoming-order message only while the ticket is loading. */
#orderWorkflow .workflow-loading {
    display: none;
}

#orderWorkflow[data-state="loading"] #workflowEmpty > :not(.workflow-loading) {
    display: none;
}

#orderWorkflow[data-state="loading"] .workflow-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

#orderWorkflow .workflow-loading h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 750;
    color: var(--board-ink, #122f37);
}

#orderWorkflow .workflow-loading-spinner {
    display: block;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    border: 4px solid #d9e7e7;
    border-top-color: var(--board-accent, #087f80);
    border-radius: 50%;
    animation: workflow-loading-spin 0.9s linear infinite;
}

@keyframes workflow-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    #orderWorkflow .workflow-loading-spinner {
        animation: none;
    }
}
.order-workflow button { font: inherit; cursor: pointer; }
.order-workflow button:disabled { cursor: default; opacity: .55; }
.order-workflow button:focus-visible, .order-workflow [tabindex]:focus-visible { outline: 3px solid #3276cb; outline-offset: 3px; }
.workflow-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.workflow-eyebrow { color: #8b6017; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 9px; }
.workflow-heading h2 { color: var(--workflow-ink); font-size: clamp(1.65rem, 2.7vw, 2.7rem); line-height: 1.13; letter-spacing: -.045em; margin: 0 0 12px; }
.workflow-heading p:last-child { margin: 0; color: var(--workflow-muted); font-size: 1.05rem; line-height: 1.55; max-width: 760px; }
.workflow-outline-button { border: 1px solid #c8d2df; background: #fff; color: var(--workflow-ink); border-radius: 10px; padding: 10px 15px; font-size: .85rem; font-weight: 700; white-space: nowrap; min-height: 42px; }
.workflow-outline-button:hover:not(:disabled) { border-color: #536b89; background: #f2f6fc; }
.workflow-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 0 0 20px; }
.workflow-steps li { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--workflow-line); border-radius: 13px; background: #fff9; min-width: 0; }
.workflow-step-number { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: #e8edf3; color: #5c6d84; font-size: .9rem; font-weight: 800; }
.workflow-steps strong { display: block; font-size: .94rem; line-height: 1.3; }
.workflow-steps li div > span { display: block; font-size: .76rem; line-height: 1.4; color: var(--workflow-muted); margin-top: 3px; }
.workflow-steps [aria-current="step"] { border-color: #dbad53; background: #fffaed; box-shadow: 0 0 0 1px #f4ddb2; }
.workflow-steps [aria-current="step"] .workflow-step-number { background: var(--workflow-gold); color: #342505; }
.workflow-steps .is-complete .workflow-step-number { background: #dceee4; color: var(--workflow-green); }
.workflow-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 48px; margin-bottom: 17px; }
.workflow-toolbar > p { margin: 0; color: #42536b; font-size: .9rem; line-height: 1.45; }
.workflow-playback { display: flex; gap: 7px; flex-shrink: 0; }
.workflow-playback .workflow-outline-button { font-size: .78rem; padding: 8px 11px; min-height: 38px; }
.workflow-stage { display: grid; grid-template-columns: minmax(0, 1.15fr) 64px minmax(0, .9fr); align-items: center; gap: 0; }
.workflow-tablet { position: relative; background: #172238; border: 2px solid #526077; border-radius: 26px; padding: 16px 13px 14px; box-shadow: 0 15px 40px #192d4c22, inset 0 0 0 2px #101928; min-width: 0; }
.workflow-tablet-camera { width: 5px; height: 5px; border-radius: 50%; background: #566477; position: absolute; top: 6px; left: calc(50% - 2px); }
/* Ticket layout and colours follow DisplayBoard/wwwroot/control-board.css.
   Container queries apply its responsive layout to the iPad preview itself. */
.workflow-tablet-screen {
    --board-ink: #122f37;
    --board-muted: #53676b;
    --board-line: #d9e1df;
    --board-accent: #087f80;
    --board-surface: #edf2f3;
    container-type: inline-size;
    background: white;
    color: var(--board-ink);
    border-radius: 14px;
    overflow: hidden;
    font: 18px/normal system-ui, -apple-system, "Segoe UI", sans-serif;
}
.workflow-tablet-screen button { font: inherit; min-height: 44px; border: 0; border-radius: 8px; font-weight: 750; touch-action: manipulation; }
.workflow-tablet-screen button:disabled { opacity: .48; }
.workflow-tablet-screen button:focus-visible, .workflow-tablet-screen [tabindex]:focus-visible { outline: 3px solid #efb73e; outline-offset: -3px; }
.workflow-ticket-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 52px; padding: 4px 20px; background: var(--board-surface); }
.workflow-nav-left, .workflow-nav-right { display: flex; align-items: center; gap: clamp(12px, 2cqw, 28px); min-width: 0; }
.workflow-nav-right { justify-content: flex-end; }
.workflow-arrow-button { background: #dfe7ea; color: var(--board-ink); padding: 8px 18px; white-space: nowrap; }
#workflowQueuePosition { font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
#workflowTicketNumber { margin: 0; font-size: clamp(1.6rem, 3.1cqw, 2.25rem); font-weight: 850; text-align: center; line-height: 1.15; color: var(--board-ink); letter-spacing: -.02em; }
.workflow-waiting-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; padding: 0 20px; background: #9d2619; color: white; }
.workflow-waiting-alert strong { font-size: 1rem; font-weight: 850; }
.workflow-waiting-alert span { font-size: .9rem; }
.workflow-ticket-card { display: flex; flex-direction: column; min-height: 0; background: white; overflow: hidden; border-top: 2px solid var(--board-line); }
.workflow-ticket-content { position: relative; isolation: isolate; }
.workflow-ticket-scroll { height: 390px; overflow: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
.workflow-ticket-metadata { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px 16px; margin: 0 20px; padding: 8px; border-bottom: 1px solid var(--board-line); font-size: 1.125rem; line-height: 1.35; }
.workflow-ticket-metadata > div { min-width: 0; overflow-wrap: anywhere; }
.workflow-metadata-customer, .workflow-metadata-phone { grid-column: span 3; }
.workflow-metadata-date, .workflow-metadata-ordered, .workflow-metadata-pickup { grid-column: span 2; }
.workflow-ticket-metadata span { font-weight: 500; }
.workflow-ticket-metadata strong { font-weight: 650; }
.workflow-ticket-items { padding: 10px 28px 12px; }
.workflow-order-item { display: grid; grid-template-columns: minmax(30px, max-content) minmax(0, 1fr); gap: 16px; margin-bottom: 10px; }
.workflow-order-item:last-child { margin-bottom: 0; }
.workflow-item-quantity, .workflow-item-title { font-size: clamp(1.4rem, 2.6cqw, 1.75rem); font-weight: 800; line-height: 1.2; }
.workflow-item-details { min-width: 0; }
.workflow-item-title { display: block; overflow-wrap: anywhere; }
.workflow-item-note, .workflow-order-note { font-size: clamp(1.15rem, 2cqw, 1.3125rem); line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 0; }
.workflow-order-note { margin-bottom: 8px; }
.workflow-ticket-fallback { margin: 0; padding: 18px 28px; font: 550 clamp(1.05rem, 2.1cqw, 1.5rem)/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--board-ink); }
.workflow-ticket-watermark { display: none; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-select: none; color: #116c58; opacity: .18; font-weight: 900; font-size: 80px; }
.order-workflow.is-entered .workflow-ticket-watermark { display: block; }
.order-workflow.is-entered .workflow-ticket-card { border-top-color: var(--board-accent); }
.workflow-ticket-footer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 1.15fr); gap: 20px; align-items: center; padding: 6px 20px; background: #fafcfc; border-top: 1px solid var(--board-line); }
.workflow-total { font-size: clamp(1.1rem, 2.2cqw, 1.6rem); font-weight: 750; line-height: 1.25; }
.workflow-total strong { white-space: nowrap; }
.workflow-tablet-screen .workflow-enter-button { background: var(--board-accent); color: white; padding: 10px 20px; min-height: 50px; font-size: clamp(1.2rem, 2.4cqw, 1.75rem); white-space: nowrap; }
.workflow-enter-button.is-tapped { animation: workflow-button-tap .55s ease-out; }
.workflow-entered-status { color: var(--board-accent); font-size: 1.3rem; font-weight: 800; text-align: center; }
.workflow-board-tabs { display: flex; background: #f8fafb; border-top: 1px solid var(--board-line); padding: 0 8px; min-height: 52px; }
.workflow-board-tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 8px; min-height: 52px; border-bottom: 4px solid transparent; color: var(--board-muted); font-weight: 750; }
.workflow-board-tab + .workflow-board-tab { border-left: 1px solid var(--board-line); }
.workflow-board-tab.is-selected { border-bottom-color: var(--board-accent); color: var(--board-accent); background: white; }
.workflow-count-badge { background: #e1ecec; color: var(--board-ink); border-radius: 99px; padding: 3px 8px; font-size: .75rem; white-space: nowrap; }
.workflow-tablet-caption { color: #e4eaf1; font-size: .75rem; line-height: 1.3; margin: 9px 5px 0; text-align: center; }
.workflow-empty { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; }
.workflow-empty-icon { color: var(--board-accent); font-size: 2.5rem; }
.workflow-empty h3 { font-size: 1.4rem; margin: 0; color: var(--board-ink); }
.workflow-empty p {
    color: var(--board-muted);
    margin: 1em 0;
}

#workflowEmpty h3,
#workflowEmpty p {
    font-size: 1.4rem;
    line-height: 1.4;
}

#workflowEmpty .workflow-waiting-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

#orderWorkflow[data-state="idle"] #workflowEmpty:not([hidden]) .workflow-waiting-dots {
    display: flex;
}

#workflowEmpty .workflow-waiting-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--board-accent, #00878a);
    opacity: 0.35;
}

#orderWorkflow[data-state="idle"] .workflow-waiting-dots span {
    animation: workflow-waiting-dot-pulse 1.8s ease-in-out infinite;
}

    #orderWorkflow[data-state="idle"] .workflow-waiting-dots span:nth-child(2) {
        animation-delay: 0.2s;
    }

    #orderWorkflow[data-state="idle"] .workflow-waiting-dots span:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes workflow-waiting-dot-pulse {
    0%, 70%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    35% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #orderWorkflow[data-state="idle"] .workflow-waiting-dots span {
        animation: none;
        opacity: 0.65;
    }
}

.workflow-order-item.is-active, .workflow-item-note.is-active, .workflow-order-note.is-active { background: #fff0cb; outline: 2px solid #edbd58; outline-offset: 3px; border-radius: 3px; }
@container (max-width: 850px) {
    .workflow-ticket-nav { gap: 8px; padding-left: 12px; padding-right: 12px; }
    .workflow-nav-left, .workflow-nav-right { gap: 8px; }
    .workflow-tablet-screen .workflow-arrow-button { font-size: 1rem; padding: 8px 12px; }
    #workflowQueuePosition { font-size: 1.05rem; }
    .workflow-ticket-metadata { gap: 4px 20px; margin: 0 12px; font-size: 1.05rem; }
    .workflow-ticket-items { padding-left: 20px; padding-right: 20px; }
}
@container (max-width: 600px) {
    .workflow-ticket-nav { gap: 6px; }
    .workflow-arrow-button span { display: none; }
    #workflowTicketNumber { font-size: 1.5rem; }
    #workflowQueuePosition { font-size: .9rem; }
    .workflow-ticket-metadata { gap: 6px 14px; font-size: .95rem; }
    .workflow-ticket-metadata > div span { display: block; font-size: .8rem; }
    .workflow-metadata-date { grid-column: span 6; }
    .workflow-metadata-ordered, .workflow-metadata-pickup { grid-column: span 3; }
    .workflow-ticket-items { padding-left: 16px; padding-right: 16px; }
    .workflow-order-item { gap: 10px; }
    .workflow-item-title, .workflow-item-quantity { font-size: 1.3rem; }
    .workflow-item-note, .workflow-order-note { font-size: 1.05rem; }
    .workflow-ticket-fallback { padding: 16px; }
    .workflow-ticket-footer { padding: 8px 12px; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(150px, 1fr); }
    .workflow-total { font-size: 1rem; }
    .workflow-tablet-screen .workflow-enter-button, .workflow-entered-status { font-size: 1.05rem; padding: 8px; }
    .workflow-board-tab { font-size: .9rem; gap: 4px; flex-wrap: wrap; }
    .workflow-count-badge { font-size: .65rem; padding: 2px 5px; }
}
.workflow-transfer { display: flex; align-items: center; flex-direction: column; gap: 9px; color: #526985; font-size: .65rem; font-weight: 800; }
.workflow-transfer-arrow { font-size: 1.8rem; color: #9aaabe; }
.order-workflow[data-state="entering"] .workflow-transfer-arrow { color: #bd851b; animation: workflow-arrow 1.4s ease-in-out infinite; }
.workflow-pos-area { min-width: 0; padding-top: 12px; }
.workflow-pos-description { margin-bottom: 19px; }
.workflow-pos-description h3 { color: var(--workflow-ink); font-size: 1.25rem; letter-spacing: -.02em; margin: 7px 0; }
.workflow-pos-description p { color: #586b81; font-size: .84rem; line-height: 1.4; margin: 0; }
.workflow-pos-terminal { padding-bottom: 24px; position: relative; }
.workflow-pos-screen { background: #172339; border: 2px solid #4c5b70; border-radius: 16px; padding: 10px; position: relative; z-index: 1; box-shadow: 0 12px 24px #10244418; }
.workflow-pos-header { background: #253954; color: white; border-radius: 7px 7px 0 0; padding: 11px; display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; }
.workflow-pos-body { display: grid; grid-template-columns: minmax(0, 1fr) 84px; background: #f4f6f9; height: 230px; }
.workflow-pos-items { padding: 10px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.workflow-pos-empty { color: #718198; font-size: .83rem; line-height: 1.5; padding: 15px 6px; }
.workflow-pos-line { font-size: .82rem; line-height: 1.45; padding: 8px 5px; border-bottom: 1px solid #e1e6ed; overflow-wrap: anywhere; white-space: pre-wrap; }
.workflow-pos-line.is-new { background: #e4efdd; animation: workflow-row-in .4s ease-out; }
.workflow-pos-keypad { background: #e3e9f1; padding: 8px; display: grid; grid-template-columns: 1fr; gap: 6px; }
.workflow-pos-keypad span { display: grid; place-items: center; background: #fff; color: #35516d; border-radius: 5px; font-size: .66rem; font-weight: 700; }
.workflow-pos-keypad span.is-pressed { background: #f6c56d; color: #412d08; box-shadow: inset 0 0 0 2px #dbab55; }
.workflow-pos-total { display: flex; justify-content: space-between; gap: 10px; padding: 11px; background: #e8edf4; color: #253b59; font-size: .83rem; }
.workflow-pos-action { padding: 12px; background: #69798d; color: #fff; text-align: center; font-size: .82rem; font-weight: 750; border-radius: 0 0 7px 7px; position: relative; min-height: 43px; }
.workflow-pos-action.is-ready { background: #1c704f; }
.workflow-touch { position: absolute; right: 20px; top: 10px; width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; background: #ffffff45; opacity: 0; }
.workflow-touch.is-tapping { animation: workflow-touch 1s ease-out; }
.workflow-pos-stand { width: 40%; height: 28px; background: linear-gradient(90deg, #738095, #a5aebc, #718096); border-radius: 0 0 8px 8px; margin: 0 auto; position: absolute; left: 30%; bottom: 0; }
.workflow-pos-note { font-size: .72rem; line-height: 1.5; color: #758296; margin: 11px 2px 0; }
.workflow-complete-note { margin: 20px 0 0; padding: 13px 16px; border: 1px solid #c6dfd0; border-radius: 10px; color: #245f44; background: #edf6ef; font-size: .88rem; line-height: 1.5; }
.order-workflow.is-paused *, .order-workflow.is-paused *::before, .order-workflow.is-paused *::after { animation-play-state: paused !important; }
@keyframes workflow-arrow { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(4px); } }
@keyframes workflow-row-in { from { opacity: .4; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes workflow-button-tap { 50% { transform: scale(.98); box-shadow: 0 0 0 5px #edb84f80; } }
@keyframes workflow-touch { 0% { opacity: 0; transform: scale(1.4); } 35% { opacity: 1; transform: scale(.8); } 65% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }
@media (max-width: 950px) {
    .workflow-stage { grid-template-columns: minmax(0, 1.1fr) 38px minmax(0, .9fr); }
    .workflow-heading { align-items: flex-start; }
    .workflow-pos-keypad { display: none; }
    .workflow-pos-body { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .order-workflow { border-radius: 20px; padding: 18px 12px; }
    .workflow-heading { flex-direction: column; gap: 15px; }
    .workflow-heading h2 { font-size: 1.8rem; }
    .workflow-heading p:last-child { font-size: .94rem; }
    .workflow-steps { gap: 6px; }
    .workflow-steps li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 8px; }
    .workflow-steps strong { font-size: .75rem; }
    .workflow-steps li div > span { display: none; }
    .workflow-step-number { flex-basis: 25px; width: 25px; height: 25px; font-size: .75rem; }
    .workflow-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
    .workflow-stage { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
    .workflow-tablet { padding: 15px 9px 10px; border-radius: 21px; }
    .workflow-ticket-scroll { height: 330px; }
    .workflow-empty { min-height: 290px; padding: 10px; }
    .workflow-transfer { flex-direction: row; align-self: center; gap: 10px; }
    .workflow-transfer-arrow { transform: rotate(90deg); font-size: 1.5rem; }
    .order-workflow[data-state="entering"] .workflow-transfer-arrow { animation: none; }
    .workflow-pos-area { padding: 0 10px; }
    .workflow-pos-description { margin-bottom: 13px; }
    .workflow-pos-body { height: 190px; grid-template-columns: minmax(0, 1fr) 84px; }
    .workflow-pos-keypad { display: grid; }
    .workflow-pos-note { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .order-workflow *, .order-workflow *::before, .order-workflow *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The existing printer demonstration follows staff entry, outside the call portrait. */
.workflow-printer-stage { max-width: 1100px; margin: 0 auto 32px; }
.workflow-printer-stage .printer-proof-overlay { position: relative; inset: auto; transform: none; width: 100%; height: auto; margin: 0; z-index: auto; }
.workflow-printer-stage .printer-proof-card { max-width: 100%; width: 100%; }
.workflow-settings { max-width: 900px; margin: 0 auto 30px; border: 1px solid #dce3eb; border-radius: 18px; background: #f7f9fc; padding: 17px 20px; }
.workflow-settings > summary { font-weight: 750; font-size: 1rem; cursor: pointer; color: #173558; }
.workflow-settings .control-board-ticket-slot { max-width: 800px; margin: 20px auto 0; }

.workflow-printer-stage .printer-proof-unit { min-height: 0; justify-content: flex-start; }
.workflow-printer-stage .printer-slot { position: relative; top: auto; height: auto; max-height: 560px; min-height: 360px; overflow-x: hidden; overflow-y: auto; }
.workflow-printer-stage .printer-base { flex: 0 0 92px; }
.workflow-printer-stage > button { display: block; margin: 14px auto 0; }
@media (max-width: 600px) {
    .workflow-printer-stage .printer-proof-printers { grid-template-columns: 1fr; }
    .workflow-printer-stage .printer-proof-header { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .workflow-printer-stage .thermal-ticket { animation: none !important; transform: translateY(0) !important; }
}

/* One handheld Control Board: settings, conversations, and the saved live order. */
.hero-fluid-grid { grid-template-columns: minmax(260px, .8fr) minmax(0, 2fr); }
.hero-demo-column { transform: none; }
.hero-demo-column .gino-stage { transform: none; }
.hero-demo-column .demo-shell { grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.15fr); align-items: start; }
.hero-demo-column .ipad-handheld-frame { margin-top: 0; }
@media (max-width: 1199px) {
 .hero-fluid-grid { grid-template-columns: minmax(0, 1fr); }
 .hero-demo-column .demo-shell { grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.15fr); }
}
@media (max-width: 760px) {
 .hero-demo-column .demo-shell { grid-template-columns: minmax(0, 1fr); }
 .hero-demo-column .control-board-ticket-slot { width: 100%; max-width: 600px; margin: 0 auto; }
}
.ipad-board-surface { display: flex; flex-direction: column; padding: 0; container-type: inline-size; }
.ipad-board-surface [hidden] { display: none !important; }
.ipad-settings-view { position: relative; flex: 1; min-height: 0; padding: .58rem; overflow: auto; }
.ipad-settings-view .ipad-control-bottom-row { position: relative; inset: auto; margin-top: .6rem; }
.ipad-settings-view .ipad-conversation-screen { inset: 0; z-index: 5; padding: .6rem; }
.ipad-status-bar button { background: transparent; color: inherit; border: 0; font: inherit; padding: 3px; justify-self: end; }
.ipad-status-bar button:focus-visible { outline: 2px solid white; }
.ipad-board-surface > .workflow-board-tabs { flex: 0 0 auto; padding: 0; min-height: 42px; }
.ipad-board-surface .workflow-board-tab { border: 0; border-top: 1px solid #d9e1df; border-radius: 0; font: 700 .7rem/1.2 system-ui; cursor: pointer; padding: 6px 2px; min-width: 0; min-height: 42px; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.ipad-board-surface .workflow-board-tab.is-selected { border-bottom: 3px solid #087f80; }
.ipad-board-surface .workflow-board-tab:focus-visible { outline: 2px solid #efb73e; outline-offset: -2px; }
.ipad-board-surface .order-workflow { display: flex; flex-direction: column; flex: 1; min-height: 0; max-width: none; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: white; }
.ipad-board-surface .workflow-toolbar { flex: 0 0 auto; min-height: 0; margin: 0; padding: 5px 8px; gap: 6px; }
.ipad-board-surface .workflow-toolbar > p { font-size: .72rem; line-height: 1.25; }
.ipad-board-surface .workflow-outline-button { padding: 5px 8px; font-size: .72rem; min-height: 32px; }
.ipad-board-surface .workflow-tablet { display: flex; flex: 1; min-height: 0; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.ipad-board-surface .workflow-tablet-screen { display: flex; flex-direction: column; flex: 1; min-height: 0; border-radius: 0; }
.ipad-board-surface .workflow-ticket-card { flex: 1; min-height: 0; }
.ipad-board-surface .workflow-ticket-content { flex: 1; min-height: 0; }
.ipad-board-surface .workflow-ticket-scroll { height: 100%; }
.ipad-board-surface .workflow-ticket-nav { flex: 0 0 auto; padding: 4px 6px; gap: 4px; min-height: 44px; }
.ipad-board-surface .workflow-arrow-button { min-height: 32px; padding: 4px 8px; }
.ipad-board-surface .workflow-nav-left { gap: 4px; }
.ipad-board-surface #workflowQueuePosition { font-size: .65rem; }
.ipad-board-surface #workflowTicketNumber { font-size: clamp(1rem, 4.8cqw, 1.5rem); }
.ipad-board-surface .workflow-ticket-footer { flex: 0 0 auto; grid-template-columns: 1fr; padding: 6px 10px; gap: 4px; }
.ipad-board-surface .workflow-total { font-size: .95rem; }
.ipad-board-surface .workflow-enter-button { min-height: 42px; font-size: 1rem; }
.ipad-board-surface .workflow-enter-hint { display: block; font-size: .72rem; text-align: center; color: #17684b; font-weight: 650; }
.ipad-board-surface .workflow-enter-hint span { display: inline-block; animation: workflow-point 1.4s ease-in-out infinite; }
.ipad-board-surface .workflow-enter-button.is-prompting { animation: workflow-invite 2s ease-in-out infinite; }
.ipad-board-surface .workflow-waiting-alert { padding: 3px 8px; flex: 0 0 auto; gap: 6px; }
.ipad-board-surface .workflow-waiting-alert strong, .ipad-board-surface .workflow-waiting-alert span { font-size: .75rem; }
.ipad-board-surface .workflow-empty { min-height: 100%; padding: 16px; }
.ipad-board-surface .workflow-complete-note { display: none; }
.workflow-count-badge.has-overdue { background: #9d2619; color: white; animation: workflow-invite 2s ease-in-out infinite; }
#workflowDiagnosticsHost { max-width: 1100px; margin: 0 auto 24px; }
@container (max-width: 280px) {
 .ipad-board-surface .order-workflow[data-state="ready"] .workflow-toolbar,
 .ipad-board-surface .order-workflow[data-state="entered"] .workflow-toolbar { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
 .ipad-board-surface .workflow-ticket-metadata { margin: 0 6px; padding: 6px; gap: 4px 8px; font-size: .75rem; }
 .ipad-board-surface .workflow-ticket-metadata > div span { font-size: .65rem; }
 .ipad-board-surface .workflow-item-title, .ipad-board-surface .workflow-item-quantity { font-size: 1rem; }
 .ipad-board-surface .workflow-item-note, .ipad-board-surface .workflow-order-note { font-size: .85rem; }
}
@keyframes workflow-invite { 0%, 100% { box-shadow: inset 0 0 0 2px #087f80; } 50% { box-shadow: inset 0 0 0 4px #efb73e; } }
@keyframes workflow-point { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) {
 .ipad-board-surface .workflow-enter-button.is-prompting, .ipad-board-surface .workflow-enter-hint span, .workflow-count-badge.has-overdue { animation: none; }
 .ipad-board-surface .workflow-enter-button.is-prompting { box-shadow: inset 0 0 0 3px #efb73e; }
}

/* Large angled prompt points at the actual button without intercepting taps. */
.workflow-entry-arrow { position: fixed; z-index: 2000; pointer-events: none; filter: drop-shadow(0 8px 10px #132c4960); }
.workflow-entry-arrow[hidden], .workflow-sound-status[hidden], .workflow-printer-stage[hidden] { display: none !important; }
.workflow-entry-arrow svg { display: block; width: 100%; height: auto; overflow: visible; }
.workflow-entry-arrow path { fill: #ffe077; stroke: #193a46; stroke-width: 4; stroke-linejoin: round; }
.workflow-entry-arrow text { fill: #102b35; font: 800 19px/1.2 system-ui, sans-serif; }
.workflow-sound-status { margin: 12px 0; padding: 10px; color: #722411; background: #fff1e9; border-radius: 8px; font-size: .85rem; }

/* Restore printer output over the original call panel, alongside the iPad. */
.gino-stage > .workflow-printer-stage { position: absolute; inset: 0; z-index: 30; max-width: none; margin: 0; padding: 10px; display: flex; flex-direction: column; justify-content: center; overflow: auto; background: #e9edf7f5; backdrop-filter: blur(10px); border-radius: 24px; }
.gino-stage .workflow-printer-stage .printer-proof-overlay { padding: 0; background: none; backdrop-filter: none; }
.gino-stage .workflow-printer-stage .printer-proof-card { padding: 12px; border-radius: 18px; }
.gino-stage .workflow-printer-stage .printer-proof-header { flex-direction: column; gap: 4px; margin-bottom: 12px; }
.gino-stage .workflow-printer-stage .printer-proof-header span { font-size: 1.05rem; }
.gino-stage .workflow-printer-stage .printer-proof-header small { font-size: .72rem; }
.gino-stage .workflow-printer-stage .printer-proof-printers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gino-stage .workflow-printer-stage .printer-slot { min-height: 230px; max-height: 300px; width: 94%; }
.gino-stage .workflow-printer-stage .thermal-ticket { font-size: .65rem; padding: 10px 6px; }
.gino-stage .workflow-printer-stage .thermal-ticket .ticket-number { font-size: 2rem; }
.gino-stage .workflow-printer-stage .printer-base { flex-basis: 55px; width: 100%; min-width: 0; }
.gino-stage .workflow-printer-stage .printer-base span { font-size: .55rem; }
.workflow-printer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; justify-content: center; }
.workflow-printer-actions button { font-size: .75rem; padding: 8px; }

/* Production Control Board styling, scoped to the iPad interior. */
.ipad-board-surface *{ box-sizing: border-box; }
.ipad-board-surface button,.ipad-board-surface input{ font: inherit; }
.ipad-board-surface button{ cursor: pointer; touch-action: manipulation; min-height: 44px; border: 0; border-radius: 8px; font-weight: 750; }
.ipad-board-surface button:disabled{ cursor: default; opacity: .48; }
.ipad-board-surface button:not(:disabled):active{ transform: translateY(1px); }
.ipad-board-surface button:focus-visible,.ipad-board-surface input:focus-visible,.ipad-board-surface [tabindex]:focus-visible{ outline: 3px solid #efb73e; outline-offset: -3px; }
.ipad-board-surface [hidden]{ display: none!important; }
.ipad-board-surface h1,.ipad-board-surface h2,.ipad-board-surface h3,.ipad-board-surface p{ overflow-wrap: anywhere; }
.ipad-board-surface h2{ font-size: 1.6rem; margin: 0 0 4px; letter-spacing: -.02em; }
.ipad-board-surface h3{ margin: 0; font-size: 1.4rem; }
.ipad-board-surface .app-header{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px max(20px,env(safe-area-inset-right)) 4px max(20px,env(safe-area-inset-left));
    background: #074b54;
    color: white;
    min-height: 56px;
}
.ipad-board-surface .identity{ min-width: 0; flex: 1 1 0; display: flex; align-items: center; gap: 10px; }
.ipad-board-surface h1{ font-size: clamp(1.05rem,2.3vw,1.5rem); line-height: 1.2; margin: 0; font-weight: 750; }
.ipad-board-surface .connection{ flex: 0 0 9px; height: 9px; overflow: hidden; border-radius: 50%; background: #b6cec9; color: transparent; font-size: 0; }
.ipad-board-surface .connection.online{ background: #a8e7cb; }
.ipad-board-surface .connection.offline{ background: #ffc1aa; }
.ipad-board-surface .connection.connecting{ background: #f5d375; }
.ipad-board-surface .header-controls{ display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.ipad-board-surface .header-controls button{ background: transparent; color: white; padding: 6px 12px; font-size: 1rem; }
.ipad-board-surface .header-controls button + button{ border-left: 1px solid #8cbbbb70; border-radius: 0; }
.ipad-board-surface .header-controls .answer-button{ background: #168441; color: white; border: 1px solid #ffffff65; border-radius: 8px; }
.ipad-board-surface .header-controls .answer-button.staff{ color: white; background: #c62828; }
.ipad-board-surface .header-controls .sound-toggle:not(.is-on){ color: #ffe5a7; }
.ipad-board-surface .waiting-alert{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
    padding: 0 20px;
    background: #9d2619;
    color: white;
    animation: order-warning-pulse 2s ease-in-out infinite;
}
.ipad-board-surface .waiting-alert-message{ min-width: 0; display: flex; align-items: center; gap: 8px; }
.ipad-board-surface .waiting-alert-message strong{ font-size: 1rem; font-weight: 850; }
.ipad-board-surface #waitingAlertAge{ font-size: .9rem; white-space: nowrap; }
.ipad-board-surface .waiting-alert-actions{ display: flex; flex: 0 0 auto; gap: 8px; }
.ipad-board-surface .small-button,.ipad-board-surface .secondary-button{ padding: 8px 14px; background: white; color: var(--ink); border: 1px solid var(--line); font-size: .95rem; }
.ipad-board-surface .waiting-alert-actions .small-button{ color: white; background: transparent; border: 0; border-radius: 0; font-size: .85rem; min-height: 32px; padding: 2px 0 2px 12px; white-space: nowrap; text-decoration: underline; }
.ipad-board-surface .waiting-alert-actions .sound-toggle.is-on{ background: white; color: #681a12; }
.ipad-board-surface .error-banner{ flex: 0 0 auto; background: #fff0e8; color: #802a17; border-bottom: 1px solid #e6ac95; padding: 8px 20px; font-size: .9rem; max-height: 25vh; overflow: auto; }
.ipad-board-surface main{ flex: 1 1 0; min-height: 0; width: 100%; overflow: hidden; }
.ipad-board-surface .view{ height: 100%; min-height: 0; }
.ipad-board-surface #ordersView{ display: flex; flex-direction: column; touch-action: pan-y pinch-zoom; }
.ipad-board-surface .order-navigation{
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 4px 20px;
    background: var(--surface);
}
.ipad-board-surface .order-nav-left,.ipad-board-surface .order-nav-right{ display: flex; align-items: center; gap: clamp(12px,2vw,28px); min-width: 0; }
.ipad-board-surface .order-nav-right{ justify-content: flex-end; }
.ipad-board-surface .arrow-button{ background: #dfe7ea; color: var(--ink); padding: 8px 18px; white-space: nowrap; }
.ipad-board-surface #orderPosition{ font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.ipad-board-surface #ticketTitle{ margin: 0; font-size: clamp(1.6rem,3.1vw,2.25rem); font-weight: 850; text-align: center; line-height: 1.15; }
.ipad-board-surface .age-button{ background: transparent; color: var(--ink); font-weight: 500; font-size: 1rem; padding: 2px; line-height: 1.2; }
.ipad-board-surface .order-navigation.overdue .age-button{ color: var(--waiting); font-weight: 750; }
.ipad-board-surface .order-navigation.completed .age-button{ color: var(--accent); }
.ipad-board-surface .ticket-card{ display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; background: white; overflow: hidden; }
.ipad-board-surface .ticket-card.pending{ border-top: 2px solid var(--line); }
.ipad-board-surface .ticket-card.overdue{ border-top: 2px solid var(--waiting); }
.ipad-board-surface .ticket-card.completed{ border-top: 2px solid var(--accent); }
.ipad-board-surface .ticket-body{ flex: 1 1 0; min-height: 0; position: relative; isolation: isolate; }
.ipad-board-surface .ticket-surface{ height: 100%; overflow: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; -webkit-overflow-scrolling: touch; }
.ipad-board-surface .ticket-metadata{
    display: grid;
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 4px 16px;
    margin: 0 20px;
    padding: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
    line-height: 1.35;
}
.ipad-board-surface .ticket-metadata > div{ min-width: 0; overflow-wrap: anywhere; }
.ipad-board-surface .metadata-customer,.ipad-board-surface .metadata-phone{ grid-column: span 3; }
.ipad-board-surface .metadata-date,.ipad-board-surface .metadata-ordered,.ipad-board-surface .metadata-pickup{ grid-column: span 2; }
.ipad-board-surface .ticket-metadata span{ font-weight: 500; }
.ipad-board-surface .ticket-metadata strong{ font-weight: 650; }
.ipad-board-surface .ticket-items{ padding: 10px 28px 12px; }
.ipad-board-surface .order-item{ display: grid; grid-template-columns: minmax(30px,max-content) minmax(0,1fr); gap: 16px; margin-bottom: 10px; }
.ipad-board-surface .order-item:last-child{ margin-bottom: 0; }
.ipad-board-surface .item-quantity,.ipad-board-surface .item-title{ font-size: clamp(1.4rem,2.6vw,1.75rem); font-weight: 800; line-height: 1.2; }
.ipad-board-surface .item-details{ min-width: 0; }
.ipad-board-surface .item-title{ display: block; overflow-wrap: anywhere; }
.ipad-board-surface .item-note,.ipad-board-surface .order-note{ font-size: clamp(1.15rem,2vw,1.3125rem); line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 0; }
.ipad-board-surface .order-note{ margin-bottom: 8px; }
.ipad-board-surface #ticketContent{ margin: 0; padding: 18px 28px; font: 550 clamp(1.05rem,2.1vw,1.5rem)/1.4 system-ui,-apple-system,"Segoe UI",sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.ipad-board-surface .ticket-watermark{ display: none; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; user-select: none; -webkit-user-select: none; color: #116c58; opacity: .18; font-weight: 900; font-size: 80px; }
.ipad-board-surface .completed .ticket-watermark{ display: block; }
.ipad-board-surface .ticket-footer{ display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,1.15fr); gap: 20px; align-items: center; flex: 0 0 auto; padding: 6px 20px; background: #fafcfc; border-top: 1px solid var(--line); }
.ipad-board-surface .ticket-total{ font-size: clamp(1.1rem,2.2vw,1.6rem); font-weight: 750; line-height: 1.25; }
.ipad-board-surface .ticket-total strong{ white-space: nowrap; }
.ipad-board-surface .primary-button{ background: var(--accent); color: white; padding: 10px 20px; min-height: 50px; font-size: 1.25rem; }
.ipad-board-surface .ticket-footer .primary-button{ font-size: clamp(1.2rem,2.4vw,1.75rem); white-space: nowrap; }
.ipad-board-surface .pos-entry-status{ color: var(--accent); font-size: 1.3rem; font-weight: 800; text-align: center; }
.ipad-board-surface .action-status{ color: var(--muted); font-size: .9rem; margin: 0; padding: 6px 20px; flex: 0 0 auto; }
.ipad-board-surface .action-status:empty{ display: none; }
.ipad-board-surface .action-status.error{ color: #922f18; background: #fff0e8; }
.ipad-board-surface .empty-state{ padding: 40px 20px; margin: auto; text-align: center; }
.ipad-board-surface .empty-symbol{ color: var(--accent); font-size: 2.5rem; }
.ipad-board-surface .empty-state p{ color: var(--muted); }
.ipad-board-surface .navigation{ display: flex; flex: 0 0 auto; background: #f8fafb; border-top: 1px solid var(--line); padding: 0 max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom,0px) max(8px,env(safe-area-inset-left)); min-height: 52px; }
.ipad-board-surface .nav-button{ flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 0; padding: 6px 8px; min-height: 52px; border-bottom: 4px solid transparent; background: transparent; color: var(--muted); }
.ipad-board-surface .nav-button + .nav-button{ border-left: 1px solid var(--line); }
.ipad-board-surface .nav-button.selected{ border-bottom-color: var(--accent); color: var(--accent); background: white; }
.ipad-board-surface .count-badge{ background: #e1ecec; color: var(--ink); border-radius: 99px; padding: 3px 8px; font-size: .75rem; white-space: nowrap; }
.ipad-board-surface .count-badge.has-overdue{ background: var(--waiting); color: white; animation: waiting-pulse 1.1s ease-in-out infinite; }
.ipad-board-surface .draft-dot{ width: 9px; height: 9px; background: #a5680a; border-radius: 50%; }
.ipad-board-surface #ipadSettingsView,.ipad-board-surface #ipadConversationScreen{ overflow: auto; padding: 20px max(20px,calc((100vw - 1280px)/2)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ipad-board-surface #ipadSettingsView .app-header{ margin-bottom: 8px; border-radius: 8px; }
.ipad-board-surface .queue-tools{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--muted); }
.ipad-board-surface .sound-tests .sound-toggle.is-on{ color: white; background: var(--accent); }
.ipad-board-surface .section-heading{ display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ipad-board-surface .section-heading p{ margin: 0; color: var(--muted); font-size: .95rem; }
.ipad-board-surface .ticket-navigation{ display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 12px; color: var(--muted); }
.ipad-board-surface .ticket-navigation .arrow-button{ justify-self: start; }
.ipad-board-surface .ticket-navigation .arrow-button:last-child{ justify-self: end; }
.ipad-board-surface .conversation-card{ padding: 20px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.ipad-board-surface .conversation-card h3{ font-size: 1.1rem; color: var(--muted); margin-bottom: 16px; }
.ipad-board-surface .conversation-surface{ max-height: calc(100dvh - 320px); min-height: 120px; overflow: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.ipad-board-surface .conversation-turn{ background: #f2f5f1; padding: 16px 20px; border-radius: 12px; margin-bottom: 14px; border-left: 4px solid #9aaa9f; }
.ipad-board-surface .conversation-turn.customer{ background: #fbf5e9; border-color: #c99735; }
.ipad-board-surface .conversation-turn.ai{ border-color: var(--accent); }
.ipad-board-surface .conversation-turn strong{ display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; color: var(--muted); }
.ipad-board-surface .conversation-turn p{ margin: 0; white-space: pre-wrap; line-height: 1.5; font-size: clamp(1.05rem,1.9vw,1.35rem); }
.ipad-board-surface .sound-controls{ margin: 12px 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.ipad-board-surface .sound-controls.sound-needs-action{ border-color: #a5680a; background: #fff7e8; }
.ipad-board-surface .sound-controls p{ margin: 0 0 8px; }
.ipad-board-surface .sound-tests{ display: flex; gap: 10px; flex-wrap: wrap; }
.ipad-board-surface fieldset{
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.ipad-board-surface .settings-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.ipad-board-surface .settings-card{
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.ipad-board-surface .settings-card h3{
    margin: 0 0 10px;
    font-size: 1.15rem;
}
.ipad-board-surface .settings-card p{
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.45;
    margin: 8px 0 18px;
}
.ipad-board-surface .prep-buttons{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px;
}
.ipad-board-surface .prep-buttons button{
    background: #edf2ed;
    color: var(--ink);
    min-height: 58px;
    border: 2px solid transparent;
}
.ipad-board-surface .prep-buttons button.selected{
    background: #d7eee3;
    border-color: var(--accent);
}
.ipad-board-surface .setting-value{
    font-weight: 750;
    color: var(--ink)!important;
    margin-bottom: 0!important;
}
.ipad-board-surface label{
    display: block;
}
.ipad-board-surface .settings-card label strong{
    float: right;
    font-size: 1.25rem;
}
.ipad-board-surface .settings-card input[type=range]{
    width: 100%;
    margin: 24px 0 6px;
    accent-color: var(--accent);
    height: 38px;
}
.ipad-board-surface .range-labels{
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .85rem;
}
.ipad-board-surface .toggle-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
    min-height: 52px;
    font-size: .95rem;
}
.ipad-board-surface .toggle-row input{
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    accent-color: var(--accent);
}
.ipad-board-surface .number-label{
    font-size: .95rem;
    margin: 18px 0;
    line-height: 2.6;
}
.ipad-board-surface .number-label>span{
    white-space: nowrap;
    display: inline-block;
}
.ipad-board-surface .number-label input{
    width: 90px;
    padding: 10px;
    border: 1px solid #aebfba;
    border-radius: 8px;
    text-align: center;
    color: var(--ink);
    background: white;
}
.ipad-board-surface .settings-save{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 10px;
    position: sticky;
    bottom: 0;
    background: var(--surface);
}
.ipad-board-surface .settings-save p{
    font-size: .95rem;
    color: var(--muted);
    margin: 0;
}
.ipad-board-surface .settings-save p.error{
    color: #922f18;
}
.ipad-board-surface .sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes waiting-pulse{ 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes order-warning-pulse{ 0%,100% { background-color: #b52215; } 50% { background-color: #681a12; } }
@media (prefers-reduced-motion:reduce){.ipad-board-surface .count-badge.has-overdue,.ipad-board-surface .waiting-alert{ animation: none; }}
@container (max-width:850px){.ipad-board-surface .order-navigation{ gap: 8px; padding-left: 12px; padding-right: 12px; }
.ipad-board-surface .order-nav-left,.ipad-board-surface .order-nav-right{ gap: 8px; }
.ipad-board-surface .arrow-button{ font-size: 1rem; padding: 8px 12px; }
.ipad-board-surface #orderPosition{ font-size: 1.05rem; }
.ipad-board-surface .age-button{ font-size: .9rem; }
.ipad-board-surface .ticket-metadata{ gap: 4px 20px; margin: 0 12px; font-size: 1.05rem; }
.ipad-board-surface .ticket-items{ padding-left: 20px; padding-right: 20px; }
.ipad-board-surface .header-controls button{ padding-left: 8px; padding-right: 8px; font-size: .95rem; }
.ipad-board-surface .waiting-alert{ gap: 8px; padding: 0 12px; }
.ipad-board-surface .waiting-alert-message{ flex: 1 1 auto; }
.ipad-board-surface .waiting-alert-actions{ margin-left: auto; }
.ipad-board-surface .settings-grid{ grid-template-columns: 1fr; }}
@container (max-width:600px){.ipad-board-surface .app-header{ padding-left: 12px; padding-right: 12px; gap: 8px; }
.ipad-board-surface .identity{ gap: 6px; }
.ipad-board-surface h1{ font-size: 1rem; }
.ipad-board-surface .header-controls{ gap: 0; }
.ipad-board-surface .header-controls button{ font-size: .8rem; max-width: 105px; }
.ipad-board-surface .order-navigation{ gap: 6px; }
.ipad-board-surface .arrow-button{ padding: 8px 12px; }
.ipad-board-surface .order-navigation .arrow-button span{ display: none; }
.ipad-board-surface #ticketTitle{ font-size: 1.5rem; }
.ipad-board-surface #orderPosition{ font-size: .9rem; }
.ipad-board-surface .age-button{ font-size: .75rem; }
.ipad-board-surface .ticket-metadata{ gap: 6px 14px; font-size: .95rem; }
.ipad-board-surface .ticket-metadata > div span{ display: block; font-size: .8rem; }
.ipad-board-surface .metadata-date{ grid-column: span 6; }
.ipad-board-surface .metadata-ordered,.ipad-board-surface .metadata-pickup{ grid-column: span 3; }
.ipad-board-surface .ticket-items{ padding-left: 16px; padding-right: 16px; }
.ipad-board-surface .order-item{ gap: 10px; }
.ipad-board-surface .item-title,.ipad-board-surface .item-quantity{ font-size: 1.3rem; }
.ipad-board-surface .item-note,.ipad-board-surface .order-note{ font-size: 1.05rem; }
.ipad-board-surface #ticketContent{ padding: 16px; }
.ipad-board-surface .ticket-footer{ padding: 8px 12px; gap: 10px; grid-template-columns: minmax(0,1fr) minmax(150px,1fr); }
.ipad-board-surface .ticket-total{ font-size: 1rem; }
.ipad-board-surface .ticket-footer .primary-button,.ipad-board-surface .pos-entry-status{ font-size: 1.05rem; padding: 8px; }
.ipad-board-surface .nav-button{ font-size: .9rem; gap: 4px; flex-wrap: wrap; }
.ipad-board-surface .count-badge{ font-size: .65rem; padding: 2px 5px; }
.ipad-board-surface #ipadSettingsView,.ipad-board-surface #ipadConversationScreen{ padding: 16px 12px; }
.ipad-board-surface .settings-card{ padding: 18px; }
.ipad-board-surface .section-heading h2{ font-size: 1.4rem; }
.ipad-board-surface .settings-save{ flex-wrap: wrap; }
.ipad-board-surface .waiting-alert-message strong{ font-size: .9rem; }
.ipad-board-surface .waiting-alert-actions .small-button{ font-size: .8rem; padding: 2px 0 2px 4px; }
.ipad-board-surface .waiting-alert-message{ flex-wrap: wrap; gap: 0 6px; }
.ipad-board-surface .queue-tools{ flex-wrap: wrap; }}

/* Render at the production iPad's logical width, then fit the photograph. */
.ipad-board-surface { --ink:#122f37; --muted:#53676b; --paper:#fff; --line:#d9e1df; --accent:#087f80; --waiting:#a33417; --surface:#edf2f3; --board-ink:#122f37; --board-muted:#53676b; --board-line:#d9e1df; --board-accent:#087f80; position:absolute; inset:0 auto auto 0; width:768px; height:var(--board-logical-height, 1010px); transform:scale(var(--board-scale, .4)); transform-origin:top left; font:18px/normal system-ui,-apple-system,"Segoe UI",sans-serif; background:var(--surface); color:var(--ink); }
.ipad-board-surface > #ipadSettingsView, .ipad-board-surface > #ipadConversationScreen { flex:1; min-height:0; height:auto; width:100%; position:relative; inset:auto; overflow:auto; }
.ipad-board-surface #ipadSettingsView { padding:16px 20px; }
.ipad-board-surface #ipadConversationScreen { padding:16px 20px; }
.ipad-board-surface .app-header h1 { font-size:1.5rem; }
.ipad-board-surface .header-controls .answer-button { font-size:1rem; min-width:145px; }
.ipad-board-surface .settings-grid { grid-template-columns:1fr; }
.ipad-board-surface #boardConversationSurface { max-height:calc(var(--board-logical-height,1010px) - 260px); }
.ipad-board-surface .workflow-board-tabs { padding:0 8px; min-height:58px; border-top:1px solid var(--line); background:#f8fafb; }
.ipad-board-surface .workflow-board-tab { flex:1; flex-direction:row; gap:10px; padding:6px 8px; min-height:58px; font:750 18px/normal system-ui; border-top:0; border-bottom:4px solid transparent; color:var(--muted); }
.ipad-board-surface .workflow-board-tab.is-selected { border-bottom:4px solid var(--accent); color:var(--accent); }
.ipad-board-surface .workflow-count-badge { font-size:.75rem; padding:3px 8px; }
.ipad-board-surface .workflow-ticket-nav { min-height:52px; gap:12px; padding:4px 20px; }
.ipad-board-surface .workflow-nav-left { gap:12px; }
.ipad-board-surface .workflow-arrow-button { padding:8px 18px; min-height:44px; font-size:18px; }
.ipad-board-surface #workflowQueuePosition { font-size:1.2rem; }
.ipad-board-surface #workflowTicketNumber { font-size:1.6rem; }
.ipad-board-surface .workflow-waiting-alert { min-height:32px; padding:0 20px; gap:12px; animation:order-warning-pulse 2s ease-in-out infinite; }
.ipad-board-surface .workflow-waiting-alert strong { font-size:1rem; }
.ipad-board-surface .workflow-waiting-alert span { font-size:.9rem; }
.ipad-board-surface #boardShowWaiting { background:transparent; color:white; border:0; padding:2px 0 2px 12px; min-height:32px; font-size:.85rem; text-decoration:underline; }
.ipad-board-surface .workflow-ticket-footer { grid-template-columns:minmax(0,1fr) minmax(230px,1.15fr); gap:20px; padding:6px 20px; }
.ipad-board-surface .workflow-total { font-size:1.1rem; }
.ipad-board-surface .workflow-enter-button { min-height:50px; font-size:1.2rem; padding:10px 20px; }
.ipad-board-surface #workflowEnterHint { display:none; }
.ipad-board-surface .order-workflow:not([data-state="error"]):not([data-state="loading"]) .workflow-toolbar { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
.ipad-board-surface .workflow-empty { min-height:100%; }
.ipad-board-surface .workflow-entered-status { font-size:1.3rem; }
.ipad-board-surface .workflow-ticket-watermark { font-size:80px; }
@media (prefers-reduced-motion:reduce) { .ipad-board-surface .workflow-waiting-alert { animation:none; } }


/* Homepage composition: content-sized columns and a caption attached to the iPad. */
.ve-hero { height:auto; min-height:0; margin-bottom:1rem; padding-bottom:1.25rem; overflow:clip; }
.hero-fluid-grid { align-items:start; }
.hero-copy { height:auto; padding-bottom:0; }
.hero-demo-column .demo-shell { height:auto; }
.hero-copy-column .hero-logo-rush-row { margin-top:0; }
.hero-copy-column .hero-replay-actions { margin-bottom:1.5rem; }
.hero-copy-column .hero-title.hero-title-split { margin-top:0; margin-bottom:1.35rem; }
.hero-copy-column .hero-title.hero-title-split span + span { margin-top:.48em; }
.hero-copy-column .hero-subtitle { margin-bottom:0; }
.hero-replay-actions .gino-replay-button { min-height:72px; padding:.7rem .75rem; gap:.5rem; box-shadow:inset 0 1px 1px #ffffff55,0 3px 0 #173c7740,0 5px 12px #173c7720; }
.hero-replay-actions .gino-replay-button strong { font-size:1rem; line-height:1.2; }
.hero-replay-actions .gino-replay-button em { font-size:.78rem; line-height:1.3; }
.hero-replay-actions .gino-replay-icon { width:30px; height:30px; flex:0 0 30px; font-size:1rem; }
.hero-demo-column .ipad-control-board { position:relative; display:flow-root; }
.hero-demo-column .ipad-handheld-frame { margin-top:-10.13%; }
.ipad-control-caption { position:absolute; bottom:calc(100% + 12px); left:0; width:88%; max-width:none; margin:0; gap:5px; z-index:3; }
.ipad-control-caption strong, .restaurant-choice-label { font-family:inherit; font-size:1.12rem; font-weight:950; line-height:1.2; letter-spacing:-.018em; }
.ipad-control-caption span { font-size:.9rem; line-height:1.35; font-weight:600; }
.custom-fit-section { padding-top:1.35rem; }
@media (min-width:761px) and (max-width:1199px) {
    .hero-fluid-grid { row-gap:4.5rem; }
}
@media (max-width:760px) {
    .hero-demo-column .control-board-ticket-slot { margin-top:1rem; }
    .ipad-control-caption { position:relative; inset:auto; width:88%; margin:0 0 14px; }
    .hero-copy-column .hero-replay-actions { margin-bottom:1.5rem; }
    .hero-demo-column > .demo-shell > .hero-replay-actions { margin-bottom:1rem; }
    .custom-fit-section { padding-top:1.25rem; }
}


/* Restaurant choice belongs to the live conversation column. */
.hero-copy-column .company-logo-contact { width:200px; max-width:100%; margin:0 0 2rem; text-align:center; }
.company-logo-art { position:relative; width:200px; height:173px; overflow:clip; }
.company-logo-art .restaurant-demo-header-logo { position:absolute; width:286px; max-width:none; height:286px; left:-46px; top:-52px; margin:0; object-fit:contain; transform:none; }
.company-logo-contact .company-business-phone { display:block; position:static; margin-top:8px; padding:0; color:#071638; font-size:1.3rem; font-weight:750; line-height:1.25; text-decoration:none; white-space:nowrap; }
.hero-copy-column .hero-title.hero-title-split { font-size:clamp(1.88rem,2.4vw,3rem); }
.hero-demo-column > .demo-shell { --conversation-panel-padding:1rem; grid-template-rows:auto auto; row-gap:4.25rem; }
/* Match the blue panel's edges and use the existing gap without moving the panels. */
.hero-demo-column > .demo-shell > .restaurant-demo-selector { grid-column:1; grid-row:1; position:relative; width:calc(100% - var(--conversation-panel-padding) - var(--conversation-panel-padding) - 2px); max-width:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; padding:0; align-self:end; justify-self:center; transform:translateY(3.5rem); }
.restaurant-choice-label { grid-column:1 / -1; color:var(--ve-navy); text-align:center; }
.hero-demo-column > .demo-shell > .restaurant-demo-selector .restaurant-demo-option { display:flex; flex-direction:column; justify-content:center; gap:5px; min-width:0; width:100%; min-height:70px; padding:10px 6px 18px; border-width:2px; border-radius:15px; }
.hero-demo-column > .demo-shell > .restaurant-demo-selector .restaurant-demo-option-icon { width:28px; height:28px; flex:0 0 28px; font-size:1rem; border-radius:9px; }
.hero-demo-column > .demo-shell > .restaurant-demo-selector .restaurant-demo-option strong { font-size:.88rem; line-height:1.15; text-align:center; }
.hero-demo-column > .demo-shell > .restaurant-demo-selector .restaurant-demo-selected-label { top:auto; bottom:3px; left:50%; right:auto; transform:translateX(-50%); font-size:.48rem; padding:2px 4px; }
.hero-demo-column > .demo-shell > .restaurant-header-phone-notice { grid-column:2; grid-row:1; transform:none; width:88%; max-width:none; min-height:0; margin:0; padding:0; align-self:start; justify-self:start; grid-template-columns:auto auto; justify-content:center; gap:10px; }
.restaurant-header-phone-notice .phone-demo-notice-copy strong { font-size:1rem; line-height:1.25; }
.restaurant-header-phone-notice .phone-demo-notice-copy em { font-size:clamp(1.3rem,1.7vw,1.8rem); line-height:1.2; }
.hero-demo-column > .demo-shell > .gino-stage { grid-column:1; grid-row:2; padding:var(--conversation-panel-padding); }
.hero-demo-column > .demo-shell > .control-board-ticket-slot { grid-column:2; grid-row:2; }
@media (max-height:820px) and (min-width:901px) {
    .hero-demo-column > .demo-shell { --conversation-panel-padding:.7rem; }
}
@media (max-width:1199px) {
    .hero-copy-column .company-logo-contact { margin-bottom:2rem; }
    .hero-fluid-grid { row-gap:2rem; }
}
@media (max-width:760px) {
    .hero-demo-column > .demo-shell { grid-template-rows:none; row-gap:1rem; }
    .hero-demo-column > .demo-shell > .restaurant-demo-selector { grid-area:auto; order:1; transform:none; }
    .hero-demo-column > .demo-shell > .hero-replay-actions { grid-area:auto; order:2; }
    .hero-demo-column > .demo-shell > .gino-stage { grid-area:auto; order:3; }
    .hero-demo-column > .demo-shell > .restaurant-header-phone-notice { grid-area:auto; order:4; justify-content:center; padding:.75rem 0; }
    .hero-demo-column > .demo-shell > .control-board-ticket-slot { grid-area:auto; order:5; }
    .hero-copy-column .hero-title.hero-title-split { font-size:clamp(1.64rem,6.72vw,2.44rem); }
}
@media (max-width:430px) {
    .hero-demo-column > .demo-shell { --conversation-panel-padding:.65rem; }
}

/* Homepage: smaller headline and prominent POS benefits. */
.hero-copy-column .hero-title.hero-title-split.hero-title-compact {
    font-size: clamp(1.4rem, 1.8vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

    .hero-copy-column .hero-title.hero-title-split.hero-title-compact span + span {
        margin-top: 0.2em;
    }

.hero-copy-column .hero-pos-highlights {
    box-sizing: border-box;
    width: min(100%, 560px);
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid #2864e8;
    border-radius: 0 12px 12px 0;
    background: #eaf1ff;
    color: #102e68;
}

    .hero-copy-column .hero-pos-highlights p {
        margin: 0;
        font-size: clamp(1.4rem, 1.8vw, 2rem);
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: -0.025em;
    }

        .hero-copy-column .hero-pos-highlights p + p {
            margin-top: 0.65rem;
        }