.pan-threat .monitor-threat-guide {
  padding: clamp(10px, 2vw, 22px);
  color: #cbdcda;
  font-family: "Share Tech Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.4;
}

.threat-guide-detail h3 {
  margin: 0;
  color: var(--pan-cyan);
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: normal;
}

.threat-guide-detail p {
  margin: 4px 0 0;
  color: #a0bcbc;
}

.threat-guide-filters,
.threat-guide-results {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) minmax(225px, .8fr);
  gap: 12px;
  margin-top: 14px;
}

.threat-guide-filters label {
  display: grid;
  gap: 4px;
  color: var(--pan-cyan);
}

body.panoramic .monitor-threat-guide :is(input, select, button) {
  box-sizing: border-box;
  min-width: 0;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid var(--pan-line);
  border-radius: 0;
  background: #081517;
  color: #d2eeee;
  font: inherit;
}

body.panoramic .monitor-threat-guide :is(input, select):focus-visible,
body.panoramic .monitor-threat-guide button:focus-visible,
.threat-guide-detail:focus-visible {
  outline: 2px solid var(--pan-cyan);
  outline-offset: 1px;
}

.threat-guide-count {
  min-height: 1.4em;
  margin: 0 0 5px;
  color: #adcbcd;
}

.threat-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.panoramic .monitor-threat-guide .threat-guide-list a {
  display: grid;
  width: 100%;
  grid-template-columns: var(--threat-index-columns);
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  cursor: pointer;
  text-align: left;
  min-height: 38px;
  padding: 6px 9px;
  box-sizing: border-box;
  border: 1px solid #244c51;
  background: #081517;
  color: #d2eeee;
  text-decoration: none;
}

body.panoramic .monitor-threat-guide .threat-guide-list a:is(:hover, [aria-current="page"]) {
  border-color: var(--pan-cyan);
  background: #11282b;
}

.threat-guide-name { color: var(--pan-cyan); }
.threat-guide-context { color: #b0c5c6; }
.threat-guide-rwr { color: #e5c371; }
.threat-guide-name, .threat-guide-context { overflow-wrap: anywhere; }

.threat-guide-detail {
  position: sticky;
  top: 8px;
  align-self: start;
  padding: 12px;
  border: 1px solid var(--pan-line);
  background: #081517;
}

.threat-guide-detail .threat-guide-alias { color: #e0efed; }
.threat-guide-detail figure { margin: 12px 0 0; }
.threat-guide-detail figcaption { margin-top: 4px; font-size: 12px; }
.threat-guide-detail a { color: var(--pan-cyan); }
.threat-guide-detail img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 300px;
  object-fit: contain;
  background: #050a0b;
}

.threat-guide-symbols {
  display: flex;
  gap: 9px;
  margin: 10px 0 0;
}

.threat-guide-symbols dd { margin: 0; color: #e5c371; }
.monitor-threat-guide [hidden] { display: none !important; }

@media (max-width: 850px) {
  .threat-guide-results { grid-template-columns: minmax(0, 1fr); }
  .threat-guide-detail { position: static; grid-row: 1; }
}

@media (max-width: 520px) {
  .threat-guide-filters { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 7px; }
  body.panoramic .monitor-threat-guide :is(input, select, button) { min-height: 44px; font-size: 16px; }
}

.threat-guide-entry-header {
  padding: 8px;
  border: 1px solid #1d4044;
  background-color: #081517;
  background-position: right center;
  background-size: cover;
}

.threat-guide-origin {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
}

.threat-guide-origin > span { display: inline-flex; align-items: center; gap: 5px; }
.threat-guide-detail .threat-guide-origin img { width: 19px; height: 13px; aspect-ratio: auto; object-fit: contain; background: transparent; }
.threat-guide-credit { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.threat-guide-guidance { padding-top: 5px; }
.threat-guide-symbols { align-items: center; }
.threat-guide-radar-code {
  padding: 2px 6px;
  border: 1px solid #416b53;
  color: #9bef9f !important;
  background: #07120d;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.threat-guide-views { display: flex; gap: 4px; margin-top: 4px; }
body.panoramic .monitor-threat-guide .threat-guide-views button {
  min-width: 36px;
  min-height: 36px;
  cursor: pointer;
}
body.panoramic .monitor-threat-guide .threat-guide-views button[aria-pressed="true"] {
  border-color: var(--pan-cyan);
  color: var(--pan-cyan);
  background: #11282b;
}
@media (max-width: 520px) {
  body.panoramic .monitor-threat-guide .threat-guide-views button { min-width: 44px; min-height: 44px; }
}

.threat-guide-index {
  --threat-index-columns: minmax(68px, 1fr) minmax(0, 1.35fr) minmax(42px, .6fr);
  min-width: 0;
}

.threat-guide-sections {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

body.panoramic .monitor-threat-guide .threat-guide-sections a {
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 4px 6px;
  background: #081517;
  border: 1px solid var(--pan-line);
  color: var(--pan-cyan);
  text-decoration: none;
}

body.panoramic .monitor-threat-guide .threat-guide-sections a:is([aria-current], :hover, :focus-visible) {
  border-color: var(--pan-cyan);
  color: #dafffa;
  background: #123032;
}

.threat-guide-section-heading {
  margin-top: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--pan-line);
}

.threat-guide-section-heading h3 {
  margin: 0;
  color: var(--pan-cyan);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: normal;
}

.threat-guide-section-heading p {
  margin: 2px 0 0;
  color: #b7d4d3;
}

.threat-guide-section-heading small {
  display: block;
  margin-top: 4px;
  color: #9fbabc;
}

.threat-guide-column-labels {
  display: grid;
  grid-template-columns: var(--threat-index-columns);
  gap: 6px;
  padding: 4px 9px;
  border-block: 1px solid #234447;
  color: #9ac6c8;
  font-size: 11px;
}

.threat-guide-list a > :last-child { overflow-wrap: anywhere; }

.threat-guide-rwr-reference { margin-top: 8px; }
.threat-guide-rwr-reference summary { color: var(--pan-cyan); cursor: pointer; width: fit-content; }

.threat-guide-rwr-key {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--pan-line);
  background: #071212;
}

.threat-guide-display { margin: 0; text-align: center; color: #a8c6c6; font-size: 12px; }

.threat-guide-scope {
  position: relative;
  width: 112px;
  aspect-ratio: 1;
  margin: 0 auto 5px;
  border: 1px solid #468e70;
  border-radius: 50%;
  background: radial-gradient(circle, #112820, #040b08 76%);
  color: #98f1aa;
}

.threat-guide-scope span { position: absolute; }
.threat-scope-ring { inset: 25%; border: 1px solid #37664e; border-radius: 50%; }
.threat-scope-ownship { inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.threat-scope-contact { top: 28%; left: 58%; }
.threat-scope-contact-alt { top: 60%; left: 19%; }
.threat-guide-rwr-key dl { margin: 0; }
.threat-guide-rwr-key dt { color: var(--pan-cyan); }
.threat-guide-rwr-key dd { margin: 2px 0 8px; }

@media (max-width: 520px) {
  .threat-guide-sections { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.panoramic .monitor-threat-guide .threat-guide-sections a { min-height: 44px; }
  .threat-guide-rwr-key { grid-template-columns: minmax(0, 1fr); }
}

.threat-guide-filters:has(label[hidden]) { grid-template-columns: minmax(0, 1fr); }


body.panoramic .monitor-threat-guide .threat-guide-list a:focus-visible {
  outline: 2px solid var(--pan-cyan);
  outline-offset: 1px;
}

.threat-guide-section-heading h3,
.threat-guide-entry-header h3,
.threat-guide-sections a,
body.panoramic .monitor-threat-guide .threat-guide-entry-tools button {
  font-family: stratum-1-web, "Share Tech Mono", Consolas, monospace;
}

.threat-guide-entry-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 8px;
}

.threat-guide-entry-tools [role="status"] { color: #acd5cf; }

.threat-guide-identity {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.threat-guide-nato-symbol {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 16px;
  box-sizing: border-box;
  color: #b8d0d0;
  background: #0b181b;
  border: 1px solid #617d83;
  border-radius: 2px;
  vertical-align: -3px;
}

.threat-guide-nato-symbol > svg { display: block; width: 17px; height: 13px; }
.threat-guide-entry-header p > .threat-guide-nato-symbol { margin-right: 6px; }

@media (max-width: 520px) {
  .threat-guide-identity { gap: 4px; }
  .threat-guide-nato-symbol { width: 18px; }
}

.threat-guide-code-scope {
  display: grid;
  place-content: center;
  position: relative;
  width: 62px;
  height: 62px;
  margin: 8px 0;
  border: 1px solid #668b77;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 40%, #415d50 42%, transparent 44%), #050c09;
  color: #a6ffc1;
  text-align: center;
  line-height: 1.1;
}

.threat-guide-code-scope > span { font-size: 19px; }
.threat-guide-code-scope > small { font-size: 10px; }
.threat-guide-list [aria-current="page"] .threat-guide-rwr { color: #a6ffc1; }

@media (max-width: 520px) {
  body.panoramic .monitor-threat-guide .threat-guide-list a { min-height: 44px; }
}

.threat-guide-identification {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--pan-line);
}
.threat-guide-identification h4 { margin: 0; color: var(--pan-cyan); font-size: 14px; font-weight: normal; }
.threat-guide-related { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; }

.threat-guide-scope-controls,
.threat-guide-pack {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 7px;
  margin-top: 10px;
}

.threat-guide-scope-controls label {
  display: grid;
  flex: 1 1 120px;
  min-width: 0;
  color: var(--pan-cyan);
}

body.panoramic .monitor-threat-guide .threat-guide-scope-controls select { width: 100%; }
.threat-guide-scope-controls .threat-guide-recent { display: flex; align-items: center; gap: 5px; flex: 0 1 auto; }
body.panoramic .monitor-threat-guide .threat-guide-recent input { min-height: 22px; width: 16px; accent-color: var(--pan-cyan); }

.threat-guide-pack span { align-self: center; color: #a8d1d1; }
.threat-guide-pack button:disabled { opacity: .48; }
.threat-guide-context-note,
.threat-guide-export-feedback { color: #b6d8d4; margin: 5px 0 0; }
.threat-guide-export-feedback:empty { display: none; }
.threat-guide-changelog,
.threat-guide-records { margin-top: 8px; }
.threat-guide-changelog summary,
.threat-guide-records summary { color: var(--pan-cyan); cursor: pointer; width: fit-content; }
.threat-guide-records p { overflow-wrap: anywhere; }

body.panoramic .monitor-threat-guide .threat-guide-correction {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 22px));
  max-height: calc(100dvh - 20px);
  color: #d2eeee;
  background: #091719;
  border: 1px solid #55a3ab;
  font: inherit;
}
.threat-guide-correction::backdrop { background: #0009; }
.threat-guide-correction form,
.threat-guide-correction label { display: grid; gap: 4px; }
.threat-guide-correction form { gap: 8px; }
.threat-guide-correction h4,
.threat-guide-correction p { margin: 0; }
.threat-guide-correction textarea {
  min-height: 78px;
  resize: vertical;
  font: inherit;
  color: #d2eeee;
  background: #081517;
  border: 1px solid var(--pan-line);
  padding: 6px;
}

body.panoramic .monitor-threat-lookup {
  display: inline-block;
  margin: 3px 6px;
  color: var(--pan-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.threat-guide-back { display: none; }
.threat-guide-kneeboard-names ul { list-style: none; margin: 4px 0; padding: 0; }
.threat-guide-kneeboard-names li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.threat-guide-kneeboard-names li small { color: #b6d8d4; }

@media (max-width: 850px) {
  .monitor-threat-guide.has-selected-entry .threat-guide-index,
  .monitor-threat-guide.has-selected-entry > :is(.threat-guide-filters, .threat-guide-scope-controls, .threat-guide-context-note) {
    display: none;
  }
  .threat-guide-back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-block-end: 5px;
  }
}
