#safetyReportDrawer {
  position: fixed; inset: 0 0 auto auto; margin: 0; padding: 0; width: min(540px,calc(100vw - 16px));
  max-width: 100vw; height: 100dvh; max-height: 100dvh; box-sizing: border-box; overflow: hidden;
  border: 0; border-radius: 20px 0 0 20px; background: #fff; color: #173650;
  box-shadow: -12px 0 48px #102c4826; font: 400 14px/1.5 Inter,system-ui,-apple-system,sans-serif;
  text-align: left; color-scheme: light;
}
#safetyReportDrawer[open] { display: flex; flex-direction: column; }
#safetyReportDrawer::backdrop { background: #102c4859; }
#safetyReportDrawer *, #safetyReportDrawer *::before, #safetyReportDrawer *::after { box-sizing: border-box; }
#safetyReportDrawer .sr-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; padding: max(22px,env(safe-area-inset-top)) 24px 20px; border-bottom: 1px solid #e4edf5; background: #fff; }
#safetyReportDrawer .sr-eyebrow { display: block; color: #55718a; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
#safetyReportDrawer h2 { margin: 4px 0 0; padding: 0; color: #173650; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.6px; }
#safetyReportDrawer button { font: inherit; cursor: pointer; text-transform: none; letter-spacing: normal; }
#safetyReportDrawer .sr-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0 0 3px; border: 0; border-radius: 50%; color: #3e607e; background: #edf4fa; box-shadow: none; font: 28px/1 system-ui; }
#safetyReportDrawer .sr-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px max(24px,env(safe-area-inset-bottom)); scrollbar-width: thin; scrollbar-color: #b7cce0 transparent; }
#safetyReportDrawer p { margin: 0; }
#safetyReportDrawer .sr-intro { color: #55718a; margin: 0 0 22px; font-size: 14px; }
#safetyReportDrawer .sr-history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
#safetyReportDrawer h3 { font-size: 13px; font-weight: 600; margin: 0; color: #173650; }
#safetyReportDrawer .sr-clear { padding: 4px 0; min-height: 28px; border: 0; border-radius: 0; background: none; color: #61788e; box-shadow: none; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
#safetyReportDrawer .sr-history { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b7cce0 transparent; padding: 3px 2px 10px; min-height: 90px; }
#safetyReportDrawer .sr-connection { flex: 0 0 142px; width: 142px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 5px; margin: 0; border: 1px solid #dbe6f0; border-radius: 12px; background: #fff; color: #254963; text-align: left; box-shadow: none; scroll-snap-align: start; }
#safetyReportDrawer .sr-connection[aria-pressed=true] { border-color: #1687ee; outline: 1px solid #1687ee; background: #eef7ff; }
#safetyReportDrawer .sr-preview { display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; overflow: hidden; border-radius: 7px; background: #e9f0f7; }
#safetyReportDrawer .sr-preview img { display: block; width: 100%; height: 100%; object-fit: cover; max-width: 100%; }
#safetyReportDrawer .sr-placeholder { color: #6c8296; font-size: 12px; }
#safetyReportDrawer .sr-connection strong { display: block; padding: 5px 3px 0; font-size: 12px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#safetyReportDrawer .sr-time { display: block; padding: 0 3px 4px; color: #61788e; font-size: 10px; }
#safetyReportDrawer .sr-empty { padding: 16px; background: #f2f6fa; border-radius: 10px; color: #61788e; width: 100%; }
#safetyReportDrawer .sr-privacy { color: #71869a; font-size: 11px; margin: 5px 0 18px; line-height: 1.5; }
#safetyReportDrawer .sr-selected { padding: 11px 12px; background: #f1f6fb; border: 1px solid #e1eaf3; border-radius: 10px; font-size: 12px; color: #42627e; margin-bottom: 20px; }
#safetyReportDrawer .sr-form { display: flex; flex-direction: column; gap: 9px; margin: 0; }
#safetyReportDrawer label { color: #254963; font-size: 13px; font-weight: 600; padding: 0; margin: 0; }
#safetyReportDrawer label span { color: #7a8ea0; font-weight: 400; }
#safetyReportDrawer .sr-select-wrap { position: relative; margin-bottom: 9px; }
#safetyReportDrawer .sr-select-wrap::after { content: ''; position: absolute; pointer-events: none; right: 19px; top: 19px; width: 8px; height: 8px; border: solid #547590; border-width: 0 2px 2px 0; transform: rotate(45deg); }
#safetyReportDrawer select, #safetyReportDrawer textarea { display: block; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #c9d9e9; border-radius: 11px; background: #f5f9fd; color: #254963; -webkit-text-fill-color: #254963; box-shadow: none; font: 400 16px/1.5 Inter,system-ui,sans-serif; text-align: left; }
#safetyReportDrawer select { appearance: none; -webkit-appearance: none; padding: 12px 44px 12px 14px; height: 50px; background-image: none; cursor: pointer; }
#safetyReportDrawer option { background: #fff; color: #254963; }
#safetyReportDrawer textarea { min-height: 112px; padding: 12px 14px; resize: vertical; }
#safetyReportDrawer textarea::placeholder { color: #8a9eb0; -webkit-text-fill-color: #8a9eb0; opacity: 1; }
#safetyReportDrawer :is(select,textarea,button):focus-visible { outline: 3px solid #1687ee55; outline-offset: 2px; }
#safetyReportDrawer :is(select,textarea):focus { border-color: #1687ee; }
#safetyReportDrawer .sr-status { color: #26724f; font-size: 13px; overflow-wrap: anywhere; }
#safetyReportDrawer .sr-status:empty { display: none; }
#safetyReportDrawer .sr-status.is-error { color: #bc293f; }
#safetyReportDrawer .sr-actions { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 7px; }
#safetyReportDrawer .sr-submit { min-height: 48px; padding: 12px 18px; margin: 0; border: 1px solid #0877d8; border-radius: 11px; color: #fff; background: linear-gradient(#279dff,#1687ee); box-shadow: inset 0 1px #ffffff30,0 2px 0 #0866b3; font-size: 15px; font-weight: 600; }
#safetyReportDrawer .sr-block { min-height: 48px; padding: 12px; margin: 0; border: 1px solid #e8cdd2; border-radius: 11px; color: #b63a4d; background: #fff; box-shadow: none; font-size: 13px; font-weight: 600; }
#safetyReportDrawer .sr-submit:hover:not(:disabled) { background: linear-gradient(#36a5ff,#0879e1); }
#safetyReportDrawer .sr-block:hover:not(:disabled) { background: #fff5f6; }
#safetyReportDrawer .sr-footnote { font-size: 11px; color: #71869a; margin-top: 5px; }
#safetyReportDrawer :disabled { opacity: .45; cursor: not-allowed; }
@media(max-width:520px) { #safetyReportDrawer .sr-header { padding-left: 18px; padding-right: 16px; } #safetyReportDrawer .sr-body { padding-left: 18px; padding-right: 16px; } #safetyReportDrawer h2 { font-size: 23px; } #safetyReportDrawer .sr-connection { flex-basis: 128px; width: 128px; } #safetyReportDrawer .sr-actions { gap: 8px; } #safetyReportDrawer .sr-submit { padding-left: 10px; padding-right: 10px; font-size: 14px; } }

/* Compact connection browser: consistent tiles with their own scroll area. */
#safetyReportDrawer .sr-header { padding-top: max(18px,env(safe-area-inset-top)); padding-bottom: 16px; }
#safetyReportDrawer .sr-close { padding: 0; }
#safetyReportDrawer .sr-close svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#safetyReportDrawer .sr-body { padding-top: 16px; }
#safetyReportDrawer .sr-intro { margin-bottom: 16px; font-size: 13px; }
#safetyReportDrawer .sr-count { margin-left: 5px; color: #71869a; font-weight: 400; font-variant-numeric: tabular-nums; }
#safetyReportDrawer .sr-history {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-content: start;
  gap: 9px; max-height: 250px; min-height: 0; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; scroll-snap-type: none; padding: 3px 3px 8px;
}
#safetyReportDrawer .sr-connection { width: 100%; min-width: 0; flex: none; gap: 1px; border-radius: 10px; }
#safetyReportDrawer .sr-preview { aspect-ratio: 4/3; }
#safetyReportDrawer .sr-empty { grid-column: 1/-1; }
#safetyReportDrawer .sr-privacy { margin-bottom: 12px; }
#safetyReportDrawer .sr-selected { padding: 9px 11px; margin-bottom: 14px; }
#safetyReportDrawer .sr-form { gap: 7px; }
#safetyReportDrawer textarea { min-height: 88px; height: 88px; }
#safetyReportDrawer .sr-select-wrap { margin-bottom: 5px; }
#safetyReportDrawer .sr-actions { margin-top: 5px; }
.menuItem[data-safety-history] { display: flex; align-items: center; gap: 12px; text-align: left; }
.menuItem[data-safety-history] > svg { display: block; width: 21px; height: 21px; flex: 0 0 21px; }
.menuItem[data-safety-history] > span { display: flex; flex-direction: column; min-width: 0; }
.menuItem[data-safety-history] strong { font: inherit; font-weight: 600; }
.menuItem[data-safety-history] small { display: block; font-size: 11px; line-height: 1.4; font-weight: 400; opacity: .7; }
@media(max-width:520px) {
  #safetyReportDrawer .sr-history { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 224px; }
  #safetyReportDrawer .sr-connection { width: 100%; }
  #safetyReportDrawer .sr-body { padding: 14px 16px max(18px,env(safe-area-inset-bottom)); }
  #safetyReportDrawer .sr-history-heading { gap: 8px; }
}

/* One swipeable preview row, with navigation on both sides. */
#safetyReportDrawer .sr-carousel { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; align-items: center; gap: 4px; }
#safetyReportDrawer .sr-history { display: flex; flex-wrap: nowrap; gap: 9px; min-width: 0; max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: 3px; overscroll-behavior-x: contain; padding: 3px 3px 8px; }
#safetyReportDrawer .sr-connection { flex: 0 0 136px; width: 136px; scroll-snap-align: start; }
#safetyReportDrawer .sr-empty { flex: 1 0 100%; }
#safetyReportDrawer .sr-scroll { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #edf4fc; color: #2475bb; box-shadow: none; }
#safetyReportDrawer .sr-scroll svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#safetyReportDrawer .sr-scroll:hover:not(:disabled) { background: #dcecff; }
#safetyReportDrawer .sr-scroll:disabled { opacity: .3; }
@media(max-width:520px) {
  #safetyReportDrawer :is(.sr-history,.sr-body) { scrollbar-width: none; -ms-overflow-style: none; }
  #safetyReportDrawer :is(.sr-history,.sr-body)::-webkit-scrollbar { display: none; width: 0; height: 0; }
  #safetyReportDrawer .sr-connection { flex-basis: 124px; width: 124px; }
}

#safetyReportDrawer .sr-empty { font-size: 12px; line-height: 1.5; padding: 12px 10px; }
