/* Scoped patient record UI; the anatomy viewport and its layout are unchanged. */
.ne-planner-hint { color:var(--text-secondary, #94a3b8); font-size:11px; line-height:1.5; margin:12px 0 0; }
.ne-dialog { --ne-accent:#c62360; color:#233143; background:#f8fafc; width:min(1040px,96vw); max-width:96vw; height:min(920px,94dvh); max-height:94dvh; padding:0; border:1px solid #d9dee7; border-radius:18px; margin:auto; box-shadow:0 24px 90px #0008; font:14px/1.5 system-ui,sans-serif; }
.ne-dialog[open] { display:flex; flex-direction:column; }
.ne-dialog::backdrop { background:#061021c9; backdrop-filter:blur(4px); }
.ne-dialog * { box-sizing:border-box; }
.ne-header { display:flex; flex-direction:row; align-items:center; gap:24px; padding:22px 28px; background:white; border-bottom:1px solid #e0e5ed; position:static; backdrop-filter:none; -webkit-backdrop-filter:none; text-align:left; }
.ne-header img { width:190px; height:65px; object-fit:contain; }
.ne-header h1 { font-size:22px; line-height:1.2; margin:0 0 5px; color:#202633; }
.ne-header p { margin:0; color:#657187; }
.ne-close { margin-left:auto; align-self:flex-start; background:none; border:0; color:#475569; font-size:30px; cursor:pointer; min-width:40px; }
.ne-banner { padding:10px 28px; background:#fff3e8; color:#713d16; font-size:12px; display:flex; flex-direction:column; gap:3px; }
.ne-steps { display:flex; padding:12px 28px; gap:8px; border-bottom:1px solid #e0e5ed; background:white; }
.ne-steps button { flex:1; border:1px solid #d8deea; background:#f8fafc; color:#536076; padding:10px; border-radius:8px; font:inherit; font-weight:650; cursor:pointer; }
.ne-steps button[aria-current] { background:#fff0f5; border-color:var(--ne-accent); color:#a5184e; }
.ne-body { padding:22px 28px; overflow:auto; flex:1; min-height:0; overscroll-behavior:contain; }
.ne-dialog h2 { font-size:17px; color:#243144; margin:22px 0 12px; }
.ne-dialog h2:first-child { margin-top:0; }
.ne-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px 18px; }
.ne-wide { grid-column:1 / -1; }
.ne-field { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; color:#40516a; min-width:0; }
.ne-dialog input:not([type=checkbox]), .ne-dialog select, .ne-dialog textarea { width:100%; padding:10px 12px; border:1px solid #c4cfdd; border-radius:7px; color:#202d40; background:white; font:14px/1.4 system-ui,sans-serif; box-shadow:none; }
.ne-dialog textarea { resize:vertical; min-height:76px; }
.ne-dialog input[type=checkbox] { accent-color:var(--ne-accent); width:18px; height:18px; flex:none; margin:2px 0; }
.ne-dialog :focus-visible { outline:3px solid #eab5ca; outline-offset:2px; }
.ne-screening { border:1px solid #d8deea; border-radius:10px; overflow:hidden; margin:14px 0 20px; }
.ne-screening label { display:grid; grid-template-columns:1fr 225px; gap:16px; align-items:center; padding:10px 14px; background:white; border-bottom:1px solid #e8ecf2; }
.ne-screening label:last-child { border-bottom:0; }
.ne-muted, .ne-privacy { color:#5c6a7e; font-size:12px; line-height:1.55; }
.ne-privacy { border-top:1px solid #d8deea; padding-top:18px; margin-top:24px; }
.ne-lifecycle { margin-bottom:0; }
.ne-callout, .ne-reset { padding:16px; border:1px solid #e6bdd0; background:#fff4f8; border-radius:9px; }
.ne-check { display:flex; align-items:flex-start; gap:10px; margin:12px 0; color:#354257; }
.ne-risk-card { background:white; border:1px solid #d8deea; border-radius:10px; padding:5px 18px 12px; margin:14px 0; }
.ne-risk-card p { color:#546176; font-size:13px; }
.ne-actual fieldset { border:1px solid #d8deea; padding:14px 16px; border-radius:9px; margin:16px 0; background:white; }
.ne-actual legend { font-weight:650; padding:0 6px; }
.ne-footer { display:flex; justify-content:space-between; align-items:center; gap:14px; background:white; border-top:1px solid #d8deea; padding:16px 28px; }
.ne-actions { display:flex; gap:10px; align-items:center; }
.ne-button { background:white; color:#354257; padding:10px 18px; border:1px solid #c7d1e0; border-radius:8px; font:600 14px/1.4 system-ui,sans-serif; cursor:pointer; }
.ne-primary { color:white; background:linear-gradient(110deg,#cf285f,#a92262); border-color:#b7225b; }
.ne-danger { background:#a8283d; color:white; border-color:#a8283d; }
.ne-button:disabled, .ne-text-button:disabled { opacity:.5; cursor:default; }
.ne-button[hidden] { display:none; }
.ne-text-button { background:none; color:#a62352; border:0; font:600 13px/1.5 system-ui,sans-serif; padding:8px 0; cursor:pointer; }
.ne-plan-list { padding:0; list-style:none; border:1px solid #d8deea; border-radius:8px; }
.ne-plan-list li { padding:9px 12px; border-bottom:1px solid #e6ebf2; display:flex; gap:12px; justify-content:space-between; }
.ne-plan-list span { color:#607086; text-align:right; }
.ne-plan-attachment { padding:16px; background:white; border:1px solid #d8deea; border-radius:10px; margin-bottom:20px; }
.ne-plan-attachment > p { font-size:13px; }
.ne-plan-thumbnail { display:block; width:100%; height:200px; object-fit:contain; background:white; margin:10px 0; }
.ne-plan-attachment summary { padding:12px 0; cursor:pointer; }
.ne-map-error { color:#9b243e; }
.ne-plan-attachment button { min-height:44px; }
.ne-warning-list { color:#894510; background:#fff6e9; border-radius:8px; padding:12px 30px; }
.ne-reset { margin-bottom:20px; }
.ne-reset [role=alert] { color:#a8283d; }

/* The same markup powers on-screen review and native PDF/print. */
#patient-record-print-root { display:none; }
.nutramedix-record { color:#263141; font:12px/1.45 system-ui,sans-serif; text-align:left; }
.nr-page { background:#fff; padding:30px; border:1px solid #dfe3eb; margin:18px 0; }
.nr-header { display:flex; flex-direction:row; justify-content:space-between; align-items:center; gap:24px; border-bottom:3px solid #c82862; padding:0 0 14px; margin-bottom:12px; background:white; position:static; backdrop-filter:none; -webkit-backdrop-filter:none; text-align:left; }
.nr-header img { width:170px; height:58px; object-fit:contain; }
.nr-header h1 { font-size:18px; line-height:1.25; margin:0; }
.nr-header p { margin:0 0 6px; color:#647085; font-size:10px; }
.nr-patient { background:#f5f6f9; padding:8px 10px; overflow-wrap:anywhere; }
.nr-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px 20px; margin:14px 0; }
.nr-field dt { font-size:10px; color:#647085; margin-bottom:2px; }
.nr-field dd { margin:0; min-height:19px; white-space:pre-wrap; overflow-wrap:anywhere; }
.nr-notes { margin:13px 0; }
.nr-notes h3 { font-size:11px; margin:0 0 4px; font-weight:650; }
.nr-notes p { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; min-height:22px; border-bottom:1px solid #e6e9ef; padding-bottom:6px; }
.nr-page h2 { font-size:14px; margin:16px 0 8px; }
.nr-page table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:11px; margin:10px 0; }
.nr-page th, .nr-page td { text-align:left; vertical-align:top; padding:7px 8px; border:1px solid #dce1e8; overflow-wrap:anywhere; white-space:pre-wrap; }
.nr-page th { font-weight:600; background:#f5f6f9; }
.nr-page th[scope=row] { width:75%; background:white; }
.nr-page thead { display:table-header-group; }
.nr-empty { color:#727c8e; font-style:italic; }
.nr-small { font-size:10px; color:#58667c; }
.nr-warning { border-left:3px solid #c82862; background:#fff3f7; padding:9px 12px; font-size:10px; }
.nr-warning-list { font-size:10px; color:#8a491c; }
.nr-signatures { display:grid; grid-template-columns:1fr 1fr; gap:35px; margin-top:45px; font-size:10px; break-inside:avoid; }
.nr-signatures > div { padding-top:6px; border-top:1px solid #8993a2; }
.nr-signatures span { display:block; margin-top:16px; }
.nr-clinician-signature { grid-template-columns:1fr; max-width:340px; }
.nr-touch-signatures {margin-top:18px;gap:20px;}
.nr-touch-signatures > div {border:0;min-width:0;}
.nr-touch-signatures strong {display:block;}
.nr-touch-signatures p {overflow-wrap:anywhere;}
.nr-touch-signatures span {margin-top:8px;font-size:10px;overflow-wrap:anywhere;}
.nr-signature-ink {display:block;width:100%;max-width:250px;aspect-ratio:2.5;background:white;}
.nr-signature-blank {height:25px;border-bottom:1px solid #8993a2;}
.nr-signature-status {font-size:11px;color:#6b5260;}
.ne-signature-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.ne-signature-actions button {min-height:44px;}
.ne-sign-dialog {width:min(740px,96vw);height:auto;max-height:94dvh;}
.ne-sign-dialog .ne-body {padding:16px 20px;}
.ne-sign-dialog .ne-header {padding:18px 20px;}
.ne-ink-frame {margin:18px 0 6px;border:1px solid #8993a2;border-radius:8px;overflow:hidden;background:white;}
.ne-ink-frame canvas {display:block;width:100%;aspect-ratio:2.5;touch-action:none;user-select:none;-webkit-user-select:none;}
.ne-sign-dialog .ne-footer {flex-shrink:0;}
.ne-sign-dialog .ne-button {min-height:44px;}
@media screen and (max-width:650px) {
  #ne-signature-controls .nr-touch-signatures {grid-template-columns:1fr;}
  .ne-sign-dialog.ne-dialog {width:100vw;max-width:100vw;height:auto;max-height:100dvh;}
}
@media print {.ne-signature-actions,.ne-sign-dialog {display:none!important;}}
.nr-footer { border-top:1px solid #dfe3eb; margin-top:24px; padding:8px 0 0; font-size:9px; color:#718094; background:white; text-align:left; }
@media screen and (max-width:650px) {
  .ne-dialog { width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0; }
  .ne-header { padding:14px; gap:12px; }
  .ne-header img { width:115px; height:45px; }
  .ne-header h1 { font-size:17px; }
  .ne-header p { display:none; }
  .ne-banner, .ne-body, .ne-footer { padding:12px 14px; }
  .ne-steps { padding:10px 14px; gap:5px; }
  .ne-steps button { font-size:11px; padding:8px 4px; }
  .ne-grid { grid-template-columns:1fr; }
  .ne-screening label { grid-template-columns:1fr; gap:7px; }
  .ne-footer { align-items:flex-start; }
  .ne-actions { flex-wrap:wrap; justify-content:flex-end; }
  .ne-button { padding:9px 12px; font-size:12px; }
  .nr-page { padding:15px; }
  .nr-header { gap:12px; }
  .nr-header img { width:120px; }
  .nr-header h1 { font-size:15px; }
}
@media print {
  @page { size:A4; margin:14mm; }
  body.printing-patient-record { background:white!important; color:#263141!important; margin:0!important; padding:0!important; overflow:visible!important; height:auto!important; display:block!important; }
  body.printing-patient-record > :not(#patient-record-print-root) { display:none!important; }
  body.printing-patient-record #patient-record-print-root { display:block!important; }
  html.phone-layout:has(body.printing-patient-record) { height:auto!important; overflow:visible!important; }
  .ne-dialog::backdrop { display:none; }
  .nutramedix-record { font-size:9.5pt; line-height:1.4; }
  .nr-page { break-before:auto; border:0; padding:0; margin:0; }
  .nr-page:first-child { break-before:auto; }
  .nr-header, .nr-patient, .nr-field, .nr-signatures { break-inside:avoid; }
  .nr-page h2, .nr-page h3 { break-after:avoid; }
  .nr-page table { font-size:8.5pt; }
  .nr-page th, .nr-page td { padding:5px 6px; }
  .nr-page tr { break-inside:avoid; }
  .nr-page p { orphans:3; widows:3; }
  .nr-header img { width:44mm; height:15mm; }
  .nr-warning, .nr-patient, .nr-page th { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}

/* Shared approved paper layout: white, large model image, empty marketing slot. */
.nr-header { border-color:#299c79; }
.nr-map {margin:12px 0;background:white;min-height:430px;text-align:center;}
.nr-map img {width:100%;height:425px;object-fit:contain;background:white;}
.nr-map figcaption {font-size:11px;color:#596875;}
.nr-marketing {border:1px solid #d6dfdf;padding:18px;font-size:11px;color:#63716e;margin:10px 0;break-inside:avoid;}
.nr-evidence {display:grid;grid-template-columns:1fr 1fr;gap:12px;break-inside:avoid;}
.nr-evidence section {border:1px solid #d6dfdf;padding:12px;min-height:95px;}
.nr-evidence p {font-size:11px;}

/* Compact record v3: image and identity share page one; narrative is never truncated. */
.nr-overview {display:flex;align-items:flex-start;gap:18px;margin:12px 0;break-inside:avoid;}
.nr-overview .nr-map {flex:0 0 47%;min-height:0;margin:0;min-width:0;}
.nr-overview .nr-map img {height:280px;max-height:280px;width:100%;object-fit:contain;}
.nr-overview .nr-map figcaption {font-size:10px;line-height:1.3;margin-top:6px;}
.nr-overview .nr-grid {flex:1;grid-template-columns:1fr;gap:7px;margin:0;min-width:0;}
.nr-note-empty {font-size:11px;margin:6px 0;}
.nr-note-empty h3,.nr-note-empty p {display:inline;border:0;padding:0;min-height:0;}
.nr-note-empty h3::after {content:': ';}
.nr-evidence-status {font-size:10px;color:#58667c;line-height:1.35;margin:14px 0 0;}
@media screen and (max-width:650px) {
  .nr-overview {flex-direction:column;}
  .nr-overview .nr-map,.nr-overview .nr-grid {width:100%;}
  .nr-overview .nr-map img {height:240px;}
}
@media print {
  @page {size:A4;margin:12mm 12mm 16mm;}
  html:has(body.printing-patient-record),body.printing-patient-record,
  body.printing-patient-record #patient-record-print-root {height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;position:static!important;transform:none!important;}
  .nutramedix-record {font:9pt/1.3 Arial,sans-serif;color:#263141;}
  .nr-page {page-break-before:auto;break-before:auto;border:0;padding:0;margin:14px 0 0;overflow:visible;}
  .nr-page:first-child {page-break-before:auto;break-before:auto;}
  .nr-header {gap:14px;padding-bottom:7px;margin-bottom:7px;}
  .nr-header h1 {font-size:13pt;}
  .nr-header p {font-size:7pt;}
  .nr-header img {width:36mm;height:12mm;}
  .nr-patient {padding:5px 7px;font-size:8pt;}
  .nr-overview {display:flex;flex-direction:row;gap:14px;margin:9px 0;}
  .nr-overview .nr-map {width:47%;flex:0 0 47%;min-height:0;}
  .nr-overview .nr-map img {height:72mm;max-height:72mm;}
  .nr-overview .nr-grid {grid-template-columns:1fr;gap:5px;}
  .nr-grid {gap:6px 16px;margin:8px 0;}
  .nr-field dt {font-size:7.5pt;}
  .nr-field dd {font-size:9pt;min-height:0;}
  .nr-notes {margin:7px 0;}
  .nr-notes h3 {font-size:8.5pt;margin:0 0 3px;}
  .nr-notes p {min-height:0;padding-bottom:4px;}
  .nr-note-empty {margin:5px 0;font-size:8.5pt;}
  .nr-note-empty p {padding:0;}
  .nr-page h2 {font-size:10pt;margin:10px 0 5px;}
  .nr-page table {font-size:8pt;margin:6px 0;}
  .nr-page th,.nr-page td {padding:3px 5px;}
  .nr-small,.nr-warning,.nr-evidence-status {font-size:7.5pt;}
  .nr-warning {padding:5px 7px;margin:7px 0;}
  .nr-signatures {margin-top:24px;gap:24px;font-size:8pt;}
  .nr-signatures span {margin-top:10px;}
  .nr-evidence-status {margin-top:10px;}
  /* Fixed footer cannot spill onto a nearly empty sheet before the next section. */
  .nr-document-footer {position:fixed;left:0;right:0;bottom:-11mm;margin:0;padding:4px 0 0;font-size:6.5pt;line-height:1.2;}
}

/* The selected plan belongs beside its reviewed image in review and print. */
.nr-plan-summary {flex:1;min-width:0;}
.nr-plan-summary h2 {margin:0 0 7px;}
.nr-plan-summary .nr-plan-total {font-weight:700;margin:3px 0;color:#19715d;}
.nr-plan-summary table {margin-top:10px;font-size:11px;}
.nr-plan-summary td {white-space:pre-line;overflow-wrap:anywhere;}
@media screen and (max-width:650px) {.nr-plan-summary {width:100%;}}
@media print {.nr-plan-summary table {font-size:8.5pt;} .nr-plan-summary h2 {font-size:10.5pt;}}

/* Local patient photo editor, sized to the usable phone viewport. */
.ne-photo-dialog {width:min(840px,96vw);height:94dvh;}
.ne-photo-dialog .ne-header {padding:14px 20px;}
.ne-photo-dialog .ne-body {padding:14px 20px;}
.ne-photo-dialog .ne-body>p {font-size:13px;margin:8px 0 12px;}
.ne-photo-dialog .ne-footer {flex-shrink:0;}
.ne-photo-actions {display:flex;gap:10px;flex-wrap:wrap;}
.ne-photo-dialog button,.ne-photo-dialog select {min-height:44px;}
.ne-photo-stage {position:relative;width:min(100%,calc(48dvh * var(--photo-ratio,1)));margin:14px auto;background:#e9edf0;overflow:hidden;isolation:isolate;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;}
.ne-photo-stage[hidden],.ne-photo-options[hidden],#ne-photo-select-wrap[hidden],#ne-photo-review-wrap[hidden] {display:none;}
.ne-photo-content>img {display:block;width:100%;height:100%;pointer-events:none;}
.ne-photo-content {position:absolute;inset:0;transform-origin:0 0;pointer-events:none;will-change:transform;}
.ne-photo-zoom {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;}
.ne-photo-zoom[hidden] {display:none;}
.ne-photo-zoom button {min-width:44px;padding:8px 12px;}
.ne-photo-zoom output {min-width:48px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums;}
.ne-photo-zoom .ne-photo-fit {margin-left:auto;font-size:13px;}
.ne-photo-zoom p {flex-basis:100%;margin:0;font-size:12px;line-height:1.4;color:#52616e;}
.ne-photo-background-label {color:#52616e;text-align:center;}
.ne-photo-markers {position:absolute;inset:0;}
.ne-photo-dialog .ne-photo-marker {position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;border:2px solid white;border-radius:50%;width:36px;height:36px;min-height:36px;padding:0;color:white;background:#792bc1;font:bold 12px/1 system-ui;box-shadow:0 1px 5px #0007;touch-action:none;cursor:grab;}
.ne-photo-marker.selected {outline:3px solid #00bcd4;z-index:2;}
.ne-photo-toggles {display:grid;grid-template-columns:1fr 1fr;gap:0 12px;}
.ne-photo-options p {font-size:12px;}
@media screen and (max-width:650px){.ne-photo-dialog.ne-dialog {width:100vw;height:100dvh;max-height:100dvh;}.ne-photo-toggles{grid-template-columns:1fr;}.ne-photo-dialog .ne-body{padding:12px 16px;}.ne-photo-dialog input,.ne-photo-dialog select {font-size:16px!important;}}
@media print {.ne-photo-dialog,.ne-photo-attachment {display:none!important;}}

/* Guided three-view capture and compact record photos. */
.ne-capture-dialog {width:min(760px,96vw);height:94dvh;}
.ne-capture-preview {position:relative;background:#e9edf0;min-height:100px;border-radius:10px;overflow:hidden;text-align:center;}
.ne-capture-preview video,.ne-capture-preview>img {width:100%;max-height:42dvh;object-fit:contain;display:block;}
.ne-capture-preview [hidden],.ne-capture-review[hidden],.ne-photo-sideviews[hidden] {display:none;}
.ne-capture-placeholder {padding:36px 12px;color:#52616e;}
.ne-capture-cue {font-size:18px;font-weight:650;min-height:1.5em;}
.ne-capture-progress {font-size:14px;font-weight:650;color:#a92262;margin:8px 0;}
.ne-capture-dialog .ne-header,.ne-capture-dialog .ne-body {padding:14px 18px;}
.ne-capture-dialog .ne-footer {flex-shrink:0;}
.ne-capture-thumbnails {display:flex;gap:8px;justify-content:center;}
.ne-capture-thumbnails figure {flex:1;min-width:0;margin:12px 0;}
.ne-capture-thumbnails img {display:block;width:100%;max-height:180px;object-fit:contain;background:#e9edf0;}
.ne-plan-triptych img {height:auto;max-height:none;aspect-ratio:3/4;background:#fff;}
.ne-capture-thumbnails figcaption {font-size:12px;line-height:1.35;margin-top:6px;text-align:center;}
.ne-capture-thumbnails button {background:none;padding:0;border:2px solid transparent;border-radius:6px;width:100%;}
.ne-capture-thumbnails button[aria-pressed=true] {border-color:#c62360;}
.nr-photo-views {break-inside:avoid;page-break-inside:avoid;margin:10px 0;}
.nr-photo-views>div {display:flex;gap:14px;}
.nr-photo-views figure {margin:0;flex:1;min-width:0;}
.nr-photo-views img {width:100%;height:145pt;object-fit:contain;}
.nr-photo-views figcaption {font-size:9px;font-weight:600;margin-top:5px;}
.nr-photo-views p {font-size:8px;color:#52616e;}
@media screen and (max-width:650px){.ne-capture-dialog.ne-dialog {width:100vw;height:100dvh;max-height:100dvh;}.ne-capture-dialog .ne-footer{padding:12px;gap:10px;}.ne-capture-dialog button {min-height:44px;}.ne-capture-thumbnails figcaption {font-size:11px;}}
@media print {.ne-capture-dialog {display:none!important;}}

.ne-capture-thumbnails button {display:block;width:100%;padding:3px;border:2px solid transparent;background:transparent;border-radius:6px;}
.ne-capture-thumbnails button[aria-pressed=true] {border-color:#ad2062;}
.ne-capture-still {background:#e9edf0;}

.nr-overview-detail {flex:1;min-width:0;}
@media screen and (max-width:650px) {.nr-overview-detail {width:100%;}}
@media print {.nr-photo-views img {height:108pt;}}
.ne-capture-cue:empty,.ne-capture-progress:empty {display:none;}

@media print {
 .nr-page + .nr-page .nr-header img,.nr-page + .nr-page .nr-header p,.nr-page + .nr-page .nr-patient {display:none;}
 .nr-page + .nr-page .nr-header {break-after:avoid;padding-top:6px;}
 .nr-page + .nr-page .nr-header h1 {font-size:12pt;}
}

@media print {
 .nr-grid {gap:5px 16px;} .nr-field dt,.nr-field dd {display:inline;font-size:8.2pt;line-height:1.35;}
 .nr-field dt::after {content:': ';} .nr-field dd {margin:0;}
 .nr-overview .nr-map img {height:68mm;max-height:68mm;}
 .nr-photo-views img {height:92pt;} .nr-page p {margin-top:4px;margin-bottom:4px;}
}

/* Per-view photograph annotations and local cutout correction. */
.ne-photo-view-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0;}
.ne-photo-view-tabs .ne-button{flex:1;min-width:90px;padding:10px 6px;}
.ne-photo-view-tabs [aria-pressed=true],.ne-background-tools [aria-pressed=true]{background:#e0f2ef;border-color:#0f766e;color:#115e59;}
.ne-photo-content .ne-photo-vector-canvas,.ne-photo-content .ne-photo-brush-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.ne-photo-content .ne-photo-vector-canvas{z-index:2;}
.ne-photo-vector-handle{background:#0f766e!important;width:30px!important;height:30px!important;min-width:30px!important;font-size:16px!important;}
.ne-background-tools{margin:14px 0;padding:12px 0;border-top:1px solid #d1d5db;border-bottom:1px solid #d1d5db;}
.ne-background-tools summary{cursor:pointer;font-weight:600;min-height:32px;}
.nr-figure-grid{display:flex;gap:12px;align-items:flex-start;break-inside:avoid;}
.nr-figure-grid figure{margin:0;flex:1;min-width:0;}
.nr-figure-grid img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:contain;background:#fff;}
.nr-figure-grid figcaption{font-size:11px;font-weight:600;}
@media print{.nr-figure-grid img{width:120pt;max-width:100%;height:auto;margin-inline:auto;}}
