/* SmartHomeFit 增强功能：报告 / 预检 / 调整弹窗 */
.shf-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.52);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.shf-modal-dialog {
  width: min(720px, 96vw);
  max-height: min(90vh, 820px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  padding: 18px 20px 16px;
}

.shf-modal-dialog h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.shf-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.shf-modal-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
}

/* 练前问卷（与初次引导同系暖色圆角风格） */
.shf-precheck-backdrop {
  background: rgba(27, 28, 42, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.shf-precheck-dialog {
  max-width: 540px;
  max-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(253, 230, 138, 0.65);
  background: linear-gradient(180deg, #fffefb 0%, #fffaf3 42%, #ffffff 100%);
  box-shadow:
    0 28px 64px rgba(27, 28, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
}

.shf-precheck-header {
  padding: 20px 22px 14px;
  border-bottom: none;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 52%, #fef9c3 100%);
  border-radius: 24px 24px 0 0;
}

.shf-precheck-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.shf-precheck-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  color: #9a3412;
  letter-spacing: -0.02em;
}

.shf-precheck-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.65);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.shf-precheck-lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #57534e;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(253, 230, 138, 0.75);
}

.shf-precheck-lead strong {
  color: #c2410c;
  font-weight: 700;
}

.shf-precheck-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  padding: 14px 18px 10px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 191, 36, 0.5) transparent;
}

.shf-precheck-form::-webkit-scrollbar {
  width: 6px;
}

.shf-precheck-form::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.45);
  border-radius: 999px;
}

.shf-precheck-section {
  margin: 0 0 12px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(254, 243, 199, 0.95);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(180, 120, 40, 0.07);
}

.shf-precheck-section:last-of-type {
  margin-bottom: 4px;
}

.shf-precheck-section-head h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: -0.01em;
}

.shf-precheck-cite {
  margin: 0 0 12px;
  padding: 6px 0 6px 10px;
  border-left: 3px solid #fbbf24;
  font-size: 11px;
  line-height: 1.5;
  color: #78716c;
}

.shf-precheck-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #44403c;
  margin-bottom: 10px;
}

.shf-precheck-checkgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 480px) {
  .shf-precheck-checkgrid {
    grid-template-columns: 1fr;
  }
}

.shf-precheck-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #334155;
  margin: 0;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid #f5f5f4;
  background: #fafaf9;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.shf-precheck-check:hover {
  border-color: #fde68a;
  background: #fffbeb;
}

.shf-precheck-check:has(input:checked) {
  border-color: #f59e0b;
  background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 100%);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.22);
  color: #1c1917;
}

.shf-precheck-check input {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #d97706;
  cursor: pointer;
}

.shf-precheck-rpe {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
}

.shf-precheck-rpe input[type="range"] {
  flex: 1;
  height: 6px;
  accent-color: #ea580c;
  cursor: pointer;
}

.shf-precheck-rpe strong {
  min-width: 1.5ch;
  font-size: 22px;
  font-weight: 800;
  color: #c2410c;
  line-height: 1;
}

.shf-precheck-rpe .muted {
  color: #a8a29e;
  font-size: 13px;
}

.shf-precheck-form select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #e7e5e4;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #1c1917;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a8a29e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.shf-precheck-form select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.22);
}

.shf-precheck-warn {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.55;
  margin-top: 4px;
}

.shf-precheck-preview {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  color: #0c4a6e;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.08);
}

.shf-precheck-preview .shf-bf-to {
  font-weight: 800;
  color: #0369a1;
}

.shf-precheck-ref {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

.shf-precheck-guidelines {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.shf-precheck-guidelines summary {
  cursor: pointer;
  font-weight: 700;
  color: #2563eb;
  padding: 2px 0;
  list-style: none;
}

.shf-precheck-guidelines summary::-webkit-details-marker {
  display: none;
}

.shf-precheck-guidelines summary::after {
  content: " ▾";
  font-size: 11px;
  color: #94a3b8;
}

.shf-precheck-guidelines[open] summary::after {
  content: " ▴";
}

.shf-precheck-guideline-list {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 10px;
}

.shf-precheck-guideline-list li {
  line-height: 1.55;
}

.shf-precheck-guideline-list strong {
  display: block;
  font-size: 12px;
  color: #1e293b;
  margin-bottom: 2px;
}

.shf-precheck-footnote {
  margin: 10px 0 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.45;
}

.shf-precheck-actions {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(254, 243, 199, 0.9);
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 247, 237, 0.92) 100%);
}

.shf-precheck-actions .btn.primary {
  width: 100%;
  margin-top: 0;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(27, 28, 42, 0.18);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.shf-precheck-actions .btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(27, 28, 42, 0.22);
}

.shf-precheck-actions .btn.primary:active {
  transform: translateY(0);
}

.shf-report-doc {
  text-align: left;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  padding: 20px 22px 18px;
  box-shadow: 0 20px 50px rgba(15, 15, 15, 0.08);
  color: #1b1c2a;
}

.shf-report-hero {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(240, 138, 75, 0.35);
}

.shf-report-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.shf-report-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.35), rgba(245, 158, 11, 0.28));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

.shf-report-action {
  margin: 0;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  line-height: 1.25;
  color: #1b1c2a;
}

.shf-report-title {
  margin: 0 0 6px;
  font-size: 17px;
}

.shf-report-meta {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

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

.shf-metric-card {
  border-radius: 16px;
  padding: 12px 12px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(234, 217, 197, 0.85);
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.shf-metric-card.is-accent {
  background: linear-gradient(145deg, rgba(255, 233, 201, 0.92), rgba(255, 255, 255, 0.88));
  border-color: rgba(246, 185, 77, 0.55);
}

.shf-metric-card.is-warn {
  background: rgba(254, 243, 199, 0.88);
  border-color: rgba(245, 158, 11, 0.4);
}

.shf-metric-label {
  font-size: 11px;
  color: #8b8f9a;
  font-weight: 600;
}

.shf-metric-value {
  font-size: 18px;
  font-weight: 800;
  color: #1b1c2a;
  line-height: 1.2;
}

.shf-metric-value small {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.shf-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
}

.shf-muted {
  color: #94a3b8;
  font-weight: 500;
}

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

.shf-report-card {
  border: 1px solid rgba(234, 217, 197, 0.75);
  border-radius: 18px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.55;
}

.shf-report-card-advice {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.88), rgba(255, 255, 255, 0.82));
  border-color: rgba(59, 130, 246, 0.22);
}

.shf-report-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.shf-report-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 185, 77, 0.22);
  font-size: 14px;
  flex-shrink: 0;
}

.shf-report-card h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1b1c2a;
}

.shf-report-dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.shf-report-dl-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.shf-report-dl div {
  min-width: 0;
}

.shf-report-dl dt {
  margin: 0 0 2px;
  font-size: 11px;
  color: #8b8f9a;
  font-weight: 600;
}

.shf-coach-tip-list {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
  display: grid;
  gap: 0.45rem;
}

.shf-coach-tip-list li {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1e293b;
}

.shf-coach-tip-plain {
  display: block;
  white-space: pre-line;
  line-height: 1.55;
  font-size: 0.92rem;
  color: #1e293b;
}

.shf-report-dl dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  word-break: break-word;
}

.shf-report-note {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.35);
  font-size: 12px;
  color: #475569;
}

.shf-advice-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #1e3a5f;
}

.shf-report-full {
  grid-column: 1 / -1;
}

.shf-report-disclaimer {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

.shf-modal-dialog .shf-report-doc {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.shf-warn {
  color: #b91c1c;
  font-weight: 700;
}

.shf-smart-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 13px;
  line-height: 1.55;
  color: #1e3a5f;
}

.shf-smart-hint.is-warn {
  background: rgba(254, 243, 199, 0.92);
  border-color: rgba(245, 158, 11, 0.45);
  color: #92400e;
}

.shf-smart-hint.is-danger {
  background: rgba(254, 226, 226, 0.92);
  border-color: rgba(239, 68, 68, 0.35);
  color: #991b1b;
}

.shf-smart-sub {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.92;
}

#shfHrTopAlert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10060;
  display: none;
  padding: 10px 16px;
  background: #b91c1c;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 16px rgba(185, 28, 28, 0.35);
}

#shfHrTopAlert.is-visible {
  display: block;
  animation: shfHrPulse 1s ease-in-out infinite;
}

@keyframes shfHrPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

#hrBox[data-alert="high"],
#hrBox[data-alert="low"] {
  animation: shfHrBoxFlash 1.2s ease-in-out infinite;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

@keyframes shfHrBoxFlash {
  0%,
  100% {
    background: rgba(254, 242, 242, 0.95);
  }
  50% {
    background: rgba(254, 202, 202, 0.98);
  }
}

.mobile-live-chip.is-hr-alert strong {
  color: #b91c1c !important;
}

.hr-safe-estimate {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.hr-safe-estimate.is-missing {
  color: #b45309;
}

.report-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.record-item-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.record-item-actions .record-btn {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .shf-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shf-report-grid {
    grid-template-columns: 1fr;
  }
  .shf-report-dl-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shf-modal-actions .btn {
    width: 100%;
  }
  .record-item {
    flex-direction: column;
    align-items: stretch;
  }
  .record-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media print {
  body * {
    visibility: hidden;
  }
  .shf-report-doc,
  .shf-report-doc * {
    visibility: visible;
  }
  .shf-report-doc {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

/* 初次使用引导 */
.shf-onboarding-backdrop {
  background: rgba(27, 28, 42, 0.55);
}
.shf-onboarding-dialog {
  max-width: 580px;
  padding: 22px 24px 20px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 237, 0.96) 100%);
  box-shadow: 0 28px 64px rgba(180, 120, 40, 0.18);
}
.shf-onboarding-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.25);
  margin-bottom: 14px;
  overflow: hidden;
}
.shf-onboarding-progress i {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #fb923c);
  transition: width 0.25s ease;
}
.shf-onboarding-title {
  color: #9a3412;
  font-size: 20px;
}
.shf-onboarding-lead {
  margin: 0 0 12px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.55;
}
.shf-onboarding-body {
  font-size: 14px;
  line-height: 1.65;
  color: #334155;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 4px;
}
.shf-onboarding-cards {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}
.shf-ob-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(253, 230, 138, 0.9);
  line-height: 1.55;
}
.shf-ob-card strong {
  display: block;
  margin-bottom: 6px;
  color: #9a3412;
  font-size: 14px;
}
.shf-ob-card p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}
.shf-onboarding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.shf-ob-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.shf-ob-field input,
.shf-ob-field textarea {
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
}
.shf-ob-full {
  grid-column: 1 / -1;
}
.shf-onboarding-tips {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #475569;
}
.shf-onboarding-tips li {
  margin: 8px 0;
}
.shf-onboarding-actions {
  margin-top: 16px;
  gap: 10px;
}
.shf-onboarding-highlight {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.9), rgba(255, 237, 213, 0.85));
  border: 1px solid rgba(251, 191, 36, 0.5);
}
.shf-onboarding-highlight strong {
  color: #b45309;
}
.shf-onboarding-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}
.shf-onboarding-table th,
.shf-onboarding-table td {
  border: 1px solid #fde68a;
  padding: 8px 10px;
  text-align: left;
}
.shf-onboarding-table th {
  background: rgba(254, 243, 199, 0.6);
  color: #92400e;
}
.shf-onboarding-note {
  margin-top: 10px;
  font-size: 13px;
  color: #b45309;
}
.shf-onboarding-actions-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.shf-onboarding-actions .btn {
  border-radius: 999px;
}

.shf-onboarding-actions .btn.secondary {
  border: 1px solid #e7e5e4;
  background: rgba(255, 255, 255, 0.92);
}

.shf-onboarding-actions .btn.primary {
  background: linear-gradient(130deg, #ffb347, #ffcc33, #ff7e5f);
  border: none;
  color: #1b1c2a;
  font-weight: 700;
  border-radius: 999px;
}

/* 训练周报 */
.shf-weekly-doc {
  background: linear-gradient(165deg, rgba(255, 252, 245, 0.98), rgba(255, 237, 213, 0.92));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 20px;
  padding: 20px;
}
.shf-weekly-hero {
  margin-bottom: 16px;
}
.shf-weekly-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.shf-weekly-metric {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}
.shf-weekly-metric span {
  display: block;
  font-size: 12px;
  color: #92400e;
  margin-bottom: 4px;
}
.shf-weekly-metric strong {
  font-size: 20px;
  color: #9a3412;
}
.shf-weekly-metric strong small {
  font-size: 12px;
  font-weight: 600;
  margin-left: 2px;
}
.shf-weekly-grid .shf-report-card {
  background: rgba(255, 255, 255, 0.78);
}
#shfWeeklyReportModal .shf-modal-dialog {
  max-width: 820px;
  background: linear-gradient(165deg, rgba(255, 252, 248, 0.98), rgba(255, 241, 220, 0.96));
  border: 1px solid rgba(251, 191, 36, 0.4);
}
@media (max-width: 720px) {
  .shf-weekly-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
