/* The Study District: progress reports (features/reports). The report itself (.sdr), shared by the dashboard preview and
   report.html, and the dashboard's "Share a progress report" panel (.sdr-share). Theme variables only. */
.sdr { color: var(--ink); }
.sdr h1 { margin: 0 0 6px; }
.sdr h2 { margin: 0 0 6px; font-size: 1.35rem; color: var(--accent); }
.sdr h3 { margin: 14px 0 6px; font-size: 1.02rem; }
.sdr p { margin: 0 0 10px; }
.sdr-head { padding: 0 0 12px; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.sdr-kicker { color: var(--gold-text); font-variant: small-caps; letter-spacing: .1em; font-size: .9rem; margin: 0 0 4px; }
.sdr-complete { font-weight: 600; margin: 4px 0 2px; }
.sdr-meta, .sdr-sub, .sdr-none, .sdr-foot { color: var(--muted); font-size: .92rem; }
.sdr-stale, .sdr-preview { border-left: 3px solid var(--gold); background: var(--wash); padding: 8px 12px; border-radius: 4px; font-size: .95rem; }
.sdr-sec { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; break-inside: avoid; }
.sdr-lede { margin-top: 12px; }
.sdr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 0; }
.sdr-tile { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--bg); min-width: 0; }
.sdr-tile b { display: block; font-size: 1.45rem; line-height: 1.15; color: var(--accent); font-variant-numeric: tabular-nums; }
.sdr-tile span { display: block; font-size: .85rem; color: var(--muted); }
.sdr-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sdr-bars { list-style: none; padding: 0; margin: 0; }
.sdr-bars li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 5px 0; font-size: .92rem; }
.sdr-bl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sdr-bt { height: 12px; background: var(--wash); border-radius: 6px; overflow: hidden; }
.sdr-bt i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.sdr-bars.alt .sdr-bt i { background: var(--gold); }
.sdr-bv { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.sdr-cols { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; align-items: end; margin: 8px 0 4px; }
.sdr-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.sdr-ct { width: 100%; height: 90px; display: flex; align-items: flex-end; background: var(--wash); border-radius: 4px; }
.sdr-ct i { display: block; width: 100%; background: var(--accent); border-radius: 4px; }
.sdr-cv { font-size: .75rem; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; max-width: 100%; }
.sdr-cl { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; max-width: 100%; }
.sdr-list { margin: 0; padding-left: 1.3em; }
.sdr-list li { margin: 4px 0; }
.sdr-list li b { margin-left: 8px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sdr-facts { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 6px 14px; margin: 0 0 10px; }
.sdr-facts dt { color: var(--muted); }
.sdr-facts dd { margin: 0; }
.sdr-tw { overflow-x: auto; max-width: 100%; }
.sdr-t { border-collapse: collapse; width: 100%; font-size: .93rem; }
.sdr-t caption { text-align: left; color: var(--muted); font-size: .9rem; padding: 4px 0; }
.sdr-t th, .sdr-t td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sdr-t thead th { color: var(--muted); font-weight: 600; }
.sdr-points { padding-left: 1.2em; margin: 10px 0; }
.sdr-note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; }
/* dashboard panel */
.sdr-share h3 { margin: 16px 0 4px; font-size: 1.08rem; }
.sdr-share select { font: inherit; font-size: .95rem; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); max-width: 100%; }
.sdr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.sdr-row label { display: inline-flex; gap: 6px; align-items: center; }
.sdr-msg { margin: 8px 0; padding: 8px 12px; border-radius: 6px; background: var(--wash); border-left: 3px solid var(--accent); }
.sdr-msg.warn { border-left-color: var(--gold); }
.sdr-codelist { list-style: none; padding: 0; margin: 8px 0; }
.sdr-codelist li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 8px; display: flex; flex-direction: column; gap: 4px; }
.sdr-codelist li.fresh { border-color: var(--accent); }
.sdr-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: .06em; color: var(--accent); overflow-wrap: anywhere; }
.sdr-previewbox { margin: 14px 0 0; padding: 14px; border: 2px dashed var(--line); border-radius: 10px; background: var(--bg); }
@media (max-width: 640px) {
  .sdr-g2 { grid-template-columns: minmax(0, 1fr); }
  .sdr-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sdr-facts dd { margin-bottom: 8px; }
  .sdr-bars li { grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) auto; }
  .sdr-cols { gap: 3px; }
  .sdr-sec { padding: 12px; }
  .sdr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
