/* 2026-11-12 PATROL-004: owner-approved 4/6/10 px account controls; circular status/avatar shapes retained. */
/* Till sign-in (store computer) and the account's dialogs. Same tokens as style.css. The owner's staff page (员工与收银台) left
   for the store's own back office (2026-11-23, the owner's 登录、员工和权限): its rules went with it. */
body[data-surface=customer][data-view=till] .wrap{max-width:none;padding:0}
body[data-surface=customer][data-view=till] .wrap>#error{max-width:560px;margin:18px auto}
.till-shell{min-height:calc(100dvh - 111px);display:flex;justify-content:center;align-items:flex-start;padding:56px 20px;background:#f2efe9}
.till{width:100%;max-width:760px}
.till-head{display:flex;align-items:center;gap:16px;margin-bottom:28px}
.till-head .logo{width:56px;height:56px}
.till-head h1{margin:0;font-size:28px}
.till-head p{margin:2px 0 0}
/* Language switch for the people who work the till (中文 / Español), same look as the one inside the store. */
.till-head{flex-wrap:wrap}.till-head>div{flex:1 1 auto;min-width:0}.till-head>.till-head-actions{display:flex;flex:none;align-items:center;gap:10px;margin-left:auto}
.till-owner{min-height:40px;padding:6px 14px;border:1px solid #d3cec4;border-radius:0;background:#faf9f6;color:#121926;font-size:14px;font-weight:650}.till-owner:hover:not(:disabled){background:#f3f1ec;border-color:#d3cec4}
.lang-toggle{display:inline-flex;border:1px solid #d3cec4;border-radius:0;overflow:hidden;background:white}
.lang-toggle button{min-height:40px;padding:6px 14px;border:0;border-radius:0;background:transparent;color:#5f5b54;font-size:14px;font-weight:650}
.lang-toggle button:hover:not(:disabled){background:#f3f1ec;border-color:transparent}
.lang-toggle button[aria-pressed=true],.lang-toggle button[aria-pressed=true]:hover:not(:disabled){background:#121926;color:white}
/* The cursor's frame on 中文 / Español (2026-11-26, the arrow keys walk them): inside the key, where the switch, which clips
   what lies outside it, does not cut it off and the key beside it does not cover it. */
.lang-toggle button:focus-visible{outline-offset:-3px}
.till-people{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.till-card{width:100%;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#faf9f6;border:1px solid var(--line);border-radius:0;padding:18px 12px}
.till-card strong{font-size:16px;line-height:1.35;overflow-wrap:anywhere;text-align:center}
.till-card span:last-child{font-size:12px;color:#5f5b54}
.till-card:hover:not(:disabled){border-color:#c0bbb2;background:#faf9f6;box-shadow:0 6px 18px #18345c0d}
.till-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:#efece6;color:#344054;font-size:20px;font-weight:700;flex:none}
.till-pin{background:#faf9f6;border:1px solid var(--line);border-radius:0;padding:26px;max-width:380px;margin:0 auto}
.till-person{display:flex;align-items:center;gap:14px;margin-bottom:6px}
.till-pin .inline-error{margin:14px 0 0;padding:10px 12px;font-size:14px}
.till-person strong{display:block;font-size:16px;line-height:1.3}
.till-person span:not(.till-avatar){font-size:12px;color:#5f5b54}
.till-pin input[type=password]{--fp-field-size: 28px; font-size: var(--fp-field-size);letter-spacing:10px;text-align:center;min-height:56px}
/* The till password (2026-11-03): any characters, typed on a keyboard or the screen's own. */
.till-secret .password-field input{--fp-field-size: 20px; font-size: var(--fp-field-size);letter-spacing:.06em;min-height:52px}
.till-secret .till-submit{margin-top:16px;width:100%}
.till-submit{width:100%;margin-top:18px;min-height:52px;font-size:16px;font-weight:700}
.till-switch{display:block;margin:10px auto 0}
.till-empty{max-width:520px}
@media(max-width:700px){.till-shell{padding:28px 14px}.till-head h1{font-size:20px}.till-people{grid-template-columns:repeat(2,minmax(0,1fr))}.till-card{min-height:128px}.till-pin{padding:20px}}

/* A dialog's title with its × at the top right (staff.mjs dialogHead), and under it where it applies. */
.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:0 0 4px}
.dialog-head h2{margin:0;line-height:1.35}
dialog .dialog-x{flex:none;display:grid;place-items:center;width:40px;height:40px;min-height:0;margin:-7px -12px 0 0;padding:0;border:0;border-radius:0;background:transparent;color:#5f5b54}
dialog .dialog-x:hover:not(:disabled){background:#efece6;border:0;color:#121926}
dialog .dialog-x:active:not(:disabled){transform:none;background:#e4e0d8}
/* The till sign-in: the till's name, then what to do (not joined by 「·」). */
.till-sub .till-label{margin-right:12px;color:#121926;font-weight:650}

/* Touch screens (the owner on a phone, a tablet at the counter): every control a finger wide. */
@media(pointer:coarse){body td>button,body .small,body .inline-label select,body .lang-toggle button,body .till-owner,body .native-business-actions button,body .auth-links button,body .text-action,body .store-table td:last-child button{min-height:44px}}

/* The small things (2026-11-07, the owner: 「很多地方都有细节上的问题需要处理」). */
/* A thin, light scrollbar in a dialog or a table that scrolls (Windows' 17 px grey one took a strip of the form). */
body[data-surface=customer] :is(dialog,.table-wrap){scrollbar-width:thin;scrollbar-color:#c8c3b9 transparent}
/* A dialog taller than the screen (新增员工 on a 768 px laptop): its buttons stay in view at its foot while the form
   scrolls, on white with a hairline, flush with the dialog's edge (the offset is the dialog's padding: Chrome keeps a
   sticky box inside the scroll container's content box). */
body[data-surface=customer] dialog form>.row:last-child{position:sticky;bottom:-26px;z-index:1;margin:22px -26px -26px;padding:14px 26px 20px;border-top:1px solid var(--line);background:#faf9f6}
@media(max-width:700px){body[data-surface=customer] dialog form>.row:last-child{bottom:-21px;margin:18px -21px -21px;padding:12px 21px 16px}}

/* The window's title row stays in view while a long form scrolls under it (2026-11-14), as its keys do below; its × is 40 px to
   hit, 44 on a touch screen, as every window's in the store app. */
body[data-surface=customer] dialog .dialog-head{position:sticky;top:-26px;z-index:2;margin:-26px -26px 4px;padding:26px 26px 6px;background:#fff}
@media(max-width:700px){body[data-surface=customer] dialog .dialog-head{top:-21px;margin:-21px -21px 4px;padding:21px 21px 6px}}
@media(pointer:coarse){dialog .dialog-x{width:44px;height:44px;margin:-9px -14px 0 0}}
