.exam-request-page {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 45px #1731450b;
}
.exam-request-page .partner-modal { display: flex; flex-direction: column; }
.exam-request-page .exam-request-body { flex: none; overflow: visible; }
.exam-request-page .exam-request-footer {
  position: sticky;
  bottom: 0;
  z-index: 3;
  border-top: 1px solid var(--line);
  background: #fff;
}
.partner-choice { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); text-align: left; }
.partner-choice:hover:not(:disabled) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb,var(--brand) 10%,white); }
.partner-choice:disabled { cursor: not-allowed; opacity: .58; }
.partner-choice span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.partner-choice b { color: var(--brand); font-size: 9px; }
.partner-age-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.partner-age-fields > span { position: relative; display: block; }
.partner-age-fields input { padding-right: 48px; }
.partner-age-fields em { position: absolute; right: 10px; top: 50%; color: var(--muted); font-size: 9px; font-style: normal; transform: translateY(-50%); pointer-events: none; }
.partner-taxonomy-dialog { width: min(620px,calc(100% - 24px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 15px; color: var(--ink); box-shadow: 0 28px 80px #10253555; }
.partner-taxonomy-dialog::backdrop { background: #102535b8; backdrop-filter: blur(3px); }
.partner-taxonomy-dialog > div { display: flex; flex-direction: column; max-height: calc(100vh - 30px); }
.partner-taxonomy-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.partner-taxonomy-dialog header small { color: var(--brand); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.partner-taxonomy-dialog h3 { margin: 2px 0 0; font-size: 18px; }
.partner-taxonomy-dialog header button { width: 34px; min-height: 34px; padding: 0; border-radius: 8px; background: #edf3f5; color: var(--ink); font-size: 19px; }
.partner-taxonomy-search { display: flex; align-items: center; gap: 8px; margin: 15px 19px 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; }
.partner-taxonomy-search input { width: 100%; min-height: 42px; border: 0; outline: 0; }
.partner-taxonomy-results { min-height: 140px; padding: 5px 19px 15px; overflow: auto; }
.partner-taxonomy-results button { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 11px; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); text-align: left; }
.partner-taxonomy-results button:hover { background: color-mix(in srgb,var(--brand) 7%,white); }
.partner-taxonomy-results button span { font-size: 11px; }
.partner-taxonomy-results button b { color: var(--brand); font-size: 9px; }
.partner-taxonomy-empty { padding: 35px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.partner-taxonomy-dialog footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 19px; border-top: 1px solid var(--line); }
.partner-taxonomy-dialog footer:empty { display: none; }
.partner-taxonomy-dialog footer button { min-height: 32px; padding: 6px 10px; background: #edf3f5; color: var(--ink); font-size: 9px; }
.partner-taxonomy-dialog footer span { color: var(--muted); font-size: 9px; }
.exam-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.exam-service-grid button {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 28px #17314508;
}
.exam-service-grid button:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  transform: translateY(-1px);
  box-shadow: 0 14px 32px #17314512;
}
.exam-service-grid span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 11px; font-size: 20px; }
.exam-service-grid b, .exam-service-grid small { display: block; }
.exam-service-grid b { font-size: 13px; }
.exam-service-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.exam-service-grid em { color: var(--brand); font-size: 9px; font-style: normal; font-weight: 800; white-space: nowrap; }
.red { background: #fff0f2 !important; color: #b43a50 !important; }
.pathology-section { background: #fbfafc !important; }
.pathology-general { margin-bottom: 16px; }
.pathology-workbench { display: block; }
.lesion-map-card, .lesion-editor { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.pathology-lesion-dialog { width: min(920px,calc(100% - 24px)); max-height: calc(100vh - 30px); padding: 0; border: 0; border-radius: 15px; background: transparent; box-shadow: 0 28px 80px #10253555; }
.pathology-lesion-dialog::backdrop { background: #102535b8; backdrop-filter: blur(3px); }
.pathology-lesion-dialog .lesion-editor { max-height: calc(100vh - 30px); overflow: auto; }
.lesion-map-card > header, .lesion-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.lesion-map-card header b, .lesion-map-card header small, .lesion-editor header small { display: block; }
.lesion-map-card header b { font-size: 12px; }
.lesion-map-card header small, .lesion-editor header small { color: var(--muted); font-size: 8px; }
.lesion-editor h4 { margin: 2px 0 0; font-size: 14px; }
.lesion-header-actions { display: flex; align-items: center; gap: 7px; }
.lesion-close { width: 32px; min-height: 32px; padding: 0; background: #edf3f5; color: var(--ink); font-size: 18px; }
.animal-map { display: grid; grid-template-columns: 1.45fr .8fr .8fr 1.45fr; gap: 10px; padding: 12px; background: #f7fafb; }
.anatomy-view { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #dbe5e9; border-radius: 9px; background: #fff; }
.anatomy-view figcaption { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 8px; border-bottom: 1px solid #e3ebee; color: #425d6a; font-size: 8px; font-weight: 900; letter-spacing: .025em; line-height: 1.25; text-align: center; text-transform: uppercase; }
.anatomy-view svg { width: 100%; height: auto; display: block; cursor: crosshair; touch-action: manipulation; }
.anatomy-view:nth-child(9) { grid-column: 2; }
.anatomy-view:nth-child(10) { grid-column: 3; }
.animal-shape { fill: #fff; stroke: #738995; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.animal-shape text { fill: #6b7f89; stroke: none; text-anchor: middle; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.animal-shape .eye { fill: #526771; stroke: none; }
.lesion-marker { pointer-events: none; }
.lesion-marker circle { fill: #c83d55; stroke: #fff; stroke-width: 6; filter: drop-shadow(0 4px 6px #0005); }
.lesion-marker text { fill: #fff; text-anchor: middle; font-size: 20px; font-weight: 900; }
.map-help { margin: 0; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.lesion-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 14px; border-top: 1px solid var(--line); }
.lesion-tabs:empty::before { content: 'Nenhuma lesão marcada.'; color: var(--muted); font-size: 9px; }
.lesion-tabs button { min-height: 30px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); font-size: 8px; }
.lesion-tabs button.active { border-color: var(--brand); background: color-mix(in srgb,var(--brand) 9%,white); color: var(--brand); }
.path-danger { min-height: 31px; padding: 5px 9px; border: 1px solid #efc4ca; background: #fff4f5; color: #a83245; font-size: 9px; }
.lesion-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 15px; }
.lesion-fields label { display: grid; gap: 5px; }
.lesion-fields label > small { color: var(--muted); font-size: 8px; font-weight: 800; }
.lesion-fields label:first-child > small::after { content: ' · preenchido pelo ponto marcado; confirme antes de salvar'; color: var(--brand); font-weight: 700; }
.lesion-fields input, .lesion-fields select, .lesion-fields textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; }
.lesion-fields textarea { min-height: 78px; resize: vertical; }
.lesion-fields .wide { grid-column: 1/-1; }
.lesion-features { display: flex; flex-wrap: wrap; gap: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; }
.lesion-features legend { padding: 0 7px; color: var(--ink); font-size: 12px; font-weight: 900; }
.lesion-features label { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 11px; border: 1px solid #dbe5e9; border-radius: 8px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; line-height: 1.2; }
.lesion-features label:hover { border-color: var(--brand); background: #f7fbfc; }
.lesion-features input { flex: 0 0 18px; width: 18px; min-height: 18px; margin: 0; accent-color: var(--brand); }
.pathology-context { margin-top: 14px; padding-top: 15px; border-top: 1px solid var(--line); }
.lesion-editor-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 13px 15px; border-top: 1px solid var(--line); background: #fff; }
@media (max-width: 600px) {
  .exam-request-page { border-radius: 12px; }
  .exam-request-page .partner-modal > header { align-items: flex-start; gap: 12px; }
  .exam-service-grid { grid-template-columns: 1fr; }
  .exam-service-grid button { grid-template-columns: 44px minmax(0, 1fr); }
  .exam-service-grid span { width: 44px; height: 44px; }
  .exam-service-grid em { grid-column: 2; }
  .pathology-workbench { grid-template-columns: 1fr; }
  .lesion-fields { grid-template-columns: 1fr; }
  .lesion-fields .wide { grid-column: auto; }
  .animal-map { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 7px; }
  .anatomy-view:nth-child(9), .anatomy-view:nth-child(10) { grid-column: auto; }
}
@media (min-width: 601px) and (max-width: 1050px) { .pathology-workbench { grid-template-columns: 1fr; } }
