:root {
  color-scheme: light;
  --bg: #f3f6f7;
  --panel: #ffffff;
  --ink: #172126;
  --muted: #64747d;
  --line: #d9e3e7;
  --brand: #0f766e;
  --brand-strong: #0b5f59;
  --accent: #2563eb;
  --warn: #c67813;
  --danger: #b42318;
  --ok: #26734d;
  --soft: #e8f3f2;
  --shadow: 0 12px 28px rgba(24, 42, 48, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.login-mode {
  background: #10272d;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(260px, 0.9fr) auto;
  background:
    linear-gradient(145deg, rgba(12, 38, 43, 0.98), rgba(16, 95, 89, 0.92)),
    radial-gradient(circle at 80% 12%, rgba(245, 183, 77, 0.22), transparent 28%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px);
  color: #fff;
}

.login-screen[hidden] {
  display: none;
}

.login-visual {
  padding: 42px 22px 22px;
  display: grid;
  align-content: end;
  gap: 12px;
}

.login-brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #23a391;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.login-visual p {
  margin: 0;
  color: #bfe3df;
  font-weight: 750;
}

.login-visual h1 {
  max-width: 680px;
  font-size: clamp(28px, 7.4vw, 48px);
  line-height: 1.1;
}

.login-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-stats span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9fbf8;
  font-size: 13px;
}

.login-card {
  margin: 0 14px 18px;
  padding: 22px;
  display: grid;
  gap: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.login-card h2 {
  font-size: 24px;
}

.login-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f6f7;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.auth-tab.active {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 8px 20px rgba(24, 42, 48, 0.08);
}

.auth-form {
  display: none;
  gap: 12px;
}

.auth-form.active {
  display: grid;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell[hidden] {
  display: none;
}

.sidebar {
  background: linear-gradient(180deg, #10272d 0%, #173941 100%);
  color: #eef7f7;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #20a392;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 18px;
}

.brand span {
  margin-top: 3px;
  color: #a9c3c7;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  color: #d9e9eb;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
}

.nav-item em {
  margin-left: auto;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #d24726;
  color: #fff;
  font-style: normal;
  font-size: 12px;
}

.operator-card {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.operator-card label,
label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.operator-card select,
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

.area-choice-box {
  display: grid;
  gap: 9px;
}

.area-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.check-pill input {
  width: 17px;
  height: 17px;
  padding: 0;
  accent-color: var(--primary);
}

.select-all-pill {
  background: #f1f8f7;
  color: var(--primary);
}

.operator-card select {
  margin-top: 8px;
}

.operator-card p {
  margin: 10px 0 0;
  color: #bfd2d5;
  font-size: 13px;
}

.current-user-card {
  margin-top: 0;
}

.current-user-card[hidden] {
  display: none;
}

.current-user-card span,
.current-user-card strong {
  display: block;
}

.current-user-card span {
  color: #a9c3c7;
  font-size: 12px;
}

.current-user-card strong {
  margin-top: 4px;
  color: #fff;
}

.current-user-card .ghost-button {
  width: 100%;
  margin-top: 12px;
}

.workspace {
  min-width: 0;
  padding: 24px;
  padding-bottom: 96px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.25;
}

h2 {
  margin-bottom: 0;
  font-size: 17px;
}

.topbar-actions,
.section-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.top-user {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-hero,
.profile-card {
  margin-bottom: 18px;
  border: 1px solid #cfe0e3;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(37, 99, 235, 0.88)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 18px);
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 18px 46px rgba(17, 61, 82, 0.16);
}

.settings-hero {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.dashboard-hero p,
.profile-card p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-hero h2,
.profile-card h2 {
  margin: 0;
  font-size: 28px;
}

.dashboard-hero span,
.profile-card span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.dashboard-hero .primary-button {
  min-width: 120px;
  background: #fff;
  color: var(--brand-strong);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-user span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.icon-button,
.ghost-button,
.danger-button,
.primary-button {
  border: 0;
  border-radius: 8px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 750;
}

.icon-button {
  width: 42px;
  padding: 0;
  background: #fff;
  box-shadow: var(--shadow);
}

.ghost-button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger-button {
  background: #fff1ef;
  color: var(--danger);
  border: 1px solid #f0c1bb;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.compact-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-config {
  margin-bottom: 14px;
}

.compact-stats-panel {
  margin-top: 2px;
}

.stats-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.metric-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-toggle {
  display: inline-flex;
  grid-auto-flow: column;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fbfdfd;
  color: var(--ink);
  font-size: 13px;
}

.metric-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.metric::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  position: relative;
}

.metric small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-grid,
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.72fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: start;
  grid-auto-flow: row dense;
}

.wide-panel {
  grid-column: 1 / -1;
}

.profile-edit-panel,
.area-people-panel,
.push-status-panel,
.admin-panel {
  min-width: 0;
}

.push-status {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
  margin-bottom: 12px;
}

.push-status strong {
  font-size: 18px;
}

.push-status span {
  color: var(--muted);
  line-height: 1.5;
}

.panel {
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
}

.bar-list,
.incident-list,
.notice-list,
.task-list,
.people-list,
.area-people,
.safety-news-list {
  display: grid;
  gap: 10px;
}

.today-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfb;
  color: var(--ink);
  text-align: left;
}

.summary-card strong {
  display: block;
  font-size: 28px;
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
}

.danger-summary strong {
  color: var(--danger);
}

button.summary-card {
  cursor: pointer;
}

button.summary-card:hover {
  border-color: #b9ced2;
  background: #f1f8f7;
}

.area-brief {
  display: grid;
  gap: 10px;
}

.brief-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.brief-row span {
  color: var(--muted);
}

.brief-row strong {
  text-align: right;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.bar-row {
  display: grid;
  gap: 7px;
}

.bar-row header {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #edf3f5;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--brand);
}

.incident-card,
.notice-card,
.task-card,
.safety-news-card,
.person-chip,
.area-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.incident-card,
.notice-card,
.task-card,
.safety-news-card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.today-panel .incident-card:first-of-type {
  border-left: 5px solid var(--danger);
}

.incident-card header,
.notice-card header,
.task-card header,
.safety-news-card header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.safety-news-card a {
  color: var(--brand-strong);
  font-weight: 800;
  text-decoration: none;
}

.incident-title {
  font-weight: 800;
}

.meta {
  color: var(--muted);
  font-size: 13px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 750;
}

.tag.level-较大 {
  background: #fff2d8;
  color: var(--warn);
}

.tag.level-重大 {
  background: #fee7e4;
  color: var(--danger);
}

.tag.status-已销项 {
  background: #e8f5ee;
  color: var(--ok);
}

.tag.status-已解决,
.tag.status-已通过 {
  background: #e8f5ee;
  color: var(--ok);
}

.tag.status-待处理,
.tag.status-待审核 {
  background: #fff2d8;
  color: var(--warn);
}

.tag.status-整改中,
.tag.status-待复查,
.tag.status-处理中 {
  background: #eef1ff;
  color: #4453a6;
}

.tag.status-已退回 {
  background: #fee7e4;
  color: var(--danger);
}

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

textarea {
  min-height: 116px;
  resize: vertical;
}

.report-panel,
.stack-form {
  display: grid;
  gap: 14px;
}

.photo-uploader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
  align-items: stretch;
}

.photo-uploader label {
  border: 1px dashed #a9bdc4;
  border-radius: 8px;
  padding: 16px;
  background: #f8fbfb;
  place-content: center;
}

.photo-uploader strong {
  color: var(--brand);
  font-size: 18px;
}

.photo-uploader input {
  display: none;
}

.photo-uploader img {
  width: 160px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  background: #e5ecef;
  border: 1px solid var(--line);
}

.people-list {
  align-content: start;
}

.person-chip {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.person-chip span {
  color: var(--muted);
  font-size: 12px;
}

.section-toolbar {
  margin-bottom: 14px;
}

.section-toolbar select {
  max-width: 220px;
}

.hub-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f2f6f7;
}

.segment-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.segment-button.active {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 8px 20px rgba(24, 42, 48, 0.08);
}

.hub-pane {
  display: none;
}

.hub-pane.active {
  display: block;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-actions button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 750;
}

.task-actions button.primary-action {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.task-photo {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.photo-load-button {
  min-height: 86px;
  width: 100%;
  border: 1px dashed #9db4bc;
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--brand-strong);
  font-weight: 800;
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 10px;
}

.photo-pair figure {
  margin: 0;
  display: grid;
  gap: 5px;
}

.photo-pair img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #e5ecef;
}

.photo-pair .photo-load-button {
  height: 120px;
}

.photo-pair figcaption {
  color: var(--muted);
  font-size: 12px;
}

.area-block {
  padding: 12px;
}

details.area-block summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

details.area-block summary::-webkit-details-marker {
  display: none;
}

details.area-block summary::after {
  content: "展开";
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

details.area-block[open] summary {
  margin-bottom: 10px;
}

details.area-block[open] summary::after {
  content: "收起";
}

details.area-block summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.area-block h3,
.area-editor h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.area-block .people-list {
  gap: 8px;
}

.toast-host {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  z-index: 10;
}

.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-panel.locked {
  display: none;
}

.area-editor {
  display: grid;
  gap: 10px;
}

.area-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.area-edit-row button {
  min-width: 78px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 39, 45, 0.48);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 22px 64px rgba(16, 39, 45, 0.26);
}

.modal .panel-head {
  margin-bottom: 14px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.toast {
  width: min(360px, calc(100vw - 36px));
  border-radius: 8px;
  background: #10272d;
  color: #fff;
  padding: 13px 14px;
  box-shadow: var(--shadow);
  animation: rise 0.2s ease-out;
}

.toast strong {
  display: block;
  margin-bottom: 4px;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfd;
}

@keyframes rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 10px 12px 12px;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -12px 30px rgba(16, 39, 45, 0.22);
  }

  .brand {
    display: none;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .nav-item {
    justify-content: center;
    min-height: 48px;
    padding: 7px 6px;
    display: grid;
    justify-items: center;
    gap: 3px;
    text-align: center;
    font-size: 12px;
  }

  .nav-item span:last-of-type {
    display: inline;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-item .icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 13px;
  }

  .nav-item em {
    position: absolute;
    top: 4px;
    right: 16px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .operator-card {
    display: none;
  }

  .workspace {
    padding: 18px 14px 154px;
  }

  .topbar,
  .today-layout,
  .dashboard-grid,
  .settings-grid,
  .report-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar {
    margin-bottom: 12px;
  }

  .dashboard-hero,
  .profile-card {
    display: grid;
    padding: 16px;
  }

  .dashboard-hero h2,
  .profile-card h2 {
    font-size: 24px;
  }

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

  .today-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .workspace {
    padding: 14px 14px 156px;
  }

  h1 {
    font-size: 21px;
  }

  .topbar-actions {
    align-items: stretch;
  }

  .topbar {
    align-items: stretch;
  }

  .top-user {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-hero,
  .profile-card {
    margin: 0 -2px 14px;
  }

  .dashboard-hero h2,
  .profile-card h2 {
    font-size: 22px;
  }

  .today-summary {
    gap: 8px;
  }

  .summary-card {
    padding: 12px;
  }

  .summary-card strong {
    font-size: 24px;
  }

  .metrics,
  .form-grid,
  .photo-uploader,
  .photo-pair {
    grid-template-columns: 1fr;
  }

  .compact-stats-panel .metric-picker {
    display: none;
  }

  .photo-uploader img {
    width: 100%;
    height: 170px;
  }

  .quick-actions,
  .profile-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .panel-head,
  .incident-card header,
  .notice-card header,
  .task-card header,
  .safety-news-card header {
    display: grid;
  }
}
