/* Report timeline changes use the same draft/save model as the mini program. */
.timeline-entry-button {
  display: flex; width: 100%; margin: 0 0 26px; padding: 20px;
  align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid #dbe8fa; border-radius: 12px; background: #f7faff;
  color: #1f2a37; text-align: left; cursor: pointer;
}
.timeline-entry-button:hover { border-color: #9bc5fc; background: #eef6ff; }
.timeline-entry-button > span:first-child { display: grid; gap: 7px; }
.timeline-entry-button small { color: #2f80ed; font-size: 11px; }
.timeline-entry-button b { font-size: 17px; font-weight: 650; }
#timelineLatestDate { color: #8a94a3; font-size: 12px; }
.timeline-entry-action { display: flex; align-items: center; gap: 15px; color: #2f80ed; font-size: 13px; white-space: nowrap; }
.timeline-entry-action > span:last-child { font-size: 24px; }
.timeline-modal { z-index: 1170; padding: 24px; }
.timeline-manager {
  display: flex; width: min(680px,100%); max-height: calc(100dvh - 48px);
  padding: 28px; flex-direction: column; overflow: hidden;
  border: 1px solid #e6eaf0; border-radius: 18px; background: #fff;
  box-shadow: 0 24px 80px rgba(31,42,55,.18);
}
.timeline-manager-head { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.timeline-manager-head h2 { margin: 0 0 8px; font-size: 22px; font-weight: 650; }
.timeline-manager-head p { margin: 0; color: #8a94a3; font-size: 12px; line-height: 1.65; }
.timeline-manager-head button { min-height: 36px; padding: 0 13px; flex: 0 0 auto; font-size: 12px; }
.timeline-manager-view { display: flex; min-height: 0; flex-direction: column; }
.timeline-manager-list { min-height: 100px; max-height: 440px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.timeline-manager-item { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding: 16px; border: 1px solid #e6eaf0; border-radius: 12px; background: #f7f9fc; }
.timeline-manager-item:last-child { margin-bottom: 0; }
.timeline-manager-dot { width: 14px; height: 14px; flex: 0 0 14px; border: 4px solid #dcebff; border-radius: 50%; background: #2f80ed; }
.timeline-visit-main { display: grid; min-width: 0; padding: 0; flex: 1; gap: 7px; border: 0; background: none; text-align: left; cursor: pointer; }
.timeline-visit-main b { font-size: 14px; font-weight: 650; color: #1f2a37; }
.timeline-visit-main span { display: -webkit-box; overflow: hidden; color: #667085; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.timeline-visit-main small { color: #2f80ed; font-size: 12px; }
.timeline-visit-delete { min-height: 36px; padding: 6px; flex: 0 0 auto; border: 0; border-radius: 6px; background: none; color: #d14343; font-size: 12px; cursor: pointer; }
.timeline-visit-delete:hover { background: #fff0f0; }
.timeline-manager-empty { padding: 30px 10px; color: #98a2b3; text-align: center; }
.timeline-manager-footer { display: flex; flex: 0 0 auto; align-items: flex-end; justify-content: flex-end; gap: 12px; padding-top: 22px; }
#timelineListView > .timeline-manager-footer #addTimelineVisit { margin-right: auto; }
.timeline-manager input, .timeline-manager textarea { display: block; width: 100%; min-height: 42px; padding: 10px 13px; border: 1px solid #e6eaf0; border-radius: 10px; background: #f7f9fc; color: #1f2a37; font-size: 14px; outline: none; }
.timeline-manager input:focus, .timeline-manager textarea:focus { border-color: #80b3f5; background: #fff; box-shadow: 0 0 0 3px #eef6ff; }
.timeline-content-editor { min-height: 0; overflow-y: auto; }
.timeline-content-editor label { display: block; margin-bottom: 20px; }
.timeline-content-editor label > span { display: block; margin-bottom: 10px; color: #344054; font-size: 13px; font-weight: 600; }
.timeline-manager textarea { min-height: 180px; line-height: 1.8; resize: vertical; }
.timeline-content-count { margin-top: -12px; color: #98a2b3; font-size: 11px; text-align: right; }
.timeline-manager-hint { margin: 20px 0 0; flex: 0 0 auto; color: #98a2b3; font-size: 11px; line-height: 1.6; text-align: center; }
@media (max-height: 700px) {
  .timeline-manager { padding: 22px; }
  .timeline-manager-list { max-height: 300px; }
  .timeline-manager textarea { min-height: 130px; }
}

/* Desktop form system, aligned with the mini program's edit screens. */
#editorView {
  padding-bottom: 112px;
  min-width: 0;
}

#editorView .panel {
  padding: 24px;
  border: 1px solid var(--line, #e6eaf0);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(31, 42, 55, .035);
}

#editorView .creation-tabs {
  display: inline-grid;
  min-width: 352px;
  margin: 0 0 20px;
  padding: 5px;
  gap: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #eef2f6;
}

#editorView .creation-tabs button {
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 9px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

#editorView .creation-tabs button.active {
  color: #2f80ed;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31, 42, 55, .08);
}

#editorView .recognition-input-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

#editorView .recognition-input-grid .ai-description > span,
#editorView .recognition-field-head {
  min-height: 24px;
  margin-bottom: 10px;
  color: #1f2a37;
  font-size: 14px;
  font-weight: 600;
}

#editorView .recognition-field-head {
  display: block;
  position: relative;
}

#editorView .recognition-field-head > small {
  display: block;
  position: absolute;
  right: 0;
  top: 3px;
  max-width: calc(100% - 115px);
  color: #8a94a3;
  font-size: 11px;
  font-weight: 400;
}

#editorView .ai-description textarea,
#editorView .form-grid input,
#editorView .form-grid select,
#editorView .form-grid textarea,
#editorView .wide-field textarea,
.patient-profile-form-grid input,
.patient-profile-form-grid select {
  min-width: 0;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  background-color: #f7f9fc;
  color: #1f2a37;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition: border-color .16s, box-shadow .16s, background-color .16s;
}

#editorView input::placeholder,
#editorView textarea::placeholder,
.patient-profile-form-grid input::placeholder {
  color: #9aa3af;
}

#editorView .ai-description textarea:focus,
#editorView .form-grid input:focus,
#editorView .form-grid select:focus,
#editorView .form-grid textarea:focus,
#editorView .wide-field textarea:focus,
.patient-profile-form-grid input:focus,
.patient-profile-form-grid select:focus {
  border-color: #80b3f5;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .1);
}

#editorView .recognition-input-grid .ai-description textarea {
  height: 184px;
  min-height: 184px;
  padding: 15px 16px;
  line-height: 1.7;
  resize: vertical;
}

#editorView .single-upload-grid .drop-zone {
  min-height: 184px;
  padding: 18px;
  gap: 7px;
  border: 1.5px dashed #c9d7e8;
  border-radius: 12px;
  background: #f7f9fc;
}

#editorView .drop-zone::before {
  content: "";
  width: 34px;
  height: 34px;
  background: url("/pc/icon-upload.svg") center / contain no-repeat;
}

#editorView .drop-zone strong {
  color: #1f2a37;
  font-size: 14px;
  font-weight: 600;
}

#editorView .drop-zone span {
  margin-top: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

#editorView .drop-zone span::after {
  display: block;
  content: "支持 Ctrl / Cmd + V";
  margin-top: 2px;
  color: #8a94a3;
  font-size: 11px;
}

#editorView .upload-source.paste-target-active .drop-zone,
#editorView .drop-zone:hover,
#editorView .paste-attachment-zone.paste-target-active {
  border-color: #8cb9f3;
  background: #f4f8ff;
  box-shadow: none;
}

#editorView .upload-source:focus-visible .drop-zone,
#editorView .paste-attachment-zone:focus-visible {
  outline: 3px solid rgba(47, 128, 237, .18);
  outline-offset: 2px;
}

#editorView .recognition-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

#editorView .recognition-actions .primary-button {
  grid-column: 2;
  min-height: 44px;
  width: 100%;
}

#editorView .file-summary:empty,
#editorView .attachment-list:empty {
  display: none;
}

#editorView .editor-steps {
  position: sticky;
  top: -1px;
  z-index: 30;
  margin: 22px 0 18px;
  padding: 16px 12px;
  overflow: visible;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(31, 42, 55, .035);
  scroll-margin-top: 12px;
}

#editorView .editor-steps button {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 0 8px;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #8a94a3;
  font-size: 13px;
  font-weight: 500;
}

#editorView .editor-steps button:not(:first-child)::before {
  position: absolute;
  top: 15px;
  left: calc(-50% + 24px);
  right: calc(50% + 24px);
  height: 1px;
  background: #e6eaf0;
  content: "";
}

#editorView .editor-steps b {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  margin: 0;
  place-items: center;
  border: 1px solid #d8e0e9;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

#editorView .editor-steps button.active,
#editorView .editor-steps button:hover {
  color: #2f80ed;
}

#editorView .editor-steps button.active {
  font-weight: 650;
}

#editorView .editor-steps button.active b {
  border-color: #2f80ed;
  background: #2f80ed;
  color: #fff;
  box-shadow: 0 0 0 4px #edf4ff;
}

#editorView .editor-steps button.completed b {
  border-color: #c9dffb;
  background: #edf4ff;
  color: #2f80ed;
}

#editorView .panel-title {
  margin-bottom: 24px;
  gap: 20px;
}

#editorView .panel-title h3 {
  margin-bottom: 7px;
  color: #1f2a37;
  font-size: 17px;
  font-weight: 650;
}

#editorView .panel-title p {
  color: #8a94a3;
  font-size: 12px;
  line-height: 1.6;
}

#editorView .form-grid,
#editorView .form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 18px;
}

#editorView .form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#editorView .form-grid > *,
.patient-profile-form-grid > * {
  min-width: 0;
}

#editorView .form-grid label > span,
#editorView .wide-field > span,
#editorView .patient-birth-field > span,
.patient-profile-form-grid label > span,
.patient-birth-field > span {
  margin-bottom: 9px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

#editorView .form-grid textarea,
#editorView .wide-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}

#editorView .editor-step[data-panel="2"] .form-grid > label:has([name="keyReminders"]),
#editorView .editor-step[data-panel="2"] .form-grid > label:has([name="carePlan"]),
#editorView .editor-step[data-panel="2"] .form-grid > label:has([name="advice"]) {
  grid-column: 1 / -1;
}

#editorView .form-grid select,
#editorView .material-upload select,
.patient-profile-form-grid select {
  background-position: right 13px center;
  background-size: 14px;
}

#editorView .patient-combobox input[role="combobox"] {
  padding-right: 44px;
  background-color: #f7f9fc;
}

#editorView .patient-combobox input[aria-expanded="true"] {
  border-color: #80b3f5;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .1);
}

.patient-dropdown {
  padding: 5px;
  border-color: #e6eaf0;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(31, 42, 55, .12);
}

.patient-option {
  padding: 11px;
  border: 0;
  border-radius: 8px;
}

.patient-option:hover,
.patient-option:focus {
  background: #eef6ff;
}

.patient-option-avatar {
  border-radius: 10px;
  background: #edf4ff;
  color: #2f80ed;
}

.patient-option small {
  color: #8a94a3;
}

.patient-option-new {
  margin-top: 4px;
  border-top: 1px solid #e6eaf0;
  border-radius: 0 0 8px 8px;
  background: #f7f9fc;
}

.patient-birth-control {
  border-color: #e6eaf0;
  border-radius: 10px;
  background: #f7f9fc;
}

.patient-birth-control:focus-within {
  border-color: #80b3f5;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .1);
}

.patient-birth-date {
  min-width: 168px;
  border-left-color: #e6eaf0;
  background: #eef4fd;
}

#editorView .form-grid .patient-birth-control > input,
.patient-profile-form-grid .patient-birth-control > input {
  height: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#editorView .form-grid .patient-birth-date input,
.patient-profile-form-grid .patient-birth-date input {
  width: 168px;
  height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  color: #2f80ed;
  font-size: 12px;
  background: transparent;
  box-shadow: none;
}

.patient-birth-field .patient-age-preview {
  color: #8a94a3;
  line-height: 1.5;
}

#editorView .treatment-cards {
  gap: 18px;
}

#editorView .treatment-card {
  padding: 22px;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31, 42, 55, .02);
}

#editorView .treatment-card-head {
  margin: -4px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f5;
}

#editorView .treatment-card-head > b {
  color: #2f80ed;
  font-size: 14px;
  font-weight: 650;
}

#editorView .row-remove {
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 7px;
  color: #9aa3af;
  font-size: 12px;
}

#editorView .row-remove:hover {
  background: #fff2f2;
  color: #d05a5a;
}

#editorView .tooth-field input {
  border-radius: 10px 0 0 10px !important;
}

#editorView .tooth-select-button {
  padding: 0 11px;
  border-color: #d6e5fa;
  border-radius: 0 10px 10px 0;
  background: #eef6ff;
  color: #2f80ed;
  font-size: 12px;
  font-weight: 600;
}

#editorView .wide-field {
  margin-top: 20px;
}

#editorView .wide-field textarea {
  min-height: 82px;
}

#editorView .billing-summary {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #e6eaf0;
  border-radius: 14px;
  background: #f7f9fc;
}

#editorView .billing-summary h3 {
  font-size: 15px;
  font-weight: 650;
}

#editorView .billing-summary input {
  background-color: #fff;
}

#editorView .billing-summary input[readonly] {
  color: #2f80ed;
  font-weight: 650;
}

#editorView #billingOwed {
  margin: 18px 0 0;
  color: #6b7280;
  font-size: 13px;
}

#editorView .check-row {
  margin-top: 20px;
  gap: 9px;
  color: #6b7280;
}

#editorView input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: #2f80ed;
}

#editorView .case-group {
  margin-bottom: 24px;
}

#editorView .case-group > h4 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

#editorView .case-group > h4 small {
  background: #f0f3f7;
  color: #8a94a3;
  font-size: 11px;
}

#editorView .case-group .case-option {
  margin-bottom: 10px;
  padding: 17px 18px;
  gap: 13px;
  border-color: #e6eaf0;
  border-radius: 12px;
  background: #fff;
}

#editorView .case-option.selected {
  border-color: #b8d5fa;
  background: #f3f8ff;
}

#editorView .case-option b {
  font-size: 14px;
  font-weight: 600;
}

#editorView .case-option small {
  color: #8a94a3;
  font-size: 12px;
  line-height: 1.65;
}

#editorView .case-option.selected em {
  background: #e3efff;
  color: #2f80ed;
}

#editorView .attachment-block {
  margin-top: 26px;
  padding: 20px;
  border: 1px dashed #d5deeb;
  border-radius: 12px;
  background: #fafbfd;
}

#editorView .attachment-head {
  gap: 14px;
}

#editorView .attachment-head h4 {
  font-size: 14px;
  font-weight: 600;
}

#editorView .attachment-head p {
  color: #8a94a3;
  font-size: 11px;
  line-height: 1.65;
}

#editorView .attachment-head p::after {
  display: block;
  color: #8a94a3;
  content: "支持 Ctrl / Cmd + V";
}

#editorView .attachment-list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

#editorView .local-file-preview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  gap: 9px;
}

#editorView .attachment-item {
  border-color: #e6eaf0;
  border-radius: 10px;
  background: #fff;
}

#editorView .attachment-item figcaption {
  color: #6b7280;
  font-size: 11px;
}

#editorView .attachment-item .attachment-remove-button {
  background: rgba(31, 42, 55, .8);
}

#editorView .material-upload select {
  min-width: 110px;
  height: 40px;
  border-color: #e6eaf0;
  background-color: #fff;
  color: #6b7280;
  font-size: 12px;
}

#reportForm .submit-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width, 260px);
  z-index: 1100;
  width: auto;
  height: 80px;
  margin: 0;
  padding: 0 var(--content-gutter, 28px);
  gap: 12px;
  border: 0;
  border-top: 1px solid #e6eaf0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 -6px 24px rgba(31, 42, 55, .05);
  backdrop-filter: none;
}

#reportForm .submit-bar #formStatus {
  flex: 1;
  min-width: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

#reportForm .submit-bar button {
  min-width: 104px;
  min-height: 44px;
  flex: 0 0 auto;
  border-radius: 10px;
  font-size: 14px;
}

#reportForm .submit-bar::after {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 24px;
  background: #fff;
  content: "";
}

.modal-backdrop {
  z-index: 1150;
  overflow: auto;
  background: rgba(31, 42, 55, .4);
  backdrop-filter: blur(3px);
}

.patient-profile-modal,
.tooth-picker {
  max-height: calc(100vh - 48px);
  padding: 28px;
  overflow: auto;
  border: 1px solid rgba(230, 234, 240, .8);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(31, 42, 55, .18);
}

.patient-profile-modal {
  width: min(640px, 100%);
}

.patient-profile-modal-head {
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e6eaf0;
}

.patient-profile-modal-head h2,
.tooth-picker-head h2 {
  color: #1f2a37;
  font-size: 21px;
  font-weight: 650;
}

.patient-profile-modal-head span {
  color: #8a94a3;
  font-size: 12px;
  line-height: 1.6;
}

.patient-profile-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

.patient-profile-modal-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e6eaf0;
}

.patient-profile-modal-actions .primary-button {
  min-height: 44px;
  min-width: 144px;
}

.tooth-picker {
  width: min(730px, 100%);
}

.tooth-picker .dentition-tabs {
  padding: 5px;
  gap: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #eef2f6;
}

.tooth-picker .dentition-tabs button {
  min-height: 38px;
  color: #6b7280;
  font-size: 13px;
}

.tooth-picker .dentition-tabs button.active {
  color: #2f80ed;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31, 42, 55, .08);
}

.tooth-picker .whole-mouth {
  min-height: 40px;
  margin: 16px 0 12px;
  border-color: #e6eaf0;
  background: #f7f9fc;
  color: #6b7280;
  font-size: 13px;
}

.tooth-picker .whole-mouth.selected {
  border-color: #2f80ed;
  background: #2f80ed;
  color: #fff;
}

.tooth-quadrants {
  gap: 12px;
}

.tooth-quadrant {
  padding: 16px;
  border-color: #e6eaf0;
  border-radius: 12px;
  background: #f7f9fc;
}

.tooth-quadrant > span {
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 12px;
}

.tooth-quadrant > div {
  gap: 5px;
}

.tooth-quadrant button {
  width: 32px;
  height: 36px;
  border: 1px solid #d8e0e9;
  border-radius: 9px 9px 12px 12px;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
}

.tooth-quadrant button:hover {
  border-color: #80b3f5;
  color: #2f80ed;
}

.tooth-quadrant button.selected {
  border-color: #2f80ed;
  background: #2f80ed;
  color: #fff;
}

.tooth-picker-actions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e6eaf0;
}

.tooth-picker-actions span {
  color: #6b7280;
  line-height: 1.6;
}

.image-preview-modal {
  z-index: 1200;
  background: rgba(20, 28, 40, .86);
}

.image-preview-modal img {
  border-radius: 12px;
}

.image-preview-close {
  background: rgba(31, 42, 55, .65);
}

.recognition-blocking-mask {
  z-index: 1500;
  background: rgba(31, 42, 55, .42);
}

.recognition-blocking-dialog {
  width: min(420px, 100%);
  padding: 34px 30px 28px;
  border: 1px solid #e6eaf0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(31, 42, 55, .18);
}

.recognition-blocking-spinner {
  width: 36px;
  height: 36px;
  margin-bottom: 22px;
}

.recognition-blocking-dialog h2 {
  font-size: 21px;
}

.recognition-blocking-step {
  width: 124px;
}

.recognition-blocking-step > b {
  font-size: 13px;
}

.recognition-blocking-step > small {
  font-size: 11px;
}

@media (max-width: 1320px) {
  #editorView .treatment-card .form-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #editorView .recognition-field-head > small {
    position: static;
    max-width: 100%;
    margin-top: 4px;
    white-space: normal;
    font-size: 10px;
  }

  #editorView .recognition-input-grid .ai-description > span,
  #editorView .recognition-field-head {
    min-height: 44px;
  }

  #editorView .attachment-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #editorView .local-file-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  #editorView .panel {
    padding: 22px;
  }

  #editorView .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #editorView .recognition-input-grid,
  #editorView .recognition-actions {
    gap: 18px;
  }

  #editorView .panel-title:has(.treatment-header-actions) {
    flex-wrap: wrap;
    gap: 14px;
  }

  #editorView .attachment-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  #editorView .treatment-card {
    padding: 18px;
  }

  #editorView .attachment-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #editorView .local-file-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #reportForm .submit-bar {
    gap: 10px;
  }

  #reportForm .submit-bar #formStatus {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #editorView input,
  #editorView select,
  #editorView textarea,
  #editorView [data-paste-target] {
    transition: none;
  }
}
