/* Only the new store workspace uses a viewport layout; the iframe owns scrolling. */
body[data-surface="customer"][data-view="business"]{height:100dvh;display:flex;flex-direction:column;overflow:hidden}
body[data-surface="customer"][data-view="business"]>.environment{display:none}
body[data-surface="customer"][data-view="business"]>.wrap{max-width:none;width:100%;margin:0;padding:0;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}
body[data-surface="customer"][data-view="business"] #app{flex:1;min-height:0}
/* Store identity below replaces the platform masthead only in business view. */
body[data-surface="customer"][data-view="business"]>.top{display:none}

/* The store page's own bar (2026-10-26): the store on the left (its logo or the FACIPOS mark, its
 * name, this computer's till, a test badge), who is signed in on the right with a menu that holds
 * 切换门店 / 修改密码 / 退出. One line at every width. */
.native-business-shell{height:100%;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.native-business-header{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;height:56px;padding:0 16px 0 18px;flex:none;background:#faf9f6;border-bottom:1px solid #e4e0d8}
.native-business-brand{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}
.native-business-brand h1{min-width:0;margin:0;overflow:hidden;color:#121d2f;font-size:16px;font-weight:750;line-height:1.3;letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap}
.native-business-logo,.native-business-brand-mark{width:32px;height:32px;flex:none;border-radius:0;object-fit:contain}
.native-business-brand-mark{display:block;background:none}
.native-business-brand-mark svg{display:block;width:100%;height:100%}
.native-business-till{flex:none;padding:3px 9px;border-radius:0;background:#efece6;color:#344054;font-size:12px;font-weight:650;white-space:nowrap}
.native-business-env{flex:none;padding:3px 9px;border-radius:0;background:#fff4d6;color:#7a4f00;font-size:12px;font-weight:700;white-space:nowrap}
.native-business-actions{display:flex;align-items:center;gap:8px;flex:none}

.native-business-account{position:relative}
.native-business-account>summary{list-style:none}
.native-business-account>summary::-webkit-details-marker{display:none}
.native-business-account-button{display:flex;align-items:center;gap:9px;height:40px;padding:0 10px 0 4px;border:1px solid transparent;border-radius:0;color:#121d2f;font-size:14px;font-weight:650;cursor:pointer;user-select:none;transition:background-color .12s,border-color .12s}
.native-business-account-button:hover,.native-business-account[open]>.native-business-account-button{background:#f2efe9;border-color:#e4e0d8}
.native-business-account-button:focus-visible{outline:2px solid #1b52fb;outline-offset:2px}
.native-business-account-button::after{content:"";width:7px;height:7px;margin:-4px 2px 0 0;border:solid #848077;border-width:0 1.6px 1.6px 0;transform:rotate(45deg);transition:transform .15s}
.native-business-account[open]>.native-business-account-button::after{margin-top:3px;transform:rotate(225deg)}
.native-business-avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:#eef3ff;color:#1b52fb;font-size:14px;font-weight:750}
.native-business-avatar.is-owner{background:#eef3ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232855d9' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.5' r='3.6'/%3E%3Cpath d='M5.5 19.2c1.3-3.3 3.8-5 6.5-5s5.2 1.7 6.5 5'/%3E%3C/svg%3E") center/18px no-repeat}
.native-business-who{display:flex;align-items:baseline;gap:6px;min-width:0}
.native-business-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native-business-role{color:#5f5b54;font-size:12px;font-weight:600}
.native-business-menu{position:absolute;top:calc(100% + 6px);right:0;width:240px;padding:6px;border:1px solid #e4e0d8;border-radius:0;background:#faf9f6;box-shadow:0 14px 34px -8px rgba(16,24,40,.22),0 4px 10px -4px rgba(16,24,40,.08);animation:nb-menu-in .14s ease-out}
.native-business-menu-head{margin:0 0 4px;padding:8px 10px 10px;border-bottom:1px solid #e4e0d8;color:#5f5b54;font-size:12px;overflow-wrap:anywhere}
.native-business-menu .native-business-menu-item{display:flex;align-items:center;width:100%;min-height:38px;margin:0;padding:0 10px;border:0;border-radius:0;background:transparent;color:#121d2f;font-size:14px;font-weight:550;text-align:left;cursor:pointer}
.native-business-menu .native-business-menu-item:hover:not(:disabled){background:#f2efe9}
.native-business-menu .native-business-menu-item.is-leave{color:#b42318}
.native-business-menu .native-business-menu-item+.native-business-menu-item.is-leave{position:relative;margin-top:9px}
.native-business-menu .native-business-menu-item+.native-business-menu-item.is-leave::before{content:"";position:absolute;left:4px;right:4px;top:-5px;height:1px;background:#e4e0d8}
.native-business-menu .native-business-menu-item:focus-visible{outline:2px solid #1b52fb;outline-offset:-2px}
@keyframes nb-menu-in{from{opacity:0;transform:translateY(-4px)}}
.native-business-frame{display:block;border:0;flex:1;width:100%;min-height:0;background:#faf9f6}
/* 门店页面打不开 (2026-11-22): one short notice stands in for a store frame whose start failed, while it is opened again
 * (plan-one-customer-business.mjs watchStoreStart). */
.native-business-frame[hidden],.native-business-boot[hidden]{display:none}
.native-business-boot{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:24px 16px;background:#faf9f6}
.native-business-boot p{max-width:440px;margin:0;padding:16px 20px;border:1px solid #e4e0d8;border-radius:0;background:#fff;color:#344054;font-size:16px;line-height:1.5;text-align:center}
/* One top bar for the store (2026-10-27, the owner's spec): the
 * store's capsules - the shift with a breathing dot and its one action, the offline state - then
 * 中 | Es and the account. Shown once the store page says what it shows. */
/* (2026-10-28, the owner's new frame) A fine line under it, like the page header below; no glass (a blurred see-through
 * layer loses ClearType on the shop's Windows screens). Its logo stands over the side menu's icons (18 px in). Warm white
 * with warm lines, white only for what is pressed (2026-11-10, the approved samples; it was white with #E2E8F0). */
.native-business-header{background:#faf9f6;border-bottom:1px solid #e4e0d8;box-shadow:none}
/* Nothing crowded: the page's 44 px buttons (style.css) made 交班 stick out of its capsule and 中 | Es a tall block; each
 * keeps the height it is drawn with here (a touch screen gets taller capsules, every control a finger's size). */
.native-business-shift-action,.native-business-offline,.native-business-lang button{min-height:0}
@media(pointer:coarse){.native-business-shift{height:48px}.native-business-shift-action{height:44px}.native-business-offline{height:44px}.native-business-account-button{height:44px}}
.native-business-store{display:flex;align-items:center;gap:8px}
.native-business-store[hidden],.native-business-offline[hidden],.native-business-shift-action[hidden],.native-business-shift-time[hidden]{display:none}
.native-business-shift{display:flex;align-items:center;gap:8px;height:36px;padding:0 4px 0 12px;border:1px solid #e4e0d8;border-radius:0;background:#faf9f6;box-shadow:0 1px 2px rgba(15,23,42,.04);color:#344054;font-size:14px;white-space:nowrap}
.native-business-shift-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#949087}
/* The green dot breathes three times in a browser of today; on the shop's Windows 7 PC (Chrome 109) it is still (2026-11-14:
 * a shadow drawn again every frame for 8 s as the store opened, 「这个过渡画面显得整个系统更卡了」). */
.native-business-shift[data-tone="open"] .native-business-shift-dot{background:#12b76a}
@supports (color:color-mix(in srgb,red,red)){@media(prefers-reduced-motion:no-preference){.native-business-shift[data-tone="open"] .native-business-shift-dot{animation:nb-breathe 2.6s ease-in-out 3}}}
@keyframes nb-breathe{0%,100%{box-shadow:0 0 0 0 rgba(18,183,106,.45)}55%{box-shadow:0 0 0 5px rgba(18,183,106,0)}}
.native-business-shift[data-tone="pending"] .native-business-shift-dot{background:#f79009}
.native-business-shift-label{color:#121d2f;font-weight:650}
.native-business-shift-time{color:#5f5b54;font-variant-numeric:tabular-nums}
.native-business-shift-action{height:28px;margin-left:2px;padding:0 13px;border:0;border-radius:0;background:#171c27;color:#fff;font:inherit;font-size:14px;font-weight:650;cursor:pointer;transition:background-color .15s,transform .15s}
.native-business-shift-action:hover{background:#262d3b}
.native-business-shift-action:active{transform:scale(.97)}
.native-business-shift-action[data-kind="cashier"]{background:#1b52fb}
.native-business-shift-action[data-kind="cashier"]:hover{background:#1443d6}
.native-business-shift-action:focus-visible,.native-business-offline:focus-visible,.native-business-lang button:focus-visible{outline:2px solid #1b52fb;outline-offset:2px}
.native-business-offline{display:flex;align-items:center;gap:7px;height:36px;padding:0 14px 0 12px;border:0;border-radius:0;background:#171c27;color:#fff;font:inherit;font-size:14px;font-weight:650;white-space:nowrap;cursor:pointer}
.native-business-offline::before{content:"";width:8px;height:8px;border-radius:50%;background:#f97066}
.native-business-offline[data-tone="upload"]{background:#eef3ff;color:#1b3fae}
.native-business-offline[data-tone="upload"]::before{background:#1b52fb}
.native-business-offline[data-tone="warning"]{background:#fff4d6;color:#7a4f00}
.native-business-offline[data-tone="warning"]::before{background:#f79009}
.native-business-lang{display:inline-flex;gap:2px;padding:3px;border:0;border-radius:0;background:#efece6}
.native-business-lang button{height:28px;min-width:34px;padding:0 9px;border:0;border-radius:0;background:transparent;color:#5f5b54;font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:background-color .15s,color .15s}
.native-business-lang button[aria-pressed="true"]{background:#fff;color:#0f172a;box-shadow:0 1px 2px rgba(15,23,42,.08)}
/* 中 / Es a finger's size on a touch screen (2026-11-07, Codex APP-016; after the rule it changes). */
@media(pointer:coarse){.native-business-lang button{height:42px;min-width:44px}}
@media(max-width:980px){.native-business-shift-time{display:none}}
/* A phone keeps the store page's own shift line, and 中 | Es in its 更多. */
@media(max-width:760px){.native-business-store,.native-business-lang{display:none}}
@media(max-width:700px){
 .native-business-header{height:52px;padding:0 10px 0 14px}
 .native-business-brand h1{font-size:16px}
 .native-business-logo,.native-business-brand-mark{width:28px;height:28px;border-radius:0}
 .native-business-till{display:none}
 .native-business-who{display:none}
 .native-business-account-button{padding:0 6px 0 2px;gap:4px}
}
@media(pointer:coarse){.native-business-menu .native-business-menu-item{min-height:44px}}
@media(prefers-reduced-motion:reduce){.native-business-menu{animation:none}}

/* The note above a store page (2026-10-31): a store page that cannot be left yet says which thing is unfinished; the
 * note changes nothing, so it closes with its own × (the owner: 「这种没有影响的提示加个可以手动点击取消的X」). */
body[data-surface="customer"][data-view="business"]>.wrap>#error{flex:none;position:relative;max-width:none;margin:0;padding:10px 48px 10px 16px;border-width:0 0 1px;border-radius:0;font-size:14px;line-height:1.45}
.error:has(>.error-dismiss){position:relative;padding-right:48px}
.error>button.error-dismiss{position:absolute;top:50%;right:8px;display:grid;place-items:center;width:32px;height:32px;min-height:0;margin:-16px 0 0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer}
.error>button.error-dismiss:hover:not(:disabled){border:0;background:rgba(150,48,68,.1)}
.error>button.error-dismiss:active{transform:none}
.error>button.error-dismiss:focus-visible{outline:2px solid #963044;outline-offset:1px}

/* 桌面版标题栏 (2026-11-03, the owner approved the mockups: 「全要」; docs/NATIVE-SHELL-API.md 3.4): in the desktop app
 * (capability titlebar) the store header is the window's title bar: 40 px, the store on the left, the search box in the
 * middle, the shift, language, account, connection, printer and the app's ⋯ on the right, the window buttons' corner
 * kept clear (--tb-left / --tb-right, shell.titlebar). The bar drags the window; its controls do not. The bar stays
 * opaque over Mica too (2026-11-10): words on a see-through bar cannot get ClearType. */
html[data-titlebar="page"] .native-business-header{display:flex;gap:12px;height:var(--tb-height,40px);padding:0 calc(var(--tb-right,0px) + 8px) 0 calc(var(--tb-left,0px) + 12px);background:#efece6;border-bottom:1px solid #e4e0d8;box-shadow:none;-webkit-app-region:drag;user-select:none}
html[data-titlebar="page"] .native-business-header :is(button,summary,a,input,kbd,.native-business-menu,.native-business-lang,.native-business-store,.native-business-account,.native-business-net,.native-business-printer){-webkit-app-region:no-drag}
html[data-titlebar="page"] .native-business-brand{flex:1 1 0;gap:8px;min-width:0}
html[data-titlebar="page"] .native-business-search{flex:none}
html[data-titlebar="page"] .native-business-brand h1{font-size:14px;font-weight:600;letter-spacing:0}
html[data-titlebar="page"] :is(.native-business-logo,.native-business-brand-mark){width:18px;height:18px;border-radius:0}
html[data-titlebar="page"] :is(.native-business-till,.native-business-env){padding:1px 7px;font-size:12px}
html[data-titlebar="page"] .native-business-actions{flex:1 1 0;justify-content:flex-end;gap:10px;min-width:max-content}
html[data-titlebar="page"] .native-business-shift{height:28px;gap:6px;padding:0 3px 0 10px;font-size:12px;box-shadow:none;background:#faf9f6}
html[data-titlebar="page"] .native-business-shift-action{height:22px;padding:0 10px;font-size:12px}
html[data-titlebar="page"] .native-business-offline{height:28px;padding:0 10px;font-size:12px}
html[data-titlebar="page"] .native-business-lang{padding:2px;border-radius:0;background:#e4e0d8}
html[data-titlebar="page"] .native-business-lang button{height:22px;min-width:28px;padding:0 6px;border-radius:0;font-size:12px}
html[data-titlebar="page"] .native-business-account-button{height:30px;gap:6px;padding:0 8px 0 3px;border-radius:0;font-size:14px;font-weight:600}
html[data-titlebar="page"] .native-business-avatar{width:22px;height:22px;font-size:12px}
html[data-titlebar="page"] .native-business-role{font-size:12px}
html[data-titlebar="page"] .native-business-menu{top:calc(100% + 4px);border-radius:0}
.native-business-search{display:flex;align-items:center;gap:8px;width:min(360px,30vw);height:30px;min-height:0;padding:0 6px 0 10px;border:1px solid rgba(18,29,47,.1);border-radius:0;background:#fff;color:#5f5b54;font:inherit;font-size:14px;text-align:left;cursor:text}
.native-business-search:hover{background:#fff;border-color:rgba(18,29,47,.18)}
.native-business-search:focus-visible,.native-business-shell-menu:focus-visible,.native-business-update:focus-visible{outline:2px solid #1b52fb;outline-offset:2px}
.native-business-search>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.native-business-search kbd{flex:none;font:inherit;font-size:12px;line-height:18px;padding:0 6px;border:1px solid #d3cec4;border-bottom-width:2px;border-radius:0;background:#fff;color:#3d4a5c}
.native-business-net,.native-business-printer{display:flex;align-items:center;gap:6px;color:#3d4a5c;font-size:12px;white-space:nowrap}
.native-business-net::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:#12a150}
.native-business-net[data-tone="off"]::before{background:#b42318}
.native-business-latency{display:inline-grid;place-items:center;box-sizing:border-box;flex:none;width:96px;min-height:36px;
 padding:0 4px;border:1px solid #e4e0d8;border-radius:0;background:var(--latency-bg,transparent);color:var(--latency-fg,#4e5a6c);
 font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer}
.native-business-latency:lang(zh){width:72px}
.native-business-latency[hidden]{display:none}
.native-business-latency:hover{background:#f2efe9}
.native-business-latency[data-tone]:is(:hover,:active){background:var(--latency-bg)}
.native-business-latency[data-tone="fast"]{--latency-bg:#d9f3e3;--latency-fg:#12633c}
.native-business-latency[data-tone="moderate"]{--latency-bg:#ffedb9;--latency-fg:#704b05}
.native-business-latency[data-tone="slow"]{--latency-bg:#fce0dc;--latency-fg:#9a251f}
.native-business-latency:focus-visible{outline:2px solid #1b52fb;outline-offset:2px}
.native-business-latency:is([data-status="timeout"],[data-status="unreachable"]){color:#a42320}
html[data-titlebar="page"] .native-business-latency{min-height:26px}
@media(max-width:680px){.native-business-latency{min-height:44px}}
.native-business-printer{position:relative}
.native-business-printer::after{content:"";position:absolute;left:10px;top:-1px;width:6px;height:6px;border:1px solid #efece6;border-radius:50%;background:#949087}
.native-business-printer[data-tone="ok"]::after{background:#12a150}
.native-business-printer[data-tone="off"]::after{background:#b42318}
.native-business-update{height:24px;min-height:0;padding:0 9px;border:1px solid #c7d5fb;border-radius:0;background:#eef3ff;color:#1b52fb;font:inherit;font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}
.native-business-update[hidden]{display:none}
.native-business-shell-menu{display:grid;place-items:center;width:30px;height:28px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:#344054;cursor:pointer}
.native-business-shell-menu:hover,.native-business-update:hover{background:rgba(18,29,47,.06)}
.nb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:1280px){html[data-titlebar="page"] :is(.native-business-shift-time,.native-business-net>span,.native-business-printer>span){display:none}}
@media(max-width:1080px){html[data-titlebar="page"] .native-business-search{width:36px;padding:0;justify-content:center}html[data-titlebar="page"] .native-business-search>:not(svg){display:none}}
/* Under the store page the grounds stay opaque over Mica as in a browser (2026-11-10): ClearType needs an opaque ground
   under the words, and the owner wants the browser and the desktop app to look the same (service-desktop.css). */

/* The back office (2026-11-10, the approved samples): no top bar on a wide screen in a browser - the store page's menu shows
 * the store, who is signed in (their 切换门店 / 修改密码 / 退出 relayed to this bar's menu) and 中|Es; the till keeps the bar
 * with its shift. The desktop app keeps its title bar (the window's buttons, dragging the window) without the shift, 中|Es
 * and the account, which the menu shows. A phone or tablet keeps the bar (its menu is along the bottom), without the shift
 * (the store page says which view it shows; the shift's capsule is hidden in the back office at every width). */
@media(min-width:1024px){
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="office"]>.native-business-header{display:none}
 html[data-titlebar="page"] .native-business-shell[data-store-view="office"] :is(.native-business-lang,.native-business-account){display:none}
}

/* ---- the till's bar (2026-11-10, the owner approved the samples, Main.dc.html) --------------------------------------------
 * The till is full screen under one dark bar (#171C27, 64 px) on a wide screen in a browser: on the left the store (its logo,
 * its name with this computer's till under it), who is selling (the account menu, with 中|Es in it) and the shift; on the
 * right the connection (网络正常, or the offline capsule the store page sends), 交班 and 后台 (back to the back office, when
 * the store page offers it). One set of controls: the bar's own parts are laid out again (display: contents), nothing is
 * copied. A phone or tablet keeps today's bar; the Android apps theirs. Opaque grounds only (ClearType). */
.native-business-online,.native-business-office,.native-business-menu-lang{display:none}
.native-business-names{display:contents}
@media(min-width:1024px){
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app])>.native-business-header{gap:0 18px;height:64px;padding:0 24px;background:#171c27;border-bottom:0;color:#fff}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app])>.native-business-header::after{content:"";order:10;flex:1 1 auto}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-brand,.native-business-actions,.native-business-store:not([hidden]),.native-business-shift){display:contents}
 /* The store: its logo, its name over this computer's till. */
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-logo,.native-business-brand-mark){order:1;width:32px;height:32px;border-radius:0}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-names{order:2;display:grid;gap:1px;min-width:0;max-width:240px}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-names h1{color:#fff;font-size:16px;font-weight:700;line-height:1.25}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-till{min-width:0;overflow:hidden;padding:0;border-radius:0;background:none;color:#9aa4b5;font-size:12px;font-weight:500;line-height:1.3;text-overflow:ellipsis}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-env{order:3}
 /* Who is selling: a fine line before it; their menu (切换门店 / 修改密码 / 退出, and 中|Es) opens under them. */
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-account{order:4;padding-left:18px;border-left:1px solid #2a3242}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-account-button{height:40px;padding:0 10px 0 6px;border-radius:0;color:#fff;font-size:14px;font-weight:600}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-account-button:hover,.native-business-account[open]>.native-business-account-button){background:#262d3b;border-color:#323a4a}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-account-button::after{border-color:#9aa4b5}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-account-button:focus-visible{outline-color:#8fb0ff}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-avatar{width:28px;height:28px;background:#262d3b;color:#8fb0ff;font-size:14px}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-avatar.is-owner{background:#262d3b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fb0ff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.5' r='3.6'/%3E%3Cpath d='M5.5 19.2c1.3-3.3 3.8-5 6.5-5s5.2 1.7 6.5 5'/%3E%3C/svg%3E") center/16px no-repeat}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-role{color:#9aa4b5}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-menu{right:auto;left:0}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-menu-lang{display:grid}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-lang{display:none}
 /* The shift: its dot, its words and when it opened (its 交班 is on the right). */
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-shift-dot{order:5}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-shift-label{order:6;margin-left:-10px;color:#c3cad6;font-size:14px;font-weight:600;white-space:nowrap}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-shift-time{order:7;margin-left:-10px;color:#9aa4b5;font-size:14px;white-space:nowrap}
 /* The right: the connection, 交班, 后台 - keys of the frame, 40 px. */
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-online,.native-business-offline){order:20}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-latency{order:20;margin-inline-start:-10px}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-online:not([hidden]){display:flex;align-items:center;gap:6px;color:#9aa4b5;font-size:14px;white-space:nowrap}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-online[data-tone="down"]{color:#ffb4ab}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-offline{height:32px;padding:0 12px 0 10px;border-radius:0;background:#4a1f1d;color:#ffb4ab;font-size:14px}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-offline[data-tone="upload"]{background:#1e2d57;color:#c7d7ff}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-offline[data-tone="upload"]::before{background:#8fb0ff}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-offline[data-tone="warning"]{background:#4a3412;color:#ffd27a}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-shift-action{order:21}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-office{order:22}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-shift-action,.native-business-office){height:40px;margin:0;padding:0 16px;border:1px solid #323a4a;border-radius:0;background:#262d3b;color:#fff;font-size:14px;font-weight:600}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-shift-action,.native-business-office):hover{background:#2e3646}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-shift-action[data-kind="cashier"]{border-color:#1b52fb;background:#1b52fb}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-shift-action[data-kind="cashier"]:hover{background:#1443d6}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-office:not([hidden]){display:inline-flex;align-items:center;gap:8px}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-shift-action,.native-business-office,.native-business-offline):focus-visible{outline:2px solid #8fb0ff;outline-offset:2px}
}
/* A finger's size on a touch screen. */
@media(min-width:1024px) and (pointer:coarse){
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-shift-action,.native-business-office,.native-business-account-button){height:44px}
}
/* A 1024-1180 px till (2026-11-10, R2): in Spanish the bar's words were wider than the screen - the store's name squeezed to
 * 「Tie…」 (to nothing without a till under it) and 后台 past the edge. There, in Spanish (the bar's own lang; Chinese fits
 * as it is), the shift leaves out when it opened (交班 shows it) and the connection, while it is fine, is its mark (its
 * words stay for a screen reader; 断网 keeps them), as the desktop app's title bar does at that width; in either language
 * the offline capsule gives up its width before the store's name does (its panel has the whole words). The bar keeps its
 * height, so the till under it does not move. */
@media(min-width:1024px) and (max-width:1180px){
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-header:lang(es) .native-business-shift-time{display:none}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-header:lang(es) .native-business-online:not([data-tone="down"])>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-offline:not([hidden]){display:block;flex:0 100 auto;min-width:96px;overflow:hidden;line-height:32px;text-overflow:ellipsis}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-offline::before{display:inline-block;margin-right:7px;vertical-align:1px}
}
/* The account menu's 中|Es on the till: two parts on the menu's warm track, the chosen one white. */
.native-business-menu .native-business-menu-lang{grid-template-columns:1fr 1fr;gap:2px;margin:0 0 6px;padding:3px;border-radius:0;background:#efece6}
.native-business-menu .native-business-menu-lang button{height:32px;min-height:0;padding:0 10px;border:0;border-radius:0;background:transparent;color:#5f5b54;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.native-business-menu .native-business-menu-lang button[aria-pressed="true"]{background:#fff;color:#0f172a;box-shadow:0 1px 2px rgba(15,23,42,.08)}
.native-business-menu .native-business-menu-lang button:focus-visible{outline:2px solid #1b52fb;outline-offset:-2px}
@media(pointer:coarse){.native-business-menu .native-business-menu-lang button{height:44px}}

/* The desktop app's title bar on the till (2026-11-10): 后台 beside 交班, 中|Es in the account menu as in a browser. An app
 * that can tint its window buttons (capability titlebar.tone; the page sets data-titlebar-tone) draws it as the till's dark
 * bar at every width (the window buttons follow it); an app from before keeps the light warm bar (its window buttons are
 * drawn dark: they would vanish on dark). A narrow window keeps today's bar, with 中|Es and the menu beside the till. */
@media(min-width:1024px){
 html[data-titlebar="page"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-office:not([hidden]){display:inline-flex;align-items:center;gap:6px;height:24px;min-height:0;padding:0 10px;border:1px solid #d3cec4;border-radius:0;background:#fff;color:#344054;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
 html[data-titlebar="page"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-office svg{width:14px;height:14px}
 html[data-titlebar="page"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-office:focus-visible{outline:2px solid #1b52fb;outline-offset:2px}
 html[data-titlebar="page"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-lang{display:none}
 html[data-titlebar="page"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-menu-lang{display:grid}
}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app])>.native-business-header{background:#171c27;border-bottom-color:#171c27;color:#fff}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-brand h1{color:#fff}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-till{background:#262d3b;color:#c3cad6}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-search{border-color:#323a4a;background:#262d3b;color:#9aa4b5}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-search:hover{border-color:#3d4658;background:#2e3646}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-search kbd{border-color:#3d4658;background:#1d2330;color:#c3cad6}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-shift{border-color:#323a4a;background:#262d3b;color:#c3cad6}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-shift-label{color:#fff}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-shift-time{color:#9aa4b5}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-shift-action:not([data-kind="cashier"]){background:#3a4458}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-office:not([hidden]){border-color:#323a4a;background:#262d3b;color:#fff}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-office:focus-visible{outline-color:#8fb0ff}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-account-button,.native-business-net,.native-business-printer,.native-business-shell-menu){color:#c3cad6}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-role{color:#9aa4b5}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-account-button:hover,.native-business-account[open]>.native-business-account-button){background:#262d3b;border-color:#323a4a}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-avatar{background-color:#262d3b;color:#8fb0ff}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-avatar.is-owner{background:#262d3b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fb0ff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8.5' r='3.6'/%3E%3Cpath d='M5.5 19.2c1.3-3.3 3.8-5 6.5-5s5.2 1.7 6.5 5'/%3E%3C/svg%3E") center/14px no-repeat}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) :is(.native-business-shell-menu:hover,.native-business-update:hover){background:#262d3b}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-printer::after{border-color:#171c27}
.native-business-shell[data-store-view="till"]:not([data-app]) .native-business-latency{--latency-ink:#d1daea;--latency-alert:#ffb4ab}
@media(min-width:1024px){
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-latency{color:var(--latency-fg,var(--latency-ink));border-color:#323a4a}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-latency:hover{background:var(--latency-bg,#262d3b)}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-latency:is([data-status="timeout"],[data-status="unreachable"]){color:var(--latency-alert)}
}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-latency{color:var(--latency-fg,var(--latency-ink));border-color:#323a4a}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-latency:hover{background:var(--latency-bg,#262d3b)}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-latency:is([data-status="timeout"],[data-status="unreachable"]){color:var(--latency-alert)}
/* 换人 (2026-11-23, the owner's 登录、员工和权限): on a till or a scanner, beside the account at every width - the bar's own key,
 * short. Grey while leaving the store page would lose something: still pressed, it says why (customer.mjs). */
.native-business-person{flex:none;height:32px;min-height:0;padding:0 12px;border:1px solid #e4e0d8;border-radius:0;background:#fff;color:#121d2f;font:inherit;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background-color .15s}
.native-business-person:hover{background:#f2efe9}
.native-business-person[aria-disabled="true"]{background:#faf9f6;color:#949087;cursor:not-allowed}
.native-business-person[hidden]{display:none}
.native-business-person:focus-visible{outline:2px solid #1b52fb;outline-offset:2px}
@media(pointer:coarse){.native-business-person{height:44px}}
html[data-titlebar="page"] .native-business-person{height:24px;padding:0 10px;border-color:#d3cec4;border-radius:0;font-size:12px}
@media(min-width:1024px){
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-person{order:23;height:40px;padding:0 16px;border-color:#323a4a;background:#262d3b;color:#fff}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-person:hover{background:#2e3646}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-person[aria-disabled="true"]{background:#1d2330;color:#6b7385}
 html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-person:focus-visible{outline-color:#8fb0ff}
}
@media(min-width:1024px) and (pointer:coarse){html:not([data-titlebar="page"]) .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-person{height:44px}}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-person{border-color:#323a4a;background:#262d3b;color:#fff}
html[data-titlebar="page"][data-titlebar-tone="dark"] .native-business-shell[data-store-view="till"]:not([data-app]) .native-business-person[aria-disabled="true"]{background:#1d2330;color:#6b7385}
