.sr-shell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sr-strip {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid #d1d5db;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
.sr-level-badge {
  min-width: 5.5rem;
  padding: 0.45rem 0.7rem;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.1;
}
.sr-level-interest .sr-level-badge { background: #64748b; }
.sr-level-watch .sr-level-badge { background: #d97706; }
.sr-level-alert .sr-level-badge { background: #ea580c; }
.sr-level-severe .sr-level-badge { background: #b91c1c; }
.sr-level-interest { border-color: #cbd5e1; }
.sr-level-watch { border-color: #fbbf24; box-shadow: 0 0 0 1px #fde68a; }
.sr-level-alert { border-color: #fb923c; box-shadow: 0 0 0 1px #fdba74; }
.sr-level-severe { border-color: #ef4444; box-shadow: 0 0 0 2px #fecaca; }
.sr-strip-main { min-width: 0; }
.sr-strip-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sr-strip-meta { margin-top: 0.2rem; font-size: 11px; color: #6b7280; }
.sr-kpis { display: flex; gap: 0.5rem; }
.sr-kpi {
  min-width: 4.2rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  text-align: center;
}
.sr-kpi b { display: block; font-size: 1.05rem; color: #111827; }
.sr-kpi span { font-size: 10px; color: #6b7280; }
.sr-strip-clock { text-align: right; font-size: 11px; color: #4b5563; line-height: 1.45; }
.sr-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 0.75rem;
  align-items: stretch;
}
.sr-col {
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  max-height: min(62vh, 42rem);
  border: 1px solid #d1d5db;
  background: #fff;
  overflow: hidden;
}
.sr-col-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  color: #1f2747;
}
.sr-col-body { flex: 1; overflow: auto; padding: 0.6rem 0.7rem; }
.sr-feed-item, .sr-org-card, .sr-contact-row {
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.6rem;
  margin-bottom: 0.45rem;
  background: #fff;
}
.sr-feed-item:hover { border-color: #94a3b8; }
.sr-feed-row { display: flex; justify-content: space-between; gap: 0.4rem; font-size: 11px; color: #6b7280; }
.sr-feed-brief { margin-top: 0.2rem; font-size: 12.5px; font-weight: 600; color: #111827; }
.sr-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}
.sr-chip-new { background: #dbeafe; color: #1d4ed8; }
.sr-chip-linked { background: #dcfce7; color: #166534; }
.sr-chip-news { background: #fef3c7; color: #92400e; }
.sr-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.28rem 0.5rem;
  font-size: 11px;
  font-weight: 600;
  color: #1f2747;
  cursor: pointer;
}
.sr-btn:hover { background: #f8fafc; }
.sr-btn-primary { background: #1f2747; color: #fff; border-color: #1f2747; }
.sr-btn-primary:hover { background: #253056; }
.sr-btn-primary:disabled, .sr-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.sr-btn-danger { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.sr-muted { font-size: 12px; color: #6b7280; }
.sr-field { display: flex; flex-direction: column; gap: 0.15rem; }
.sr-field label { font-size: 10px; font-weight: 600; color: #6b7280; }
.sr-field input, .sr-field select, .sr-field textarea {
  border: 1px solid #d1d5db;
  padding: 0.28rem 0.4rem;
  font-size: 12px;
}
.sr-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.sr-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
.sr-empty { padding: 1.1rem 0.4rem; text-align: center; color: #6b7280; font-size: 13px; }
.sr-loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.4rem 0.6rem 1.6rem;
  text-align: center;
}
.sr-loading-block p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  font-weight: 600;
}
.sr-spinner {
  width: 1.65rem;
  height: 1.65rem;
  border: 2.5px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: sr-spin 0.75s linear infinite;
}
@keyframes sr-spin {
  to { transform: rotate(360deg); }
}
.sr-map-loading .sr-loading-block {
  min-height: 7rem;
}
.sr-org {
  border: 1px solid #d1d5db;
  background: #fff;
}
.sr-org-tabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid #e5e7eb; }
.sr-org-tab {
  padding: 0.45rem 0.7rem;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
}
.sr-org-tab-active { background: #fff; color: #1f2747; box-shadow: inset 0 2px 0 #253056; }
.sr-org-tree { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; padding: 0.75rem; }
.sr-control-tower {
  border: 1px solid #d1d5db;
  background: #fff;
}
.sr-tower-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}
.sr-tower-select {
  min-width: 12rem;
  font-size: 12px;
  border: 1px solid #d1d5db;
  border-radius: 2px;
  padding: 0.25rem 0.4rem;
}
.sr-tower-canvas { min-height: 26rem; padding: 0.75rem; }
.sr-tower-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}
.sr-tower-board {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.sr-tower-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.sr-tower-layer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  align-items: stretch;
}
.sr-tower-layer-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  padding: 0.45rem 0.35rem;
  border-right: 2px solid #cbd5e1;
}
.sr-tower-layer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 4.5rem;
  padding: 0.25rem;
  border: 1px dashed #e2e8f0;
  border-radius: 2px;
}
.sr-tower-layer-row.sr-tower-drop-target {
  border-color: #2563eb;
  background: #eff6ff;
}
.sr-tower-node {
  width: 10.5rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 11px;
  cursor: grab;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.sr-tower-node-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
}
.sr-tower-node-del {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.sr-tower-node-sub { color: #64748b; margin-top: 0.15rem; }
.sr-tower-node-mission {
  margin-top: 0.25rem;
  color: #475569;
  line-height: 1.35;
  min-height: 2.2em;
}
.sr-tower-node-actions { display: flex; gap: 0.2rem; margin-top: 0.3rem; }
.sr-tower-chip {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 10px;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
}
.sr-tower-node-active { border-color: #2563eb; background: #eff6ff; }
.sr-tower-node-dispatched { border-color: #16a34a; background: #f0fdf4; }
.sr-tower-node-standby { opacity: 0.82; }
.sr-tower-node-hi { box-shadow: 0 0 0 1px #93c5fd; }
.sr-tower-edge {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 1.5;
  marker-end: url(#sr-tower-arrow);
}
.sr-tower-edge-label {
  font-size: 9px;
  fill: #64748b;
  text-anchor: middle;
}
.sr-filter { display: flex; gap: 0.3rem; }
.sr-filter button[aria-pressed="true"] { background: #1f2747; color: #fff; border-color: #1f2747; }
.sr-preview {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.45;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 0.55rem;
  min-height: 6rem;
}
.sr-warn { color: #b45309; font-size: 11px; font-weight: 600; }
.sr-check { display: flex; align-items: flex-start; gap: 0.4rem; font-size: 12px; }
.sr-incident-list { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.sr-incident-pill {
  border: 1px solid #cbd5e1;
  padding: 0.15rem 0.45rem;
  font-size: 11px;
  background: #fff;
}
.sr-incident-pill-active { border-color: #1f2747; background: #1f2747; color: #fff; }
.sr-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
#sr-org-modal-host {
  position: relative;
  z-index: 10050;
}
.sr-modal {
  width: min(32rem, 100%);
  background: #fff;
  border: 1px solid #d1d5db;
  padding: 1rem;
}
.sr-modal-org {
  width: min(58rem, 96vw);
  max-height: min(92vh, 56rem);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.sr-modal-org-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex: 0 0 auto;
}
.sr-modal-org-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 0.2rem;
}
.sr-modal-org-body {
  padding: 0.75rem 1rem 1rem;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.sr-btn-ghost {
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  padding: 0.3rem 0.7rem;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sr-btn-ghost:hover { background: #f1f5f9; }
.sr-btn-org-chart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #1e3a8a;
  background: #1e3a8a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.sr-btn-org-chart:hover:not(:disabled) { background: #1e40af; }
.sr-btn-org-chart:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sr-org-btn-hint {
  margin-top: 0.3rem;
  font-size: 11px;
  line-height: 1.4;
}
.sr-org-diagram {
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0.65rem 0.55rem 0.75rem;
  isolation: isolate;
}
.sr-cmd-ladder {
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid #dbeafe;
  background: #f8fafc;
  border-radius: 6px;
}
.sr-cmd-ladder-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 0.35rem;
}
.sr-cmd-ladder-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.sr-cmd-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}
.sr-cmd-step-on {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}
.sr-cmd-step-current {
  border-color: #1e3a8a;
  background: #1e3a8a;
  color: #fff;
}
.sr-cmd-arrow { color: #94a3b8; font-weight: 700; }
.sr-cmd-ladder-note {
  margin-top: 0.35rem;
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}
.sr-flow-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}
.sr-flow-board {
  display: grid;
  grid-template-columns: minmax(9rem, 0.9fr) minmax(14rem, 1.35fr) minmax(12rem, 1.1fr);
  gap: 0.75rem 1rem;
  align-items: start;
  min-width: 42rem;
  position: relative;
  z-index: 1;
}
.sr-flow-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.sr-flow-col-left {
  padding-top: 7.5rem;
}
.sr-flow-col-right {
  padding-top: 0.15rem;
}
.sr-flow-node {
  position: relative;
  z-index: 2;
  padding: 0.45rem 0.55rem;
  border: 1.5px solid #1e3a8a;
  background: #fff;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.sr-flow-node small {
  display: block;
  margin-top: 0.15rem;
  font-size: 10px;
  font-weight: 600;
  color: #475569;
}
.sr-flow-node-safety { background: #dbeafe; }
.sr-flow-node-ops { background: #fde8d0; }
.sr-flow-node-external {
  border-color: #b91c1c;
  background: #fff7ed;
}
.sr-flow-node-note {
  border-color: #94a3b8;
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
}
.sr-flow-vlink {
  position: relative;
  height: 1.1rem;
  margin: 0 auto;
  width: 0;
  border-left: 2px solid #1e293b;
}
.sr-flow-vlink::after {
  content: "";
  position: absolute;
  left: -5px;
  top: -1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 7px solid #1e293b;
}
.sr-flow-vlink[data-mark]::before {
  content: attr(data-mark);
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.sr-flow-notify-head {
  position: relative;
  font-size: 11px;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 0.15rem;
}
.sr-flow-notify-head[data-mark]::before {
  content: attr(data-mark) " ";
}
.sr-flow-notes {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #cbd5e1;
}
.sr-flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.55rem;
  padding: 0 0.15rem;
  font-size: 11px;
  color: #475569;
}
.sr-flow-legend b { color: #b91c1c; margin-right: 0.15rem; }

/* legacy svg classes kept harmless if referenced elsewhere */
.sr-flow-svg { display: none; }
.sr-hidden-by-tab { display: none !important; }
body.sr-tab-active main .portal-content-shell { max-width: none; }
body.sr-tab-active #dashboard-stats-tab-wrap { display: none !important; }
#dashboard-tab-btn-situation-room { display: none !important; }

@media (max-width: 1280px) {
  .sr-strip { grid-template-columns: 1fr 1fr; }
  .sr-strip-clock { grid-column: 1 / -1; text-align: left; }
  .sr-body { grid-template-columns: 1fr; max-height: none; }
  .sr-col { max-height: none; min-height: 0; }
  .sr-org-tree { grid-template-columns: 1fr; }
  .sr-map-band { grid-template-columns: 1fr; }
  .sr-pin-source-wrap { grid-template-columns: 1fr; }
  .sr-btn-dispatch { max-width: none; width: 100%; }
}

.sr-map-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(70vh, 40rem);
  border: 1px solid #d1d5db;
  background: #fff;
  overflow: hidden;
}
.sr-map-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: min(70vh, 40rem);
  border-right: 1px solid #e5e7eb;
}
.sr-map {
  flex: 1;
  height: min(62vh, 36rem);
  min-height: 28rem;
  background: #e8eef5;
}
.sr-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.4rem 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #6b7280;
  background: #f8fafc;
}
.sr-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.3rem;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: 0 0 0 1px #fff;
}
.sr-dot-flood { background: #d97706; }
.sr-dot-crowd { background: #ea580c; }
.sr-dot-accident { background: #b91c1c; }
.sr-map-detail {
  min-width: 0;
  max-height: min(70vh, 40rem);
  overflow: auto;
  padding: 0.7rem 0.75rem;
  background: #fff;
}
.sr-pin-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sr-pin-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.35rem 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.55rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  line-height: 1.35;
}
.sr-pin-row:hover { background: #f8fafc; }
.sr-pin-row-active {
  border-color: #1f2747;
  background: #f3f4f6;
}
.sr-pin-level {
  grid-row: 1;
  align-self: start;
  margin-top: 0.12rem;
  flex: 0 0 auto;
  min-width: 2.4rem;
  padding: 0.12rem 0.4rem;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  border: 1px solid transparent;
}
.sr-pin-name {
  grid-row: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.sr-pin-stats {
  grid-row: 1;
  display: flex;
  align-items: stretch;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}
.sr-pin-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.18rem 0.42rem;
  border-left: 1px solid #e5e7eb;
  font-size: 10px;
  line-height: 1.25;
  color: #6b7280;
  white-space: nowrap;
}
.sr-pin-cell:first-child { border-left: none; }
.sr-pin-cell b {
  margin-top: 0.08rem;
  font-size: 12px;
  font-weight: 800;
  color: #111827;
}
.sr-pin-forecasts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  font-size: 11px;
  color: #4b5563;
}
.sr-pin-meta {
  flex: 0 0 auto;
  font-size: 11px;
  color: #4b5563;
  white-space: nowrap;
}
.sr-pin-source-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(7.6rem, 0.38fr);
  gap: 0;
  margin: 0 0.15rem 0.2rem;
  align-items: stretch;
}
.sr-pin-actions {
  display: grid;
  grid-template-rows: 3fr 1fr;
  min-height: 100%;
  align-self: stretch;
}
.sr-pin-source {
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-right: none;
  background: #f8fafc;
  font-size: 12px;
  color: #111827;
}
.sr-pin-source div {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 0.25rem 0.5rem;
  margin-top: 0.15rem;
}
.sr-pin-source div:first-child { margin-top: 0; }
.sr-pin-source span { color: #6b7280; }
.sr-btn-dispatch {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  padding: 0.45rem 0.7rem;
}
.sr-pin-dispatch {
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0.4rem 0.45rem;
  border-radius: 0;
  border-bottom: none;
  white-space: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sr-btn-dispatch:hover { background: #1d4ed8; }
.sr-btn-clear {
  background: #64748b;
  border-color: #475569;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  padding: 0.25rem 0.45rem;
}
.sr-btn-clear:hover { background: #475569; }
.sr-pin-clear {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sr-response-panel {
  margin: 0 0.15rem 0.45rem;
}
.sr-response-loading {
  padding: 0.7rem 0.6rem;
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}
.sr-ai-kind {
  padding: 0.45rem 0.6rem;
  background: #1e3a8a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.sr-response-box {
  padding: 0.55rem 0.6rem 0.7rem;
  border: 1px solid #93c5fd;
  border-top: none;
  background: #f8fbff;
}
.sr-response-title {
  margin-bottom: 0.4rem;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a8a;
}
.sr-case-row {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  padding: 0.4rem 0.45rem;
  margin-bottom: 0.3rem;
  border: 1px solid #dbeafe;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: #111827;
}
.sr-case-row input { margin-top: 0.15rem; }
.sr-case-title { display: block; margin-top: 0.1rem; line-height: 1.4; }
.sr-case-ai {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.02rem 0.3rem;
  background: #2563eb;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.sr-case-on { border-color: #1d4ed8; background: #eff6ff; }
@keyframes sr-sparkle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.15); background: #eff6ff; }
  50% { box-shadow: 0 0 10px 3px rgba(59, 130, 246, 0.55); background: #dbeafe; }
}
.sr-case-sparkle {
  animation: sr-sparkle 1.15s ease-in-out infinite;
  border-color: #2563eb;
}
.sr-dispatch-list { margin-top: 0.55rem; }
.sr-dispatch-contact, .sr-dispatch-hospital {
  display: flex;
  gap: 0.4rem;
  padding: 0.28rem 0;
  font-size: 12px;
}
.sr-hospital-kicker {
  margin: 0.55rem 0 0.2rem;
  font-size: 12px;
  font-weight: 800;
  color: #1e3a8a;
}
.sr-org-wrap {
  margin-top: 0.65rem;
  padding-top: 0.35rem;
  border-top: 1px dashed #cbd5e1;
}
.sr-org-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.sr-org-summary {
  margin: 0 0 0.4rem;
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
}
.sr-org-unmanned {
  margin: 0 0 0.45rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 600;
}
.sr-org-board {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.sr-org-layer {
  border: 1px solid #dbeafe;
  background: #f8fafc;
  padding: 0.4rem 0.45rem;
}
.sr-org-layer-name {
  font-size: 11px;
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 0.3rem;
}
.sr-org-layer-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.sr-org-node {
  flex: 1 1 7.5rem;
  min-width: 7rem;
  max-width: 100%;
  padding: 0.35rem 0.4rem;
  border: 1px solid #bfdbfe;
  background: #fff;
  border-radius: 4px;
}
.sr-org-node b {
  display: block;
  font-size: 11px;
  color: #0f172a;
}
.sr-org-node span {
  display: block;
  font-size: 10px;
  color: #334155;
  margin-top: 0.1rem;
}
.sr-org-node em {
  display: block;
  margin-top: 0.15rem;
  font-size: 10px;
  font-style: normal;
  color: #64748b;
  line-height: 1.35;
}
.sr-process-flow {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}
.sr-process-step {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.4rem 0.45rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 4px;
}
.sr-process-num {
  flex: 0 0 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #1e3a8a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sr-process-body { min-width: 0; flex: 1; }
.sr-process-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}
.sr-process-detail {
  margin-top: 0.15rem;
  font-size: 11px;
  color: #334155;
  line-height: 1.45;
}
#sr-case-send { margin-top: 0.35rem; }
.sr-map-detail-empty {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.55;
}
.sr-map-detail-empty strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #111827;
  font-size: 0.95rem;
}
.sr-map-kicker {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.02em;
}
.sr-map-title {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.3;
}
.sr-map-sub { font-size: 12px; color: #6b7280; margin-bottom: 0.6rem; }
.sr-map-level {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.15rem 0.5rem;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.sr-dl {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.2rem 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 12px;
}
.sr-dl dt { color: #6b7280; }
.sr-dl dd { margin: 0; color: #111827; word-break: break-word; }
.sr-ai-box {
  margin-bottom: 0.85rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #fde68a;
  background: #fffbeb;
}
.sr-ai-box h4 {
  margin: 0 0 0.35rem;
  font-size: 12px;
  font-weight: 800;
  color: #92400e;
}
.sr-ai-box p, .sr-ai-box li { font-size: 12px; color: #78350f; line-height: 1.5; }
.sr-ai-box ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.sr-user-stage h4 {
  margin: 0 0 0.4rem;
  font-size: 12px;
  font-weight: 800;
  color: #111827;
}
.sr-stage-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sr-stage-btn {
  padding: 0.28rem 0.55rem;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
}
.sr-stage-btn:hover { background: #f3f4f6; }
.sr-stage-btn[aria-pressed="true"] {
  color: #fff;
  border-color: transparent;
}
.sr-stage-btn[data-sr-hazard-level="INTEREST"][aria-pressed="true"] { background: #64748b; }
.sr-stage-btn[data-sr-hazard-level="WATCH"][aria-pressed="true"] { background: #d97706; }
.sr-stage-btn[data-sr-hazard-level="ALERT"][aria-pressed="true"] { background: #ea580c; }
.sr-stage-btn[data-sr-hazard-level="SEVERE"][aria-pressed="true"] { background: #b91c1c; }
.sr-hazard-note {
  width: 100%;
  margin-top: 0.5rem;
  min-height: 3.2rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #d1d5db;
  font-size: 12px;
  resize: vertical;
}
.leaflet-tooltip.sr-map-tooltip {
  border: 1px solid #d1d5db;
  border-radius: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  padding: 0;
  background: #fff;
}
.leaflet-tooltip.sr-map-tooltip .sr-tip {
  min-width: 11rem;
  max-width: 16rem;
  padding: 0.45rem 0.55rem;
}
.leaflet-tooltip.sr-map-tooltip .sr-tip b { display: block; font-size: 12px; color: #111827; }
.leaflet-tooltip.sr-map-tooltip .sr-tip span { display: block; margin-top: 0.15rem; font-size: 11px; color: #4b5563; }
.sr-map-link { font-size: 12px; }
