.ehs-app {
  --ehs-bg:var(--fsg-canvas);
  --ehs-panel:var(--fsg-surface);
  --ehs-soft:var(--fsg-surface-2);
  --ehs-ink:var(--fsg-text);
  --ehs-muted:var(--fsg-text-muted);
  --ehs-line:var(--fsg-line);
  --ehs-green:var(--fsg-success);
  --ehs-teal:var(--fsg-text);
  --ehs-orange:var(--fsg-orange);
  --ehs-blue:var(--fsg-text);
  --ehs-red:var(--fsg-danger);
  --ehs-amber:var(--fsg-warning-ink);
  --ehs-purple:var(--fsg-text);
  --ehs-shadow:var(--fsg-shadow-2);
  width: min(1450px, 100%);
  margin: 0 auto 48px;
  color: var(--ehs-ink);
  font: 14px/1.45 Inter, Segoe UI, Arial, sans-serif;
}

.ehs-app * {
  box-sizing: border-box;
}

.ehs-app button,
.ehs-app input,
.ehs-app select,
.ehs-app textarea {
  font: inherit;
}

.ehs-shell {
  min-height: calc(100vh - 130px);
  overflow: hidden;
  background: var(--ehs-bg);
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
  box-shadow: var(--ehs-shadow);
}

.ehs-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff, #edf3f8);
  border-bottom: 1px solid var(--ehs-line);
}

.ehs-kicker {
  margin: 0 0 4px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ehs-header h1 {
  margin: 0;
  color: var(--ehs-ink);
  font-size: 28px;
  letter-spacing: 0;
}

.ehs-header p {
  max-width: 800px;
  margin: 6px 0 0;
  color: var(--ehs-muted);
}

.ehs-qr-card,
.ehs-card,
.ehs-queue-card,
.ehs-action-card,
.ehs-training-card {
  background: var(--ehs-panel);
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
}

.ehs-qr-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.ehs-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: 6px;
  box-sizing: border-box;
}

.ehs-qr-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: crisp-edges;
}

.ehs-qr-card b,
.ehs-qr-card span {
  display: block;
  min-width: 0;
}

.ehs-qr-card span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ehs-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ehs-tabs {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  background: var(--ehs-line);
  border-bottom: 1px solid var(--ehs-line);
}

.ehs-tab {
  min-height: 44px;
  padding: 10px 15px;
  color: var(--ehs-muted);
  background: #f9fbfa;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.ehs-tab.active {
  color: #fff;
  background: var(--ehs-orange);
}

.ehs-metrics {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--ehs-line);
  border-bottom: 1px solid var(--ehs-line);
}

.ehs-metric {
  padding: 13px 15px;
  background: #fff;
}

.ehs-metric b {
  display: block;
  color: #0563c1;
  font-size: 25px;
}

.ehs-metric span {
  display: block;
  margin-top: 2px;
  color: var(--ehs-muted);
  font-size: 12px;
  font-weight: 700;
}

.ehs-body {
  padding: 16px;
}

.ehs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 340px;
  gap: 16px;
  align-items: start;
}

.ehs-card {
  padding: 16px;
}

.ehs-card h2 {
  margin: 0 0 5px;
  color: var(--ehs-ink);
  font-size: 21px;
}

.ehs-card p {
  margin: 4px 0 0;
  color: var(--ehs-muted);
}

.ehs-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.ehs-label {
  display: grid;
  gap: 5px;
  color: var(--ehs-ink);
  font-size: 12px;
  font-weight: 700;
}

.ehs-label.full {
  grid-column: 1 / -1;
}

.ehs-required {
  color:var(--fsg-orange-ink);
}

.ehs-input,
.ehs-select,
.ehs-textarea {
  width: 100%;
  min-width: 0;
  color: var(--ehs-ink);
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: 6px;
  padding: 10px 11px;
  outline: 0;
}

.ehs-input:focus,
.ehs-select:focus,
.ehs-textarea:focus {
  border-color: var(--ehs-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .16);
}

.ehs-textarea {
  min-height: 132px;
  resize: vertical;
}

.ehs-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ehs-check {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  background: var(--ehs-soft);
  border: 1px solid var(--ehs-line);
  border-radius: 6px;
  font-weight: 700;
}

.ehs-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.ehs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 12px;
  color: #fff;
  background: var(--ehs-orange);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.ehs-report-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 18px;
  align-items: start;
}

.ehs-email-readiness {
  padding: 11px 13px;
  background: var(--ehs-soft);
  border-left: 4px solid var(--ehs-orange);
  border-radius: 5px;
}

.ehs-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ehs-report-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
}

.ehs-report-card h3 {
  margin: 0;
  color: var(--ehs-ink);
  font-size: 17px;
}

.ehs-report-card p {
  flex: 1;
}

.ehs-report-card .ehs-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ehs-report-email-form .ehs-textarea {
  min-height: 90px;
}

.ehs-reports .ehs-report-card strong,
.ehs-reports .ehs-report-card .management-number {
  color: #0563c1;
}

.ehs-button.secondary {
  color: var(--ehs-ink);
  background: #fff;
  border-color: var(--ehs-line);
}

.ehs-button.orange {
  background: var(--ehs-orange);
}

.ehs-button.blue {
  background: var(--ehs-blue);
}

.ehs-button.red {
  background: var(--ehs-red);
}

.ehs-button:disabled {
  opacity: .52;
  cursor: not-allowed;
}

.ehs-side-list,
.ehs-list,
.ehs-board-items {
  display: grid;
  gap: 9px;
}

.ehs-rule {
  padding: 11px;
  background: #f8fbfa;
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
}

.ehs-rule b,
.ehs-rule span {
  display: block;
}

.ehs-rule span {
  margin-top: 3px;
  color: var(--ehs-muted);
  font-size: 12px;
}

.ehs-split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
  gap: 16px;
}

.ehs-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 11px;
  color: var(--ehs-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
  cursor: pointer;
}

.ehs-list-row:hover,
.ehs-list-row.active {
  border-color: var(--ehs-teal);
  background: #effaf6;
}

.ehs-list-row b,
.ehs-list-row span,
.ehs-list-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ehs-list-row small {
  margin-top: 3px;
  color: var(--ehs-muted);
}

.ehs-status,
.ehs-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  color: var(--ehs-muted);
  background: #eef2f7;
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ehs-status.high,
.ehs-status.critical,
.ehs-status.serious,
.ehs-status.overdue {
  color: var(--ehs-red);
  background: #fff0ed;
}

.ehs-status.medium,
.ehs-status.needs-review,
.ehs-status.assigned,
.ehs-status.action-assigned {
  color: var(--ehs-amber);
  background: #fff7ed;
}

.ehs-status.low,
.ehs-status.open,
.ehs-status.in-progress,
.ehs-status.in-review,
.ehs-status.pending-review {
  color: var(--ehs-blue);
  background: #e8f1ff;
}

.ehs-status.closed,
.ehs-status.complete,
.ehs-status.completed,
.ehs-status.sent-to-maintenance,
.ehs-status.waiting-on-maintenance {
  color: var(--ehs-green);
  background: #eaf7ef;
}

.ehs-status.training {
  color: var(--ehs-purple);
  background: #f3e8ff;
}

.ehs-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ehs-line);
}

.ehs-detail-head h2 {
  margin: 6px 0 0;
}

.ehs-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.ehs-info {
  padding: 10px;
  background: #f8fbfa;
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
}

.ehs-info span {
  display: block;
  color: var(--ehs-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ehs-info b {
  display: block;
  margin-top: 3px;
}

.ehs-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ehs-board-col {
  min-width: 0;
  padding: 11px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
}

.ehs-board-col h3 {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--ehs-ink);
  font-size: 14px;
}

.ehs-board-card {
  min-width: 0;
  padding: 10px;
  background: #f8fbfa;
  border: 1px solid var(--ehs-line);
  border-radius: 6px;
}

.ehs-board-card b,
.ehs-board-card span,
.ehs-board-card small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ehs-board-card small {
  margin-top: 4px;
  color: var(--ehs-muted);
}

.ehs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ehs-training-card,
.ehs-action-card {
  padding: 13px;
}

.ehs-training-card h3,
.ehs-action-card h3 {
  margin: 0 0 6px;
  color: var(--ehs-ink);
  font-size: 16px;
}

.ehs-progress {
  height: 9px;
  overflow: hidden;
  background: #dfeae6;
  border-radius: 999px;
}

.ehs-progress span {
  display: block;
  height: 100%;
  background: var(--ehs-green);
}

.ehs-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
}

.ehs-table {
  width: 100%;
  border-collapse: collapse;
}

.ehs-table th,
.ehs-table td {
  padding: 10px 11px;
  color: var(--ehs-ink);
  border-bottom: 1px solid var(--ehs-line);
  text-align: left;
  white-space: nowrap;
}

.ehs-table th {
  color: var(--ehs-muted);
  background: var(--ehs-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ehs-empty {
  padding: 16px;
  color: var(--ehs-muted);
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
}

.ehs-ai-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  color: var(--ehs-ink);
  background: #f8fafc;
  border: 1px solid var(--ehs-line);
  border-left: 4px solid var(--ehs-green);
  border-radius: 8px;
}

.ehs-ai-box.blocked {
  background: #fff7ed;
  border-left-color: var(--ehs-red);
}

.ehs-ai-box p,
.ehs-ai-box ul {
  margin: 0;
  color: var(--ehs-muted);
}

.ehs-ai-box li + li {
  margin-top: 6px;
}

.ehs-command-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.ehs-period-control {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 12px 0;
  padding: 9px;
  color: var(--ehs-muted);
  background: var(--ehs-soft);
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.ehs-period-buttons {
  display: flex;
  gap: 4px;
}

.ehs-period-button {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--ehs-ink);
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

.ehs-period-button.active {
  color: #fff;
  background: var(--ehs-blue);
  border-color: var(--ehs-blue);
}

.ehs-period-control label {
  display: flex;
  gap: 5px;
  align-items: center;
}

.ehs-period-control input {
  max-width: 136px;
  padding: 6px;
  color: var(--ehs-ink);
  background: #fff;
  border: 1px solid var(--ehs-line);
  border-radius: 5px;
}

.ehs-period-summary {
  margin: 0 0 12px !important;
}

.ehs-command-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--ehs-line);
  border: 1px solid var(--ehs-line);
  border-radius: 8px;
}

.ehs-command-stat {
  padding: 14px;
  background: #fff;
}

.ehs-command-stat b,
.ehs-command-stat span {
  display: block;
}

.ehs-command-stat b {
  color: #0563c1;
  font-size: 24px;
}

.ehs-command-stat span {
  color: var(--ehs-muted);
  font-size: 12px;
  font-weight: 700;
}

.ehs-my-work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.ehs-boundary {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px;
  background: #fff7ed;
  border: 1px solid #f2c078;
  border-left: 4px solid var(--ehs-orange);
  border-radius: 7px;
}

.ehs-training-handoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

@media (max-width: 1180px) {
  .ehs-header,
  .ehs-grid,
  .ehs-split {
    grid-template-columns: 1fr;
  }

  .ehs-metrics,
  .ehs-board,
  .ehs-grid-3,
  .ehs-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ehs-report-heading {
    grid-template-columns: 1fr;
  }

  .ehs-command-heading,
  .ehs-training-handoff {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ehs-command-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ehs-body {
    padding: 12px;
  }

  .ehs-header h1 {
    font-size: 24px;
  }

  .ehs-metrics,
  .ehs-form,
  .ehs-check-grid,
  .ehs-info-grid,
  .ehs-board,
  .ehs-grid-3,
  .ehs-report-grid,
  .ehs-report-card .ehs-actions {
    grid-template-columns: 1fr;
  }

  .ehs-list-row,
  .ehs-detail-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ehs-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ehs-command-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ehs-period-control,
  .ehs-period-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .ehs-button {
    width: 100%;
    padding-right: 7px;
    padding-left: 7px;
    white-space: normal;
  }
}

/* V8.3.8 Fix 2: visible EHS submit feedback */
.ehs-form-message { margin: 12px 0; padding: 11px 13px; border-radius: 7px; font-weight: 700; }
.ehs-form-message.error { background: #fff1f0; border: 1px solid #f3b5b0; color: #9f2d20; }
.ehs-form-message.success { background: #edf8f1; border: 1px solid #9ed2b0; color: #166534; }
.ehs-button:disabled { opacity: .65; cursor: wait; }

/* .41.211 - Concern report is the primary site EHS task. */
.ehs-app .ehs-submit-primary{margin-top:12px}.ehs-app .ehs-submit-primary[hidden]{display:none!important}
.ehs-app .ehs-entry-qr{max-width:380px;padding:10px 12px;border:1px solid #d5dfe5;border-radius:8px;background:#fff}
.ehs-app .ehs-entry-qr summary,.ehs-app .ehs-entry-help-panel summary{cursor:pointer;color:#254c70;font-size:13px}
.ehs-app .ehs-entry-qr .ehs-qr-card{margin-top:10px;box-shadow:none;border:0;padding:0}
.ehs-app .ehs-entry-warning{padding:12px;border-left:3px solid #bf4600;background:#fff8ed;color:#513718;font-size:13px;line-height:1.5}
.ehs-app .ehs-entry-help{font-size:13px;line-height:1.5;color:#536779;margin:0}
.ehs-app .ehs-entry-success{padding:16px;border:1px solid #b9d2c2;border-radius:8px;background:#f5faf6}
.ehs-app .ehs-entry-success .ehs-button{margin:8px 8px 0 0}.ehs-app #ehsReportForm[hidden]{display:none!important}
.ehs-app [data-ehs-report-title]:focus{outline:2px solid #1767a4;outline-offset:4px}
.ehs-app .ehs-entry-help-panel{align-self:start}.ehs-app .ehs-entry-help-panel details{margin-top:12px}
@media(max-width:700px){.ehs-app .ehs-entry-qr{max-width:100%;width:100%;box-sizing:border-box}.ehs-app .ehs-submit-primary{min-height:40px}.ehs-app [data-ehs-report-panel]{display:grid;grid-template-columns:minmax(0,1fr)}}

/* Empty metrics and shared required-field guidance must not occupy form columns. */
.ehs-app #ehsMetrics:empty{display:none!important}
.ehs-app #ehsReportForm > p{grid-column:1 / -1}

/* .41.212 - Reporting capability is separate from operational data reads. */
.ehs-app .ehs-entry-verified{font-size:13px;color:#536779;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
.ehs-app .ehs-access-link{font:inherit;color:#254c70;border:1px solid #d5dfe5;background:#fff;border-radius:5px;padding:6px 9px;cursor:pointer}
.ehs-app .ehs-access-link:focus-visible{outline:2px solid #1767a4;outline-offset:2px}
.ehs-app .ehs-access-link:disabled{opacity:.6;cursor:default}

/* .41.213 - Inline concern review retains the original form and file selections. */
.ehs-app .ehs-concern-review[hidden]{display:none!important}
.ehs-app .ehs-concern-review{border:1px solid #d6dfe6;border-radius:8px;padding:18px;margin:16px 0;background:#f9fbfd;min-width:0}
.ehs-app .ehs-review-step{font-size:12px;font-weight:600;color:#9a3900;margin:0 0 6px}
.ehs-app .ehs-concern-review h3{font-size:20px;margin:0 0 10px}.ehs-app .ehs-concern-review h4{font-size:14px;margin:18px 0 6px}
.ehs-app .ehs-review-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.ehs-app .ehs-review-fields div{min-width:0}.ehs-app .ehs-review-fields dt{font-size:12px;color:#536779;margin-bottom:4px}
.ehs-app .ehs-review-fields dd{font-size:14px;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.ehs-app .ehs-review-description{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #d6dfe6;background:#fff;border-radius:6px;padding:12px;font-size:14px;line-height:1.5}
.ehs-app .ehs-review-files{padding-left:20px;font-size:13px;overflow-wrap:anywhere}
.ehs-app .ehs-review-hint{flex-basis:100%;font-size:12px;color:#536779;margin:4px 0}
.ehs-app #ehsReviewHeading:focus,.ehs-app .ehs-entry-success:focus{outline:2px solid #1767a4;outline-offset:4px}
.ehs-app [data-ehs-review-progress]{font-size:13px;margin:10px 0 0}
@media(max-width:700px){.ehs-app .ehs-review-fields{grid-template-columns:minmax(0,1fr)}.ehs-app .ehs-concern-review{padding:14px}.ehs-app .ehs-concern-review .ehs-actions{display:flex;flex-wrap:wrap}.ehs-app .ehs-concern-review .ehs-button{min-height:42px}}

/* .41.214 - In-memory manager queue search and report-specific triage entries. */
.ehs-app .ehs-queue-filters214{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #d6dfe6;border-radius:8px;padding:14px;margin:16px 0;background:#f9fbfd}
.ehs-app .ehs-queue-filters214 .full{grid-column:1/-1}.ehs-app .ehs-queue-filters214 .ehs-label{min-width:0}
.ehs-app .ehs-queue-search214,.ehs-app .ehs-queue-detail214{min-width:0;align-self:start}
.ehs-app .ehs-queue-search214 .ehs-period-control{width:100%;box-sizing:border-box;flex-wrap:wrap}
.ehs-app .ehs-queue-search214 .ehs-period-control input{min-width:0;max-width:100%;box-sizing:border-box}
.ehs-app .ehs-queue-list214{margin-top:14px;max-height:600px;overflow:auto;overscroll-behavior:contain}
.ehs-app .ehs-queue-list214 .ehs-list-row{overflow-wrap:anywhere;min-width:0}
.ehs-app .ehs-queue-count214{font-size:14px;font-weight:600;margin:12px 0 6px}
.ehs-app .ehs-queue-note214,.ehs-app .ehs-draft-state214{font-size:13px;line-height:1.5;color:#536779}
.ehs-app .ehs-filter-notice214,.ehs-app .ehs-discard214{padding:12px;border:1px solid #e5d2b9;border-radius:6px;background:#fff8ed;font-size:13px}
.ehs-app .ehs-filter-notice214[hidden],.ehs-app [data-ehs-discard-prompt][hidden],.ehs-app [data-action="triage-discard214"][hidden]{display:none!important}
.ehs-app .ehs-selected-note214{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px;font-size:13px;color:#536779;overflow-wrap:anywhere}
.ehs-app .ehs-discard214{margin-top:10px}.ehs-app .ehs-discard214 .ehs-button{margin:4px}
.ehs-app [data-ehs-selected-title]:focus{outline:2px solid #1767a4;outline-offset:4px}
@media(max-width:700px){.ehs-app .ehs-queue-filters214{grid-template-columns:minmax(0,1fr)}.ehs-app .ehs-queue-list214{max-height:430px}.ehs-app .ehs-queue-search214 .ehs-actions{flex-wrap:wrap}.ehs-app .ehs-queue-search214 .ehs-actions .ehs-label{min-width:0;width:100%}}

/* Queue-specific phone layout: keep period names readable rather than splitting words. */
@media(max-width:700px){
 .ehs-app .ehs-queue-search214 .ehs-period-control{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-items:start}
 .ehs-app .ehs-queue-search214 .ehs-period-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;min-width:0}
 .ehs-app .ehs-queue-search214 .ehs-period-button{min-width:0;width:100%;white-space:nowrap;padding:8px 5px}
 .ehs-app .ehs-queue-search214 .ehs-period-control>label{display:grid;gap:5px;min-width:0;width:100%}
}

/* .41.216 SOURCE CANDIDATE: scoped count explanations; no count formula changes. */
.ehs-app .ehs-metric-caption216{display:flex;align-items:center;justify-content:space-between;gap:6px}
.ehs-app .ehs-metric-info216{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;padding:0;border:1px solid #718396;border-radius:50%;background:#fff;color:#244866;font:600 14px/1 Georgia,serif;cursor:pointer}
.ehs-app .ehs-metric-info216:hover,.ehs-app .ehs-metric-info216[aria-expanded=true]{background:#eaf2f8;border-color:#315f84}
.ehs-app .ehs-metric-info216:focus-visible,.ehs-app .ehs-metric-close216:focus-visible{outline:2px solid #1767a4;outline-offset:3px}
.ehs-app .ehs-metric-popover216{position:fixed;z-index:11000;box-sizing:border-box;width:360px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;overscroll-behavior:contain;margin:0;padding:18px;border:1px solid #b6c5d2;border-radius:10px;background:#fff;color:#233747;box-shadow:0 8px 28px rgba(28,48,67,.2);text-align:left;font:14px/1.5 Arial,sans-serif;overflow-wrap:anywhere}
.ehs-app .ehs-metric-popover216 h3{margin:0 0 8px;font-size:18px;line-height:1.3;color:#213d51}
.ehs-app .ehs-metric-popover216 h3:focus{outline:2px solid #1767a4;outline-offset:3px}
.ehs-app .ehs-metric-popover216 p{margin:10px 0;font-size:14px;line-height:1.5}
.ehs-app .ehs-metric-popover216 .ehs-metric-context216,.ehs-app .ehs-metric-popover216 .ehs-metric-rule216{font-size:12px;line-height:1.5;color:#536779}
.ehs-app .ehs-metric-value216{font-weight:600}
.ehs-app .ehs-metric-close216{padding:9px 12px;border:1px solid #8b9dad;border-radius:6px;background:#fff;color:#244866;font:600 13px/1.4 Arial,sans-serif;cursor:pointer;min-height:38px}
@media(max-width:700px){.ehs-app .ehs-metric-info216{width:32px;height:32px;flex-basis:32px}.ehs-app .ehs-metric-popover216{padding:14px}.ehs-app .ehs-metric-close216{min-height:42px}}

/* Full-portal refinement: the information control sits beside the number,
   leaving the complete caption width available on narrow seven-tile grids. */
.ehs-app #ehsMetrics > .ehs-metric{position:relative}
.ehs-app #ehsMetrics > .ehs-metric > b{padding-right:32px;overflow-wrap:anywhere}
.ehs-app .ehs-metric-caption216{display:block}
.ehs-app .ehs-metric-info216{position:absolute;top:14px;right:12px}

/* .41.218: scoped read status, no global form changes. */
.ehs-app .ehs-read218{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;margin:0 0 14px;border:1px solid #dce3e8;border-radius:8px;background:#f8fafc}
.ehs-app .ehs-read218[hidden]{display:none}.ehs-app .ehs-read218>div{min-width:0}.ehs-app .ehs-read-title218{margin:0 0 4px;font-size:14px;font-weight:600;color:#263e50}
.ehs-app .ehs-read-help218{font-size:12px;line-height:1.5;margin:0;color:#526579;overflow-wrap:anywhere}.ehs-app .ehs-read-warning218{font-size:13px;line-height:1.5;margin:6px 0 0;color:#7b4508;overflow-wrap:anywhere}
.ehs-app .ehs-read218>.ehs-button{flex-shrink:0}.ehs-app .ehs-read218>.ehs-button:focus-visible{outline:2px solid #1767a4;outline-offset:3px}
@media(max-width:700px){.ehs-app .ehs-read218{align-items:stretch;flex-direction:column;gap:10px}.ehs-app .ehs-read218>.ehs-button{width:100%}}

/* .41.219: inline assignment review and receipt, scoped to EHS. */
.ehs-app .ehs-assignment219{margin:0 0 16px;padding:18px;border:1px solid #cad9e5;border-radius:9px;background:#f8fbfe;color:#233e51;overflow-wrap:anywhere}
.ehs-app .ehs-assignment219[hidden]{display:none}.ehs-app .ehs-assignment219 h2{margin:0 0 10px;font-size:20px}.ehs-app .ehs-assignment219 p{font-size:14px;line-height:1.5}
.ehs-app .ehs-assignment-grid219{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.ehs-app .ehs-assignment-grid219>div{min-width:0;border:1px solid #dee7ee;border-radius:6px;padding:10px;background:white}
.ehs-app .ehs-assignment-grid219 dt{font-size:12px;color:#536b7e;margin-bottom:5px}.ehs-app .ehs-assignment-grid219 dd{font-size:14px;margin:0;white-space:pre-wrap}
.ehs-app .ehs-assignment-warning219{background:#fff6e9;border-left:3px solid #b86916;padding:10px}.ehs-app .ehs-assignment-observation219{border-left:3px solid #537f9c;padding:10px;background:#f0f6fa}
.ehs-app .ehs-assignment219 button:focus-visible,.ehs-app .ehs-assignment219 h2:focus-visible{outline:2px solid #1767a4;outline-offset:3px}
@media(max-width:700px){.ehs-app .ehs-assignment-grid219{grid-template-columns:minmax(0,1fr)}.ehs-app .ehs-assignment219{padding:14px}.ehs-app .ehs-assignment219 .ehs-actions{align-items:stretch;flex-direction:column}.ehs-app .ehs-assignment219 button{width:100%}}

/* .41.221: scoped concern-status review. */
.ehs-app .ehs-status221{padding:18px;margin:0 0 16px;border:1px solid #cbdbe6;background:#f8fbfe;border-radius:8px;overflow-wrap:anywhere}
.ehs-app .ehs-status221[hidden]{display:none}.ehs-app .ehs-status221 h2{font-size:20px;margin:0 0 14px}.ehs-app .ehs-status221 h3{font-size:15px;margin:16px 0 6px}
.ehs-app .ehs-status-grid221{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.ehs-app .ehs-status-grid221>div{min-width:0;padding:10px;background:white;border:1px solid #dbe5ed;border-radius:5px}
.ehs-app .ehs-status-grid221 dt{font-size:12px;color:#526579}.ehs-app .ehs-status-grid221 dd{margin:5px 0 0}.ehs-app .ehs-status-note221{white-space:pre-wrap;background:white;padding:12px;border:1px solid #dbe5ed;border-radius:5px}
.ehs-app .ehs-status-actions221{max-height:180px;overflow:auto;padding-left:24px}.ehs-app .ehs-status-actions221 li{padding:4px 0}.ehs-app .ehs-status-warning221{color:#80430b;background:#fff5e7;border-left:3px solid #b66418;padding:10px}
.ehs-app .ehs-status-help221{font-size:12px;line-height:1.5;color:#526579}.ehs-app .ehs-status221 textarea{width:100%;box-sizing:border-box;min-height:90px}.ehs-app [data-ehs-status-heading221]:focus{outline:2px solid #1767a4;outline-offset:4px}
@media(max-width:700px){.ehs-app .ehs-status-grid221{grid-template-columns:minmax(0,1fr)}.ehs-app .ehs-status221{padding:14px}.ehs-app .ehs-status221 .ehs-actions{flex-wrap:wrap}}

/* .41.346: keep EHS period labels, native dates and presets usable on narrow screens. */
@media screen and (max-width:760px) {
  .ehs-app .ehs-period-control {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:10px;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  .ehs-app .ehs-period-control > .ehs-period-buttons {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    min-width:0;
    width:100%;
  }
  .ehs-app .ehs-period-control > label {
    display:grid;
    gap:5px;
    min-width:0;
    max-width:100%;
  }
  .ehs-app .ehs-period-control > label > input {
    box-sizing:border-box;
    min-width:0;
    width:100%;
    max-width:100%;
    min-height:44px;
  }
  .ehs-app .ehs-period-control .ehs-period-button {
    min-width:0;
    min-height:44px;
    padding:8px 5px;
    white-space:nowrap;
  }
}
