/* Tell Reina what you did (public/zero-entry.js). One look for the Field app and the office phone app.
   Colours come from the tokens on the .hlz roots; data-tone="dark" swaps them. Measured contrast (WCAG ratio), every pair at least 4.5:
   light: body 17.8, muted 6.4 on white / 5.9 on surface, button text 7.5, Heard 9.0, Guessed 7.7, Missing 5.8, question 8.9, danger 6.6.
   dark:  body 16.3, muted 8.1 on bg / 7.3 on surface, button text 8.0, Heard 9.2, Guessed 9.6, Missing 6.8, question 8.9, danger 7.9. */
.hlz-card, .hlz-ov {
  --z-bg: #ffffff; --z-surface: #f5f6f8; --z-fg: #16181d; --z-mut: #566070; --z-line: #dde1e7;
  --z-brand: #17613f; --z-brand-fg: #ffffff; --z-brand-soft: #e4f3ec; --z-brand-soft-fg: #0f4a2f;
  --z-warn-bg: #fdf1d4; --z-warn-fg: #6b4300; --z-danger: #b42318; --z-danger-soft: #fdeceb; --z-danger-fg: #ffffff;
  --z-info-bg: #e8eefc; --z-info-fg: #1f3a8a; --z-shadow: 0 12px 40px rgba(16, 24, 40, .22);
  font-family: inherit; color: var(--z-fg); box-sizing: border-box; text-align: left;
}
.hlz-card[data-tone="dark"], .hlz-ov[data-tone="dark"] {
  --z-bg: #14171c; --z-surface: #1d2128; --z-fg: #f2f4f7; --z-mut: #a6afbc; --z-line: #2f3640;
  --z-brand: #4cc78f; --z-brand-fg: #05210f; --z-brand-soft: #173326; --z-brand-soft-fg: #9be3c0;
  --z-warn-bg: #3a2c0c; --z-warn-fg: #f6d58a; --z-danger: #ff8a80; --z-danger-soft: #3a1b19; --z-danger-fg: #2a0705;
  --z-info-bg: #1c2744; --z-info-fg: #b9c9f5; --z-shadow: 0 12px 40px rgba(0, 0, 0, .6);
}
.hlz-card *, .hlz-ov * { box-sizing: border-box; }
.hlz-card button, .hlz-card input, .hlz-ov button, .hlz-ov input, .hlz-ov select, .hlz-ov textarea { font: inherit; }
body.hlz-lock { overflow: hidden; }

/* ---- the card on the job screen */
.hlz-card { background: var(--z-bg); border: 1px solid var(--z-line); border-radius: 16px; padding: 16px; margin: 12px 0; }
.hlz-card-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.hlz-card-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--z-brand-soft); color: var(--z-brand-soft-fg); display: flex; align-items: center; justify-content: center; }
.hlz-card-ico svg { width: 24px; height: 24px; }
.hlz-card-text { min-width: 0; }
.hlz-card h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--z-fg); }
.hlz-card p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--z-mut); }
.hlz-waiting { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--z-warn-bg); color: var(--z-warn-fg); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.hlz-waiting[hidden] { display: none; }

/* ---- buttons */
.hlz-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--z-line); background: var(--z-bg); color: var(--z-fg); font-weight: 700; font-size: 15px; cursor: pointer; }
.hlz-btn svg { width: 20px; height: 20px; flex: none; }
.hlz-btn.hlz-pri { background: var(--z-brand); border-color: var(--z-brand); color: var(--z-brand-fg); }
.hlz-btn.hlz-pri:hover:not([disabled]) { filter: brightness(1.08); }
.hlz-btn.hlz-dng { background: var(--z-bg); border-color: var(--z-danger); color: var(--z-danger); }
.hlz-btn.hlz-ghost { background: var(--z-surface); }
.hlz-btn.hlz-wide { width: 100%; }
.hlz-btn.hlz-big { min-height: 56px; font-size: 16px; }
.hlz-btn[disabled] { opacity: .55; cursor: not-allowed; }
.hlz-btn.hlz-pri[disabled] { background: var(--z-surface); border-color: var(--z-line); color: var(--z-mut); opacity: 1; }
.hlz-btn:focus-visible, .hlz-iconbtn:focus-visible, .hlz-link:focus-visible, .hlz-mic:focus-visible, .hlz-yes:focus-visible, .hlz-rm:focus-visible,
.hlz-ov input:focus-visible, .hlz-ov select:focus-visible, .hlz-ov textarea:focus-visible { outline: 3px solid var(--z-brand); outline-offset: 2px; }
.hlz-link { appearance: none; background: none; border: 0; padding: 10px 4px; min-height: 44px; color: var(--z-fg); font-weight: 650; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.hlz-link svg { width: 18px; height: 18px; }
.hlz-card .hlz-link { display: flex; margin: 6px auto 0; justify-content: center; }
.hlz-center { display: flex; margin: 8px auto 0; justify-content: center; }
.hlz-iconbtn { appearance: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--z-fg); cursor: pointer; flex: none; }
.hlz-iconbtn svg { width: 22px; height: 22px; }

/* ---- the sheet */
.hlz-ov { position: fixed; inset: 0; z-index: 2147483000; background: var(--z-bg); display: flex; justify-content: center; }
.hlz-sheet { width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; background: var(--z-bg); }
.hlz-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px 10px 8px; padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--z-line); flex: none; }
.hlz-head-t { min-width: 0; }
.hlz-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.hlz-head p { margin: 1px 0 0; font-size: 13px; color: var(--z-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hlz-body { flex: 1; overflow-y: auto; padding: 18px 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
@media (min-width: 700px) { .hlz-ov { align-items: center; padding: 24px; background: rgba(10, 14, 20, .55); } .hlz-sheet { height: auto; max-height: 94vh; border-radius: 18px; box-shadow: var(--z-shadow); overflow: hidden; } }

/* ---- record */
.hlz-rec { display: flex; flex-direction: column; }
.hlz-lead { margin: 0 0 10px; font-size: 18px; line-height: 1.35; font-weight: 650; color: var(--z-fg); }
.hlz-tips { margin: 0 0 6px; padding: 0 0 0 20px; color: var(--z-mut); font-size: 15px; line-height: 1.6; }
.hlz-mic-wrap { position: relative; display: flex; align-items: center; justify-content: center; height: 190px; margin-top: 10px; }
.hlz-pulse { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--z-brand-soft); }
.hlz-pulse.on { animation: hlz-pulse 1.5s ease-out infinite; }
@keyframes hlz-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.hlz-mic { position: relative; appearance: none; width: 112px; height: 112px; border-radius: 50%; border: 0; background: var(--z-brand); color: var(--z-brand-fg); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px rgba(23, 97, 63, .35); }
.hlz-mic svg { width: 46px; height: 46px; }
.hlz-mic.on { background: var(--z-danger); color: var(--z-danger-fg); box-shadow: 0 8px 24px rgba(180, 35, 24, .35); }
.hlz-time { text-align: center; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--z-fg); min-height: 24px; margin-bottom: 12px; }
.hlz-fine { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--z-mut); text-align: center; }
.hlz-err { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--z-danger-soft); color: var(--z-danger); font-size: 14px; font-weight: 600; line-height: 1.4; }
.hlz-err[hidden] { display: none; }
.hlz-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 6px; }
.hlz-thumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hlz-thumb { position: relative; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--z-line); background: var(--z-surface); }
.hlz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hlz-thumb button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .72); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hlz-thumb button svg { width: 12px; height: 12px; }
.hlz-l { display: block; font-size: 13px; font-weight: 650; color: var(--z-mut); margin: 0 0 6px; }
.hlz-ta, .hlz-ov textarea, .hlz-ov input, .hlz-ov select { width: 100%; border: 1.5px solid var(--z-line); border-radius: 10px; background: var(--z-bg); color: var(--z-fg); padding: 10px 12px; font-size: 16px; line-height: 1.4; min-height: 46px; }
.hlz-ta { resize: vertical; margin-bottom: 12px; }

/* ---- working */
.hlz-work { text-align: center; padding: 40px 0 10px; }
.hlz-work h3 { margin: 18px 0 14px; font-size: 20px; font-weight: 700; }
.hlz-spin { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; border: 5px solid var(--z-brand-soft); border-top-color: var(--z-brand); animation: hlz-spin 1s linear infinite; }
@keyframes hlz-spin { to { transform: rotate(360deg); } }
.hlz-steps { list-style: none; margin: 0 auto; padding: 0; display: inline-block; text-align: left; }
.hlz-steps li { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 16px; color: var(--z-mut); }
.hlz-steps li.now { color: var(--z-fg); font-weight: 650; }
.hlz-steps li.done { color: var(--z-fg); }
.hlz-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--z-line); display: flex; align-items: center; justify-content: center; }
.hlz-steps li.now .hlz-dot { border-color: var(--z-brand); }
.hlz-steps li.done .hlz-dot { background: var(--z-brand); border-color: var(--z-brand); color: var(--z-brand-fg); }
.hlz-dot svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .hlz-spin, .hlz-pulse.on { animation: none; } }

/* ---- waiting (laptop off) */
.hlz-wait { text-align: center; padding: 30px 0 6px; display: flex; flex-direction: column; gap: 12px; }
.hlz-wait-ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--z-warn-bg); color: var(--z-warn-fg); display: flex; align-items: center; justify-content: center; }
.hlz-wait-ico svg { width: 30px; height: 30px; }
.hlz-wait h3 { margin: 6px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.hlz-wait-msg { margin: 0; font-size: 16px; line-height: 1.5; color: var(--z-fg); }
.hlz-saved-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px auto 8px; padding: 9px 14px; border-radius: 999px; background: var(--z-brand-soft); color: var(--z-brand-soft-fg); font-size: 14px; font-weight: 650; text-align: left; }
.hlz-saved-note svg { width: 18px; height: 18px; flex: none; }

/* ---- the approval card */
.hlz-cardwrap { display: flex; flex-direction: column; gap: 6px; }
.hlz-notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; background: var(--z-warn-bg); color: var(--z-warn-fg); font-size: 14px; line-height: 1.45; font-weight: 600; margin-bottom: 8px; }
.hlz-notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.hlz-says { border: 1px solid var(--z-line); border-radius: 12px; background: var(--z-surface); padding: 0 14px; margin-bottom: 8px; }
.hlz-says summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--z-mut); text-transform: uppercase; letter-spacing: .05em; padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
.hlz-says blockquote { margin: 0 0 14px; padding: 0 0 0 12px; border-left: 3px solid var(--z-brand); font-size: 16px; line-height: 1.55; color: var(--z-fg); overflow-wrap: anywhere; }
.hlz-sec { margin-top: 16px; }
.hlz-sec h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--z-mut); }
.hlz-line { border: 1px solid var(--z-line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--z-bg); display: flex; flex-direction: column; gap: 10px; }
.hlz-line-top { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.hlz-line-top strong { font-size: 17px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; letter-spacing: -.01em; }
.hlz-span { font-size: 13px; color: var(--z-mut); font-variant-numeric: tabular-nums; }
.hlz-rm { appearance: none; margin-left: auto; width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--z-mut); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hlz-rm svg { width: 18px; height: 18px; }
.hlz-rm:hover { background: var(--z-surface); color: var(--z-fg); }
.hlz-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.hlz-f { min-width: 0; }
.hlz-in { position: relative; display: flex; flex-direction: column; gap: 6px; }
.hlz-in.col { gap: 8px; }
.hlz-in .hlz-tag { align-self: flex-start; }
.hlz-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.hlz-tag.heard, .hlz-tag.ok { background: var(--z-brand-soft); color: var(--z-brand-soft-fg); }
.hlz-tag.guessed, .hlz-tag.warn, .hlz-tag.draft { background: var(--z-warn-bg); color: var(--z-warn-fg); }
.hlz-tag.missing { background: var(--z-danger-soft); color: var(--z-danger); }
.hlz-line:has(.hlz-tag.missing) { border-color: var(--z-danger); }
.hlz-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--z-info-bg); color: var(--z-info-fg); font-size: 14px; line-height: 1.4; font-weight: 600; }
.hlz-yes { appearance: none; flex: none; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--z-info-fg); color: var(--z-info-bg); font-weight: 700; font-size: 14px; cursor: pointer; }
.hlz-match { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 1.4; }
.hlz-match svg { width: 18px; height: 18px; flex: none; }
.hlz-match.ok { color: var(--z-brand-soft-fg); font-weight: 650; }
.hlz-match.no { color: var(--z-mut); }
.hlz-match.pick { flex-direction: column; align-items: stretch; gap: 4px; }
.hlz-price { padding: 10px 12px; border-radius: 10px; background: var(--z-surface); font-size: 14px; }
.hlz-price strong { display: block; font-size: 16px; }
.hlz-price ul { margin: 6px 0 0; padding-left: 18px; color: var(--z-mut); }
.hlz-price.none { color: var(--z-mut); font-weight: 650; }
.hlz-hint { margin: 2px 0 0; font-size: 13px; color: var(--z-mut); line-height: 1.45; }
.hlz-removed { display: flex; align-items: center; justify-content: space-between; border: 1px dashed var(--z-line); border-radius: 12px; padding: 4px 12px; margin-bottom: 10px; color: var(--z-mut); font-size: 14px; }
.hlz-empty { margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--z-surface); color: var(--z-fg); font-size: 15px; line-height: 1.45; }
.hlz-foot { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); margin: 18px -16px calc(-24px - env(safe-area-inset-bottom)); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--z-bg); border-top: 1px solid var(--z-line); display: flex; flex-direction: column; gap: 8px; }
.hlz-foot-note { margin: 0; text-align: center; font-size: 13px; color: var(--z-mut); font-weight: 600; }
.hlz-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.hlz-actions .hlz-btn { min-height: 52px; padding: 0 10px; }
.hlz-ov input.miss { border-color: var(--z-danger); }

/* ---- saved */
.hlz-done { text-align: center; padding: 34px 0 6px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hlz-done-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--z-brand); color: var(--z-brand-fg); display: flex; align-items: center; justify-content: center; }
.hlz-done-ico svg { width: 38px; height: 38px; }
.hlz-done h3 { margin: 6px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.hlz-done-list { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.hlz-done-list li { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--z-line); border-radius: 12px; font-size: 15px; line-height: 1.4; }
.hlz-done-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--z-brand); }
.hlz-done .hlz-btn { margin-top: 8px; }
