@import url("./refinements.css");
@import url("./app-shell.css");
@import url("./archive-picker.css");
@import url("./notification-settings.css");
@import url("./site-menu.css?v=20261031-talkgroup-actions-v1");
@import url("./pwa-install.css");
@import url("./native-parity.css");
@import url("./parity-v2-shell.css?v=20261031-talkgroup-actions-v1");
@import url("./agency-artwork.css");

.site-view[hidden] {
  display: none !important;
}

.alert-feed-item__detail svg, .highlight-card__detail svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1099px) {
  .site-view--alerts .panel-heading { min-height: 52px; display: grid; place-items: center; border-bottom: 1px solid var(--border); }
  .site-view--alerts .panel-heading .eyebrow, .site-view--alerts .alerts-summary { display: none; }
  .alerts-list { gap: 7px; padding-top: 10px; }
  .alert-feed-item__artwork { width: 36px; height: 36px; }
}

.site-nav a[aria-current="page"] {
  font-weight: 850;
}

.site-view--alerts .alerts-list {
  grid-template-columns: minmax(0, 1fr);
}

/* Keep the three desktop dashboard columns visually balanced while allowing
 * each traffic-heavy region to scroll independently. */
@media (min-width: 1100px) {
  body[data-layout="dashboard"] {
    display: flex;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    flex-direction: column;
  }

  body[data-layout="dashboard"] .site-header,
  body[data-layout="dashboard"] .site-footer {
    flex: 0 0 auto;
  }

  body[data-layout="dashboard"] .site-main {
    min-height: 0;
    flex: 1 1 0;
    align-items: stretch;
    overflow: hidden;
  }

  body[data-layout="dashboard"] .site-view--scanner,
  body[data-layout="dashboard"] .site-view--alerts,
  body[data-layout="dashboard"] .site-view--archive {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body[data-layout="dashboard"] .scanner-panel,
  body[data-layout="dashboard"] .alerts-panel,
  body[data-layout="dashboard"] .archive-panel {
    height: 100%;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }

  body[data-layout="dashboard"] .scanner-panel,
  body[data-layout="dashboard"] .archive-panel {
    display: flex;
    flex-direction: column;
  }

  /* Desktop mirrors mobile, but keeps the Now Playing block compact. The
   * action row is part of the card instead of consuming a second full-height
   * band underneath it. */
  body[data-layout="dashboard"] .scanner-display {
    box-sizing: border-box;
    height: 188px;
    min-height: 188px;
    max-height: 188px;
    overflow: hidden;
  }

  body[data-layout="dashboard"] .scanner-display__topline {
    min-height: 36px;
    padding-block: 8px;
  }

  body[data-layout="dashboard"] .scanner-display__content {
    box-sizing: border-box;
    height: 88px;
    min-height: 88px;
    max-height: 88px;
    padding: 10px 14px 6px;
    overflow: hidden;
  }

  body[data-layout="dashboard"] .scanner-display__metadata {
    margin-top: 5px;
  }

  body[data-layout="dashboard"] .scanner-display__details {
    margin-top: 0;
  }

  body[data-layout="dashboard"] .scanner-display__progress {
    display: none;
  }

  body[data-layout="dashboard"] .scanner-control-stack {
    position: relative;
    z-index: 2;
    margin-top: -52px;
    padding: 0 8px 8px;
    flex: 0 0 auto;
  }

  /* Keep the controls visually inside Now Playing without adding a dark footer
   * slab. Each button carries its own contrast against the active backlight. */
  body[data-layout="dashboard"] .scanner-display[data-state="playing"] + .scanner-control-stack {
    background: transparent;
    box-shadow: none;
  }

  body[data-layout="dashboard"] .scanner-display[data-state="playing"] + .scanner-control-stack .scanner-action-button:not(:disabled) {
    border-color: var(--accent);
    background: var(--selected-bg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  }

  body[data-layout="dashboard"] .scanner-display[data-state="playing"] + .scanner-control-stack .scanner-action-button:disabled {
    border-color: var(--border-strong);
    background: var(--panel-soft);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
    opacity: 0.82;
  }

  body[data-layout="dashboard"] .scanner-action-button {
    min-height: 44px;
    padding: 6px 5px;
    border-radius: 10px;
    font-size: 0.7rem;
  }

  body[data-layout="dashboard"] .scanner-display[data-state="paused"] .scanner-display__content,
  body[data-layout="dashboard"] .scanner-display[data-state="avoided"] .scanner-display__content {
    box-sizing: border-box;
    height: 116px;
    min-height: 116px;
    max-height: 116px;
    margin: 10px;
    padding: 10px 12px;
  }

  body[data-layout="dashboard"] .recent-section {
    display: flex;
    min-height: 0;
    flex: 1 1 0;
    flex-direction: column;
    overflow: hidden;
  }

  body[data-layout="dashboard"] .activity-pane--recent {
    display: flex;
    min-height: 0;
    flex: 1 1 0;
    flex-direction: column;
    overflow: hidden;
  }

  body[data-layout="dashboard"] .activity-pane--recent > .section-heading {
    flex: 0 0 auto;
  }

  body[data-layout="dashboard"] .recent-list {
    min-height: 0;
    max-height: none;
    flex: 1 1 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    -webkit-overflow-scrolling: touch;
  }

  body[data-layout="dashboard"] .recent-list:hover {
    scrollbar-color: var(--border-strong) transparent;
  }

  body[data-layout="dashboard"] .archive-heading,
  body[data-layout="dashboard"] .archive-controls,
  body[data-layout="dashboard"] .archive-results-heading,
  body[data-layout="dashboard"] .archive-pagination {
    flex: 0 0 auto;
  }

  body[data-layout="dashboard"] .archive-heading > div > p:last-child {
    margin-top: 3px;
    font-size: 0.66rem;
    line-height: 1.25;
  }

  body[data-layout="dashboard"] .archive-controls {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
  }

  body[data-layout="dashboard"] .archive-field select,
  body[data-layout="dashboard"] .archive-field input {
    height: 36px;
  }

  body[data-layout="dashboard"] .archive-field__hint {
    display: none;
  }

  body[data-layout="dashboard"] .archive-message:empty {
    display: none;
  }

  body[data-layout="dashboard"] .archive-results-heading {
    align-items: flex-end;
    flex-direction: row;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }

  body[data-layout="dashboard"] .archive-results-heading p {
    margin: 0 0 1px auto;
    font-size: 0.66rem;
    line-height: 1.25;
    text-align: right;
  }

  body[data-layout="dashboard"] .archive-results {
    min-height: 0;
    max-height: none;
    flex: 1 1 0;
    margin-top: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  body[data-layout="dashboard"] .archive-result {
    gap: 6px;
    padding: 8px 9px;
  }

  body[data-layout="dashboard"] .archive-result__meta {
    margin-top: 3px;
  }

  body[data-layout="dashboard"] .archive-mini-player {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 8px;
  }

  body[data-layout="dashboard"] .archive-mini-player .mini-player__toggle {
    width: 58px;
    min-width: 58px;
    height: 32px;
    padding: 0 8px;
  }

  body[data-layout="dashboard"] .archive-mini-player .mini-player__progress {
    grid-column: 2;
    grid-row: 1;
    height: 24px;
    margin-inline: 2px;
    width: calc(100% - 4px);
  }

  body[data-layout="dashboard"] .archive-mini-player .mini-player__time {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.62rem;
    white-space: nowrap;
  }

  body[data-layout="dashboard"] .archive-pagination {
    margin-top: 8px;
  }

  /* Keep independent dashboard scrollers without the browser's heavy native
   * scrollbar chrome. The thumb stays hidden until the scroll region is
   * hovered, then appears as a narrow rounded indicator. */
  body[data-layout="dashboard"] .recent-list,
  body[data-layout="dashboard"] .alerts-list,
  body[data-layout="dashboard"] .archive-results {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }

  body[data-layout="dashboard"] .recent-list:hover,
  body[data-layout="dashboard"] .alerts-list:hover,
  body[data-layout="dashboard"] .archive-results:hover {
    scrollbar-color: var(--border-strong) transparent;
  }

  body[data-layout="dashboard"] .recent-list::-webkit-scrollbar,
  body[data-layout="dashboard"] .alerts-list::-webkit-scrollbar,
  body[data-layout="dashboard"] .archive-results::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

  body[data-layout="dashboard"] .recent-list::-webkit-scrollbar-track,
  body[data-layout="dashboard"] .alerts-list::-webkit-scrollbar-track,
  body[data-layout="dashboard"] .archive-results::-webkit-scrollbar-track {
    background: transparent;
  }

  body[data-layout="dashboard"] .recent-list::-webkit-scrollbar-thumb,
  body[data-layout="dashboard"] .alerts-list::-webkit-scrollbar-thumb,
  body[data-layout="dashboard"] .archive-results::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: transparent;
  }

  body[data-layout="dashboard"] .recent-list:hover::-webkit-scrollbar-thumb,
  body[data-layout="dashboard"] .alerts-list:hover::-webkit-scrollbar-thumb,
  body[data-layout="dashboard"] .archive-results:hover::-webkit-scrollbar-thumb {
    background: var(--border-strong);
  }

  body[data-layout="dashboard"] .recent-list::-webkit-scrollbar-button,
  body[data-layout="dashboard"] .alerts-list::-webkit-scrollbar-button,
  body[data-layout="dashboard"] .archive-results::-webkit-scrollbar-button {
    display: none;
  }
}

/* iOS Safari gives datetime-local controls a stubborn intrinsic inline size.
 * Constrain both the host control and its WebKit editing box without removing
 * the native date/time picker affordance. */
@media (max-width: 680px) {
  .archive-field {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  #archive-at {
    display: block;
    box-sizing: border-box;
    width: 100%;
    inline-size: 100%;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    max-width: 100%;
    max-inline-size: 100%;
    overflow: hidden;
  }

  #archive-at::-webkit-date-and-time-value,
  #archive-at::-webkit-datetime-edit {
    min-width: 0;
    max-width: 100%;
  }

  @supports (-webkit-touch-callout: none) {
    #archive-at {
      width: -webkit-fill-available;
    }
  }

  /* Scanner component geometry is consolidated in native-parity.css. */

}

/* Native-authority compact Alert feed rows. Full alert content remains in the
 * dedicated detail popover. */
.alert-feed-item {
  --alert-category: var(--accent);
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--alert-category);
  border-radius: 14px;
  color: var(--text);
  background: var(--activity-card);
  box-shadow: var(--shadow-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.alert-feed-item[data-category="fire"] { --alert-category: #d64545; }
.alert-feed-item[data-category="police"] { --alert-category: #3b82f6; }
.alert-feed-item[data-category="medical"] { --alert-category: #14b8a6; }
.alert-feed-item[data-category="weather"] { --alert-category: #a855f7; }
.alert-feed-item[data-category="traffic"] { --alert-category: #f59e0b; }

.alert-feed-item[data-incident-state="active"] {
  border-color: var(--warning);
  border-left-width: 5px;
  background: color-mix(in srgb, var(--warning) 9%, var(--activity-card));
}

.alert-feed-item:hover {
  border-color: color-mix(in srgb, var(--alert-category) 54%, var(--border));
  background: var(--activity-card-hover, var(--panel-soft));
}

.alert-feed-item:active {
  opacity: 0.76;
}

.alert-feed-item:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 62%, transparent);
  outline-offset: 2px;
}

.alert-feed-item[data-deep-linked="true"] {
  border-color: var(--ean-blue-alt);
  background: var(--now-bg);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--ean-blue-alt) 42%, transparent),
    var(--shadow-soft);
}

.alert-feed-item__heading,
.alert-feed-item__badges,
.alert-feed-item__meta {
  min-width: 0;
  display: flex;
  align-items: center;
}

.alert-feed-item__heading {
  justify-content: space-between;
  gap: 10px;
}

.alert-feed-item__badges {
  flex: 1 1 auto;
  gap: 8px;
  overflow: hidden;
}

.alert-feed-item__artwork {
  width: 36px;
  height: 36px;
}

.alert-feed-item__type,
.alert-feed-item__state {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.alert-feed-item__type {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  flex: 0 1 auto;
  color: var(--alert-category);
  background: color-mix(in srgb, var(--alert-category) 10%, var(--panel-soft));
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-feed-item__state {
  flex: 0 0 auto;
  color: var(--warning);
  background: var(--panel);
}

.alert-feed-item__detail {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-soft);
  background: var(--subtle-button, var(--panel-soft));
  font-size: 1rem;
  font-weight: 850;
  line-height: 1;
}

.alert-feed-item__meta {
  justify-content: space-between;
  gap: 12px;
}

.alert-feed-item__context {
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-feed-item__time {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
}

/* Alert and Highlight details share one capped, Safari-safe popover shell. */
.publication-dialog {
  width: min(620px, calc(100vw - 24px));
  max-height: calc(
    100dvh
    - max(12px, env(safe-area-inset-top))
    - max(12px, env(safe-area-inset-bottom))
  );
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

.publication-dialog::backdrop {
  background: rgba(0, 8, 14, 0.68);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.publication-dialog__shell {
  box-sizing: border-box;
  max-height: inherit;
  padding: 0;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  color: var(--text);
  background: var(--panel);
}

.publication-dialog__header {
  min-height: 50px;
  padding: 7px 9px 7px 15px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  border-radius: 19px 19px 0 0;
  background: var(--panel-soft);
}

.publication-dialog__header h2 {
  min-width: 0;
  margin: 0;
  flex: 1 1 auto;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.publication-dialog__header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.publication-dialog__share {
  min-width: 76px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 0.72rem;
  font-weight: 900;
}

.publication-dialog .publication-dialog__close {
  position: static;
  top: auto;
  float: none;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
}

.publication-dialog__body {
  min-height: 0;
  padding: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.publication-dialog__body > :first-child {
  margin-top: 0;
}

.publication-dialog__body > :last-child {
  margin-bottom: 0;
}

.publication-actions--detail {
  justify-content: flex-end;
}

/* Alert/Highlight detail audio follows the native player hierarchy:
 * circular transport control, label + time, then a full-width progress track. */
.publication-dialog .alert-mini-player,
.publication-dialog .highlight-mini-player {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 5px;
}

.publication-dialog .alert-mini-player {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.publication-dialog .alert-mini-player .mini-player__toggle,
.publication-dialog .highlight-mini-player .mini-player__toggle {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  font-size: 0;
  line-height: 0;
}

.publication-dialog .alert-mini-player .mini-player__toggle::before,
.publication-dialog .highlight-mini-player .mini-player__toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 18px;
  height: 20px;
  background: currentColor;
  -webkit-clip-path: polygon(10% 4%, 94% 50%, 10% 96%);
  clip-path: polygon(10% 4%, 94% 50%, 10% 96%);
  transform: translate(calc(-50% + 1px), -50%);
}

.publication-dialog .alert-mini-player[data-playing="true"] .mini-player__toggle::before,
.publication-dialog .highlight-mini-player[data-playing="true"] .mini-player__toggle::before {
  width: 16px;
  height: 16px;
  -webkit-clip-path: none;
  clip-path: none;
  transform: translate(-50%, -50%);
}

/* Playback state changes the glyph, not the meaning/color of the transport.
 * Alert and Highlight detail controls stay EastArkNet blue while playing. */
.publication-dialog .alert-mini-player[data-playing="true"] .mini-player__toggle,
.publication-dialog .highlight-mini-player[data-playing="true"] .mini-player__toggle,
.publication-dialog .alert-mini-player[data-playing="true"] .mini-player__toggle:hover:not(:disabled),
.publication-dialog .highlight-mini-player[data-playing="true"] .mini-player__toggle:hover:not(:disabled) {
  border-color: var(--ean-blue-alt);
  background: var(--ean-blue-alt);
  color: #fff;
}

.publication-dialog .alert-audio-label,
.publication-dialog .highlight-audio-label {
  display: block;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
}

.publication-dialog .alert-audio-time,
.publication-dialog .highlight-audio-time {
  display: block;
  grid-column: 3;
  grid-row: 1;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.publication-dialog .alert-audio-progress,
.publication-dialog .highlight-audio-progress {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding: 0;
  grid-column: 2 / 4;
  grid-row: 2;
}

.publication-dialog .alert-audio-progress::-webkit-slider-runnable-track,
.publication-dialog .highlight-audio-progress::-webkit-slider-runnable-track {
  height: 4px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      var(--ean-blue-alt) 0 var(--audio-progress, 0%),
      var(--border-strong) var(--audio-progress, 0%) 100%
    );
}

.publication-dialog .alert-audio-progress::-webkit-slider-thumb,
.publication-dialog .highlight-audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  border-radius: 999px;
  background: var(--ean-blue-alt);
  box-shadow: 0 0 0 2px var(--panel-soft);
}

.publication-dialog .alert-audio-progress::-moz-range-thumb,
.publication-dialog .highlight-audio-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--ean-blue-alt);
  box-shadow: 0 0 0 2px var(--panel-soft);
}

/* Native Alert detail metadata sits above the narrative. */
.alert-card--detail .alert-card__heading {
  margin-bottom: 0;
}

.alert-card__detail-meta {
  min-width: 0;
  margin: 10px 0 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.alert-card__detail-meta-copy {
  min-width: 0;
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
}

.alert-card__detail-source,
.alert-card__detail-location {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.3;
}

.alert-card__detail-time {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 2px;
  color: var(--text-muted);
}

.alert-card--detail .alert-card__footer {
  display: none;
}

/* Modal details own the viewport while open; the app dock must not compete
 * visually or remain interactive underneath the modal. */
body:has(.publication-dialog[open]) .mobile-bottom-navigation {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 680px) {
  .alert-feed-item {
    padding: 10px 11px;
  }

  .alert-feed-item__artwork {
    width: 34px;
    height: 34px;
  }

  .publication-dialog {
    width: calc(100vw - 24px);
  }

  .publication-dialog__body {
    padding: 9px;
    scroll-padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
/* FINAL NATIVE ALERTS AUTHORITY — 2026-10-30 */
@media (max-width: 1099px) {
  .site-view--alerts {
    padding-right: 0;
    padding-left: 0;
  }

  .site-view--alerts > .alerts-panel {
    padding: 0;
  }

  .site-view--alerts .panel-heading {
    box-sizing: border-box;
    min-height: 52px;
    margin: 0;
    padding: 0 14px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  .site-view--alerts .panel-heading h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.025em;
  }

  .site-view--alerts .panel-heading .eyebrow,
  .site-view--alerts .alerts-summary {
    display: none;
  }

  .site-view--alerts .alerts-list {
    box-sizing: border-box;
    gap: 8px;
    padding: 10px 10px var(--mobile-shell-bottom-reserve);
  }

  .site-view--alerts .alert-feed-item {
    box-sizing: border-box;
    margin: 0;
    padding: 11px 13px;
    border-radius: 14px;
  }

  .site-view--alerts .alert-feed-item__artwork {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .site-view--alerts .alert-feed-item__type {
    min-height: 24px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .site-view--alerts .alert-feed-item__detail {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
  }

  .site-view--alerts .alert-feed-item__detail svg {
    width: 17px;
    height: 17px;
  }
}

/*
 * FINAL NATIVE TALKGROUP CARD POSITION AUTHORITY — 2026-10-30
 *
 * Exact web mapping of:
 * ean-app/development
 *   TalkgroupOptionButton.tsx
 *   talkgroupSelectorStyles.ts
 *
 * Native values:
 *   minHeight 70
 *   paddingHorizontal 10
 *   paddingVertical 9
 *   header gap 6
 *   selected icon 18
 *   meta marginTop 5
 *   meta justifyContent space-between
 *   artwork left 10 / bottom 7 / 24x24
 *   artwork meta offset 30
 *   type maxWidth 76
 */
@media (max-width: 1099px) {
  .site-view--talkgroups .talkgroup-option {
    min-height: 70px;
    padding: 9px 10px;
    justify-content: center;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__copy {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-width: 0;
    padding: 0;
    display: block;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__header {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__name {
    min-width: 0;
    padding: 0;
    flex: 1 1 auto;
    overflow: hidden;
    font-size: 12px;
    font-weight: 900;
    line-height: 15px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__selected-indicator {
    position: static;
    top: auto;
    right: auto;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__selected-indicator svg {
    width: 12px;
    height: 12px;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__meta-row {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 5px 0 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    overflow: hidden;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__meta-row[data-has-artwork="true"] {
    padding-left: 30px;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__artwork-slot {
    position: absolute;
    left: 10px;
    bottom: 7px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__artwork {
    position: static;
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__meta {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__type {
    max-width: 76px;
    min-width: 0;
    display: inline-flex;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    overflow: hidden;
  }

  .site-view--talkgroups
    .talkgroup-option
    .talkgroup-option__type-label {
    min-width: 0;
    overflow: hidden;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .2px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* MOBILE DESTINATION UNIFORMITY — 2026-10-31 */
@media (max-width: 1099px) {
  /*
   * Alerts, Highlights, 10-Codes, and Talkgroups use one destination
   * geometry: full-width shell, 14px content gutter, centered 20px title,
   * and a full-width divider below the title band.
   */
  .site-view--alerts,
  .site-view--highlights,
  .site-view--ten-codes,
  .site-view--talkgroups {
    width: 100%;
    margin: 0;
    padding: 0 0 14px;
    background: var(--panel);
  }

  .site-view--alerts > .alerts-panel,
  .site-view--highlights > .highlights-panel,
  .site-view--ten-codes > .ten-codes-panel,
  .site-view--talkgroups > .talkgroups-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 14px 18px;
    border: 0;
    border-radius: 0;
    background: var(--panel);
    box-shadow: none;
  }

  .site-view--alerts .panel-heading,
  .site-view--highlights .panel-heading,
  .site-view--ten-codes .ten-codes-heading,
  .site-view--talkgroups .talkgroups-heading {
    box-sizing: border-box;
    width: calc(100% + 28px);
    min-height: 52px;
    margin: 0 -14px;
    padding: 0 14px;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--border);
    text-align: center;
  }

  .site-view--alerts .panel-heading > div,
  .site-view--highlights .panel-heading > div,
  .site-view--talkgroups .talkgroups-heading__copy {
    width: 100%;
    text-align: center;
  }

  .site-view--alerts .panel-heading h1,
  .site-view--highlights .panel-heading h1,
  .site-view--ten-codes .ten-codes-heading h1,
  .site-view--talkgroups .talkgroups-heading h1 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.025em;
    text-align: center;
  }

  .site-view--alerts .panel-heading .eyebrow,
  .site-view--highlights .panel-heading .eyebrow,
  .site-view--ten-codes .ten-codes-heading .eyebrow,
  .site-view--ten-codes .ten-codes-heading > p:last-child,
  .site-view--talkgroups .talkgroups-heading .eyebrow,
  .site-view--talkgroups .talkgroups-heading__copy > p:last-child,
  .site-view--talkgroups .talkgroups-heading__count,
  .site-view--alerts .alerts-summary,
  .site-view--highlights .highlights-summary,
  .site-view--ten-codes .ten-codes-summary {
    display: none !important;
  }

  /*
   * One common 14px content gutter.
   * Remove the extra nested Highlights / 10-Codes insets.
   */
  .site-view--alerts .alerts-list,
  .site-view--highlights .highlights-list {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 12px 0 0;
    gap: 10px;
  }

  .site-view--ten-codes .ten-codes-results {
    box-sizing: border-box;
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
  }

  .site-view--talkgroups .talkgroups-summary {
    margin: 12px 0 10px;
  }

  .site-view--talkgroups .talkgroups-toolbar {
    margin: 0 0 10px;
    padding: 0;
  }

  .site-view--talkgroups .talkgroups-hint {
    margin: 0 0 12px;
  }

  .site-view--talkgroups .talkgroup-results {
    margin-right: 0;
    margin-left: 0;
    padding: 0;
  }

  /*
   * Give both kinds of Select/Clear action rows breathing room before
   * the selectable talkgroup cards.
   */
  .site-view--talkgroups .system-group__actions {
    margin-bottom: 10px;
  }

  .site-view--talkgroups .talkgroup-grid {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  /*
   * Scanner Pause/Resume:
   *   Pause  = primary blue / white
   *   Resume = explicit warning state
   *
   * This prevents the old primary-blue background from being combined
   * with the later dark text / amber active-state declarations.
   */
  #pause-call:not(:disabled):not([data-active="true"]) {
    border-color: var(--ean-blue-alt);
    color: #fff;
    background: var(--ean-blue-alt);
  }

  #pause-call:not(:disabled):not([data-active="true"])
    .scanner-action-button__icon {
    border-color: rgba(255, 255, 255, .34);
    color: #fff;
    background: rgba(255, 255, 255, .12);
  }

  #pause-call:not(:disabled):not([data-active="true"]):hover,
  #pause-call:not(:disabled):not([data-active="true"]):active {
    border-color: #164b7a;
    color: #fff;
    background: #164b7a;
  }

  #pause-call[data-active="true"]:not(:disabled) {
    border-color: color-mix(
      in srgb,
      var(--warning) 72%,
      var(--border)
    );
    color: var(--warning);
    background: color-mix(
      in srgb,
      var(--warning) 12%,
      var(--panel-soft)
    );
  }

  #pause-call[data-active="true"]:not(:disabled)
    .scanner-action-button__icon {
    border-color: color-mix(
      in srgb,
      var(--warning) 58%,
      transparent
    );
    color: var(--warning);
    background: color-mix(
      in srgb,
      var(--warning) 10%,
      transparent
    );
  }

  #pause-call[data-active="true"]:not(:disabled):hover,
  #pause-call[data-active="true"]:not(:disabled):active {
    color: var(--warning);
    background: color-mix(
      in srgb,
      var(--warning) 16%,
      var(--panel-soft)
    );
  }
}

/* LIGHT SCANNER WARNING STATES — 2026-10-31 */
@media (max-width: 1099px) {
  /*
   * Hold/Release and Pause/Resume are warning-state controls, not danger
   * controls. Red remains reserved for Avoid and other destructive states.
   *
   * Dark mode already has the intended presentation. This authority is
   * intentionally limited to the light/default theme.
   */
  html:not([data-theme="dark"])
    #pause-call[data-active="true"]:not(:disabled),
  html:not([data-theme="dark"])
    #hold-call[data-selected="true"]:not(:disabled) {
    border-color: #b8872f;
    color: #8a5200;
    background: #fff3d6;
    box-shadow:
      inset 0 0 0 1px rgba(184, 135, 47, .16),
      0 1px 2px rgba(15, 23, 42, .08);
  }

  html:not([data-theme="dark"])
    #pause-call[data-active="true"]:not(:disabled)
    .scanner-action-button__icon,
  html:not([data-theme="dark"])
    #hold-call[data-selected="true"]:not(:disabled)
    .scanner-action-button__icon {
    border-color: #c3953d;
    color: #8a5200;
    background: #f8e6bc;
  }

  html:not([data-theme="dark"])
    #pause-call[data-active="true"]:not(:disabled):hover,
  html:not([data-theme="dark"])
    #pause-call[data-active="true"]:not(:disabled):active,
  html:not([data-theme="dark"])
    #hold-call[data-selected="true"]:not(:disabled):hover,
  html:not([data-theme="dark"])
    #hold-call[data-selected="true"]:not(:disabled):active {
    border-color: #a97820;
    color: #704200;
    background: #fbe9bd;
  }

  html:not([data-theme="dark"])
    #pause-call[data-active="true"]:not(:disabled):hover
    .scanner-action-button__icon,
  html:not([data-theme="dark"])
    #pause-call[data-active="true"]:not(:disabled):active
    .scanner-action-button__icon,
  html:not([data-theme="dark"])
    #hold-call[data-selected="true"]:not(:disabled):hover
    .scanner-action-button__icon,
  html:not([data-theme="dark"])
    #hold-call[data-selected="true"]:not(:disabled):active
    .scanner-action-button__icon {
    border-color: #b8872f;
    color: #704200;
    background: #f4d99d;
  }
}

/* MOBILE DESTINATION HEADING COMPONENT — 2026-10-31 */
@media (max-width: 1099px) {
  /*
   * Alerts, Highlights, 10-Codes, and Talkgroups now use this exact
   * same heading component in the DOM. No route-specific heading
   * selectors are required.
   */
  .mobile-destination-heading {
    box-sizing: border-box !important;
    width: calc(100% + 28px) !important;
    min-height: 52px !important;
    margin: 0 -14px !important;
    padding: 0 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    border-bottom: 1px solid var(--border) !important;
    text-align: center !important;
  }

  /*
   * Alerts, Highlights, and Talkgroups wrap the title in a copy div.
   * Force that wrapper to occupy the entire heading width.
   */
  .mobile-destination-heading > div:first-child {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  .mobile-destination-title {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text) !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1.08 !important;
    letter-spacing: -.025em !important;
    text-align: center !important;
  }

  /*
   * The mobile destination header is title-only. Secondary heading
   * copy remains hidden consistently across all four destinations.
   */
  .mobile-destination-heading .eyebrow,
  .mobile-destination-heading > p:last-child,
  .mobile-destination-heading
    .talkgroups-heading__copy > p:last-child,
  .mobile-destination-heading
    .talkgroups-heading__count {
    display: none !important;
  }
}
