/* Facility page: one column, read-only. Uses the app's colors and buttons from app.css. */
.portal { width: 100%; max-width: 720px; margin: 0 auto; padding: calc(16px + var(--safe-top)) var(--gutter-r) calc(32px + var(--safe-bottom)) var(--gutter-l); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.portal-head { display: flex; align-items: center; gap: 12px; }
.portal-head .logo { width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: var(--brand-fg); display: grid; place-items: center; font: 700 1rem var(--font-head); flex: none; }
.portal-head .who { min-width: 0; flex: 1; }
.pin-card { max-width: 420px; width: 100%; margin: 8vh auto 0; }
.pin-input { font: 600 1.6rem var(--font-head); letter-spacing: .4em; text-align: center; }
.enroute { border-left: 4px solid var(--info); }
.enroute.arrived { border-left-color: var(--good); }
.enroute .eta { font: 700 1.6rem var(--font-head); font-variant-numeric: tabular-nums; }
.range { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; }
.range label { display: grid; gap: 4px; font-size: .8rem; color: var(--muted); font-weight: 600; min-width: 0; }
.range input { min-width: 0; }
.delivery .facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .9rem; margin: 0; }
.delivery .facts dt { color: var(--muted); }
.delivery .facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.thumb { width: 100%; padding: 0; min-height: 84px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; position: relative; }
.thumb img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }
.thumb.sig { background: #fff; }
.thumb.sig img { object-fit: contain; }
.thumb .cap { position: absolute; left: 0; right: 0; bottom: 0; font-size: .68rem; font-weight: 600; padding: 2px 4px; background: rgba(0, 0, 0, .55); color: #fff; text-align: left; }
.thumb .wait { font-size: .75rem; color: var(--muted); }
.full-img { width: 100%; border-radius: 10px; background: var(--surface-2); }
.full-img.sig { background: #fff; }
@media (max-width: 420px) { .range { grid-template-columns: 1fr 1fr; } .range button { grid-column: 1 / -1; } }
.patients { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.patients summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.patient-list { margin: 6px 0 2px; padding-left: 1.4em; display: grid; gap: 4px; font-size: .9rem; }
.patient-list li > span:first-child { font-weight: 600; margin-right: 8px; overflow-wrap: anywhere; }
.not-delivered-note { margin: 0; color: var(--bad, #b42318); }
.patient-list .pt-med { font-weight: 400; }
