/* Additive mobile changes; the published October 22 mobile styles remain intact. */
.mobile-brand { display:inline-flex; align-items:flex-start; gap:3px; white-space:nowrap; color:#26485e; line-height:1 }
.mobile-brand-name { font-size:16px; font-weight:400; letter-spacing:.6px; line-height:22px }
.mobile-brand-staff { position:relative; top:-3px; font-size:9px; font-weight:400; letter-spacing:0; line-height:12px }
html[data-general-ai="false"] #order-ask-ai,
html[data-general-ai="false"] [data-mobile-route="ai"] { display:none!important }
html[data-sms-reply-ai="false"] #sms-assist-panel,
#sms-assist-toggle { display:none!important }
.revised .bottom-nav { position:absolute!important; bottom:0!important; left:0!important; right:0!important; height:72px; min-height:72px; gap:4px; background:#ffffff86; backdrop-filter:blur(20px) saturate(1.3); -webkit-backdrop-filter:blur(20px) saturate(1.3) }
.revised .bottom-nav .nav-button { display:flex; flex-direction:column; justify-content:center; gap:4px; height:60px; min-width:54px; border-radius:30px; color:#425e72 }
.revised .bottom-nav .nav-button .icon { width:22px; height:22px }
.nav-label { font-size:11px; font-weight:600; line-height:14px }
.nav-count { position:absolute; top:1px; right:7px; min-width:18px; height:18px; padding:0 4px; border-radius:12px; background:#236d9f; color:#fff; font-size:10px; line-height:18px; border:1px solid white; font-variant-numeric:tabular-nums }
.revised .tasks-content,.revised .tools-scroll,.revised .account-scroll,.revised .detail-scroll { padding-bottom:calc(112px + env(safe-area-inset-bottom)); scrollbar-width:none }
.revised .tasks-content::-webkit-scrollbar,.revised .tools-scroll::-webkit-scrollbar,.revised .account-scroll::-webkit-scrollbar,.revised .detail-scroll::-webkit-scrollbar { display:none }
.mobile-layout .mobile-refresh,.mobile-layout .revision-header .round-button,.sheet-close { width:44px; height:44px; min-height:44px }
.mobile-layout :is(button,a,summary,input,select,textarea):focus-visible { outline:2px solid #1766bf; outline-offset:3px }
.mobile-layout ::selection { background:#bee2fa; color:#143952 }
.mobile-layout input,.mobile-layout textarea { caret-color:#1766bf }
.mobile-layout .order-filters input,.mobile-layout .order-filters select,.mobile-layout .workspace-filters select { font-size:16px }
.refresh-feedback { position:relative; padding:0 22px 10px; flex:none; display:flex; align-items:center; gap:10px; font-size:13px; line-height:1.5; color:#9b3d31 }
.refresh-feedback:empty { display:none }
.refresh-feedback button { background:#fff; color:#315f79; border:1px solid #b5cddd; border-radius:12px; padding:8px 12px; min-height:44px }
.mobile-refresh[aria-busy="true"] .icon { animation:refresh-turn 900ms linear infinite }
@keyframes refresh-turn { to { transform:rotate(360deg) } }
.mobile-layout .message-task { cursor:pointer; transition:background .15s }
.mobile-layout .message-task:active { background:#e1effa!important }
.message-task .message-preview { font-size:13px; line-height:1.6; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; color:#34536a }
.inventory-filter-panel { background:#ffffff66; border:1px solid #fff9; border-radius:18px; margin-bottom:12px }
.inventory-filter-panel>summary { padding:14px; min-height:48px; cursor:pointer; color:#2b536b; font-size:13px; line-height:1.5 }
.inventory-filter-panel #inventory-filters { padding:4px 14px 14px; margin:0 }
.mobile-layout [data-mobile-page="orders"] .mobile-card-table tr { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; padding:14px; margin-bottom:10px }
.mobile-layout [data-mobile-page="orders"] .mobile-card-table td { display:block; padding:0; border:0; font-size:12px; min-width:0; overflow-wrap:anywhere }
.mobile-layout [data-mobile-page="orders"] .mobile-card-table td::before { display:block; font-size:10px; color:#567385; margin-bottom:3px }
.mobile-layout [data-mobile-page="orders"] .mobile-card-table td:nth-child(2) { grid-column:1/-1; grid-row:2 }
.mobile-layout [data-mobile-page="orders"] .mobile-card-table td:last-child { display:flex; justify-content:flex-end; align-items:end }
.mobile-layout [data-mobile-page="orders"] .mobile-card-table td:last-child::before { display:none }
.mobile-layout [data-mobile-page="orders"] .mobile-card-table td[colspan] { grid-column:1/-1 }
.mobile-layout .pagination button { min-height:44px; padding:10px 16px }
#mobile-sheet .quick-replies button { min-height:44px; font-size:11px }
#mobile-sheet .sms-send-feedback { color:#365e76; font-size:11px; line-height:1.5; margin:5px 0 0 }
#mobile-sheet .sms-send-feedback[data-state="failed"] { color:#9b3d31 }
#mobile-sheet .sms-retry { display:inline-flex; min-height:44px; align-items:center; padding:8px 14px; border-radius:14px; background:#fff; color:#8c392c; border:1px solid #dab4aa; margin-top:6px }
#mobile-sheet .sms-message small { color:#456475; font-size:10px; line-height:1.5 }
#mobile-sheet .sheet-back { min-height:44px; padding:8px 12px; border-radius:20px; color:#285c7e; background:#fff; border:1px solid #d4e2ed }
.handoff-demo-note { font-size:11px; color:#486578; line-height:1.6; padding:12px 2px }
.demo-controls { padding:12px; background:#ffffffb0; border-radius:16px; margin:14px 0; font-size:12px; line-height:1.6 }
.demo-controls button { display:block; margin:8px 0; padding:10px 12px; min-height:44px; background:white; border:1px solid #c4d9e8; border-radius:12px; color:#365b73 }
@media(max-height:550px) { .revised .bottom-nav { height:60px; min-height:60px; margin-bottom:env(safe-area-inset-bottom) } .revised .bottom-nav .nav-button{height:52px} #mobile-sheet[data-kind="thread"]{height:var(--app-height);max-height:var(--app-height)} }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important } }

/* Reference-led Messages: search, horizontal queues, then the existing cards. */
.mobile-layout .messages-header { gap:10px; padding:22px 18px 8px }
.mobile-layout .messages-header .message-search-field { display:flex; align-items:center; gap:9px; flex:1; min-width:0; padding:0 14px; height:46px; border-radius:26px; background:#ffffffbb }
.message-search-field>.icon { width:19px; height:19px; flex:none; color:#557287 }
.mobile-layout .messages-header input { width:100%; min-height:44px; padding:10px 0; background:transparent; border:0; border-radius:0; font-size:16px }
.mobile-layout .messages-header .message-search-field input:focus { outline:none; box-shadow:none; }
.mobile-layout .messages-header .message-search-field:has(input:focus-visible) { box-shadow:inset 0 -2px #6d8290; }
.messages-header .mobile-refresh { margin:0; background:#ffffffaa }
.mobile-layout [data-mobile-page="messages"] .detail-scroll { padding-top:0 }
.message-queues-bar { position:sticky; top:0; z-index:2; margin:0 -18px 8px; padding:0 12px; background:rgba(255,255,255,.18); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px) }
.message-tabs { position:relative; display:flex; gap:4px; padding:0 0 10px }
.message-tabs::-webkit-scrollbar { display:none }
.message-tabs [role="tab"] { flex:1; min-width:0; min-height:48px; padding:10px 6px 12px; background:transparent; font-size:14px; line-height:26px; color:#536c7c; white-space:nowrap; border-radius:8px; font-weight:500 }
.message-tabs [role="tab"][aria-selected="true"] { color:#152f40; font-weight:750 }
.message-tab-indicator { position:absolute; left:0; bottom:1px; width:40px; height:15px; color:#398cf6; pointer-events:none; transition:transform .28s cubic-bezier(.16,1,.3,1) }
.message-tab-indicator svg { display:block; width:100%; height:100%; overflow:visible }
.mobile-layout [data-mobile-page="tasks"] .revision-header>div { min-width:0; flex:1 }
.mobile-layout [data-mobile-page="tasks"] [data-task-greeting] { font-size:26px; line-height:1.25; font-weight:700; letter-spacing:-.65px; overflow-wrap:anywhere; text-wrap:balance }
.message-results { touch-action:pan-y; min-height:260px; outline-offset:-2px }
.mobile-layout .message-results>.message-task { padding:17px; background:#ffffffb0; border:1px solid #fff9; border-radius:20px; margin:0 0 12px }
.message-empty { min-height:300px; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; gap:12px; padding:32px 20px; color:#557181 }
.message-empty>.icon { width:46px; height:46px; color:#81b4d5; stroke-width:1.25; margin-bottom:8px }
.message-empty strong { font-size:16px; font-weight:500; color:#36576c }
.message-empty p { font-size:12px; line-height:1.6; margin:0 }
/* Personal center uses only existing profile/account actions. */
.mobile-layout [data-mobile-page="account"] .account-header { display:none }
.mobile-layout [data-mobile-page="account"] .account-scroll { padding-top:18px }
.mobile-layout [data-mobile-page="account"] .account-profile { background:transparent; padding:20px 4px 26px; gap:18px; min-height:126px; border-radius:0 }
.mobile-layout [data-mobile-page="account"] .live-profile-mark { width:68px; height:68px; border-radius:50%; font-size:26px; font-weight:600; color:#28658c; background:#c8e4f5; border:2px solid #ffffffb5 }
.mobile-layout [data-mobile-page="account"] .account-profile h2 { font-size:25px; line-height:1.25; font-weight:650; letter-spacing:-.5px; overflow-wrap:anywhere }
.mobile-layout [data-mobile-page="account"] .account-profile p { margin-top:9px; font-size:13px; line-height:1.6; color:#4a677c }
.mobile-layout [data-mobile-page="account"] .account-settings { display:flex; flex-direction:column; gap:12px; background:transparent; border-radius:0; overflow:visible; margin-top:0 }
.mobile-layout [data-mobile-page="account"] .account-settings>.account-section,
.mobile-layout [data-mobile-page="account"] .account-settings>.account-link { background:#ffffffc9; border:0; border-radius:20px; overflow:hidden }
.mobile-layout [data-mobile-page="account"] .account-section-heading { padding:19px 18px; min-height:84px; gap:16px }
.mobile-layout [data-mobile-page="account"] .account-section-heading strong { font-size:16px; font-weight:550; letter-spacing:0 }
.mobile-layout [data-mobile-page="account"] .account-section-heading>.icon:first-child { width:24px; height:24px; color:#30586f; stroke-width:1.65 }
.mobile-layout [data-mobile-page="account"] .account-section-heading small { color:#536f80; font-size:12px }
.mobile-layout [data-mobile-page="account"] .account-signout { min-height:56px; border-radius:20px; background:#ffffffc9; color:#486477; font-size:14px }
#workspace > .mode-settings { display:none; }
.mode-settings { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); column-gap:6px; background:#ffffffc9; border-radius:20px; padding:6px 8px; color:#213e50; }
.mode-setting { min-width:0; }
.mode-setting-row { display:flex; align-items:center; gap:4px; }
.mode-setting-row > strong { font-size:12px; font-weight:650; }
.mode-segments { flex:1; padding:2px; border:1px solid #d5e2e9; display:grid; grid-template-columns:repeat(2,minmax(44px,1fr)); border-radius:24px; background:#e7eff3; }
.mode-segments > button { min-width:44px; min-height:44px; padding:0 2px; border:0; color:#405e70; background:transparent; border-radius:20px; font-size:12px; }
.mode-segments > button[aria-pressed="true"] { background:#fff; color:#15394e; font-weight:650; box-shadow:0 1px 3px #344d5b22; }
.mode-segments > button:disabled:not([aria-pressed="true"]) { opacity:.65; }
.mode-setting-feedback { color:#4a6373; font-size:13px; margin-top:5px; }
.mode-setting-feedback button { min-height:32px; background:transparent; color:#345d77; text-decoration:underline; }

/* Keep each business action together, separate from the date editor. */
#mobile-sheet .reservation-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:16px }
#mobile-sheet .reservation-action-group { display:flex; flex-direction:column; gap:9px; min-width:0 }
#mobile-sheet .reservation-action-group + .reservation-action-group { border-top:1px solid #dce8ee; padding-top:16px }
#mobile-sheet .reservation-action-group label { display:flex; flex-direction:column; gap:6px; min-width:0; font-size:12px; color:#45677a }
#mobile-sheet .reservation-action-group select { width:100%; min-width:0; min-height:44px; box-sizing:border-box; font-size:16px }
#mobile-sheet .reservation-action-group button { width:100%; min-height:44px; white-space:normal }
#mobile-sheet .reservation-action-group small { color:#607b8b; font-size:11px; line-height:1.6 }
.reservation-action-group .date-error { margin:0; color:#9b3d31; font-size:13px }
#login-message[role="alert"]:not([hidden]) { color:#9b3d31; font-size:14px }
#mobile-sheet .sheet-feedback { flex:none; margin:0; padding:12px 18px; color:#8a352c; background:#fff0ed; font-size:12px; line-height:1.6; overflow-wrap:anywhere }
#mobile-sheet .order-detail-actions { display:grid; grid-template-columns:minmax(0,1fr) }
#mobile-sheet .order-detail-actions button { width:100%; min-height:44px }
