.report-card, .nutrition-report {
  --ink: #17181c;
  --muted: #64707e;
  --line: #e7e9ee;
  --green: var(--accent, #9b2242);
  --sage: var(--accent-soft, rgba(155, 34, 66, 0.08));
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  line-height: 1.45;
  padding: .9rem 1rem .6rem;
  margin-bottom: 1rem;
  background: var(--panel, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(23, 24, 28, .05));
}
.report-card h2 { font-weight: 700; margin: 0 0 .5rem; font-size: .95rem; }
.report-card p { color: var(--muted); font-size: .78rem; margin-bottom: .5rem; }
.report-range-form.report-controls { display: flex; align-items: flex-end; gap: .6rem; flex-wrap: wrap; margin: .35rem 0 .5rem; }
.report-range-field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; max-width: 100%; }
.report-range-form input, .report-range-form select {
  min-width: 0; max-width: 100%; padding: .45rem .55rem; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; font-size: .9rem; background: var(--panel, #fff); color: var(--ink);
}
.report-range-form label { font-size: .85rem; color: var(--muted); }
.report-card .button { min-height: 0; border-radius: 10px; padding: .55rem 1.1rem; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.report-card .button-primary { background: var(--accent-strong, #851d39); color: #fff; border: 0; }
.report-card .button-primary:hover { background: var(--accent, #9b2242); }
.report-card .button-secondary { border: 1px solid var(--line); color: var(--accent, #9b2242); background: var(--panel, #fff); }
.report-section { margin-block: 28px; }
.report-entries table { min-width: 1100px; }
.report-heading h1 { font-size: clamp(26px, 4vw, 38px); }
.report-weight-chart { width: 100%; max-height: 230px; color: var(--green); }
.report-card-controls button { cursor: pointer; }
.report-weight p { overflow-wrap: anywhere; }
.report-repeat-day { display: none; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  :root { color-scheme: light; --paper: white; --white: white; --ink: #111; --muted: #333; --green: #111; --line: #bbb; }
  .sidebar, .topbar, .subject-selector, .mobile-navigation, .page-footer, .skip-link, .report-card-controls { display: none !important; }
  body, .workspace, .main-content { display: block; margin: 0; padding: 0; width: auto; min-height: 0; }
  html:root, html body { background: white; color: #111; }
  #main-content.main-content { max-width: none; margin: 0; padding: 0; }
  .nutrition-report { --ink: #111; --muted: #333; --green: #111; --line: #bbb; --sage: #eee; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: 10px; }
  .nutrition-report h1 { font-size: 22px; }
  .nutrition-report h2 { font-size: 16px; break-after: avoid; }
  .nutrition-report h3 { font-size: 13px; break-after: avoid; }
  .nutrition-report .catalog-table-scroll { overflow: visible; }
  .nutrition-report table { min-width: 0; width: 100%; font-size: 10px; }
  .nutrition-report th, .nutrition-report td { padding: 3px; overflow-wrap: anywhere; }
  .nutrition-report thead { display: table-header-group; }
  .report-repeat-day { display: table-row; }
  .nutrition-report tr, .report-weight-chart { break-inside: avoid; }
  .report-weight { break-inside: avoid; }
  .report-weight-chart { max-height: 140px; }
  .nutrition-report a { color: #111; text-decoration: none; }
}

.analytics-report-card .report-controls { flex-wrap: wrap; }
.analytics-report-card h3 { font-weight: 700; margin: 0 0 .5rem; font-size: .95rem; }
