/* ---- V1.64 Health and safety (saf-): Client\Apps\Safety (the dashboard, observations, the quick report, inspections, checklists,
   hazards, hours). Design system tokens only (--os-*), full page width; a new app file: every design guard at zero
   (DesignGuardTests.ZeroTolerance). ---- */

.saf-page { display: flex; flex-direction: column; gap: var(--os-space-4); min-width: 0; }
.saf-page > * { min-width: 0; max-width: 100%; }
.saf-page .os-pagehead > * { min-width: 0; }
.saf-kpis, .saf-notice { margin: 0; }
.saf-grid { align-items: start; }
/* V1.66 (the owner: "more compact"): Figures: the month table across, the three panels after it side by side on a wide
   screen; Inspections: its two panels side by side */
.saf-figgrid > * { --span: 4; }
.saf-figgrid > [data-tour="saf-trend"] { --span: 12; }
.saf-grid:not(.saf-figgrid) > * { --span: 6; }
.saf-filters .os-select { flex: 0 1 220px; width: auto; min-width: 160px; }
.saf-wide { display: grid; margin-top: var(--os-space-3); }
.saf-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: var(--os-space-2); margin-top: var(--os-space-3); }
.saf-actions--start { justify-content: flex-start; }
.saf-inline { display: flex; flex-wrap: wrap; gap: var(--os-space-2); align-items: center; margin-top: var(--os-space-3); }
.saf-inline--tight { margin-top: 0; }
.saf-inline .os-select { flex: 0 1 240px; width: auto; }
.saf-inline .os-input { flex: 1 1 200px; width: auto; }
.saf-pad { padding: 0 var(--os-space-4) var(--os-space-3); }
.saf-text { white-space: pre-line; color: var(--os-text); overflow-wrap: anywhere; }
p.saf-text { margin: 0 0 var(--os-space-3); }
.saf-section { font: var(--os-type-h4); color: var(--os-text-2); margin: var(--os-space-4) 0 var(--os-space-2); padding: 0 var(--os-space-4); }
.saf-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.saf-fieldset .saf-section { padding: 0; }

/* Lists: attention, findings, checklists, history */
.saf-list, .saf-counts, .saf-items { list-style: none; margin: 0; padding: 0; }
.saf-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--os-space-1) var(--os-space-3);
  padding: var(--os-space-2) var(--os-space-4); border-bottom: 1px solid var(--os-border); }
.saf-list li:last-child { border-bottom: 0; }
.saf-list--tight li { justify-content: space-between; padding: var(--os-space-1) 0; }
.saf-list a { color: var(--os-accent-text); text-decoration: none; }
.saf-list a:hover { text-decoration: underline; }
.saf-ordered { margin: var(--os-space-3) 0 0; padding-left: var(--os-space-6); display: grid; gap: var(--os-space-2); }
.saf-ordered li { padding: var(--os-space-1) var(--os-space-2); }
.saf-section-input { flex: 0 1 200px; }

/* An inspection's items: the text, the answer buttons and the note; one column on a phone */
.saf-items li { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(160px, 1fr); align-items: center; gap: var(--os-space-2) var(--os-space-3);
  padding: var(--os-space-2) var(--os-space-4); border-bottom: 1px solid var(--os-border); }
.saf-items li:last-child { border-bottom: 0; }
.saf-answers { display: inline-flex; gap: var(--os-space-1); }
.saf-items__note { width: 100%; }

/* The dashboard's counts: the word, a meter, the number */
.saf-counts li { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(80px, 2fr) auto; align-items: center; gap: var(--os-space-3);
  padding: var(--os-space-1) 0; }
.saf-counts__n { text-align: right; min-width: 2ch; }

/* The facts of a record */
.saf-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--os-space-1) var(--os-space-4); margin: 0 0 var(--os-space-4); }
.saf-facts dt { color: var(--os-text-2); font: var(--os-type-small); }
.saf-facts dd { margin: 0; overflow-wrap: anywhere; }

/* The quick report: one column, large touch targets on a phone */
.saf-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--os-space-3) var(--os-space-4); }
.saf-form .os-field textarea { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .saf-items li { grid-template-columns: minmax(0, 1fr); }
  .saf-form { grid-template-columns: minmax(0, 1fr); }
  .saf-report .saf-actions .os-btn { flex: 1 1 100%; justify-content: center; }
  .saf-facts { grid-template-columns: minmax(0, 1fr); }
}
/* V1.66 (the owner: "more compact"): on a narrow tile the status badge goes under the title rather than squeezing it */
.saf-kpis .os-kpi__label, .inc-kpis .os-kpi__label { flex-wrap: wrap; row-gap: 2px; }
.saf-kpis .os-kpi__label > span:first-child, .inc-kpis .os-kpi__label > span:first-child { flex: 1 1 auto; min-width: 4em; }

/* The photos and notes from the field (the phone app; Apps\Safety\FieldEvidence.razor and HsePhoto.razor, the incidents' photos too):
   a thumbnail that opens larger, the note, who and when; under an inspection's item or a finding, compact */
.saf-evidence { list-style: none; margin: 0; padding: 0; }
.saf-evidence li { display: flex; align-items: flex-start; gap: var(--os-space-3); padding: var(--os-space-2) var(--os-space-4);
  border-bottom: 1px solid var(--os-border); min-width: 0; }
.saf-evidence li:last-child { border-bottom: 0; }
.saf-evidence--compact li { padding: var(--os-space-1) 0; border-bottom: 0; gap: var(--os-space-2); }
.saf-evidence__body { display: flex; flex-direction: column; gap: var(--os-space-1); min-width: 0; flex: 1 1 auto; }
.saf-items__evidence, .saf-list__evidence { grid-column: 1 / -1; flex: 1 1 100%; min-width: 0; }
.saf-photo { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--os-border);
  border-radius: var(--os-radius-sm); background: var(--os-surface-sunken); overflow: hidden; cursor: zoom-in; width: 96px; height: 72px;
  flex: none; color: var(--os-text-3); }
.saf-evidence--compact .saf-photo { width: 64px; height: 48px; }
.saf-photo img { width: 100%; height: 100%; object-fit: cover; }
.saf-photo--none { cursor: default; }
.saf-lightbox { position: fixed; inset: 0; z-index: var(--os-z-drawer); display: flex; align-items: center; justify-content: center;
  background: var(--os-scrim); padding: var(--os-space-4); cursor: zoom-out; }
.saf-lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--os-radius-md); }

/* ---- V1.69 the premium pass (mockup 23, approved by the owner 2026-11-10; hs-): the Overview tab (Client\Apps\Safety\HsOverview.razor
   and its parts), the phone's My safety (HsMySafety), the Safety plan. Tokens only, full page width; every design guard at zero. ---- */

/* The overview's head: who and when on the left, the period, the area and Export on the right */
.hs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--os-space-3) var(--os-space-6); }
.hs-head__t { display: grid; gap: var(--os-space-1); min-width: 0; }
.hs-head__eyebrow { font: var(--os-type-eyebrow); color: var(--os-text-3); text-transform: uppercase; }
.hs-head__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--os-space-2) var(--os-space-3); }
.hs-head__title h2 { margin: 0; font: var(--os-type-h2); color: var(--os-text); }
.hs-head__sub { display: flex; flex-wrap: wrap; gap: var(--os-space-1) var(--os-space-4); margin: 0; font: var(--os-type-small); color: var(--os-text-2); }
.hs-head__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--os-space-2); }
.hs-pick { width: auto; min-width: 150px; max-width: 260px; }
.hs-notice { margin: 0; }
.hs-overview { display: flex; flex-direction: column; gap: var(--os-gutter); min-width: 0; }

/* The tiles */
.hs-kpis .os-kpi__label { flex-wrap: wrap; row-gap: 2px; }
.hs-kpis .os-kpi__label > span:first-child { flex: 1 1 auto; min-width: 4em; }
.hs-tilerow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--os-space-1) var(--os-space-2); margin-bottom: var(--os-space-1); }
.hs-clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hs-clip2 a { color: inherit; }
.hs-meter--bad > span { background: var(--os-bad); }

/* The grid: columns of 8 and 4 whose panels stack and end together (no empty gap beside a tall panel), then three of 4 */
.hs-ovgrid { align-items: stretch; }
.hs-col { --span: 4; display: flex; flex-direction: column; gap: var(--os-gutter); min-width: 0; }
.hs-col.hs-col--8 { --span: 8; }
.hs-col.hs-col--6 { --span: 6; }
/* A flush panel's footer stays inside it (no padding to pull back), at its bottom, and wraps its long lines */
.hs-ovgrid .os-panel--flush > .os-panel__foot, #hs-actions-panel .os-panel--flush > .os-panel__foot { margin: auto 0 0; flex-wrap: wrap; }
.hs-col > * { flex: 1 1 auto; display: flex; flex-direction: column; }
.hs-col > * > .os-panel, .hs-col > .os-panel { flex: 1 1 auto; }
.hs-tablewrap { overflow-x: auto; }
.hs-numtable td, .hs-numtable th { white-space: nowrap; }
.hs-pad { padding: var(--os-space-2) var(--os-panel-pad) 0; }

/* Indicators against target: six small charts, three across */
.hs-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--os-space-1) var(--os-space-3); font: var(--os-type-caption); color: var(--os-text-2); }
.hs-legend span { display: inline-flex; align-items: center; gap: var(--os-space-1h); }
.hs-legend__line { display: inline-block; width: 14px; height: 2px; background: var(--os-hue-brass); }
.hs-legend__target { display: inline-block; width: 14px; border-top: 2px dashed var(--os-chart-target); }
.hs-legend__good { display: inline-block; width: 12px; height: 10px; border-radius: 2px; background: var(--os-good-soft); }
.hs-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hs-mini { display: grid; gap: var(--os-space-1); align-content: start; padding: var(--os-space-3) var(--os-panel-pad) var(--os-space-2); min-width: 0;
  border-top: 1px solid var(--os-border-subtle); border-left: 1px solid var(--os-border-subtle); }
.hs-mini:nth-child(3n + 1) { border-left: 0; }
.hs-mini .h span { display: block; font: var(--os-type-label); color: var(--os-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-mini .v { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--os-space-1) var(--os-space-2); }
.hs-mini .v b { font: var(--os-type-kpi-sm); color: var(--os-text); font-variant-numeric: tabular-nums; }
.hs-mini .v b small { margin-left: var(--os-space-1); font: var(--os-type-caption); color: var(--os-text-3); }
.hs-mini .v > span { font: var(--os-type-caption); color: var(--os-text-3); white-space: nowrap; }
.hs-mc { display: block; width: 100%; height: auto; }
.hs-mc__good { fill: var(--os-good); opacity: .08; }
.hs-mc__grid { stroke: var(--os-chart-grid); stroke-width: 1; }
.hs-mc__axis { stroke: var(--os-chart-axis); stroke-width: 1; }
.hs-mc__lbl { font: var(--os-type-caption); fill: var(--os-chart-label); }
.hs-mc__lbl--strong { fill: var(--os-text); font-weight: 600; }
.hs-mc__target { stroke: var(--os-chart-target); stroke-width: 1.5; stroke-dasharray: 4 3; }
.hs-mc__line { fill: none; stroke: var(--os-hue-brass); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hs-mc__line--pace { stroke-dasharray: 3 3; }
.hs-mc__dot { fill: var(--os-hue-brass); stroke: var(--os-surface); stroke-width: 1.5; }
.hs-mc__dot--bad { fill: var(--os-bad); }
.hs-mc__dot--pace { fill: var(--os-surface); stroke: var(--os-hue-brass); }
.hs-mc__bar { fill: var(--os-hue-brass); }
.hs-mc__bar--bad { fill: var(--os-bad); }
@media (max-width: 1279.98px) {
  .hs-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-mini:nth-child(3n + 1) { border-left: 1px solid var(--os-border-subtle); }
  .hs-mini:nth-child(2n + 1) { border-left: 0; }
}
@media (max-width: 639.98px) { .hs-minis { grid-template-columns: minmax(0, 1fr); } .hs-mini, .hs-mini:nth-child(3n + 1) { border-left: 0; } }

/* Needs attention now */
.hs-attn { list-style: none; margin: 0; padding: 0; }
.hs-attn__i { --b: var(--os-info); --bs: var(--os-info-soft); display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--os-space-3); align-items: start;
  padding: var(--os-space-3) var(--os-panel-pad); border-top: 1px solid var(--os-border-subtle); }
.hs-attn__i:first-child { border-top: 0; }
.hs-attn__i.is-bad { --b: var(--os-bad); --bs: var(--os-bad-soft); }
.hs-attn__i.is-warn { --b: var(--os-warn); --bs: var(--os-warn-soft); }
.hs-attn__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--os-radius-md); background: var(--bs); color: var(--b); }
.hs-attn__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--os-space-1) var(--os-space-2); }
.hs-attn__head b { font: var(--os-type-body-strong); color: var(--os-text); }
.hs-attn__t { min-width: 0; }
.hs-attn__t p { margin: var(--os-space-0h) 0 0; font: var(--os-type-small); color: var(--os-text-2); overflow-wrap: anywhere; }

/* Observations and near misses by area: horizontal stacked bars, their total and open count after each bar */
.hs-flowlegend { display: flex; flex-wrap: wrap; gap: var(--os-space-1) var(--os-space-4); font: var(--os-type-caption); color: var(--os-text-2); }
.hs-flowlegend span { display: inline-flex; align-items: center; gap: var(--os-space-1h); }
.hs-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.hs-k0 { background: var(--os-hue-brass); }
.hs-k1 { background: var(--os-hue-blue); }
.hs-k2 { background: var(--os-bad); }
.hs-k3 { background: var(--os-hue-teal); }
.hs-c0 { background: var(--os-hue-brass); }
.hs-c1 { background: var(--os-hue-blue); }
.hs-c2 { background: var(--os-hue-teal); }
.hs-c3 { background: var(--os-hue-violet); }
.hs-c4 { background: var(--os-hue-terra); }
.hs-c5 { background: var(--os-chart-other); }
.hs-bars { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr); gap: var(--os-space-3); align-items: center;
  padding: var(--os-space-4) var(--os-panel-pad) var(--os-space-2); }
.hs-bars__name { font: var(--os-type-small); color: var(--os-text); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-bars__track { display: flex; align-items: center; gap: var(--os-space-2); min-width: 0; margin-right: 7.5rem; }
.hs-bars__bar { display: flex; height: 18px; min-width: 2px; border-radius: 3px; overflow: hidden; flex: none; }
.hs-bars__bar > span { display: block; height: 100%; flex-basis: 0; min-width: 1px; }
.hs-bars__bar > span + span { border-left: 1px solid var(--os-surface); }
.hs-bars__end { flex: none; width: 0; overflow: visible; font: var(--os-type-caption); color: var(--os-text-3); white-space: nowrap; }
.hs-bars__end b { color: var(--os-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hs-bars__axis { position: relative; height: 18px; margin-right: 7.5rem; border-top: 1px solid var(--os-chart-axis); }
.hs-bars__axis span { position: absolute; top: var(--os-space-1); transform: translateX(-50%); font: var(--os-type-caption); color: var(--os-chart-label); }
.hs-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--os-space-3); width: 100%; margin: 0; }
.hs-figs > div { display: grid; gap: 2px; padding-left: var(--os-space-3); border-left: 1px solid var(--os-border-subtle); min-width: 0; }
.hs-figs > div:first-child { padding-left: 0; border-left: 0; }
.hs-figs dt { font: var(--os-type-kpi-sm); color: var(--os-text); font-variant-numeric: tabular-nums; }
.hs-figs dd { margin: 0; font: var(--os-type-caption); color: var(--os-text-3); }
@media (max-width: 959.98px) { .hs-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hs-figs > div:nth-child(3) { padding-left: 0; border-left: 0; } }

/* The AI brief */
.hs-brief { display: grid; gap: var(--os-gutter); align-content: start; }

/* Incidents by severity */
.hs-mx { display: grid; grid-template-columns: minmax(70px, auto) repeat(5, minmax(0, 1fr)); gap: var(--os-space-1); align-items: stretch; }
.hs-mx__ax { display: flex; align-items: center; font: var(--os-type-caption); color: var(--os-text-3); white-space: nowrap; }
.hs-mx__ax--c { justify-content: center; }
.hs-mx__c { --a: 0%; display: grid; place-items: center; height: 38px; border-radius: var(--os-radius-sm); font: var(--os-type-body-strong); color: var(--os-text);
  font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--os-hue-brass) var(--a), var(--os-surface-sunken)); }
.hs-mx__c--z { color: var(--os-text-3); font-weight: 400; }
.hs-mx__c--hp { outline: 1.5px solid var(--os-bad); outline-offset: -1.5px; }
.hs-mx__c--hi { color: var(--os-surface); }
.hs-mx__cap { grid-column: 2 / -1; text-align: center; font: var(--os-type-caption); color: var(--os-text-3); }
.hs-mxlegend { display: flex; flex-wrap: wrap; gap: var(--os-space-1) var(--os-space-4); margin-top: var(--os-space-3); font: var(--os-type-caption); color: var(--os-text-2); }
.hs-mxlegend span { display: inline-flex; align-items: center; gap: var(--os-space-1h); }
.hs-mxlegend__sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--os-surface-sunken); }
.hs-mxlegend__sw--hp { outline: 1.5px solid var(--os-bad); outline-offset: -1.5px; }

/* Top hazards, inspections due: one line each, the main text clipped, the end right-aligned */
.hs-list { list-style: none; margin: 0; padding: 0; }
.hs-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--os-space-1) var(--os-space-3); align-items: center;
  padding: var(--os-space-2) var(--os-panel-pad); border-top: 1px solid var(--os-border-subtle); }
.hs-list li:first-child { border-top: 0; }
.hs-list__main { display: grid; min-width: 0; color: inherit; text-decoration: none; }
.hs-list__main:hover b { text-decoration: underline; }
.hs-list__main b { font: var(--os-type-body-strong); color: var(--os-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-list__sub { font: var(--os-type-caption); color: var(--os-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-list__end { display: grid; justify-items: end; gap: var(--os-space-0h); }
.hs-list__note { font: var(--os-type-caption); color: var(--os-text-3); white-space: nowrap; }
.hs-list__note--bad { color: var(--os-bad-text); }
.hs-rr { display: inline-flex; align-items: center; gap: var(--os-space-1); white-space: nowrap; color: var(--os-text-3); }
.hs-risk { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 var(--os-space-1h); border-radius: var(--os-radius-sm);
  font: var(--os-type-label); font-variant-numeric: tabular-nums; }
.hs-risk--h { background: var(--os-bad-soft); color: var(--os-bad-text); }
.hs-risk--m { background: var(--os-warn-soft); color: var(--os-warn-text); }
.hs-risk--l { background: var(--os-good-soft); color: var(--os-good-text); }

/* Open actions */
.hs-actions td { vertical-align: top; }
/* The area and owner wrap (French names are long): the buttons stay in view, never scrolled away */
.hs-actions td:not(.hs-actions__btns) { white-space: normal; }
.hs-actions__text { display: block; font: var(--os-type-body-strong); color: var(--os-text); overflow-wrap: anywhere; }
.hs-actions__btns { white-space: nowrap; text-align: right; }
.hs-actions__btns .os-btn + .os-btn { margin-left: var(--os-space-1); }
.hs-src { display: inline-flex; align-items: center; gap: var(--os-space-1); font: var(--os-type-small); color: var(--os-text-2); white-space: nowrap; text-decoration: none; }
.hs-src:hover { color: var(--os-text); }
.hs-src code { font: var(--os-type-mono); color: var(--os-text-3); }
.hs-note { display: flex; flex-wrap: wrap; gap: var(--os-space-2); margin-top: var(--os-space-2); }
.hs-note .os-input { flex: 1 1 220px; width: auto; }
.hs-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--os-space-2); width: 100%; }
@media (max-width: 959.98px) { .hs-hide-sm { display: none; } }
@media (max-width: 639.98px) { .hs-hide-xs { display: none; } }

/* The phone: My safety first, the overview one tap away */
.hs-phone-only { display: none; }
.hs-my { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--os-space-3); }
.hs-my__who { margin: 0; font: var(--os-type-small); color: var(--os-text-2); }
.hs-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--os-space-3); padding: var(--os-space-4); border: 1px solid var(--os-panel-line); border-radius: var(--os-radius-lg);
  background: var(--os-surface); box-shadow: var(--os-shadow-1); min-width: 0; }
.hs-card h3 { display: flex; align-items: center; gap: var(--os-space-2); margin: 0; font: var(--os-type-label); color: var(--os-text-2); }
.hs-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--os-space-2); }
.hs-chip { display: inline-flex; align-items: center; justify-content: center; gap: var(--os-space-1h); min-height: 44px; min-width: 0; padding: 0 var(--os-space-2); text-align: center;
  border-radius: var(--os-radius-pill); border: 1px solid var(--os-border); background: var(--os-surface); font: var(--os-type-button); color: var(--os-text); cursor: pointer; }
.hs-chip.is-on { border-color: var(--os-accent-fill); background: var(--os-accent-fill); color: var(--os-on-accent-fill); }
.hs-chip.is-on:hover { background: var(--os-accent-fill-hover); border-color: var(--os-accent-fill-hover); }
.hs-photos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--os-space-2); }
.hs-photos__add { min-height: 44px; }
.hs-photos__error { font: var(--os-type-caption); color: var(--os-bad-text); }
.hs-thumb { position: relative; margin: 0; width: 72px; height: 54px; border-radius: var(--os-radius-md); overflow: hidden; background: var(--os-surface-sunken); }
.hs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-thumb__x { position: absolute; top: 0; right: 0; }
.hs-thumb--read { width: 120px; height: 90px; display: block; padding: 0; border: 0; cursor: zoom-in; }
.hs-viewer { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: var(--os-space-4);
  background: var(--os-scrim); cursor: zoom-out; }
.hs-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--os-radius-md); }
.hs-viewer__x { position: absolute; top: var(--os-space-3); right: var(--os-space-3); background: var(--os-surface); }
.hs-thumb--wait { display: inline-block; width: 120px; height: 90px; }
.hs-photos--read { margin-top: var(--os-space-2); }
.hs-field { display: flex; align-items: center; gap: var(--os-space-2); min-height: 44px; padding: 0 var(--os-space-3); border-radius: var(--os-radius-md);
  border: 1px solid var(--os-border-input); background: var(--os-surface); color: var(--os-text-3); }
.hs-field__select { flex: 1; min-width: 0; height: 42px; border: 0; background: transparent; font: var(--os-type-body); color: var(--os-text); }
.hs-field small { flex: 0 1 auto; max-width: 40%; min-width: 0; font: var(--os-type-caption); color: var(--os-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-what { display: grid; gap: var(--os-space-1); padding: var(--os-space-2) var(--os-space-3); border-radius: var(--os-radius-md); border: 1px solid var(--os-border-input); }
.hs-what span { font: var(--os-type-caption); color: var(--os-text-3); }
.hs-what textarea { border: 0; resize: vertical; background: transparent; font: var(--os-type-body); color: var(--os-text); min-height: 4.5em; }
.hs-anon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--os-space-2); }
.hs-switch { display: inline-flex; align-items: center; gap: var(--os-space-2); font: var(--os-type-small); color: var(--os-text-2); min-height: 44px; }
.hs-switch input { width: 20px; height: 20px; accent-color: var(--os-hue-brass); }
.hs-dictate.is-on { color: var(--os-bad-text); }
.hs-phlist { list-style: none; margin: 0; padding: 0; }
.hs-phlist li + li { border-top: 1px solid var(--os-border-subtle); }
.hs-phlist a { display: grid; grid-template-columns: 32px minmax(0, 1fr) 20px; gap: var(--os-space-3); align-items: center; padding: var(--os-space-2) 0;
  color: inherit; text-decoration: none; min-height: 48px; }
.hs-phlist__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--os-radius-md); }
.hs-phlist__ic.is-bad { background: var(--os-bad-soft); color: var(--os-bad); }
.hs-phlist__ic.is-info { background: var(--os-info-soft); color: var(--os-info); }
.hs-phlist__t { display: grid; min-width: 0; }
.hs-phlist__t b { font: var(--os-type-body-strong); color: var(--os-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-phlist__t span { font: var(--os-type-caption); color: var(--os-text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-phfoot { position: sticky; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--os-space-2); padding: var(--os-space-2) 0;
  background: var(--os-surface-sunken); }
.hs-phfoot .os-btn { min-height: 48px; justify-content: center; }
.hs-my .hs-list li { padding-left: 0; padding-right: 0; }
.hs-reportmedia { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--os-space-2); grid-column: 1 / -1; }
@media (max-width: 639.98px) {
  .hs-phone-only { display: block; }
  .hs-phone-only.hs-hidden, .hs-phone-hide { display: none; }
  .hs-phone-switch .os-seg { width: 100%; }
  .hs-head__tools { width: 100%; }
  .hs-pick { flex: 1 1 140px; max-width: none; }
  .hs-bars { grid-template-columns: minmax(70px, 110px) minmax(0, 1fr); }
  .hs-bars__track, .hs-bars__axis { margin-right: 5.5rem; }
}

/* The Safety plan */
.hs-plan td, .hs-plan th { white-space: nowrap; vertical-align: middle; }
.hs-plan__n { width: 6.5rem; text-align: right; }
.hs-plan .os-select { width: auto; min-width: 140px; }
