/* Property of EQ — all rights reserved. Unauthorised use prohibited. */
/* EQ Field — the employee-side phone classes (em-*), drawn by the one phone app (scripts/phone-shell.js and scripts/phone-*.js).
   The old employee app and its #emp-app root are gone; the colour tokens and root rules now live in phone-shell.js.
   Tokens from the Claude Design handoff (2026-10-21): Sky, Deep, Ice, Ink, grey.
   No gradients, no shadows, colour/border transitions only (150ms). */

.em-body { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.em-page { padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.em-page.em-tight { gap: 12px; }

.em-date { font-size: 14px; color: var(--em-grey); font-weight: 500; }
.em-hello { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.em-meta { font-size: 13px; color: var(--em-grey); margin-top: 2px; line-height: 1.4; }
.em-refresh { position: relative; min-height: 20px; margin: -10px 0 -6px; padding: 0; border: 0; background: transparent; font-family: inherit; color: var(--em-deep); text-align: left; cursor: pointer; }
/* The line is slim now; the tap area is still about 44px tall. */
.em-refresh::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; bottom: -12px; }
.em-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; min-height: 44px; display: flex; align-items: center; }
.em-kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--em-ink); }
.em-sub { font-size: 15px; color: var(--em-grey); line-height: 1.5; }

.em-search { height: 52px; width: 100%; border: 1px solid var(--em-line); border-radius: 6px; padding: 0 16px; font-size: 16px; color: var(--em-ink); background: #fff; }

/* Action cards on Home */
.em-act { width: 100%; min-height: 88px; border-radius: 8px; border: 1px solid var(--em-deep); background: var(--em-deep); color: #fff; display: flex; align-items: center; gap: 16px; padding: 16px 20px; text-align: left; }
.em-act .em-chip { min-width: 56px; height: 56px; border-radius: 8px; background: #fff; color: var(--em-deep); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.em-act .em-act-t { font-size: 19px; font-weight: 800; }
.em-act .em-act-d { font-size: 14px; margin-top: 2px; }
.em-act .em-arrow { font-size: 24px; font-weight: 700; margin-left: auto; }
.em-act.em-line { background: #fff; color: var(--em-ink); }
.em-act.em-line .em-chip { background: var(--em-ice); color: var(--em-deep); }
.em-act > div:nth-child(2) { flex: 1; min-width: 0; }

.em-clear { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.em-clear .em-tick { width: 56px; height: 56px; border-radius: 28px; background: var(--em-ice); color: var(--em-deep); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 800; }
.em-clear .em-clear-t { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

.em-card { border: 1px solid var(--em-line); border-radius: 8px; display: flex; flex-direction: column; }
.em-card > .em-row { border-top: 1px solid var(--em-line); }
.em-card > .em-row:first-child { border-top: 0; }
.em-row { width: 100%; min-height: 64px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; background: transparent; border: 0; text-align: left; color: inherit; }
.em-row .em-row-t { font-size: 17px; font-weight: 800; }
.em-row .em-row-d { font-size: 14px; color: var(--em-grey); margin-top: 2px; }
.em-row > div:first-child { flex: 1; min-width: 0; }
.em-go { color: var(--em-deep); font-weight: 800; }

/* Lists */
.em-list { display: flex; flex-direction: column; }
.em-item { width: 100%; min-height: 68px; border: 0; border-top: 1px solid var(--em-line); background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; color: inherit; padding: 0; }
.em-av { width: 44px; height: 44px; border-radius: 22px; background: var(--em-ice); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex: none; }
.em-item .em-it { font-size: 16px; font-weight: 700; }
.em-item .em-id { font-size: 14px; color: var(--em-grey); }
.em-item > div:nth-child(2) { flex: 1; min-width: 0; }
.em-call { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--em-deep); background: #fff; color: var(--em-deep); font-size: 18px; flex: none; padding: 0; display: flex; align-items: center; justify-content: center; }
.em-num { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--em-deep); width: 76px; flex: none; }
.em-empty { font-size: 15px; color: var(--em-grey); padding: 12px 0; }

/* Chips, segmented */
.em-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.em-chip-b { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--em-line); background: #fff; color: var(--em-ink); font-weight: 700; font-size: 14px; }
.em-chip-b.em-on { background: var(--em-ink); border-color: var(--em-ink); color: #fff; }
.em-chips.em-fill .em-chip-b { flex: 1; padding: 0 8px; }
.em-seg { display: flex; gap: 4px; background: var(--em-ice); border-radius: 8px; padding: 4px; }
.em-seg button { flex: 1; min-height: 44px; border-radius: 6px; border: 0; background: transparent; color: var(--em-ink); font-weight: 800; font-size: 15px; }
.em-seg button.em-on { background: var(--em-deep); color: #fff; }

/* Week grid */
.em-weekbar { align-self: flex-start; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--em-deep); background: #fff; color: var(--em-deep); font-weight: 700; font-size: 14px; }
.em-weekbar.em-on { background: var(--em-ice); }
.em-grid { display: grid; gap: 4px; align-items: center; }
.em-grid.em-head { background: var(--em-sky); color: var(--em-ink); border-radius: 6px; padding: 8px 4px; font-size: 12px; font-weight: 800; text-align: center; }
.em-grid.em-head > div:first-child { text-align: left; padding-left: 4px; }
.em-grid.em-head .em-today { background: #fff; border-radius: 4px; padding: 2px 0; }
.em-gname { min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 700; padding: 0 0 0 4px; background: transparent; border: 0; text-align: left; color: inherit; }
.em-cell { height: 44px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border: 1px solid var(--em-ice); background: var(--em-ice); overflow: hidden; }
.em-cell.em-leave { background: var(--em-warn); border-color: var(--em-warn); }
.em-cell.em-free { background: #fff; border: 1px dashed var(--em-sky); }
.em-cell.em-quiet { background: #fff; border: 1px solid #F3F4F6; }
.em-cell.em-now { border: 2px solid var(--em-ink); }
.em-wkstep { display: flex; align-items: center; gap: 8px; }
.em-wkstep button { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--em-line); background: #fff; font-size: 18px; color: var(--em-ink); }
.em-wkstep span { flex: 1; text-align: center; font-weight: 800; font-size: 15px; }

/* Detail screens */
.em-back { align-self: flex-start; min-height: 44px; border: 0; background: transparent; color: var(--em-deep); font-weight: 700; font-size: 15px; padding: 0; }
.em-who { display: flex; align-items: center; gap: 16px; }
.em-who .em-av { width: 64px; height: 64px; border-radius: 32px; font-size: 20px; }
.em-who .em-wn { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.em-btns { display: flex; gap: 8px; }
.em-btn { flex: 1; min-height: 56px; border-radius: 6px; border: 1px solid var(--em-deep); background: #fff; color: var(--em-deep); font-size: 16px; font-weight: 700; padding: 0 12px; }
.em-btn.em-fill { background: var(--em-deep); color: #fff; font-weight: 800; }
.em-btn.em-off { background: var(--em-grey); border-color: var(--em-grey); color: #fff; }
.em-btn.em-sm { min-height: 48px; }
.em-btn.em-auto { flex: none; }
a.em-btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.em-ice { background: var(--em-ice); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.em-ice .em-big { font-size: 20px; font-weight: 800; }
.em-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.em-day { border-radius: 6px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--em-ice); border: 1px solid var(--em-ice); }
.em-day.em-leave { background: var(--em-warn); border-color: var(--em-warn); }
.em-day.em-free { background: #fff; border: 1px dashed var(--em-sky); }
.em-day.em-now { border: 2px solid var(--em-ink); }
.em-day span:first-child { font-size: 12px; font-weight: 700; }
.em-day span:last-child { font-size: 14px; font-weight: 800; }
.em-field { padding: 12px 16px; border-top: 1px solid var(--em-line); }
.em-field:first-child { border-top: 0; }
.em-field .em-fl { font-size: 13px; color: var(--em-grey); }
.em-field .em-fv { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.em-jobno { font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--em-deep); line-height: 1; }
.em-jobname { font-size: 22px; font-weight: 800; margin-top: 4px; }
.em-split { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Safety */
.em-grp-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; }
.em-grp-h .em-gt { font-size: 17px; font-weight: 800; }
.em-grp-h .em-gn { font-size: 13px; color: var(--em-grey); }
.em-srow { min-height: 56px; border-top: 1px solid var(--em-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.em-srow .em-st { font-size: 15px; font-weight: 700; }
.em-srow .em-ss { font-size: 13px; color: var(--em-grey); }
.em-srow .em-sr { display: flex; align-items: center; gap: 8px; flex: none; }
.em-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 800; background: var(--em-line); color: var(--em-ink); }
.em-pill.em-ok { background: var(--em-ice); color: #1d6a8f; }
.em-pill.em-warn { background: var(--em-warn); color: #6b4e00; }
.em-callb { min-height: 44px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--em-deep); background: #fff; color: var(--em-deep); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; }

/* Incident / forms */
.em-banner { background: var(--em-ice); border-radius: 8px; padding: 16px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.em-ta { min-height: 112px; width: 100%; border: 1px solid var(--em-line); border-radius: 6px; padding: 12px 16px; font-size: 16px; color: var(--em-ink); resize: none; }
.em-hint { font-size: 13px; color: var(--em-grey); line-height: 1.5; }
.em-h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.em-grp { display: flex; flex-direction: column; gap: 8px; }
.em-open { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--em-deep); }

/* Bottom bar */
.em-nav { height: 64px; flex: none; border-top: 1px solid var(--em-line); background: #fff; display: flex; padding: 0 4px 6px; }
.em-nav button { flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; color: var(--em-grey); padding: 0; }
.em-nav button.em-on { color: var(--em-deep); }
.em-nav .em-pillbg { position: relative; width: 48px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.em-nav button.em-on .em-pillbg { background: var(--em-ice); }
.em-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.em-nav .em-lb { font-size: 12px; font-weight: 700; }
.em-badge { position: absolute; top: -4px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--em-ink); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Sheet + toast */
.em-scrim { position: absolute; inset: 0; background: rgba(13,27,42,.6); display: flex; flex-direction: column; justify-content: flex-end; z-index: 5; }
.em-sheet { background: #fff; border-radius: 12px 12px 0 0; padding: 16px 20px 28px; display: flex; flex-direction: column; gap: 4px; max-height: 85%; overflow-y: auto; }
.em-sheet-h { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.em-sheet-h .em-sht { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.em-x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; font-weight: 700; color: var(--em-ink); }
.em-srow2 { width: 100%; min-height: 64px; border: 0; border-top: 1px solid var(--em-line); background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; color: inherit; padding: 0; }
.em-srow2 .em-l { font-size: 16px; font-weight: 700; }
.em-srow2 .em-d { font-size: 13px; color: var(--em-grey); margin-top: 1px; }
.em-box { border: 1px solid var(--em-line); border-radius: 8px; padding: 12px 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.em-sign { margin-top: 8px; width: 100%; height: 96px; border: 2px dashed var(--em-deep); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--em-deep); }
.em-sign.em-done { font-size: 32px; font-style: italic; font-weight: 500; color: var(--em-ink); }
.em-toast { position: absolute; left: 16px; right: 16px; bottom: 80px; background: var(--em-ink); color: #fff; border-radius: 8px; min-height: 52px; display: flex; align-items: center; padding: 12px 16px; font-size: 14px; font-weight: 600; line-height: 1.4; z-index: 6; }
.em-note { border-top: 1px solid var(--em-line); padding-top: 16px; font-size: 13px; color: var(--em-grey); line-height: 1.5; }
.em-link { align-self: flex-start; min-height: 44px; border: 0; background: transparent; color: var(--em-deep); font-weight: 700; font-size: 14px; padding: 0; }

div.em-item { cursor: pointer; }
.em-item .em-go { padding-right: 4px; }

/* ── Employee additions ─────────────────────────────────────── */

.em-offline { background: var(--em-ink); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.4; padding: 12px 20px; }
.em-ice.em-tap { cursor: pointer; }
.em-ice { gap: 6px; }
.em-site { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.em-jobline { font-size: 15px; font-weight: 600; }
.em-ice .em-big { font-size: 32px; }
.em-addr { font-size: 15px; }
.em-with { font-size: 14px; color: var(--em-grey); }
.em-ice > .em-btn { margin-top: 8px; }
.em-btns { display: flex; gap: 8px; margin-top: 8px; }
.em-past { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--em-grey); }
.em-split { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.em-dcard { border: 1px solid var(--em-line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.em-dcard.em-now { background: var(--em-ice); border: 2px solid var(--em-ink); }
.em-pills { display: flex; gap: 8px; }
.em-pills button { flex: 1; min-height: 60px; border-radius: 8px; border: 1px solid var(--em-line); background: #fff; color: var(--em-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 800; }
.em-pills button span:first-child { font-size: 12px; font-weight: 700; }
.em-pills button span:last-child { font-size: 18px; }
.em-pills button.em-on { background: var(--em-ink); border-color: var(--em-ink); color: #fff; }
.em-name { min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--em-ice); display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; border: 0; color: inherit; font-family: inherit; cursor: pointer; }
.em-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.em-big { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.em-item.em-col { flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 0; }
.em-item { min-height: 68px; padding: 8px 0; }
.em-grow { flex: 1; min-width: 0; }
.em-warnbox { background: var(--em-warn); border-radius: 6px; padding: 8px 12px; font-size: 14px; line-height: 1.4; margin-top: 4px; }
.em-pill.em-error { background: #FDE8E8; color: #8A1C1C; }
.em-pill.em-neutral { background: var(--em-line); color: var(--em-ink); }
.em-big-btn { width: 100%; min-height: 72px; border-radius: 8px; border: 1px solid var(--em-deep); background: #fff; color: var(--em-ink); text-align: left; padding: 12px 20px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.em-big-btn.em-fill { background: var(--em-deep); color: #fff; }
.em-big-btn.em-ice-b { background: var(--em-ice); border-color: var(--em-ice); }
.em-big-btn .em-act-t { font-size: 18px; font-weight: 800; }
.em-big-btn .em-act-d { font-size: 14px; color: var(--em-grey); }
.em-check { width: 100%; min-height: 64px; display: flex; align-items: center; gap: 16px; border: 0; border-top: 1px solid var(--em-line); background: transparent; text-align: left; font-size: 16px; font-weight: 700; color: var(--em-ink); padding: 0; }
.em-cbox { width: 32px; height: 32px; border-radius: 6px; border: 2px solid var(--em-deep); background: #fff; flex: none; display: flex; align-items: center; justify-content: center; transition: background-color .15s ease; }
.em-cbox.em-on { background: var(--em-deep); }
.em-cbox svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.em-sign { width: 100%; height: 88px; border: 2px dashed var(--em-deep); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--em-deep); }
.em-sign.em-done { font-size: 24px; font-style: italic; font-weight: 500; color: var(--em-ink); text-transform: none; letter-spacing: 0; }
.em-select { height: 52px; width: 100%; border: 1px solid var(--em-line); border-radius: 6px; padding: 0 12px; font-size: 16px; background: #fff; color: var(--em-ink); }
.em-stepper { display: flex; align-items: center; gap: 12px; }
.em-stepper button { width: 48px; height: 48px; border-radius: 6px; border: 1px solid var(--em-deep); background: #fff; color: var(--em-deep); font-size: 24px; font-weight: 700; }
.em-stepper span { flex: 1; text-align: center; font-size: 18px; font-weight: 800; }
.em-pad { width: 100%; height: 200px; background: #fff; border: 1px solid var(--em-line); border-radius: 8px; touch-action: none; display: block; margin-top: 8px; }
.em-date-chip { min-width: 64px; height: 48px; border-radius: 8px; background: var(--em-ice); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex: none; padding: 0 8px; }
.em-up { display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; font-size: 14px; }
.em-up-n { font-weight: 700; }
.em-up-l { color: var(--em-grey); text-align: right; }
.em-job .em-num { width: 88px; }
.em-job .em-callb { margin-left: 8px; }
a.em-row { text-decoration: none; color: inherit; }
.em-srow { width: 100%; min-height: 60px; border: 0; border-top: 1px solid var(--em-line); background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; color: inherit; padding: 0; }
.em-srow .em-l { font-size: 16px; font-weight: 700; }
.em-srow .em-d { font-size: 13px; color: var(--em-grey); margin-top: 1px; }

/* ── Round 2: search, calendar, contacts, pre-start ─────────── */
.em-search { -webkit-appearance: none; appearance: none; }
.em-stack { display: flex; flex-direction: column; gap: 12px; }
.em-grow { flex: 1; min-width: 0; }
.em-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.em-three .em-ice { padding: 12px; }
.em-three .em-big { font-size: 28px; }
.em-three .em-sub { font-size: 13px; }
.em-jump { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; color: var(--em-ink); }
.em-jump select, .em-jump input { height: 44px; border: 1px solid var(--em-line); border-radius: 6px; padding: 0 12px; font-size: 16px; font-family: inherit; color: var(--em-ink); background: #fff; }
.em-btns.em-col2 { flex-direction: column; }
.em-btns.em-col2 .em-btn { width: 100%; }
.em-photo { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--em-line); border-radius: 8px; padding: 8px; }
.em-photo img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 6px; }
.em-photo .em-search { height: 44px; }
.em-callb { background: #fff; cursor: pointer; }
.em-call { margin-left: 4px; text-decoration: none; }

/* Calendar (leave request) */
.em-cal { border: 1px solid var(--em-line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.em-cal-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 16px; font-weight: 800; }
.em-cal-head button { width: 44px; height: 44px; border: 1px solid var(--em-line); border-radius: 22px; background: #fff; font-size: 18px; color: var(--em-ink); }
.em-cal-dow, .em-cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.em-cal-dow span { text-align: center; font-size: 12px; font-weight: 700; color: var(--em-grey); padding: 4px 0; }
.em-cal-gap { height: 44px; }
.em-cal-d { height: 44px; border: 0; border-radius: 6px; background: #fff; color: var(--em-ink); font-size: 15px; font-weight: 700; }
.em-cal-d.em-wkend { color: var(--em-grey); font-weight: 500; }
.em-cal-d.em-today { border: 2px solid var(--em-ink); }
.em-cal-d.em-in { background: var(--em-ice); border-radius: 0; }
.em-cal-d.em-sel { background: var(--em-deep); color: #fff; font-weight: 800; }
.em-cal-sum { font-size: 14px; font-weight: 700; color: var(--em-ink); min-height: 22px; }
.em-sheet { max-height: 92%; }

/* v3.5.1076 — compact high-risk work list in the shared phone pre-start */
.em-hrcw-list { max-height: 280px; overflow-y: auto; border: 1px solid var(--em-line); border-radius: 8px; background: #fff; -webkit-overflow-scrolling: touch; }
.em-hrow { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; border: 0; border-top: 1px solid var(--em-line); background: transparent; text-align: left; font-size: 15px; font-weight: 600; color: var(--em-ink); padding: 4px 12px; }
.em-hrow:first-child { border-top: 0; }

/* Pre-start: one site field that opens a short list (shared by both phone apps) */
.em-pair { flex-direction: row; gap: 8px; }
.em-pair .em-btn { font-size: 14px; padding: 0 8px; min-height: 52px; }
.em-sitefield { width: 100%; min-height: 52px; border: 1px solid var(--em-line); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; text-align: left; color: var(--em-ink); font-size: 16px; }
.em-sitefield .em-fl { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--em-grey); }
.em-sitev { display: block; font-size: 16px; font-weight: 800; }
.em-sitev.em-ph { color: var(--em-grey); font-weight: 600; }
.em-sitepick { border: 1px solid var(--em-line); border-radius: 8px; background: #fff; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.em-sitelist { max-height: min(300px, 36dvh); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.em-sitegrp { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--em-grey); padding: 10px 8px 4px; }
.em-siterow { width: 100%; min-height: 44px; border: 0; border-radius: 6px; background: transparent; display: flex; align-items: center; gap: 10px; padding: 0 8px; text-align: left; color: var(--em-ink); font-size: 15px; }
.em-siterow.em-on { background: #EAF5FB; }
.em-sitenm { flex: 1; font-weight: 700; }
.em-sitecode { font-size: 12px; color: var(--em-grey); }
.em-sitetick { color: #2986B4; font-weight: 800; }
.em-sitecustom { background: #EAF5FB; font-weight: 800; }
.em-chevd { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--em-grey); transition: transform .15s; }
.em-chevd.em-up { transform: rotate(180deg); }
.em-pair .em-btn { white-space: nowrap; }
.em-sitepick [hidden], .em-sitelist [hidden] { display: none !important; }

.em-cklist { padding: 4px 16px; }
.em-ckline { font-size: 15px; font-weight: 600; padding: 8px 0; border-top: 1px solid var(--em-line); }
.em-ckline:first-child { border-top: 0; }

.em-sitesug { border: 1px dashed var(--em-deep); }
/* Photo check (v3.5.1081): fine = green tick on the photo; too dark/blurry = icon + Take again / Use anyway. */
.em-ph-wrap { position: relative; }
.em-ph-ok { position: absolute; top: 8px; left: 8px; width: 32px; height: 32px; border-radius: 16px; background: #1E7F45; color: #fff; display: flex; align-items: center; justify-content: center; }
.em-ph-ok svg, .em-ph-hint svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.em-ph-hint { display: flex; align-items: center; gap: 10px; background: var(--em-warn); border-radius: 6px; padding: 10px 12px; font-size: 17px; font-weight: 800; color: var(--em-ink); }
.em-ph-hint svg { width: 26px; height: 26px; stroke-width: 2.4; }
.em-banner.em-bad { background: var(--em-warn); }

/* ── Month calendar (shared scripts/phone-calendar.js) ── */
.em-mstep { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.em-mstep button { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--em-line); background: #fff; font-size: 18px; color: var(--em-ink); }
.em-mstep span { flex: 1; text-align: center; font-weight: 800; font-size: 15px; }
.em-mback { min-height: 44px; border-radius: 6px; border: 1px solid var(--em-deep); background: #fff; color: var(--em-deep); font-size: 15px; font-weight: 700; font-family: inherit; padding: 0 12px; margin-top: 8px; }
.em-mdow, .em-mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.em-mdow span { text-align: center; font-size: 11px; font-weight: 800; color: var(--em-grey); }
.em-mcell { min-height: 52px; border-radius: 6px; border: 1px solid var(--em-ice); background: var(--em-ice); padding: 4px 2px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; font-family: inherit; color: var(--em-ink); min-width: 0; }
.em-mout { background: transparent; border-color: transparent; }
.em-mcell.em-mtoday { border: 2px solid var(--em-ink); }
.em-mcell.em-msel { background: var(--em-deep); border-color: var(--em-deep); color: #fff; }
.em-mcell.em-mph, .em-mcell.em-mlv { background: var(--em-warn); border-color: var(--em-warn); }
.em-mcell.em-msel.em-mph, .em-mcell.em-msel.em-mlv { background: var(--em-deep); border-color: var(--em-deep); }
.em-mcell.em-mtr:not(.em-msel) { border-bottom: 4px solid var(--em-deep); }
.em-md { font-size: 14px; font-weight: 800; line-height: 1.1; }
.em-mt { font-size: 11px; font-weight: 700; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-mt i { font-style: normal; color: #B45309; margin-left: 3px; }
.em-msel .em-mt i { color: #fff; }
.em-mleg { font-size: 13px; color: var(--em-grey); margin-top: 8px; }
.em-mdetail { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.em-mdh { font-size: 16px; font-weight: 800; }
.em-msite, .em-mlv-g { border: 1px solid var(--em-line); border-radius: 8px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.em-msn { font-size: 16px; font-weight: 800; }
.em-msj, .em-msa, .em-mpp { font-size: 14px; color: var(--em-grey); line-height: 1.4; }
.em-mph-note { font-size: 15px; font-weight: 800; color: #B45309; }
.em-mdir { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 6px; background: var(--em-deep); color: #fff; font-weight: 800; font-size: 15px; text-decoration: none; margin-top: 4px; }
.em-jump select { max-width: 60%; }

/* Schedule: title and date jump share one row, tighter gaps, so the week shows higher up the screen */
.em-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.em-sched { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-content: start; }
.em-sched > * { grid-column: 1 / -1; min-width: 0; }
.em-sched > .em-title { grid-column: 1; grid-row: 1; }
.em-sched > .em-jumpd { grid-column: 2; grid-row: 1; }
.em-sched .em-jumpd input { height: 40px; width: 150px; font-size: 15px; }
.em-sched .em-wkstep button { width: 40px; height: 40px; border-radius: 20px; }
.em-sched .em-jump select { height: 40px; }
.em-sched .em-seg button { min-height: 40px; }
.em-sched .em-search { height: 44px; }
