/* --- P-SITE-1 --- TB Site: the phone shell. Loaded AFTER app.css, which
   supplies the tokens, the membership card (.mcard) and the pills; this
   file only lays out a one-column, thumb-reach screen with a bottom bar.
   Orange is the one action; navy is structure; red/amber/green are status. */
:root { --site-bar: 64px; }
html, body.site { background: #f5f6fa; }
body.site { margin: 0; padding-bottom: calc(var(--site-bar) + env(safe-area-inset-bottom)); font-family: Archivo, system-ui, -apple-system, sans-serif; color: #171b22; -webkit-tap-highlight-color: transparent; }
.site-head { background: #0d47a1; color: #fff; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; }
.site-head .mark { width: 16px; height: 16px; border-radius: 4px; background: #F87800; flex: none; }
.site-head h1 { font-size: 18px; margin: 0; font-weight: 700; flex: 1; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.site-head .who { font-size: 12px; color: #c8d3ea; }
.site-main { padding: 14px 16px 24px; max-width: 560px; margin: 0 auto; }
.site-main h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #5f6873; margin: 18px 0 8px; }
.site-card { background: #fff; border: 1px solid #d9dee5; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.site-card.is-action { border-color: #F87800; }
.site-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef0f3; text-decoration: none; color: inherit; }
.site-row:last-child { border-bottom: 0; }
.site-row .t { flex: 1; min-width: 0; }
.site-row .t b { display: block; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-row .t span { display: block; font-size: 13px; color: #5f6873; }
.site-row .chev { color: #9aa3ae; font-size: 18px; }
.site-day { font-size: 13px; font-weight: 700; color: #0d47a1; margin: 14px 0 4px; }
.site-day.is-today { color: #F87800; }
.site-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.site-pill.ok { background: #e3f3e6; color: #2e7d32; } .site-pill.warn { background: #fff4dc; color: #8a5a00; } .site-pill.bad { background: #fbe4e4; color: #c62828; } .site-pill.plain { background: #eef0f3; color: #5f6873; }
.site-btn { display: block; width: 100%; text-align: center; padding: 14px; border-radius: 12px; font-size: 16px; font-weight: 700; border: 0; text-decoration: none; }
.site-btn.primary { background: #F87800; color: #fff; }
.site-btn.quiet { background: #fff; color: #0d47a1; border: 1px solid #d9dee5; }
.site-btn + .site-btn { margin-top: 10px; }
.site-empty { color: #5f6873; text-align: center; padding: 28px 10px; font-size: 15px; }
.site-note { font-size: 13px; color: #5f6873; }
.site-code { font-family: ui-monospace, Menlo, monospace; font-size: 28px; letter-spacing: .12em; text-align: center; margin: 8px 0; }
.site-input { width: 100%; font-size: 22px; letter-spacing: .14em; text-align: center; text-transform: uppercase; padding: 12px; border: 1px solid #d9dee5; border-radius: 12px; font-family: ui-monospace, Menlo, monospace; }
.site-steps { padding-left: 1.2em; margin: 8px 0 0; } .site-steps li { margin: 6px 0; }
.site-video { width: 100%; border-radius: 12px; background: #000; display: none; aspect-ratio: 3 / 4; object-fit: cover; }
.site-video.is-on { display: block; }
/* the bottom bar */
.site-bar { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--site-bar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #d9dee5; display: flex; z-index: 6; }
.site-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: #5f6873; text-decoration: none; font-weight: 600; }
.site-bar a i { font-size: 22px; line-height: 1; }
.site-bar a.is-active { color: #F87800; }
/* the card page fills the screen so it can be turned around at a counter */
body.site .mcard-wrap { max-width: none; margin: 0; }
.site-flash { background: #e3f3e6; color: #1b5e20; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.site-flash.danger { background: #fbe4e4; color: #8e1c1c; }
/* --- end P-SITE-1 --- */
/* --- P-SITE-2 --- doing things from the phone */
.site-row .act { flex: none; }
.site-row form { margin: 0; }
.site-mini { font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; border: 1px solid #d9dee5; background: #fff; color: #0d47a1; text-decoration: none; white-space: nowrap; }
.site-mini.is-done { background: #e3f3e6; color: #1b5e20; border-color: #c5e5ca; }
.site-mini.call { color: #1b5e20; }
.site-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.site-grid a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eef0f3; }
.site-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.site-textarea { width: 100%; min-height: 96px; font-size: 16px; padding: 12px; border: 1px solid #d9dee5; border-radius: 12px; font-family: inherit; }
.site-text { width: 100%; font-size: 16px; padding: 12px; border: 1px solid #d9dee5; border-radius: 12px; font-family: inherit; }
.site-seg { display: flex; gap: 8px; margin: 8px 0; }
.site-seg label { flex: 1; text-align: center; padding: 10px; border: 1px solid #d9dee5; border-radius: 12px; font-weight: 600; font-size: 14px; }
.site-seg input { display: none; } .site-seg input:checked + span { color: #F87800; }
.site-seg label:has(input:checked) { border-color: #F87800; background: #fff6ee; }
.site-camera input[type=file] { display: none; }
.site-log .site-row .t span { white-space: normal; }
.site-head .bell { color: #fff; position: relative; font-size: 20px; text-decoration: none; padding: 4px; }
.site-head .bell .n { position: absolute; top: -2px; right: -4px; background: #F87800; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 5px; }
.push-note { font-size: 13px; color: #5f6873; margin-top: 6px; }
/* --- end P-SITE-2 --- */

/* M2: Dictate */
.dict-text { font-size: 1.05rem; }
.dict-said { font-size: 1.02rem; line-height: 1.5; }
.dict-act { display: grid; grid-template-columns: 1.4rem 1fr; gap: .2rem .6rem; padding: .75rem .9rem; border-top: 1px solid var(--tb-line, #e5e8ef); }
.dict-act:first-child { border-top: 0; }
.dict-act > .bi:first-child { color: var(--tb-navy, #0d47a1); font-size: 1.1rem; }
.dict-act-b { grid-column: 2; display: flex; gap: .5rem; margin-top: .3rem; }
.dict-act-b form { margin: 0; }
.dict-act.is-done { grid-template-columns: 1.4rem 1fr auto; align-items: center; }
