/* 青瓷玉釉 × 深桧绿工作台：异常管理台账与隐患排查台账（lg-* 与 ehs-* 体系） */
.lg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 2px 0 12px; flex-wrap: wrap; }
.lg-head.lg-compact-head { align-items: center; margin: 0 0 10px; gap: 10px; }
.lg-head.lg-compact-head h2 { margin: 0; font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.lg-tag { font-size: 11px; font-weight: 550; color: var(--celadon-deep); background: var(--celadon-soft); border: 1px solid var(--celadon-line); border-radius: 5px; padding: 3px 8px; }
.lg-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.lg-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px;
  border-radius: 7px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-2);
  font-size: 12px; font-weight: 500; transition: border-color 150ms, color 150ms, background 150ms;
}
.lg-btn:hover { border-color: var(--celadon); color: var(--celadon-deep); background: var(--surface-hover); }
.lg-btn.primary { background: var(--celadon); border-color: var(--celadon); color: #fcfcfa; }
.lg-btn.primary:hover { background: var(--celadon-deep); border-color: var(--celadon-deep); color: #fff; }

.lg-summary-strip {
  display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; margin-bottom: 10px; min-height: 40px; flex-wrap: wrap;
}
.lg-sum-item {
  border: 0; background: transparent; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px; cursor: pointer; color: var(--muted); font-size: 12px; white-space: nowrap; position: relative;
}
.lg-sum-item + .lg-sum-item::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: var(--line-soft); }
.lg-sum-item:hover { background: var(--surface-hover); color: var(--ink); }
.lg-sum-item.is-active { background: var(--celadon-soft); color: var(--celadon-deep); font-weight: 600; }
.lg-sum-item strong { font-size: 16px; font-weight: 700; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.lg-sum-item.is-danger strong { color: var(--red); }
.lg-sum-item.is-warn strong { color: var(--orange); }
.lg-sum-item.is-ok strong { color: var(--green); }
.lg-sum-item.is-active strong { color: var(--celadon-deep); }
.lg-sum-note { margin-left: auto; padding: 0 14px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.lg-panel { padding: 0; overflow: visible; border-color: var(--line); background: var(--surface); }
.lg-toolbar.lg-direct-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.lg-direct-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg-pill {
  height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-alt); color: var(--ink-2); font-size: 12px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  transition: border-color 150ms, color 150ms, background 150ms;
}
.lg-pill:hover { border-color: var(--celadon); color: var(--celadon-deep); background: var(--surface); }
.lg-pill b { font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-pill.is-active { background: var(--juniper); border-color: var(--juniper); color: #fcfcfa; }
.lg-pill.is-active b { color: #b7ded2; }
.lg-pill.tone-danger:not(.is-active) { border-color: #ebc2bc; background: var(--red-soft); color: #9c2419; }
.lg-pill.tone-danger:not(.is-active) b { color: var(--red); }
.lg-pill.tone-danger.is-active { background: var(--red); border-color: var(--red); color: #fcfcfa; }
.lg-pill.tone-warn:not(.is-active) { border-color: #e9cfa0; background: var(--orange-soft); color: #945606; }
.lg-pill.tone-warn:not(.is-active) b { color: var(--orange); }
.lg-pill.tone-warn.is-active { background: var(--orange); border-color: var(--orange); color: #fcfcfa; }
.lg-pill.tone-ok:not(.is-active) { border-color: #b7ded0; background: var(--green-soft); color: #0e6345; }
.lg-pill.tone-ok:not(.is-active) b { color: var(--green); }
.lg-pill.tone-ok.is-active { background: var(--green); border-color: var(--green); color: #fcfcfa; }

.lg-filters.lg-compact-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg-filters.lg-compact-filters select {
  height: 30px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 7px;
  font-size: 12px; color: var(--ink-2); background: var(--surface);
}
.lg-filters.lg-compact-filters select.is-set { border-color: var(--celadon); color: var(--celadon-deep); background: var(--celadon-soft); font-weight: 550; }
.lg-search { position: relative; display: inline-flex; align-items: center; }
.lg-search-icon { position: absolute; left: 10px; width: 12px; height: 12px; border: 1.8px solid var(--subtle); border-radius: 50%; pointer-events: none; }
.lg-search-icon::after { content: ''; position: absolute; right: -4px; bottom: -3px; width: 5px; height: 1.8px; background: var(--subtle); transform: rotate(45deg); }
.lg-filters.lg-compact-filters .lg-search input {
  height: 30px; width: 185px; padding: 0 24px 0 28px;
  border: 1px solid var(--line-strong); border-radius: 7px; font-size: 12px;
  background: var(--surface); color: var(--ink);
}
.lg-search-clear { position: absolute; right: 5px; border: 0; background: transparent; color: var(--subtle); font-size: 14px; line-height: 1; padding: 2px 4px; }
.lg-search-clear:hover { color: var(--ink); }
.lg-mini-toggle { height: 30px; padding: 0 9px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.lg-mini-toggle:hover { border-color: var(--celadon); color: var(--celadon-deep); }
.lg-mini-toggle.is-active { border-color: var(--celadon); background: var(--celadon-soft); color: var(--celadon-deep); font-weight: 600; }

.lg-density-inline { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 7px; overflow: hidden; background: var(--surface); }
.lg-density-inline button { height: 28px; padding: 0 8px; color: var(--muted); font-size: 12px; }
.lg-density-inline button + button { border-left: 1px solid var(--line); }
.lg-density-inline button.is-active { background: var(--celadon-soft); color: var(--celadon-deep); font-weight: 600; }

.lg-view { position: relative; display: inline-flex; }
.lg-view-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font-size: 12px; white-space: nowrap; }
.lg-view-btn:hover { border-color: var(--celadon); color: var(--celadon-deep); }
.lg-view-btn::after { content: ''; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 2px; opacity: .7; }
.lg-pop.lg-col-pop { position: absolute; right: 0; top: 36px; z-index: 40; width: 276px; padding: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 10px 26px rgba(24, 46, 41, 0.14); }
.lg-col-pop-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.lg-col-pop-actions { display: flex; gap: 8px; }
.lg-col-pop-actions button { color: var(--celadon-deep); font-size: 12px; }
.lg-col-pop-list { max-height: 310px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.lg-col-item { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; border: 1px solid transparent; font-size: 12px; color: var(--ink-2); user-select: none; }
.lg-col-item:hover { background: var(--surface-hover); }
.lg-col-item.is-dragging { opacity: .45; border-color: var(--celadon); }
.lg-col-item.is-drag-over { border-top: 2px solid var(--celadon); }
.lg-drag-handle { cursor: grab; color: var(--subtle); font-size: 13px; line-height: 1; padding: 0 2px; flex: none; }
.lg-drag-handle:active { cursor: grabbing; }
.lg-col-item label { flex: 1; display: flex; align-items: center; gap: 6px; cursor: pointer; min-width: 0; }
.lg-col-item label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-col-item.is-locked label { color: var(--subtle); cursor: not-allowed; }
.lg-col-move { display: inline-flex; gap: 2px; flex: none; }
.lg-col-move button { width: 22px; height: 22px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11px; }
.lg-col-move button:hover:not(:disabled) { border-color: var(--celadon); color: var(--celadon-deep); }
.lg-col-move button:disabled { opacity: .35; cursor: not-allowed; }
.lg-col-pop-tip { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); font-size: 11px; color: var(--muted); text-align: center; }

.lg-chips-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; background: var(--celadon-soft); border-bottom: 1px solid var(--celadon-line); flex-wrap: wrap; }
.lg-chips-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--celadon-line); color: var(--celadon-deep); font-size: 12px; }
.lg-chip button { color: var(--muted); font-size: 13px; line-height: 1; padding: 0 2px; }
.lg-chip button:hover { color: var(--red); }
.lg-scope-clear { font-size: 12px; color: var(--celadon-deep); padding: 2px 8px; border-radius: 5px; border: 1px solid var(--celadon-line); background: var(--surface); }

/* 表格与冻结列 */
.lg-table-wrap { overflow: auto; max-height: calc(100dvh - var(--header, 72px) - var(--footer, 42px) - 210px); min-height: 280px; transition: opacity 120ms; position: relative; }
.lg-table-wrap.is-loading { opacity: .55; }
.lg-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12.5px; }
.lg-col-row th { position: sticky; top: 0; z-index: 3; height: 36px; padding: 0 11px; background: var(--surface-alt); color: var(--ink-2); font-size: 12px; font-weight: 600; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.lg-col-row th.is-sortable { cursor: pointer; }
.lg-col-row th.is-sortable:hover { color: var(--celadon-deep); background: #eae8de; }
.lg-sort-arrow { margin-left: 4px; font-size: 11px; color: var(--subtle); font-weight: 400; }
.lg-col-row th.sort-asc .lg-sort-arrow, .lg-col-row th.sort-desc .lg-sort-arrow { color: var(--celadon-deep); font-weight: 600; }
.lg-table tbody td { padding: 8px 11px; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); background: var(--surface); vertical-align: middle; }
.lg-table[data-density="compact"] tbody td { padding: 5px 11px; }
.lg-table[data-density="compact"] .lg-main .lg-title, .lg-table[data-density="compact"] .lg-clamp { -webkit-line-clamp: 1; }
.lg-table[data-density="loose"] tbody td { padding: 13px 11px; }

.lg-table .lg-sticky-left { position: sticky; left: 0; z-index: 2; box-shadow: 4px 0 8px -4px rgba(24, 46, 41, 0.1); }
.lg-table thead th.lg-sticky-left { z-index: 5; background: var(--surface-alt); }
.lg-table .lg-sticky-right { position: sticky; right: 0; z-index: 2; box-shadow: -4px 0 8px -4px rgba(24, 46, 41, 0.1); text-align: center; }
.lg-table thead th.lg-sticky-right { z-index: 5; background: var(--surface-alt); text-align: center; }

.lg-row { cursor: pointer; }
.lg-row:hover td { background: var(--surface-hover); }
.lg-row:hover .lg-title { color: var(--celadon-deep); }
.lg-row.is-risk-high td { background: #fdf6f5; }
.lg-row.is-risk-warn td { background: #fdf9f2; }
.lg-row.is-overdue td { background: #fdf5f3; }
.lg-row.is-overdue:hover td, .lg-row.is-risk-high:hover td, .lg-row.is-risk-warn:hover td { background: #f8f0ea; }
.lg-row.is-closed td { color: var(--subtle); }
.lg-row.is-closed .lg-title { color: var(--muted); font-weight: 400; }

.lg-date { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-dep { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-dep strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.lg-ws { display: block; font-size: 10px; color: var(--subtle); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.lg-main .lg-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-weight: 550; line-height: 1.5; }
.lg-id { display: block; margin-top: 3px; color: var(--subtle); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.lg-text { color: var(--muted); line-height: 1.55; overflow: hidden; word-break: break-word; }
.lg-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lg-raw { max-width: 132px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-none { color: #a4afa9; font-style: normal; }
.lg-owner { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-owner .lg-own.is-raw { color: var(--orange); border-bottom: 1px dashed var(--orange-line); cursor: help; }
.lg-owner-more { display: block; font-size: 10px; color: var(--muted); line-height: 1.2; margin-top: 2px; }
.lg-level { display: inline-block; font-size: 11px; line-height: 18px; padding: 0 7px; border-radius: 4px; white-space: nowrap; font-weight: 500; }
.lg-level.larger { background: var(--red-soft); color: #9c2419; border: 1px solid var(--red-line); }
.lg-level.general { background: var(--celadon-soft); color: var(--celadon-deep); border: 1px solid var(--celadon-line); }
.lg-status { display: inline-block; font-size: 11px; line-height: 19px; padding: 0 8px; border-radius: 999px; white-space: nowrap; font-weight: 500; }
.lg-status.pending { background: var(--red-soft); color: #9c2419; }
.lg-status.processing { background: var(--orange-soft); color: #945606; }
.lg-status.closed { background: var(--green-soft); color: #0e6345; }
.lg-status.disposed { background: #e8f3f7; color: #1a5d7a; border: 1px solid #bfd8e4; }
.lg-status.full-closed { background: var(--green-soft); color: #0e6345; }
.lg-status.historical { background: #efeee7; color: var(--muted); }
.lg-status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.lg-rc-hint { font-size: 10px; line-height: 1.2; color: var(--orange); padding-left: 2px; font-weight: 600; }
.lg-days { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.lg-days.is-long { color: var(--red); font-weight: 600; }
.lg-upgrade { display: inline-block; font-size: 10px; line-height: 17px; padding: 0 6px; border-radius: 4px; background: var(--surface-alt); color: var(--muted); }
.lg-upgrade.yes { background: var(--orange-soft); color: #945606; border: 1px solid var(--orange-line); }

.lg-empty-cell { padding: 0 !important; }
.lg-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 200px; color: var(--muted); }
.lg-skeleton-row .lg-bar { display: block; height: 9px; border-radius: 3px; background: linear-gradient(90deg, #eceae1 25%, #f7f6ef 37%, #eceae1 63%); background-size: 400% 100%; animation: lgShimmer 1.4s ease infinite; margin: 4px 0; }
@keyframes lgShimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

.lg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--surface-alt); border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.lg-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-pager { display: flex; align-items: center; gap: 4px; }
.lg-pager button { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.lg-pager button:hover:not(:disabled) { border-color: var(--celadon); color: var(--celadon-deep); }
.lg-pager button.is-active { background: var(--juniper); border-color: var(--juniper); color: #fcfcfa; font-weight: 600; }
.lg-pager button:disabled { opacity: .45; cursor: not-allowed; }
.lg-pager .lg-gap { color: var(--subtle); padding: 0 2px; }
.lg-pager select { height: 28px; margin-left: 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; color: var(--ink-2); background: var(--surface); }
.lg-flip { transform: rotate(180deg); }
.lg-message { margin: 0; padding: 0 16px 11px; font-size: 11px; color: var(--green); background: var(--surface-alt); }
.lg-message.error { color: var(--red); }

/* 隐患排查专属样式（ehs-*）— 建筑分栏深桧头图 + 哑光瓷白 KPI + 青瓷矿物图表 */
.main-content.ehs-page { padding: 14px 20px 28px; }
.ehs-page .ehs-hero {
  position: relative; isolation: isolate; align-items: center; margin: 0 0 10px; padding: 14px 22px; min-height: 76px;
  background: var(--juniper); border: 1px solid var(--juniper-line); border-radius: 12px; overflow: hidden;
}
.ehs-hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 0 28%;
  background: url("../assets/factory-panorama.png") center 40% / cover no-repeat;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 18%, rgba(0, 0, 0, .82) 48%, #000 78%);
}
.ehs-page .ehs-hero h2 { color: #fcfcfa; font-size: clamp(19px, 2vw, 24px); font-weight: 650; }
.ehs-page .ehs-hero .lg-tag { background: rgba(255, 255, 255, 0.14); color: #e2f2ec; border-color: rgba(255, 255, 255, 0.25); }
.ehs-hero .lg-btn { color: #fcfcfa; background: var(--juniper-2); border-color: rgba(182, 224, 210, 0.42); }
.ehs-hero .lg-btn:hover { color: #fff; background: var(--juniper-active); border-color: #93d7c3; }
.ehs-hero .lg-btn.primary { background: var(--celadon); border-color: rgba(154, 224, 203, 0.55); color: #fcfcfa; }
.ehs-hero .lg-btn.primary:hover { background: var(--celadon-deep); }

.ehs-charts-collapse { margin-bottom: 10px; }
.ehs-charts-collapse > summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); font-size: 12px; font-weight: 500; cursor: pointer;
}
.ehs-charts-collapse[open] > summary { margin-bottom: 10px; color: var(--celadon-deep); border-color: var(--celadon); background: var(--celadon-soft); }

.ehs-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ehs-kpi {
  display: flex; align-items: center; gap: clamp(10px, 1.1vw, 15px); min-height: 92px; padding: 13px 15px;
  border: 1px solid var(--kpi-border, var(--line)); border-radius: 11px;
  background: var(--surface); color: var(--ink);
}
.ehs-kpi .icon {
  padding: 8px; border-radius: 9px; background: var(--kpi-tint); color: var(--kpi-accent);
  width: 38px; height: 38px;
}
.ehs-kpi.blue { --kpi-accent: #182e29; --kpi-tint: #e7eeeb; --kpi-border: #ccd8d3; }
.ehs-kpi.red { --kpi-accent: #bf3628; --kpi-tint: #fcece9; --kpi-border: #ecc8c3; }
.ehs-kpi.amber { --kpi-accent: #b86f0e; --kpi-tint: #fcf4e4; --kpi-border: #ead5af; }
.ehs-kpi.green { --kpi-accent: #147a56; --kpi-tint: #e6f5ee; --kpi-border: #bfe0d0; }
.ehs-kpi.violet { --kpi-accent: #6c4f7a; --kpi-tint: #f3eef6; --kpi-border: #d9cde0; }
.ehs-kpi span { display: block; font-size: 12px; font-weight: 550; color: var(--muted); }
.ehs-kpi strong { display: block; margin-top: 3px; font-size: clamp(22px, 2.2vw, 31px); line-height: 1.12; font-variant-numeric: tabular-nums; color: var(--ink); }
.ehs-kpi small { margin-left: 4px; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.ehs-kpi p { margin: 3px 0 0; font-size: 11.5px; color: var(--celadon-deep); font-weight: 500; }

.ehs-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr) minmax(0, 1.04fr); gap: 10px; margin-top: 10px; }
.ehs-chart { display: flex; flex-direction: column; min-height: 204px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.ehs-chart header { display: flex; align-items: center; justify-content: space-between; gap: 5px 12px; min-height: 40px; padding: 7px 14px; background: var(--surface-alt); border-bottom: 1px solid var(--line-soft); }
.ehs-chart h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; font-weight: 650; color: var(--ink); }
.ehs-chart h3::before { content: ""; width: 4px; height: 15px; border-radius: 3px; background: var(--celadon); }
.ehs-chart-empty { display: grid; flex: 1; place-items: center; margin: 0; color: var(--muted); }

.ehs-level-chart { display: grid; grid-template-columns: minmax(74px, 128px) minmax(90px, 1fr); flex: 1; align-items: center; gap: clamp(8px, 1.6vw, 22px); padding: 12px 14px; }
.ehs-ring { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--ring); }
.ehs-ring > span { display: grid; align-content: center; justify-items: center; gap: 2px; width: 69%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); font-size: 11px; color: var(--muted); }
.ehs-ring strong { font-size: clamp(15px, 1.55vw, 21px); font-variant-numeric: tabular-nums; color: var(--ink); }
.ehs-level-legend, .ehs-sources { list-style: none; margin: 0; padding: 0; }
.ehs-level-legend li { display: flex; justify-content: space-between; gap: 4px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.ehs-level-legend li:last-child { border: 0; }
.ehs-level-legend span { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ehs-level-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--level-color); }

.ehs-trend { flex: 1; width: 100%; min-height: 145px; padding: 6px 8px 0; }
.ehs-trend text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.ehs-trend-grid line { stroke: #e6e4da; }
.ehs-trend-bars { fill: var(--terracotta); opacity: 0.85; }
.ehs-trend-line { fill: none; stroke: var(--celadon); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ehs-trend-legend { display: flex; gap: 10px; font-size: 11px; color: var(--muted); }
.ehs-trend-legend span { display: inline-flex; align-items: center; gap: 4px; }
.ehs-trend-legend span::before { content: ""; width: 12px; height: 7px; border-radius: 3px; background: var(--terracotta); }
.ehs-trend-legend span + span::before { height: 2px; background: var(--celadon); }

.ehs-sources { display: grid; align-content: center; flex: 1; gap: 8px; padding: 12px 14px; font-variant-numeric: tabular-nums; }
.ehs-sources li { display: grid; grid-template-columns: minmax(68px, 1fr) minmax(35px, 2fr) minmax(26px, auto); gap: 7px; align-items: center; }
.ehs-sources li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ehs-sources li > div { height: 7px; border-radius: 8px; background: #eae8df; overflow: hidden; }
.ehs-sources i { display: block; height: 100%; border-radius: inherit; background: #177a65; }
.ehs-sources li:nth-child(2) i { background: #c25231; }
.ehs-sources li:nth-child(3) i { background: #b86f0e; }
.ehs-sources li:nth-child(4) i { background: #467367; }
.ehs-sources li:nth-child(5) i { background: #6c4f7a; }

.ehs-level { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 5px; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; background: #efeee7; color: var(--muted); }
.ehs-level.major { background: var(--red-soft); color: #9c2419; }
.ehs-level.larger { background: var(--orange-soft); color: #945606; }
.ehs-level.general { background: var(--celadon-soft); color: var(--celadon-deep); }
.ehs-due { display: inline-flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ehs-due small { font-size: 10.5px; color: var(--muted); }
.ehs-due.is-overdue, .ehs-due.is-overdue small { color: var(--red); font-weight: 600; }
.ehs-due.is-soon, .ehs-due.is-soon small { color: var(--orange); }
.ehs-detail-button { border: 1px solid var(--celadon-line); border-radius: 5px; padding: 2px 8px; color: var(--celadon-deep); background: var(--celadon-soft); white-space: nowrap; font-size: 12px; font-weight: 500; }
.ehs-detail-button:hover { background: #d6ece4; border-color: var(--celadon); }
.ehs-record-number { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lg-photo-text { display: inline-block; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }

.lg-thumb-wrap { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.lg-thumb-btn { position: relative; display: inline-flex; padding: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--surface-alt); width: 48px; height: 34px; cursor: zoom-in; }
.lg-thumb-btn:hover { border-color: var(--celadon); transform: scale(1.06); }
.lg-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-thumb-count { position: absolute; right: 2px; bottom: 2px; padding: 0 4px; border-radius: 3px; background: rgba(24, 46, 41, 0.8); color: #fcfcfa; font-size: 10px; line-height: 14px; }
.lg-thumb-loading { font-size: 11px; color: var(--subtle); }

/* 大图灯箱 */
.lg-lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(14, 24, 21, 0.9); display: flex; flex-direction: column; }
.lg-lb-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; color: #f4f7f5; background: rgba(18, 34, 30, 0.72); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.lg-lb-title { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-lb-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lg-lb-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; font-size: 12px; }
.lg-lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lg-lb-close { width: 32px; height: 32px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; line-height: 1; }
.lg-lb-close:hover { background: var(--red); border-color: var(--red); }
.lg-lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 18px 64px; overflow: auto; }
.lg-lb-img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 8px; cursor: zoom-in; background: #14221e; }
.lg-lb-stage.is-zoomed { align-items: flex-start; justify-content: flex-start; }
.lg-lb-stage.is-zoomed .lg-lb-img { max-width: none; max-height: none; cursor: zoom-out; margin: auto; }
.lg-lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(18, 34, 30, 0.72); color: #fff; font-size: 32px; }
.lg-lb-nav.is-prev { left: 16px; }
.lg-lb-nav.is-next { right: 16px; }

@media (max-width: 1120px) {
  .ehs-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .ehs-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ehs-charts { grid-template-columns: minmax(0, 1fr); }
  .lg-table-wrap { max-height: none; }
  .lg-sum-note { display: none; }
}
