/* Ask VERA, the staff app. The look follows Connect's staff pages (navy bar, red accent, Inter-style type). Every colour and the font come from the domain's `branding` config, which
   staff.js writes onto :root; the values below are only what shows for a moment before that. */
:root { --ink:#0F1B34; --accent:#C8102E; --muted:#8A909C; --line:#ECEEF2; --wash:#F6F7F9; --ok:#1D7A33; --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 15px/1.4 var(--font); }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
#app, #login { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: #fff; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
#app[hidden], #login[hidden] { display: none; }
.bar { background: var(--ink); color: #fff; display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 9px) 16px 9px; font-size: 12px; font-weight: 500; position: sticky; top: 0; z-index: 5; }
.bar .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bar .store { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .sp { margin-left: auto; }
.bar .stk { font-size: 10.5px; font-weight: 500; opacity: .8; white-space: nowrap; }
.bar .stk.old { opacity: 1; color: #FFD27A; font-weight: 700; }
.lang { display: flex; gap: 2px; }
.lang button { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 6px; padding: 3px 8px; font-size: 11px; min-height: 28px; }
.lang button.on { background: #fff; color: var(--ink); border-color: #fff; font-weight: 700; }
.menu-btn { background: transparent; border: 0; color: #fff; font-size: 20px; line-height: 1; min-width: 36px; min-height: 36px; }
.menu { position: absolute; right: 8px; top: calc(env(safe-area-inset-top) + 46px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(15,27,52,.18); z-index: 9; overflow: hidden; }
.menu button { display: block; width: 100%; text-align: left; padding: 13px 18px; background: #fff; border: 0; border-bottom: 1px solid var(--line); min-width: 180px; }
.menu button:last-child { border-bottom: 0; color: var(--accent); }
.brand { padding: 14px 16px 12px; border-bottom: 3px solid var(--accent); background: #fff; }
.org { font-size: 24px; font-weight: 800; letter-spacing: .14em; line-height: 1.1; }
.org img { display: block; height: 34px; max-width: 70%; }
.assistant { margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .03em; }
.tabs { display: flex; margin: 12px 16px 0; background: var(--wash); border-radius: 10px; padding: 3px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px 8px; border-radius: 8px; font-weight: 600; color: var(--muted); min-height: 44px; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,27,52,.14); }
.entry { display: flex; gap: 8px; margin: 10px 16px 0; }
.entry input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; font-size: 16px; min-height: 48px; background: #fff; }
.entry input:focus, #lcode:focus, #lstaff:focus, #lstore:focus { outline: 0; border-color: var(--ink); }
.entry input.code { font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: .06em; }
.entry .go { background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 0 14px; font-weight: 700; min-height: 48px; }
.entry .mic { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; min-height: 48px; font-size: 18px; }
.entry .mic.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.hint { margin: 8px 16px 0; font-size: 12px; color: var(--muted); }
#feed { flex: 1; padding: 6px 16px 18px; }
.ask { margin: 16px 0 6px; display: flex; justify-content: flex-end; }
.ask span { background: var(--ink); color: #fff; border-radius: 14px 14px 3px 14px; padding: 8px 12px; max-width: 85%; font-size: 14px; }
.reply { margin: 10px 0 4px; font-weight: 600; }
.heard { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.system { margin: 14px 0; padding: 10px 12px; background: var(--wash); border-radius: 10px; font-size: 13px; color: var(--ink); }
.system.bad { background: #FCE9EC; color: #8a0b20; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0; background: #fff; box-shadow: 0 1px 2px rgba(15,27,52,.05); }
.card.gone { border-color: var(--accent); background: #FFF6F7; }
.c1 { display: flex; align-items: baseline; gap: 10px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.slot { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: #fff; border-radius: 4px; padding: 2px 6px; }
.price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.price small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); text-align: right; }
.nm { margin-top: 2px; font-size: 14px; }
.meta { font-size: 12px; color: var(--muted); margin-top: 2px; text-transform: capitalize; }
.why { font-size: 12.5px; margin-top: 6px; }
.sizes { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; align-items: center; }
.sizes .lbl { font-size: 11px; color: var(--muted); margin-right: 2px; }
.pill { border: 1px solid var(--line); background: var(--wash); border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.pill.asked { border-color: var(--ok); background: #E8F4EA; color: var(--ok); }
.note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.note.no { color: var(--accent); font-weight: 600; }
.note.yes { color: var(--ok); font-weight: 600; }
.acts { display: flex; gap: 8px; margin-top: 10px; }
.acts button, .chips button, .opts button { border: 1.5px solid var(--ink); background: #fff; border-radius: 10px; padding: 9px 12px; font-weight: 600; font-size: 13px; min-height: 40px; }
.acts button { flex: 1; }
.chips, .opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.opts button { flex: 1 1 40%; }
.kit-t { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 12px 0 0; }
.dots { display: inline-flex; gap: 3px; margin-left: 6px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: b 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes b { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
.powered { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 10.5px; color: var(--muted); border-top: 1px solid var(--line); }
.powered img { height: 14px; opacity: .55; }
.install { position: sticky; bottom: 0; background: var(--ink); color: #fff; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; font-size: 13px; }
.install button { background: #fff; color: var(--ink); border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 700; min-height: 36px; }
.loginbox { padding: 22px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.loginbox h1 { margin: 0; font-size: 22px; }
.loginbox p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.loginbox label { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.loginbox select, .loginbox input { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 16px; min-height: 48px; background: #fff; width: 100%; }
.loginbox #lgo { margin-top: 14px; background: var(--ink); color: #fff; border: 0; border-radius: 10px; font-weight: 700; min-height: 50px; }
.err { color: var(--accent); font-size: 13px; min-height: 18px; }
@media (min-width: 600px) { body { background: #e7e8ea; } #app, #login { box-shadow: 0 0 0 1px var(--line); } }
