/* Report UI supplied 2026-09-10. Scoped to reports; capture and model behavior unchanged. */
body.report-mode {
  --h5-width: 375px;
  --report-paper: #faf9f5;
  --report-orange: #ce873e;
  background: #f2f2f2 !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.report-mode .app-shell {
  width: min(100vw, 375px) !important;
  padding: 0 !important;
  background: #f4efe4 url('./assets/report/report-header-background.png?v=report-header-2') center top / 100% 180px no-repeat !important;
  box-shadow: none !important;
}
body.report-mode .topbar {
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.report-mode .topbar h1 { font-size: 18px !important; font-weight: 500 !important; color: #252525 !important; }
body.report-mode .report-back { width: 40px !important; height: 44px !important; }
body.report-mode .report-back svg { width: 22px !important; height: 22px !important; stroke-width: 1.7 !important; }
body.report-mode .report-fixed-summary {
  width: 100% !important;
  min-height: 128px !important;
  margin: 0 !important;
  padding: 8px 16px 24px !important;
  grid-template-columns: 92px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
}
body.report-mode .report-fixed-summary .report-result-visual,
body.report-mode .report-fixed-summary .viewer-panel,
body.report-mode .report-fixed-summary .canvas-wrap {
  width: 92px !important; height: 88px !important; min-height: 88px !important;
  max-height: 88px !important; margin: 0 !important;
}
body.report-mode .report-fixed-summary .canvas-wrap {
  border: 1px solid #dadada !important; border-radius: 7px !important;
  background: #fff !important; padding: 3px !important;
}
body.report-mode .report-fixed-summary .overview-diagnosis-card { gap: 5px !important; padding: 0 !important; background: transparent !important; }
body.report-mode .report-fixed-summary .overview-diagnosis-card > span { color: #888681 !important; font-size: 12px !important; font-weight: 400 !important; }
body.report-mode .report-fixed-summary .overview-diagnosis-card strong {
  display: block !important; overflow: visible !important; -webkit-line-clamp: unset !important;
  color: #242424 !important; font-size: 20px !important; font-weight: 650 !important; line-height: 1.45 !important;
  white-space: normal !important; overflow-wrap: anywhere;
}
body.report-mode .report-section.panel {
  width: 100% !important; margin: 0 !important; padding: 0 16px 40px !important;
  border: 1px solid #fff !important; border-radius: 24px 24px 0 0 !important;
  background: var(--report-paper) !important; box-shadow: none !important;
}
body.report-mode .report-tabs {
  width: calc(100% + 32px) !important; min-height: 47px !important;
  margin: 0 -16px !important; padding: 0 !important;
  background: var(--report-paper) !important; border-bottom: 1px solid #eee5d9 !important;
  box-shadow: none !important;
}
body.report-mode .report-tabs button {
  min-height: 47px !important; padding: 0 8px !important;
  font-size: 16px !important; font-weight: 400 !important; color: #8a8985 !important;
}
body.report-mode .report-tabs button.active { color: #6a4d3d !important; font-weight: 600 !important; }
body.report-mode .report-tabs button.active::after {
  width: 12px !important; height: 12px !important; bottom: -3px !important;
  background: var(--report-orange) !important; border: 0 !important; border-radius: 0 !important;
  mask: url('./assets/report/icons/sparkle.svg') center / contain no-repeat;
  -webkit-mask: url('./assets/report/icons/sparkle.svg') center / contain no-repeat;
}
body.report-mode .report-tabs button:focus-visible { outline: 2px solid #b97837 !important; outline-offset: -4px !important; }
body.report-mode .report-body { display: flex !important; flex-direction: column !important; gap: 16px !important; padding: 0 !important; margin: 0 !important; }
body.report-mode .report-section[data-active-tab="plan"] .report-body { padding-top: 0 !important; }
body.report-mode .report-ui-heading { display: flex; align-items: center; gap: 8px; margin: 12px 0 -2px; padding-top: 0; }
body.report-mode .report-ui-heading:first-child { margin-top: 24px; }
body.report-mode .report-ui-heading h2 { margin: 0; color: #262626; font-size: 17px; font-weight: 650; line-height: 25px; }
.report-ui-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #f6ecdd; }
.report-ui-icon::before { content: ""; width: 14px; height: 14px; background: #ce873e; mask: var(--report-icon) center / contain no-repeat; -webkit-mask: var(--report-icon) center / contain no-repeat; }
.report-ui-icon-book { --report-icon: url('./assets/report/icons/book.svg'); }
.report-ui-icon-tongue { --report-icon: url('./assets/report/icons/tongue.svg'); }
.report-ui-icon-care { --report-icon: url('./assets/report/icons/care.svg'); }
.report-ui-icon-food { --report-icon: url('./assets/report/icons/food.svg'); }
body.report-mode .report-ui-card { border: 0; border-radius: 12px; background: #fff; box-shadow: none; padding: 16px; }
body.report-mode .report-ui-fields { display: flex; flex-direction: column; gap: 22px; }
body.report-mode .report-ui-card p { margin: 0; color: #4d4d4b; font-size: 16px; font-weight: 400; line-height: 1.85; overflow-wrap: anywhere; white-space: pre-line; }
body.report-mode .report-ui-field h4 { margin: 0 0 7px; color: var(--report-orange); font-size: 16px; font-weight: 500; line-height: 1.5; }
body.report-mode .report-ui-dimension h3 { margin: 0 0 10px; border-left: 3px solid var(--report-orange); padding-left: 9px; color: #282827; font-size: 17px; line-height: 18px; font-weight: 650; }
body.report-mode .report-ui-label { display: table; max-width: 100%; border-radius: 5px; background: #f5f5f3; padding: 5px 12px; color: var(--report-orange); font-size: 15px; font-weight: 500; line-height: 1.65; overflow-wrap: anywhere; }
body.report-mode .report-ui-dimension .report-ui-fields { margin-top: 18px; border-top: 1px solid #f1f1ef; padding-top: 18px; }
body.report-mode .report-tip {
  position: relative !important; display: block !important; margin: 16px 0 0 !important;
  border: 0 !important; border-radius: 12px !important; background: #fff !important;
  padding: 10px 12px 10px 32px !important; color: #aaa !important;
  font-size: 11px !important; font-weight: 400 !important; line-height: 1.6 !important; box-shadow: none !important;
}
body.report-mode .report-tip::before { content: ""; position: absolute; left: 16px; top: 13px; width: 11px; height: 11px; background: #aaa; mask: url('./assets/report/icons/info.svg') center / contain no-repeat; -webkit-mask: url('./assets/report/icons/info.svg') center / contain no-repeat; }
@media (max-width: 350px) {
  body.report-mode .report-fixed-summary { gap: 12px !important; }
  body.report-mode .report-fixed-summary .overview-diagnosis-card strong { font-size: 18px !important; }
  body.report-mode .report-ui-card { padding: 14px; }
}
