.photo-library, .parent-report {
  margin: 24px 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-wrap: anywhere;
}
.photo-library > p, .parent-report > p { margin: 12px 0; color: #465c6b; }
.photo-editor > p:not(.photo-status):not(.photo-error) { color: #465c6b; }
.photo-library .section-heading { flex-wrap: wrap; gap: 16px; }
.photo-list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 20px; }
.photo-list-card { padding: 20px; background: var(--background); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.photo-list-card p { margin: 10px 0 16px; }
.photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.photo-library button, .photo-editor button, .parent-report select { min-height: 44px; white-space: normal; font-size: 14px; }
.photo-editor { width: min(850px, calc(100vw - 24px)); max-width: 850px; }
.photo-editor .settings-heading { gap: 12px; align-items: flex-start; }
.photo-editor .settings-heading > div { min-width: 0; }
.photo-editor .settings-heading .icon-button { font-size: 28px; flex-shrink: 0; }
.photo-editor p, .photo-library p, .parent-report p, .photo-editor label, .parent-report label { font-size: 14px; }
.photo-editor fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.photo-editor input:not([type="checkbox"]):not([type="file"]), .photo-editor textarea, .photo-editor select, .parent-report select {
  display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 44px;
  padding: 10px; margin: 6px 0 12px; font: inherit; font-size: 16px;
  color: var(--ink); background: white; border: 1px solid #758894; border-radius: 8px;
}
.photo-editor textarea { resize: vertical; }
.photo-editor label { display: block; font-weight: 650; }
.photo-editor input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin: 0; }
.photo-consent label, .photo-editor .photo-confirm { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; min-height: 44px; }
.photo-consent { background: var(--background); border-radius: 12px; padding: 16px; margin: 18px 0; }
.photo-consent p { margin: 8px 0; }
.photo-editor .input-hint, .parent-report .input-hint { font-size: 14px; color: #465c6b; }
.photo-editor details, .parent-report details { margin: 18px 0; }
.photo-editor summary, .parent-report summary { cursor: pointer; padding: 12px 0; font-weight: 700; min-height: 44px; }
.photo-word-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.photo-word-row .text-button { justify-self: start; align-self: center; }
.photo-word-rows { margin-bottom: 18px; }
.photo-exercise-row { margin: 16px 0; padding: 16px; background: var(--background); border-radius: 12px; }
.photo-status { color: #275837; }
.photo-error { color: #932820; font-weight: 650; }
.photo-status:empty { display: none; }
.photo-delete-confirm { border: 2px solid #932820; border-radius: 10px; margin-top: 20px; padding: 16px; }
.photo-delete-confirm button { margin: 12px 12px 0 0; }
.report-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.report-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0; margin: 16px 0; }
.report-counts > div { padding: 16px; border-radius: 12px; background: var(--background); }
.report-counts dt { font-size: 14px; }
.report-counts dd { margin: 8px 0 0; font-size: 28px; font-weight: 750; }
.parent-report h3 { margin-top: 24px; }
.report-lists, .report-history, .report-due { list-style: none; padding: 0; margin: 12px 0; }
.report-history { max-height: 480px; overflow-y: auto; }
.report-history li, .report-lists li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.report-history li > div { min-width: 0; }
.report-history span { display: block; font-size: 14px; }
.report-history time { flex-shrink: 0; font-size: 14px; }
.report-due li { padding: 4px 0; }
@media (max-width: 767px) {
  .photo-library, .parent-report { padding: 16px; }
  .report-counts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .photo-word-row, .report-filters { grid-template-columns: 1fr; }
  .photo-library .button { width: 100%; }
  .report-history li, .report-lists li { flex-direction: column; gap: 4px; }
}

.overview-scopes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.overview-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.overview-card { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #ffffff; }
.overview-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.overview-card p { margin: 8px 0; font-size: 14px; }
.overview-bar { height: 8px; border-radius: 99px; background: var(--background); overflow: hidden; margin: 6px 0; }
.overview-bar span { display: block; height: 100%; background: #4f8a6b; }
.overview-levels { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
@media (max-width: 640px) { .overview-scopes .language-option { flex: 1 1 140px; } }
