/* Complementos mobile-first sem mudar os arquivos clínicos ou o PDF. */
.quick-preview{font-size:.9rem;margin:8px 0;color:#17474b;overflow-wrap:anywhere}.custom-text summary{cursor:pointer;min-height:44px;display:flex;align-items:center;text-decoration:underline;text-underline-offset:3px;color:#566969;font-size:.85rem}.custom-text[open] summary{font-weight:700}.custom-text[open] input,.custom-text[open] textarea{margin-bottom:10px}
input,select,textarea{font-size:1rem;min-width:0}button,.button{min-height:44px;touch-action:manipulation}main,fieldset,.grid>*{min-width:0}button{white-space:normal;overflow-wrap:anywhere}section[id],h2[id],legend[id]{scroll-margin-top:16px}.quick-field{border-bottom:1px solid #e4e9e9;padding-bottom:12px;margin-bottom:20px}.quick-field>label{margin-bottom:10px}.quick-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.choice{color:#234548;background:#f7f9f9;border:1px solid #b4c4c4;border-radius:22px;padding:10px 14px;font-weight:500;line-height:1.3}.choice[aria-pressed="true"]{background:#17474b;color:#fff;border-color:#17474b;box-shadow:inset 0 0 0 1px #fff}.choice[aria-pressed="true"]::before{content:'✓ ';font-weight:700}.choice:hover{background:#dce9e9;color:#17474b}.choice[aria-pressed="true"]:hover{background:#245e62;color:white}.quick-field .hint{margin:7px 0 0;font-size:.8rem}.amsel-field{margin-bottom:22px}.amsel-field legend{font-size:1rem;margin:0 0 10px}.radio-buttons{display:flex;flex-wrap:wrap;gap:8px}.radio-buttons label{position:relative;margin:0;display:flex;font-weight:500}.radio-buttons input{position:absolute;width:1px;height:1px;opacity:0;margin:0}.radio-buttons span{display:flex;align-items:center;min-height:44px;padding:9px 13px;border:1px solid #b4c4c4;border-radius:22px;background:#f7f9f9}.radio-buttons input:checked+span{background:#17474b;color:#fff;border-color:#17474b}.radio-buttons input:focus-visible+span{outline:3px solid #c3a27a;outline-offset:3px}.section-nav{padding:0;gap:8px;margin-bottom:22px}.section-nav a{border:1px solid #bccaca;padding:9px 14px;border-radius:8px;text-decoration:none;background:#fff;min-height:44px}.draft-save{position:sticky;bottom:0;z-index:2;background:#fff;border-top:1px solid #d8dfdf;padding:12px 0 calc(12px + env(safe-area-inset-bottom));display:flex;gap:16px;align-items:center;justify-content:space-between}.draft-save span{font-size:.85rem;color:#536263}.table-scroll td{overflow-wrap:anywhere}input[type="file"]{max-width:100%}header>img{object-fit:contain;max-height:none;background:#cfb08a}a,button{ -webkit-tap-highlight-color:transparent }@media(max-width:700px){.grid{display:block}.narrow{margin:24px auto}nav{gap:10px}nav a{min-height:44px;display:inline-flex;align-items:center}.card{padding:16px}.heading{gap:8px}.draft-save{flex-wrap:wrap}.draft-save span{width:100%}.draft-save button{width:100%}.issue>button{width:100%}.gallery{grid-template-columns:1fr 1fr;gap:10px}.gallery article{padding:8px}.gallery img{height:150px}.gallery button{width:100%;font-size:.9rem}.table-scroll table,.table-scroll tbody,.table-scroll tr,.table-scroll td{display:block}.table-scroll thead{display:none}.table-scroll tr{padding:14px 0;border-bottom:1px solid #dde3e3}.table-scroll td{padding:4px 0;border:0}.table-scroll td:first-child{font-weight:700}.table-scroll td:nth-child(2)::before{content:'Nascimento: ';font-size:.85rem}.table-scroll td a{display:inline-flex;align-items:center;min-height:44px}.section-nav{display:flex;flex-wrap:wrap;max-width:100%}}@media(prefers-reduced-motion:no-preference){.choice,.radio-buttons span{transition:background .12s ease,color .12s ease}}
/* Recorte local: controles de toque e prévia proporcional. */
[data-crop-editor] {margin:1rem 0;}
[data-crop-editor] fieldset {min-width:0;padding:0.6rem;border:1px solid #d4dddd;border-radius:8px;}
[data-crop-canvas] {display:block;width:100%;height:auto;max-height:430px;object-fit:contain;background:#eee;}
[data-crop-editor] input[type=range] {width:100%;min-height:44px;padding:0;}
[data-crop-editor] button {margin-top:0.6rem;white-space:normal;}
[data-crop-sliders][hidden] {display:none;}

.delete-link {display:inline-block;margin-left:12px;color:#9b2828;padding:10px 0;}
button.danger {background:#9b2828;color:#fff;}
