/* Scoped to the FLARM flight inspector. All values and units remain selectable text. */
:root .layer400-app.layer400-app.layer400-app.layer400-app .operations-layout .track-inspector.track-inspector--modern.track-inspector--compact.is-open[data-live-flight]:has(.ogn-drone-source) {
  & .inspector-header--identity {
    background: radial-gradient(circle at 88% 140%, transparent 29%, #35545c 29.3%, transparent 29.8%, transparent 35%, #35545c 35.3%, transparent 35.8%), linear-gradient(115deg, #142831, #253f48);
    box-shadow: inset 3px 0 #ffbf44;
  }
  & .inspector-mobile-glance[aria-label="FLARM drone readings"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
    gap: 7px;
    background: var(--fi-soft);
  }
  & .inspector-mobile-glance > [data-ogn-reading] {
    --reading-ink: #316979;
    position: relative;
    display: block;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--fi-line);
    border-radius: 10px;
    background: var(--fi-paper);
  }
  & .inspector-mobile-glance > [data-ogn-reading] dt,
  & .ogn-drone-source dt {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: normal;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    color: var(--fi-muted);
  }
  & .inspector-mobile-glance > [data-ogn-reading] dd:first-of-type {
    margin-top: 7px;
    font-size: 23px;
    line-height: 1.12;
    font-weight: 680;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  & .ogn-reading-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    color: var(--reading-ink);
    background: color-mix(in srgb, currentColor 12%, var(--fi-paper));
  }
  & [data-ogn-reading="OGN registry model"] {--reading-ink: #96621c}
  & [data-ogn-reading="Ground speed"] {--reading-ink: #50579b}
  & [data-ogn-reading="Climb rate"] {--reading-ink: #16705d}
  & .inspector-mobile-glance > :is([data-ogn-reading="Ground course"], [data-ogn-reading="Estimated height above ground"]) {
    grid-column: 1 / -1;
    isolation: isolate;
    padding: 15px 108px 15px 14px;
    overflow: hidden;
    border-color: transparent;
    color: #f3faf8;
  }
  & .inspector-mobile-glance > [data-ogn-reading="Ground course"] {
    min-height: 85px;
    background: linear-gradient(109deg, #182e3a, #224e59);
  }
  & .inspector-mobile-glance > [data-ogn-reading="Estimated height above ground"] {
    background: linear-gradient(110deg, #163832, #27594b);
  }
  & .inspector-mobile-glance > :is([data-ogn-reading="Ground course"], [data-ogn-reading="Estimated height above ground"]) dt {
    color: #d1eae5;
    letter-spacing: .015em;
  }
  & .inspector-mobile-glance > :is([data-ogn-reading="Ground course"], [data-ogn-reading="Estimated height above ground"]) dd:first-of-type {
    color: #fff;
    font-size: 30px;
  }
  & [data-ogn-reading="Ground course"]::after {
    content: "N" / "";
    position: absolute;
    top: calc(50% - 36px);
    right: 43px;
    width: 10px;
    text-align: center;
    font: 700 9px/1 sans-serif;
    color: #ffcf62;
  }
  & [data-ogn-reading="Ground course"] .ogn-reading-icon {
    position: absolute;
    right: 20px;
    top: calc(50% - 27px);
    width: 56px;
    height: 56px;
    color: #ffd36c;
    border-radius: 50%;
    border: 1px solid #69949e;
    background: radial-gradient(circle, #183c46 58%, transparent 60%), repeating-conic-gradient(#90b4ba 0deg 2deg, transparent 2deg 30deg);
    box-shadow: 0 0 0 3px #16323c;
  }
  & [data-ogn-reading="Ground course"] .ogn-reading-icon::before {
    width: 17px;
    height: 40px;
    mask: none;
    clip-path: polygon(50% 0, 91% 52%, 50% 100%, 9% 52%);
    background: linear-gradient(#ffd36c 50%, #789ba4 50%);
  }
  & [data-ogn-reading="Estimated height above ground"]::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 34%;
    background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20180%2095%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22m0%2095%2039-36%2013%208%2042-45%2019%2017%2024-30%2043%2045v41%22%20fill%3D%22%23346957%22%2F%3E%3Cpath%20d%3D%22m14%2095%2057-43%2017%2014%2049-57-42%2066-24-14-43%2034%22%20fill%3D%22%2343816b%22%2F%3E%3Cpath%20d%3D%22M23%2095%2098%2058l13%209%2044-31%2025%2019v40%22%20fill%3D%22%23214c42%22%2F%3E%3Cpath%20d%3D%22m85%2095%2043-24%2017%203%2035-21v42%22%20fill%3D%22%23193f37%22%2F%3E%3Cpath%20d%3D%22m107%2029%208%206%2022-26%2012%2013%22%20stroke%3D%22%2377ac93%22%20stroke-width%3D%221.3%22%2F%3E%3C%2Fsvg%3E") right bottom / contain no-repeat;
    pointer-events: none;
  }
  & [data-ogn-reading="Estimated height above ground"] .ogn-reading-icon {
    color: #c9f0d9;
    background: #355d4c;
  }
  & .inspector-mobile-glance > [data-ogn-reading] dd + dd {margin-top: 5px}
  & [data-ogn-reading] dd small {max-width: 17ch}
  & [data-ogn-reading] .inspector-terrain-credit,
  & [data-ogn-reading] dd small,
  & [data-ogn-reading] dd small a {color: #d5eee5}
  & .ogn-drone-source {
    --reading-ink: #a8dfd3;
    position: relative;
    min-height: 55px;
    padding-left: 55px;
    background: #203b41;
    border-top: 2px solid #6cb7a8;
  }
  & .ogn-drone-source dt {color: #b7d9d5}
  & .ogn-drone-source dd {color: #f4fbfa}
  & .ogn-drone-source .ogn-reading-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    background: #305759;
    border: 1px solid #51817d;
  }
  & .ogn-reading-icon::before {
    content: "";
    width: 17px;
    height: 17px;
    background: currentColor;
    mask: var(--reading-symbol) center / contain no-repeat;
  }
  & [data-ogn-reading="Climb rate"][data-climb="-1"] .ogn-reading-icon::before {transform: scaleY(-1)}

}
[data-ogn-reading="OGN registry model"] {
  --reading-symbol: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M7 7l10 10M7 17L17 7 M8 5.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z M21 5.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z M8 18.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z M21 18.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z M10 10h4v4h-4z%22/%3E%3C/svg%3E");
}
[data-ogn-reading="Reported altitude"] {
  --reading-symbol: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M5 20V4m-3 3 3-3 3 3 M11 4h8m-8 5h4m-4 5h6m-6 6h10%22/%3E%3C/svg%3E");
}
[data-ogn-reading="Ground speed"] {
  --reading-symbol: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M3 18a9.5 9.5 0 1 1 18 0 M5 13l2 1m0-6 1.6 1.5M12 5v2m6 1-5 6 M13.5 15a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z M7 19h10%22/%3E%3C/svg%3E");
}
[data-ogn-reading="Climb rate"] {
  --reading-symbol: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M3 18l6-6 4 3 8-10m-6 0h6v6%22/%3E%3C/svg%3E");
}
[data-ogn-reading="Climb rate"][data-climb="0"] {
  --reading-symbol: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M3 12h17m-5-5 5 5-5 5%22/%3E%3C/svg%3E");
}
[data-ogn-reading="Ground course"] {
  --reading-symbol: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z M12 5.5l3 10-3-2-3 2z%22/%3E%3C/svg%3E");
}
[data-ogn-reading="Estimated height above ground"] {
  --reading-symbol: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M2 20l5-6 3 3 4-5 8 8z M8 3v8m-3-3 3 3 3-3 M15 4h5%22/%3E%3C/svg%3E");
}
[data-ogn-reading="Receiving stations"], .ogn-drone-source {
  --reading-symbol: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 d=%22M12 12v8m-4 1h8 M5 4a10 10 0 0 0 0 14m14-14a10 10 0 0 1 0 14 M8 7a6 6 0 0 0 0 8m8-8a6 6 0 0 1 0 8 M13 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0z%22/%3E%3C/svg%3E");
}
