.care-page {
  font-size: 14px;
  color: #272234;
  line-height: 1.6;
}
.care-page h2,
.care-page h3,
.modal-body .care-work-heading h3 {
  color: #362b47;
}
.care-page .btn,
.modal-body [data-care-action].btn {
  font-size: 14px;
  min-height: 44px;
  white-space: normal;
}
.care-page .text-button,
.modal-body [data-care-action].text-button {
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
  text-align: left;
}
.care-page .badge,
.modal-body .care-student-header .badge {
  font-size: 12px;
  white-space: normal;
  line-height: 1.5;
}
.care-page [hidden],
.modal-body [id^='care-'] [hidden] {
  display: none !important;
}
.care-scope-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -7px 0 22px;
  color: #50327f;
  font-size: 14px;
  line-height: 1.7;
}
.care-scope-note > .icon {
  margin-top: 3px;
  width: 18px;
  height: 18px;
}
.care-filters {
  display: grid;
  grid-template-columns: 160px minmax(150px, 190px) minmax(130px, 170px) minmax(200px, 1fr);
  gap: 14px;
  align-items: end;
  margin: 0 0 24px;
}
.care-filters > label {
  min-width: 0;
  font-size: 14px;
  color: #4a3d5e;
  line-height: 1.5;
}
.care-filters input,
.care-filters select {
  width: 100%;
  min-width: 0;
  font-size: 16px;
  min-height: 46px;
  border-color: #beb3d0;
  color: #272234;
}
.care-filters .search-field {
  width: 100%;
  min-width: 0;
  background: #fff;
  padding-left: 12px;
  border-color: #beb3d0;
}
.care-filters .search-field input {
  flex: 1 1 0;
  max-width: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
}
.care-filters .search-field > .icon {
  flex-shrink: 0;
}
.care-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}
.care-stat {
  padding: 20px;
  border: 1px solid #d5cedf;
  border-radius: 10px;
  background: #fff;
  min-width: 0;
}
.care-stat > span {
  display: block;
  font-size: 14px;
  color: #51465f;
  line-height: 1.6;
}
.care-stat > strong {
  display: block;
  font-size: 32px;
  line-height: 1.3;
  color: #50327f;
  margin: 8px 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.care-stat > small {
  display: block;
  font-size: 12px;
  color: #5b526a;
  line-height: 1.6;
}
.care-stat-danger {
  border-color: #dbadb9;
  background: #fff8fa;
}
.care-stat-danger > strong {
  color: #962f4c;
}
.care-stat-warning {
  border-color: #d7c291;
  background: #fffcf4;
}
.care-stat-warning > strong {
  color: #785100;
}
.care-method-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid #d1c4e7;
  border-radius: 9px;
  background: #f3effa;
  color: #4a3d5e;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.7;
}
.care-method-note > strong {
  color: #50327f;
  font-weight: 600;
}
.care-subheading {
  font-size: 20px !important;
  line-height: 1.5;
  margin: 26px 0 15px;
}
.care-section {
  margin-bottom: 24px;
  min-width: 0;
  overflow: hidden;
  border-color: #d5cedf;
}
.care-section > .panel-head {
  gap: 16px;
  flex-wrap: wrap;
}
.care-section > .panel-head h2 {
  font-size: 20px;
  line-height: 1.5;
}
.care-section > .panel-head p {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 5px;
}
.care-note {
  font-size: 14px;
  line-height: 1.7;
  color: #5b526a;
}
.care-empty {
  text-align: center;
  padding: 32px 24px;
  color: #5b526a;
  font-size: 14px;
  line-height: 1.7;
}
.care-empty > h3 {
  font-size: 18px;
  color: #4a3d5e;
  line-height: 1.5;
  margin-bottom: 8px;
}
.care-empty > p {
  max-width: 660px;
  margin: auto;
}
.care-signal-grid,
.care-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0 20px 20px;
}
.care-signal-card,
.care-case-card {
  min-width: 0;
  border: 1px solid #d5cedf;
  background: #fdfbff;
  border-radius: 9px;
  padding: 18px;
}
.care-signal-card {
  border-color: #dfc0cc;
  background: #fffbfc;
}
.care-signal-card > .btn {
  width: 100%;
  margin-top: 16px;
}
.care-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0;
}
.care-evidence-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 1 auto;
  padding: 8px;
  border: 1px solid #d0c3e5;
  background: #f3effa;
  border-radius: 7px;
  line-height: 1.5;
  min-width: 96px;
}
.care-evidence-item > time {
  font-size: 12px;
  color: #51465f;
}
.care-evidence-item > b {
  font-size: 14px;
  font-weight: 600;
  color: #50327f;
}
.care-evidence-unknown {
  border-style: dashed;
  background: #faf9fc;
}
.care-evidence-unknown > b {
  color: #6b607a;
  font-weight: 500;
  font-size: 12px;
}
.care-case-filter {
  font-size: 12px;
  color: #5b526a;
  min-width: 200px;
}
.care-case-filter select {
  font-size: 16px;
  min-height: 44px;
  border-color: #beb3d0;
}
.care-case-card > p {
  font-size: 14px;
  color: #51465f;
}
.care-case-card > .text-button {
  margin-top: 15px;
}
.care-review-date {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  background: #f3eff9;
  border: 1px solid #d5cedf;
  border-radius: 7px;
  margin-top: 12px;
  line-height: 1.6;
}
.care-review-date > strong {
  font-size: 14px;
  color: #50327f;
}
.care-review-date > span {
  font-size: 12px;
  color: #5b526a;
}
.care-review-due {
  background: #fff9ed;
  border-color: #d7c291;
}
.care-review-due > strong {
  color: #785100;
}
.care-student-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 0 0 18px;
  border-bottom: 1px solid #d5cedf;
  color: #362b47;
}
.care-student-header > div {
  min-width: 0;
  flex: 1;
}
.care-student-header h3 {
  font-size: 24px;
  line-height: 1.4;
  color: #362b47;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
}
.care-student-header p {
  font-size: 14px;
  line-height: 1.7;
  color: #5b526a;
  margin-top: 5px;
}
.care-student-header > span {
  flex-shrink: 0;
  max-width: 150px;
}
.care-readonly-note {
  font-size: 14px;
  line-height: 1.7;
  color: #785100;
  background: #fff9ea;
  border: 1px solid #d7c291;
  border-radius: 8px;
  padding: 13px;
  margin-top: 15px;
}
.care-signal-basis {
  border: 1px solid #dfc0cc;
  border-radius: 9px;
  background: #fffafc;
  padding: 16px;
  margin-bottom: 24px;
}
.care-signal-basis > strong {
  font-size: 16px;
  color: #8d2d4e;
  line-height: 1.5;
}
.care-signal-basis > p {
  font-size: 12px;
  color: #6b3b55;
  margin-top: 6px;
}
.care-work-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin: 24px 0 18px;
}
.care-work-heading > div {
  min-width: 0;
  flex: 1;
}
.care-work-heading h3 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 7px;
}
.care-work-heading .btn {
  flex-shrink: 0;
}
.care-action-record,
.care-case-details {
  border: 1px solid #d5cedf;
  border-radius: 9px;
  margin-bottom: 15px;
  overflow: hidden;
  background: #fff;
}
.care-action-record > summary,
.care-case-details > summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 17px;
  background: #f7f3fc;
  color: #362b47;
}
.care-action-record > summary:after,
.care-case-details > summary:after {
  content: '+';
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
  color: #5b438f;
  flex-shrink: 0;
}
.care-action-record[open] > summary:after,
.care-case-details[open] > summary:after {
  content: '−';
}
.care-action-record > summary > span:first-child {
  min-width: 0;
  flex: 1;
}
.care-action-record summary strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.care-action-record summary small {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: #5b526a;
  margin-top: 5px;
}
.care-action-record summary .badge {
  max-width: 150px;
  white-space: normal;
  font-size: 12px;
  line-height: 1.5;
}
.care-action-content,
.care-case-details > div {
  padding: 18px;
}
.care-action-field {
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.8;
}
.care-action-field > strong {
  font-size: 14px;
  font-weight: 600;
  color: #4a3d5e;
}
.care-action-field > p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #51465f;
  margin-top: 5px;
}
.care-recorded-basis {
  padding: 13px;
  border: 1px solid #d5cedf;
  border-radius: 8px;
  background: #fbf8fd;
  margin: 16px 0;
}
.care-recorded-basis > strong {
  font-size: 12px;
  line-height: 1.7;
  color: #5b526a;
}
.care-protocol-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding-top: 16px;
  border-top: 1px solid #d5cedf;
}
.care-protocol-actions > span {
  font-size: 14px;
  color: #4a3d5e;
  margin-right: auto;
}
.care-comparison {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #d5cedf;
}
.care-comparison-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 9px;
}
.care-comparison-head > h4 {
  font-size: 16px;
  font-weight: 600;
  color: #362b47;
  line-height: 1.5;
  margin: 0;
}
.care-comparison-head > .badge {
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  max-width: 190px;
}
.care-observation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.care-observation {
  padding: 14px;
  border: 1px solid #d5cedf;
  border-radius: 8px;
  background: #fcfbfe;
  min-width: 0;
}
.care-observation h4 {
  font-size: 16px;
  color: #4a3d5e;
  margin: 0 0 6px;
}
.care-observation > p {
  font-size: 12px;
  color: #5b526a;
  line-height: 1.7;
}
.care-coverage {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 12px 0;
}
.care-coverage > strong {
  font-size: 14px;
  color: #4a3d5e;
  line-height: 1.6;
}
.care-coverage > span {
  font-size: 12px;
  color: #5b526a;
  line-height: 1.6;
}
.care-observation .care-evidence-item {
  min-width: 92px;
  padding: 6px;
}
.care-observation dl {
  margin: 15px 0 0;
  padding: 0;
}
.care-observation dl > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid #e1d9eb;
  padding: 9px 0;
  font-size: 12px;
  line-height: 1.7;
}
.care-observation dt {
  margin: 0;
  color: #5b526a;
  min-width: 0;
}
.care-observation dd {
  margin: 0;
  color: #362b47;
  text-align: right;
  min-width: 0;
  overflow-wrap: anywhere;
}
.care-change-summary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 16px 0;
  padding: 13px;
  background: #f0f7f3;
  border: 1px solid #bad5c7;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.7;
  color: #255b43;
}
.care-comparison-note {
  font-size: 12px;
  color: #5b526a;
  line-height: 1.8;
  margin-top: 14px;
}
.care-case-details > summary {
  font-size: 14px;
  line-height: 1.7;
  background: #faf8fc;
  align-items: center;
}
.care-case-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(200px, 2fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.care-case-form label {
  font-size: 14px;
  color: #4a3d5e;
}
.care-case-form input,
.care-case-form select,
.care-case-form textarea {
  font-size: 16px;
  width: 100%;
  min-width: 0;
  border-color: #beb3d0;
  line-height: 1.6;
}
.care-case-form .btn {
  justify-self: start;
  font-size: 14px;
  min-height: 44px;
}
.care-case-form .care-form-error {
  grid-column: 1/-1;
}
.care-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 24px;
}
.care-form-grid > label,
.care-form-grid > div > label {
  font-size: 14px;
  color: #4a3d5e;
  line-height: 1.5;
  min-width: 0;
}
.care-form-grid input,
.care-form-grid select,
.care-form-grid textarea {
  width: 100%;
  font-size: 16px;
  line-height: 1.6;
  border-color: #beb3d0;
  color: #272234;
  min-width: 0;
  min-height: 46px;
}
.care-field-hint {
  font-size: 12px;
  line-height: 1.8;
  color: #5b526a;
  margin-top: 8px;
}
.care-form-grid .care-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4a3d5e;
}
.care-checkbox > input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  flex: 0 0 18px;
  accent-color: #5b438f;
}
.care-form-error {
  font-size: 14px;
  line-height: 1.8;
  color: #9a304d;
  white-space: normal;
}
.care-form-error:not(:empty) {
  padding: 12px;
  border: 1px solid #d79db0;
  border-radius: 7px;
  background: #fff6f9;
  margin: 16px 0;
}

.care-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.care-form-actions .btn {
  font-size: 14px;
  min-height: 46px;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  line-height: 1.5;
  text-align: center;
}
#care-action-form .care-form-grid :is(input, select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
  background: var(--theme-surface, #fff);
  color: var(--ink, #272234);
  border-color: var(--line, #beb3d0);
}
#care-action-form .care-form-grid :is(label, .care-field-hint) {
  color: var(--ink, #272234);
  overflow-wrap: anywhere;
}
.care-action-student {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px;
  background: #f3effa;
  border: 1px solid #d5cedf;
  border-radius: 9px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}
.care-action-student > strong {
  font-size: 18px;
  color: #362b47;
  overflow-wrap: anywhere;
}
.care-action-student > span {
  color: #5b526a;
}
.care-topbar-notice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfc1e4;
  border-radius: 8px;
  background: #f1ebf9;
  color: #50327f;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
}
.care-topbar-notice:hover {
  border-color: #7453a4;
  background: #eae0f6;
}
.care-topbar-notice > .icon {
  width: 16px;
  height: 16px;
}
.care-topbar-notice .count {
  font-size: 12px;
  background: #5b438f;
  color: #fff;
  margin: 0;
  padding: 1px 6px;
}
.journal-table td.sticky-name > .care-student-link {
  display: block;
  width: calc(100% - 32px);
  max-width: calc(100% - 32px);
  min-width: 0;
  margin-left: 32px;
  background: none;
  border: 0;
  padding: 0;
  color: #50327f;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: #baa8d4;
  text-underline-offset: 3px;
}
@media (max-width: 1250px) {
  .care-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .care-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .care-signal-grid,
  .care-case-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .care-observation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .care-scope-note {
    font-size: 14px;
  }
  .care-filters {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }
  .care-stats {
    gap: 10px;
    margin-bottom: 20px;
  }
  .care-stat {
    padding: 15px;
    min-height: 144px;
  }
  .care-stat > strong {
    font-size: 30px;
  }
  .care-stat > span {
    font-size: 14px;
  }
  .care-section > .panel-head {
    padding: 17px 15px;
  }
  .care-section > .panel-head h2 {
    font-size: 19px;
  }
  .care-signal-grid,
  .care-case-grid {
    padding: 0 13px 15px;
    gap: 12px;
  }
  .care-signal-card,
  .care-case-card {
    padding: 15px;
  }
  .care-evidence {
    gap: 6px;
  }
  .care-evidence-item {
    min-width: 96px;
    flex: 1 1 96px;
  }
  .care-case-filter {
    width: 100%;
    min-width: 0;
  }
  .care-student-header {
    flex-direction: column;
  }
  .care-student-header h3 {
    font-size: 22px;
  }
  .care-student-header > span {
    max-width: none;
  }
  .care-work-heading {
    flex-direction: column;
    gap: 12px;
  }
  .care-work-heading > .btn {
    width: 100%;
  }
  .care-signal-basis {
    padding: 14px;
  }
  .care-action-record > summary {
    flex-wrap: wrap;
    padding: 14px;
  }
  .care-action-record > summary > span:first-child {
    flex: 1 1 calc(100% - 34px);
  }
  .care-action-record > summary > .badge {
    max-width: none;
  }
  .care-action-content,
  .care-case-details > div {
    padding: 14px;
  }
  .care-protocol-actions > span {
    width: 100%;
  }
  .care-protocol-actions > .btn {
    flex: 1;
  }
  .care-comparison-head {
    flex-wrap: wrap;
  }
  .care-comparison-head > .badge {
    max-width: none;
  }
  .care-observation {
    padding: 13px;
  }
  .care-observation dl > div {
    font-size: 12px;
  }
  .care-case-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .care-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .care-form-grid > .span-two {
    grid-column: auto;
  }

  .care-form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .care-form-actions > .btn {
    width: 100%;
  }
  .care-topbar-notice,
  .topbar-right > .care-topbar-notice {
    display: inline-flex;
    font-size: 12px;
    min-height: 38px;
    max-width: 160px;
    padding: 6px 8px;
    gap: 5px;
  }
  .care-topbar-notice > .icon {
    display: none;
  }
}
@media (max-width: 380px) {
  .care-stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .care-stat {
    min-height: 0;
  }
  .care-topbar-notice,
  .topbar-right > .care-topbar-notice {
    max-width: 132px;
  }
}

.care-print-choice {
  font-size: 14px;
  line-height: 1.6;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.care-print-choice select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  font-size: 16px;
}
.care-document-button {
  flex: 0 0 auto;
  max-width: 100%;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none;
  line-height: 1.5;
  text-align: center;
}
.care-document-button > span {
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  min-width: 0;
}
.care-document-button > .icon {
  flex: 0 0 18px;
  min-width: 18px;
}
.care-print-choice {
  margin: 18px 0;
}
@media (max-width: 600px) {
  .care-form-actions > .care-document-button {
    flex: none;
  }
  .care-document-button {
    white-space: normal;
  }
}
.care-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line, #d5cedf);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink, #272234);
}
.care-pagination > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.care-pagination .btn {
  min-height: 42px;
  white-space: nowrap;
  padding: 8px 13px;
}
.care-pagination .btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.care-pagination .care-page-number {
  min-width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.care-pagination > label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.care-pagination select {
  width: auto;
  min-height: 42px;
  font-size: 16px;
  padding: 8px 26px 8px 10px;
}
#care-passport-results[aria-busy='true'] {
  opacity: 0.7;
}
.care-signal-basis > .btn {
  margin-top: 14px;
}
.care-history-switch {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin: 24px 0;
  background: var(--theme-subtle, #f0ebf6);
  border: 1px solid var(--line, #d5cedf);
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
}
.care-history-switch > button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted, #5b526a);
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  min-height: 46px;
  cursor: pointer;
}
.care-history-switch > button.active {
  background: var(--theme-surface, #fff);
  color: var(--ink, #272234);
  box-shadow: 0 1px 5px #20152e1a;
}
.care-history-switch > button:focus-visible,
.care-signal-history-item > summary:focus-visible,
.care-history-work > summary:focus-visible {
  outline: 3px solid var(--theme-accent, #7550a0);
  outline-offset: 3px;
}
.care-history-intro {
  padding: 0 22px 16px;
  line-height: 1.7;
}
.care-signal-history-list {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.care-signal-history-item {
  border: 1px solid var(--line, #d5cedf);
  border-radius: 10px;
  background: var(--theme-surface, #fff);
  min-width: 0;
  overflow: hidden;
}
.care-signal-history-item > summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  list-style: none;
}
.care-signal-history-item > summary::-webkit-details-marker {
  display: none;
}
.care-signal-history-item > summary > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.care-signal-history-item > summary > span:first-child > strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.5;
}
.care-signal-history-item > summary small {
  font-size: 13px;
  color: var(--muted, #5b526a);
  line-height: 1.7;
}
.care-signal-history-item > summary:after {
  content: '⌄';
  font-size: 20px;
  color: var(--muted, #5b526a);
}
.care-signal-history-item[open] > summary:after {
  content: '⌃';
}
.care-signal-history-body {
  padding: 0 18px 20px;
  border-top: 1px solid var(--line, #d5cedf);
  min-width: 0;
}
.care-signal-history-body > h4 {
  margin: 20px 0 10px;
  font-size: 14px;
  line-height: 1.6;
}
.care-signal-history-body > .care-note {
  margin-top: 15px;
  line-height: 1.7;
}
.care-signal-history-body > .btn {
  margin-top: 18px;
  white-space: normal;
}
.care-history-correction {
  margin: 16px 0;
  padding: 12px 14px;
  background: var(--theme-warning-bg, #fff4d9);
  border-left: 3px solid #c28c24;
  line-height: 1.7;
  font-size: 14px;
  color: var(--ink, #272234);
}
html[data-theme='dark'] .care-history-correction {
  background: #41351e;
  color: #f4d594;
  border-left-color: #9e8556;
}
.care-history-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.care-history-work {
  margin: 10px 0;
  border: 1px solid var(--line, #d5cedf);
  border-radius: 8px;
  min-width: 0;
}
.care-history-work > summary {
  cursor: pointer;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.care-history-work > summary > small {
  font-size: 12px;
  color: var(--muted, #5b526a);
}
.care-history-work > div {
  padding: 0 14px 16px;
  min-width: 0;
}
.care-history-facts {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 8px 0 18px;
}
.care-history-facts > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  font-size: 14px;
  line-height: 1.8;
}
.care-history-facts dt {
  color: var(--muted, #5b526a);
}
.care-history-facts dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.care-history-events {
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.8;
}
.care-history-events > summary {
  cursor: pointer;
  font-weight: 600;
}
.care-history-events ol {
  padding-left: 20px;
}
.care-history-events li {
  padding: 8px 0;
}
.care-history-events li > span {
  display: block;
  color: var(--muted, #5b526a);
  overflow-wrap: anywhere;
}
.care-history-events li > p {
  margin: 5px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.care-student-signal-history {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.care-student-signal-history > .care-subheading {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  .care-history-switch {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .care-history-switch > button {
    padding: 10px 8px;
    font-size: 13px;
    line-height: 1.6;
  }
  .care-signal-history-list {
    padding: 0 12px 15px;
  }
  .care-signal-history-item > summary {
    padding: 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .care-signal-history-body {
    padding: 0 12px 15px;
  }
  .care-history-intro {
    padding: 0 14px 14px;
  }
  .care-history-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .care-history-work > div {
    padding: 0 10px 14px;
  }
}
@media (max-width: 600px) {
  .care-pagination {
    padding: 13px;
    gap: 10px;
  }
  .care-pagination > div {
    gap: 8px;
  }
  .care-pagination > label {
    width: 100%;
  }
  .care-pagination .btn {
    padding: 8px 12px;
  }
  .care-pagination .care-page-number {
    min-width: 42px;
  }
}
