.rescue-context, #rescue-context-review { min-width: 0; color: inherit; }
.rescue-context [hidden], #rescue-context-review[hidden] { display: none !important; }
.ctx-main { margin: 0; padding: .9rem 0 0; min-width: 0; border: 0; border-top: 1px solid #405554; }
.ctx-main legend { padding: 0 .65rem 0 0; font-size: .9rem; font-weight: 620; }
.ctx-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem .65rem; }
.ctx-tools button, .ctx-queue button, #rescue-context-review button {
  min-height: 44px; border: 1px solid #536867; border-radius: .45rem;
  color: #e6f5ef; background: #1c302e; padding: .45rem .8rem; font: inherit; font-size: .88rem; cursor: pointer;
}
.ctx-tools button:hover:enabled, .ctx-queue button:hover, #rescue-context-review button:hover { background: #2a4941; border-color: #9bcdb9; }
.ctx-tools button:disabled { opacity: .55; cursor: default; }
.ctx-panel, .ctx-queue:not(:empty), #rescue-context-review:not(:empty) { border-top: 1px solid #405554; margin-top: .8rem; padding-top: .8rem; }
.ctx-panel input { display: block; width: 100%; min-height: 44px; margin: .35rem 0 .55rem; background: #0f201e; color: #ecf9f2; border: 1px solid #607774; padding: .6rem .7rem; }
.ctx-panel img, .ctx-panel video { max-width: 100%; max-height: 230px; width: auto; height: auto; display: block; margin: .5rem 0; object-fit: contain; }
.ctx-panel video { background: #0a1211; }
.ctx-live-indicator { display: grid; grid-template-columns: .65rem 1fr; align-items: center; gap: .2rem .55rem; margin: .75rem 0; color: #e7fff0; }
.ctx-live-indicator::before { content: ""; width: .56rem; height: .56rem; border-radius: 50%; background: #83ecba; box-shadow: 0 0 0 .17rem #2e4d43; }
.ctx-live-indicator strong { font-size: .95rem; }
.ctx-live-indicator span { grid-column: 2; color: #c3d2cf; font-size: .88rem; line-height: 1.4; }
.ctx-live-indicator:not([hidden]) + .ctx-tools [data-ctx=stop] { border-color: #d58d83; color: #ffe5df; background: #432c2b; }
.ctx-live-indicator:not([hidden]) + .ctx-tools [data-ctx=stop]:hover { background: #5c3836; }
.ctx-panel p, .ctx-status, .ctx-queue p, #rescue-context-review p { margin: .55rem 0; color: #c3d2cf; font-size: .88rem; line-height: 1.45; }
.ctx-status:empty { display: none; }
.ctx-address, .ctx-queue span, #rescue-context-review span { overflow-wrap: anywhere; }
.ctx-queue ul, #rescue-context-review ul { list-style: none; padding: 0; margin: 0; }
.ctx-queue li, #rescue-context-review li { display: flex; align-items: center; gap: .55rem; padding-block: .25rem; }
.ctx-queue li img, #rescue-context-review li img { width: 48px; height: 36px; object-fit: contain; }
.ctx-queue li span, #rescue-context-review li span { min-width: 0; flex: 1; }
