textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  border: 1px solid #cfd8d1;
  background: #fff;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
}

.login-instruction {
  margin: 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f3f7f4;
  color: #526158;
  font-size: 13px;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.login-lock {
  padding: 14px;
  border-radius: 9px;
  background: #fff0df;
  color: #7e4d0c;
}

.setup-warning {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 17px;
  border: 1px solid #efc16d;
  border-radius: 11px;
  background: #fff5df;
  color: #714a0d;
}
.setup-warning a { color: #174f89; font-weight: 800; }
.status.waiting_rules, .status.queued { background: #fff0cf; color: #81550a; }

.checks-panel { margin-top: 18px; }
.sheet-panel { margin: 18px 0; }
.sheet-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.compact-sheet { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 11.5px; line-height: 1.25; }
.compact-sheet th { position: sticky; top: 0; z-index: 1; padding: 6px 8px; background: #e9eeea; color: #435148; border-bottom: 1px solid #cbd5cd; text-align: left; text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }
.compact-sheet td { max-width: 280px; padding: 5px 8px; border-bottom: 1px solid #dfe5e0; overflow: hidden; text-overflow: ellipsis; }
.compact-sheet tbody tr:last-child td { border-bottom: 0; }
.compact-sheet tbody tr:hover td { filter: brightness(.97); }
.compact-sheet .sheet-blue td { background: #e7f3ff; color: #174f84; }
.compact-sheet .sheet-red td { background: #fff0f0; color: #853636; }
.compact-sheet .sheet-divider td { padding: 7px 8px; background: #e7eae7; color: #536058; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.sheet-empty { padding: 18px !important; color: var(--muted); text-align: center; }
.wa-warning { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #fff3dc; color: #765017; font-size: 12px; }
.wa-warning code { font-size: 11px; }
.wa-connect { display: flex; align-items: center; gap: 16px; min-height: 76px; margin: 12px 0 8px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9f7; }
.wa-connect img { width: min(230px, 100%); height: auto; border-radius: 8px; background: #fff; }
.wa-connect div { display: flex; flex-direction: column; gap: 4px; }
.wa-connect small { color: var(--muted); }
.wa-reset { margin: 0 0 13px; }
.wa-group-form { margin-top: 10px; }
.minimal-page { max-width: 1080px; }
.compact-hero { padding: 25px 28px; margin-bottom: 16px; }
.compact-hero h1 { font-size: clamp(28px,4vw,42px); }
.alert-create { display: grid; grid-template-columns: 1fr 1.5fr .8fr 1.2fr auto; gap: 9px; align-items: end; padding: 13px; border-radius: 10px; background: #f4f7f4; }
.destination-phone { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alert-rule-list { display: flex; flex-direction: column; gap: 7px; margin-top: 13px; }
.rules-report-actions{display:flex;align-items:center;gap:9px;margin-top:10px}.rules-report-actions small{color:var(--muted);font-size:11px}
.alert-rule { display: grid; grid-template-columns: minmax(150px,1fr) minmax(100px,.65fr) minmax(150px,1.2fr) auto; gap: 10px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; }
.alert-rule.off { opacity: .52; }
.rule-destination,.rule-cell { display:flex; flex-direction:column; min-width:0; }
.rule-destination strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rule-destination small,.rule-cell>small { color:var(--muted); font-size:10px; font-weight:800; }
.rule-tags { display:flex; gap:4px; flex-wrap:wrap; margin-top:2px; }
.rule-tags span { padding:2px 6px; border-radius:5px; background:#e6f1ff; color:#1d5f99; font-size:11px; font-weight:800; }
.rule-tags.text-tags span { background:#e5f3e9; color:#246a45; }
.rule-tags i { color:#9aa39d; font-style:normal; }
.rule-editor>summary { cursor:pointer; padding:7px 10px; border-radius:7px; background:#edf1ed; color:#34443a; font-size:12px; font-weight:800; list-style:none; }
.rule-editor>summary::-webkit-details-marker { display:none; }
.rule-editor[open] { grid-column:1/-1; padding-top:4px; }
.rule-editor[open]>summary { width:max-content; margin-left:auto; }
.alert-edit { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:9px; padding:11px; border-radius:8px; background:#f6f8f6; }
.protected-destination,.destination-picker { grid-column:1/-1; }
.protected-destination { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border:1px dashed #bfc9c1; border-radius:8px; }
.protected-destination span { display:flex; flex-direction:column; }
.protected-destination small { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.07em; }
.field-help { color:var(--muted); font-size:10px; font-weight:400; }
.clear-field { align-self:flex-start; margin-top:1px; padding:2px 0; border:0; background:transparent; color:var(--red); font:inherit; font-size:10px; font-weight:750; cursor:pointer; }
.editor-actions { grid-column:1/-1; display:flex; justify-content:flex-end; }
.individual-rules { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:9px; }
.individual-rules>section { min-width:0; padding:10px; border:1px solid var(--line); border-radius:8px; background:#f9faf9; }
.individual-rules>section>small { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.06em; }
.editable-rule-tags { display:flex; flex-wrap:wrap; gap:5px; min-height:25px; margin:6px 0; }
.editable-rule-tags>div { display:inline-flex; align-items:center; overflow:hidden; border-radius:6px; background:#e6f1ff; color:#1d5f99; font-size:11px; font-weight:800; }
.editable-rule-tags.text-tags>div { background:#e5f3e9; color:#246a45; }
.editable-rule-tags span { padding:4px 6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.editable-rule-tags form { display:inline-flex; }
.editable-rule-tags i { color:#9aa39d; font-size:11px; font-style:normal; }
.tag-delete { padding:3px 6px; border:0; border-left:1px solid currentColor; border-radius:0; background:transparent; color:inherit; font-size:14px; cursor:pointer; }
.rule-add { display:grid; grid-template-columns:1fr auto; gap:6px; align-items:end; }
.rule-add input { min-width:0; }
.rule-add button { white-space:nowrap; }
.rule-actions { justify-content:flex-end; margin-top:6px; padding-top:7px; border-top:1px solid var(--line); }
.inline-details,.secondary-panel { margin-top: 13px; }
.inline-details summary,.secondary-panel summary { cursor: pointer; font-weight: 800; color: #405048; }
.compact-form { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; margin-top: 10px; }
.exception-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.exception-list>span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 7px; background: #fff0ef; color: var(--red); font-size: 11px; }
.exception-list form { display: inline; }
.exception-list button { padding: 1px 5px; }
.wa-connect-minimal { min-height: 58px; }
.settings-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 14px 0; }
.secondary-panel { margin-top: 18px; }
.compact-config>summary { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.compact-config>summary small { color:var(--muted); font-weight:500; }
.audit-details>summary { cursor:pointer; margin:4px 0 8px; color:#405048; font-size:12px; font-weight:800; }
.cutoff-reset { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 12px; padding:9px 11px; border:1px solid var(--line); border-radius:8px; background:#f7f9f7; }
.cutoff-reset span { display:flex; flex-direction:column; }
.cutoff-reset small { color:var(--muted); }
.audit-ok td:first-child { color:var(--green); }
.audit-fail td { background:#fff4f4; }
.audit-fail td:first-child { color:var(--red); }
button:disabled { cursor: not-allowed; opacity: .45; }
.check-legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.dot { display: inline-block; width: 9px; height: 9px; margin-left: 7px; border-radius: 50%; }
.dot.blue { background: #246eb9; }
.dot.red { background: #c84b4b; }
.checks-list { display: flex; flex-direction: column; gap: 8px; }
.check-row {
  display: grid;
  grid-template-columns: 94px 2fr 1.2fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 15px;
  border-left: 5px solid;
  border-radius: 10px;
}
.check-match { background: #eaf4ff; border-color: #246eb9; }
.check-no-match { background: #fff0f0; border-color: #c84b4b; }
.check-state { font-size: 11px; font-weight: 900; letter-spacing: .06em; }
.check-match .check-state { color: #185b9e; }
.check-no-match .check-state { color: #a53535; }
.check-patient, .check-cids, .check-rule { display: flex; flex-direction: column; min-width: 0; }
.check-row small, .check-row span { font-size: 11px; color: var(--muted); }
.check-cids strong, .check-rule strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.empty.compact { padding: 22px; box-shadow: none; }
.no-cid-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.no-cid-title h3 { margin: 0; font-size: 16px; }
.no-cid-title span { color: var(--muted); font-size: 12px; }
.access-panel { margin-top: 18px; }
.access-list { display: flex; flex-direction: column; gap: 7px; }
.access-row { display: grid; grid-template-columns: 65px 1fr 1.4fr 1.4fr; gap: 12px; align-items: center; padding: 11px 13px; border-left: 4px solid; border-radius: 8px; background: #f7f9f7; }
.access-ok { border-color: #2e7d57; }
.access-fail { border-color: #c84b4b; background: #fff4f4; }
.access-result { font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.access-ok .access-result { color: #176b46; }
.access-fail .access-result { color: #a53535; }
.access-row div { display: flex; flex-direction: column; min-width: 0; }
.access-row small { color: var(--muted); }
.access-row .ua { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

@media (max-width: 900px) {
  .check-row { grid-template-columns: 80px 1fr 1fr; }
  .check-rule { grid-column: 2 / -1; }
  .alert-create { grid-template-columns: 1fr 1fr; }
  .alert-rule { grid-template-columns: 1fr 1fr auto; }
  .rule-destination { grid-column:1/-1; }
  .rule-editor[open] { grid-column:1/-1; }
  .alert-edit { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .word-grid, .check-row { grid-template-columns: 1fr; }
  .check-rule { grid-column: auto; }
  .setup-warning { flex-direction: column; }
  .access-row { grid-template-columns: 55px 1fr; }
  .access-row div:nth-child(n+3) { grid-column: 2; }
  .wa-connect { flex-direction: column; align-items: flex-start; }
  .alert-create,.alert-edit,.compact-form,.destination-phone,.alert-rule,.individual-rules { grid-template-columns: 1fr; }
  .rule-destination,.rule-editor[open],.protected-destination,.destination-picker,.editor-actions { grid-column:auto; }
  .compact-config>summary { align-items:flex-start; flex-direction:column; }
  .cutoff-reset { align-items:flex-start; flex-direction:column; }
}
.cid-content{min-width:210px;max-width:360px;white-space:normal;line-height:1.25}
.match-targets{min-width:220px;white-space:pre-line;line-height:1.35}
.triage-color{display:inline-flex;min-width:58px;justify-content:center;padding:3px 7px;border:1px solid transparent;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.triage-red{background:#ffdede;color:#8a2020;border-color:#eeaaaa}
.triage-yellow{background:#fff2b8;color:#765500;border-color:#e6cb5c}
.triage-green{background:#dff3e6;color:#17633a;border-color:#9fd0af}
.action-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.top-actions{display:flex;align-items:center;gap:7px}.top-actions form{margin:0}
.report-shortcut{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 18px;padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow)}
.report-shortcut>div{display:flex;gap:8px;align-items:center}.report-shortcut small{color:var(--muted)}
.report-page{max-width:1050px}.report-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px}.report-heading h1{margin:3px 0;font-size:clamp(28px,4vw,42px);line-height:1.08}.report-heading p:not(.eyebrow){margin:7px 0 0;color:var(--muted)}
.report-actions{display:flex;align-items:center;gap:7px}.share-created{display:flex;flex-direction:column;gap:4px;margin:-5px 0 14px;padding:10px 12px;border:1px solid #9bc5aa;border-radius:8px;background:#eef8f1;font-size:11px}.share-created[hidden]{display:none}.share-created a{overflow-wrap:anywhere;color:#17633a;font-weight:800}
.report-warning{margin-bottom:16px;padding:11px 14px;border:1px solid #e7c979;border-radius:9px;background:#fff8df;color:#725315;font-size:12px}
.inpatient-list{display:flex;flex-direction:column;gap:14px}.inpatient-card{padding:18px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:var(--shadow)}
.inpatient-card>header{display:flex;justify-content:space-between;gap:16px}.inpatient-card h2{margin:2px 0;font-size:20px}.inpatient-card header p{margin:0;color:var(--muted);font-size:12px}.pending-pill{height:max-content;padding:4px 8px;border-radius:7px;background:#fff0cf;color:#81550a;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.patient-meta{display:grid;grid-template-columns:1fr 1fr 2fr;gap:8px;margin:13px 0}.patient-meta span{display:flex;flex-direction:column;padding:8px 10px;border-radius:7px;background:#f5f7f5;font-size:12px;font-weight:700}.patient-meta small{color:var(--muted);font-size:9px;letter-spacing:.05em}
.clinical-block{margin-top:8px;border:1px solid var(--line);border-radius:8px;background:#fafbfa;overflow:hidden}.clinical-title,.clinical-block>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;color:#405048;font-size:12px}.clinical-block>summary{cursor:pointer}.clinical-title time,.clinical-block>summary time,.clinical-block>summary small{color:var(--muted);font-weight:500}.ortho-block{border-left:4px solid #307452}.clinical-text{padding:10px;border-top:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere;color:#303b34;font:12px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}
.lab-lines{border-top:1px solid var(--line)}.lab-lines>div{display:grid;grid-template-columns:130px 1fr;gap:10px;padding:7px 10px;border-bottom:1px solid #e8ece8;font-size:11px}.lab-lines>div:last-child{border-bottom:0}.lab-lines time{color:var(--muted);font-weight:700}.lab-lines span{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.surgery-check{display:grid;grid-template-columns:180px 1fr;gap:10px;margin-top:8px;padding:9px 10px;border-radius:8px;background:#fff2cf;color:#704d09;font-size:12px}.surgery-check strong{text-transform:uppercase;font-size:10px;letter-spacing:.04em}
.history-summary{display:grid;grid-template-columns:110px 1fr;gap:10px;margin:8px 0;padding:9px 10px;border-radius:8px;background:#eef5f0;font-size:12px}.history-summary strong{text-transform:uppercase;font-size:10px;letter-spacing:.04em}.history-summary p{margin:0}
.movement-list{border-top:1px solid var(--line)}.movement-list>div{display:grid;grid-template-columns:minmax(170px,1fr) 1.2fr 80px;gap:10px;align-items:center;padding:7px 10px;border-bottom:1px solid #e8ece8;font-size:11px}.movement-list>div:last-child{border-bottom:0}.movement-list span{display:flex;flex-direction:column}.movement-list small{color:var(--muted)}.movement-list b{text-align:right;color:#315e45}.clinical-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.clinical-grid .clinical-text{font-size:11px}
@media(max-width:650px){.report-shortcut,.report-heading,.inpatient-card>header{align-items:flex-start;flex-direction:column}.report-shortcut>div{align-items:flex-start;flex-wrap:wrap}.patient-meta,.clinical-grid{grid-template-columns:1fr}.lab-lines>div,.movement-list>div,.history-summary{grid-template-columns:1fr}.movement-list b{text-align:left}.report-heading .primary{width:100%}}

/* Acompanhamento cirúrgico por link temporário. */
.share-topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:10px 18px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);backdrop-filter:blur(8px)}
.share-topbar h1{margin:0;font-size:17px}.share-topbar p{margin:2px 0 0;color:var(--muted);font-size:11px}.share-expiry{display:flex;flex-direction:column;text-align:right;font-size:11px}.share-expiry strong{font-size:14px;color:#315e45}
.share-page{max-width:1180px;padding-top:16px}.share-intro{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:12px}.share-intro p{margin:0;color:var(--muted);font-size:12px}
.share-list{display:flex;flex-direction:column;gap:12px}.share-card{padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow)}.share-card.has-critical{border-left:5px solid #b42318}
.share-card>header{display:flex;justify-content:space-between;gap:12px}.share-card h2{margin:2px 0;font-size:19px}.share-card header p{margin:0;color:var(--muted);font-size:11px}.critical-pill{height:max-content;padding:4px 7px;border-radius:7px;background:#ffe2df;color:#9a2018;font-size:9px;font-weight:900;text-transform:uppercase}
.care-timeline{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;margin:12px 0}.care-step{min-height:48px;padding:7px;border-radius:7px;background:#eef1ef;color:#657069;font-size:9px;font-weight:800}.care-step span{display:block;margin-top:3px;font-weight:500}.care-step.done{background:#dff2e6;color:#17633a}.care-step.current{outline:2px solid #26714d;background:#edf8f1}.care-step.alert{background:#fff0da;color:#81550a}
.share-columns{display:grid;grid-template-columns:1.05fr .95fr;gap:9px}.share-section{margin-top:8px;border:1px solid var(--line);border-radius:8px;overflow:hidden}.share-section>summary,.share-section>header{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;background:#f8faf8;color:#405048;font-size:11px;font-weight:800}.share-section>summary{cursor:pointer}.share-section small{color:var(--muted);font-weight:500}
.share-content{padding:9px 10px;border-top:1px solid var(--line);font-size:11px;line-height:1.4}.share-content.clinical{white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.share-content>article+article{margin-top:8px;padding-top:8px;border-top:1px solid #e7ebe8}
.share-labs{width:100%;border-collapse:collapse;font-size:10px}.share-labs th,.share-labs td{padding:5px 7px;border-bottom:1px solid #e7ebe8;text-align:left}.share-labs tr.attention{background:#fff5d9;color:#765500}.share-labs tr.critical{background:#ffe2df;color:#8a2020;font-weight:900}
.pacs-controls{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.pacs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:7px}.pacs-grid img{display:block;width:100%;min-height:120px;object-fit:contain;border-radius:6px;background:#111}.pacs-study{padding:7px;border:1px solid var(--line);border-radius:7px}.pacs-study p{margin:4px 0;font-size:10px}
.ai-summary{margin-top:10px;padding:10px;border:1px solid #b8d2c2;border-radius:9px;background:#f2f9f5}.ai-summary header{display:flex;justify-content:space-between;align-items:center;gap:10px}.ai-summary h3{margin:0;font-size:12px}.ai-text{margin:8px 0 0;white-space:pre-wrap;font-size:11px;line-height:1.45}
@media(max-width:760px){.share-topbar,.share-intro,.share-card>header{align-items:flex-start;flex-direction:column}.share-expiry{text-align:left}.care-timeline{grid-template-columns:repeat(2,1fr)}.share-columns{grid-template-columns:1fr}}

/* Nomes usados pelo template público. */
.share-page{width:min(1180px,calc(100% - 24px));margin:0 auto 30px}.share-topbar>div:first-child{display:flex;flex-direction:column}.share-topbar>div:first-child span{color:var(--muted);font-size:10px}.share-expiry b{font-size:14px;color:#315e45}
.share-intro h1{margin:2px 0;font-size:24px}.share-refresh{padding:7px 10px}.share-patient{margin-bottom:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow)}.share-patient.has-critical{border-left:5px solid #b42318}.share-patient-head{display:flex;justify-content:space-between;gap:12px}.share-patient h2{margin:2px 0;font-size:19px}.share-patient-head p{margin:0;color:var(--muted);font-size:11px}.share-be{font-size:10px;font-weight:900;color:#315e45}.share-location{display:flex;flex-direction:column;text-align:right;font-size:11px}.share-location b{margin-top:4px;padding:3px 6px;border-radius:6px;background:#ffe2df;color:#9a2018;font-size:9px}.share-summary{margin:9px 0;color:#34443a;font-size:11px}
.care-step i{display:inline-flex;width:15px;height:15px;align-items:center;justify-content:center;margin-right:3px;border-radius:50%;background:rgba(255,255,255,.6);font-style:normal}.share-movements>div{display:grid;grid-template-columns:1fr 1.7fr 80px;gap:8px;padding:6px 9px;border-top:1px solid #e7ebe8;font-size:10px}.share-movements>div b{text-align:right;color:#315e45}
.share-list{padding:8px 9px;border-top:1px solid var(--line);font-size:10px}.share-list>div+div{margin-top:7px;padding-top:7px;border-top:1px solid #e7ebe8}.share-list time,.share-list span,.share-list small{display:block;color:var(--muted)}.share-list p{margin:3px 0}.lab-result.attention{margin:-1px;padding:7px!important;background:#fff5d9;color:#765500}.lab-result.critical{margin:-1px;padding:7px!important;background:#ffe2df;color:#8a2020;font-weight:800}
.pacs-box{padding:8px 9px;border-top:1px solid var(--line)}.study{margin-top:7px;padding:7px;border:1px solid var(--line);border-radius:7px}.study>span{display:flex;flex-direction:column;margin-bottom:5px;font-size:10px}.study small{color:var(--muted)}.preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;margin-top:7px}.preview-item{min-width:0;margin:0;padding:5px;border-radius:6px;background:#111}.preview-item img{display:block;width:100%;height:170px;object-fit:contain;border-radius:4px;background:#111}.preview-item figcaption{display:flex;flex-direction:column;gap:3px;padding:5px 2px 1px;color:#dce6df;font-size:9px}.image-download{color:#9de0b6;font-weight:800;text-decoration:none}.preview-grid.carousel{display:block;max-width:620px;margin-inline:auto}.preview-grid.carousel .preview-item img{height:min(48vh,430px)}.preview-item[hidden]{display:none}.carousel-controls{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:6px}.carousel-controls button{padding:5px 7px}.carousel-counter{min-width:42px;text-align:center;font-size:10px}
.imaging-summary{display:flex;flex-wrap:wrap;gap:5px;padding:8px 9px;border-top:1px solid var(--line);background:#f8faf8}.imaging-summary span{padding:4px 6px;border-radius:6px;background:#e8ece9;color:#526058;font-size:9px}.imaging-summary .available{background:#e1f4e8;color:#17633a}.imaging-summary .reported{background:#e7f0ff;color:#185b9e}.imaging-summary .pending{background:#fff1d8;color:#765500}.imaging-group{padding:8px 9px;border-top:1px solid var(--line)}.imaging-group>strong{display:block;margin-bottom:5px;color:#405048;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.imaging-row{display:grid;grid-template-columns:minmax(180px,1fr) 1fr;gap:7px;padding:6px 0;border-top:1px solid #e8ece8;font-size:10px}.imaging-row>div:first-child{display:flex;flex-direction:column}.imaging-row time,.imaging-row small,.image-report time{color:var(--muted)}.image-flags{display:flex;flex-wrap:wrap;gap:4px;align-content:flex-start}.flag{display:inline-flex;width:max-content;padding:3px 5px;border-radius:5px;font-size:8px;font-weight:900;font-style:normal}.flag.requested{background:#eceffd;color:#3c4a8c}.flag.available{background:#dff3e6;color:#17633a}.flag.reported{background:#e2efff;color:#185b9e}.flag.probable{background:#fff0c9;color:#765500}.flag.missing{background:#ecefed;color:#69736d}.image-report{border-top:1px solid #e8ece8}.image-report>summary{display:flex;justify-content:space-between;gap:7px;align-items:center;padding:6px 0;cursor:pointer}.image-report>summary>span:first-child{display:flex;flex-direction:column}.image-report p{max-height:260px;margin:0 0 7px;padding:7px;overflow:auto;border-radius:6px;background:#f7f9f7;white-space:pre-wrap;font-size:10px}.pacs-confirmed{margin:0 0 7px;padding:6px 7px;border-radius:6px;background:#e1f4e8;color:#17633a;font-size:9px}.pacs-confirmed.empty{background:#ecefed;color:#69736d}
.ai-box{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin-top:9px;padding:9px 10px;border:1px solid #b8d2c2;border-radius:9px;background:#f2f9f5}.ai-box>div{display:flex;flex-direction:column}.ai-box small{color:var(--muted);font-size:9px}.ai-box pre{grid-column:1/-1;margin:0;padding:8px;border-radius:6px;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.45 system-ui,sans-serif}.preline{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){.share-patient-head{flex-direction:column}.share-location{text-align:left}.share-movements>div,.imaging-row{grid-template-columns:1fr}.share-movements>div b{text-align:left}.report-actions{width:100%;flex-wrap:wrap}}
