Files
gods-eye-view/src/ui/styles/entity-card.css
T
Manjunath Paparaju cc83763452 Rebuild the Context panel around the selected item and the view
Clicking anything a layer can identify opens one card in Context: a hero
tile (route globe and 3D model for a flight, the camera for CCTV, headline
figures otherwise), its facts, actions with Cockpit or the orbital view as
the primary one, and a standard set of nearby blocks (weather and local
time, flights, vessels, hazards, alerts) within one radius the user sets.
Aircraft show altitude as a graph. Things that move are followed when
picked, and a card closes when its layer is turned off.

With nothing selected the panel describes the view: the layers that are on
with a breakdown of what each holds, the camera's height, what is in view,
then time, weather and local news. From far out it shows worldwide counts
per layer. A search field in the header narrows whatever the panel shows.

Prototype. Context reads weather and hazard feeds while its panel is closed,
the two 3D previews on a flight card repaint continuously, Follow can show
pressed after tracking has ended elsewhere, and most new strings are fixed
English. Same-named sites are told apart by position, not by a stable id.
2026-11-16 14:58:53 -08:00

1753 lines
37 KiB
CSS

/* ── Context panel: the card for one thing on the map ──────────────────
Sits at the top of the Context panel, above the mode switch. Glass like
the omnibar sheet; the title in the mono face the HUD uses. */
.entity-card {
margin: 0 0 0.75rem;
padding: 0.7rem 0.75rem 0.6rem;
color: rgba(225, 236, 242, 0.92);
background: rgba(40, 44, 52, 0.55);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 10px;
}
.entity-card__head {
display: flex;
align-items: center;
gap: 0.5rem;
}
.entity-card__icon {
display: grid;
flex: none;
place-items: center;
width: 1.9rem;
height: 1.9rem;
color: #36dcff;
font-size: 1.1rem;
background: rgba(29, 69, 81, 0.35);
border: 1px solid rgba(48, 194, 224, 0.35);
border-radius: 7px;
}
.entity-card__kind {
display: flex;
flex: 1;
flex-direction: column;
min-width: 0;
font-size: 0.62rem;
letter-spacing: 0.06rem;
text-transform: uppercase;
}
.entity-card__kind > span:first-child {
color: rgba(225, 236, 242, 0.85);
}
.entity-card__layer {
overflow: hidden;
color: rgba(199, 214, 222, 0.5);
text-overflow: ellipsis;
white-space: nowrap;
}
.entity-card__status {
flex: none;
padding: 0.12rem 0.45rem;
font-size: 0.58rem;
white-space: nowrap;
border: 1px solid currentColor;
border-radius: 999px;
}
.entity-card__status--live {
color: #5ee6a0;
}
.entity-card__status--live::before {
display: inline-block;
width: 5px;
height: 5px;
margin-right: 0.3rem;
vertical-align: middle;
background: currentColor;
border-radius: 50%;
content: '';
animation: entity-card-pulse 1.6s ease-in-out infinite;
}
.entity-card__status--aged {
color: rgba(199, 214, 222, 0.6);
}
.entity-card__status--lost {
color: #ff9f43;
}
.entity-card__close {
display: grid;
flex: none;
place-items: center;
width: 1.5rem;
height: 1.5rem;
padding: 0;
color: rgba(199, 214, 222, 0.6);
background: none;
border: 0;
border-radius: 6px;
cursor: pointer;
}
.entity-card__close:hover,
.entity-card__close:focus-visible {
color: #fff;
background: rgba(255, 255, 255, 0.08);
}
.entity-card__close .material-symbols-outlined {
font-size: 1rem;
}
.entity-card__title {
margin: 0.55rem 0 0.1rem;
overflow-wrap: anywhere;
font-family: var(--font-mono);
font-size: 1rem;
font-weight: 600;
letter-spacing: 0.02rem;
}
.entity-card__where {
margin: 0 0 0.5rem;
color: rgba(199, 214, 222, 0.5);
font-family: var(--font-mono);
font-size: 0.62rem;
white-space: pre;
}
.entity-card__facts {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.4rem 0.75rem;
margin: 0 0 0.55rem;
}
.entity-card__fact {
min-width: 0;
}
.entity-card__fact dt {
color: rgba(199, 214, 222, 0.5);
font-size: 0.56rem;
letter-spacing: 0.05rem;
text-transform: uppercase;
}
.entity-card__fact dd {
margin: 0.1rem 0 0;
overflow: hidden;
font-family: var(--font-mono);
font-size: 0.72rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.entity-card__empty {
margin: 0 0 0.55rem;
color: rgba(199, 214, 222, 0.55);
font-size: 0.68rem;
}
.entity-card__links {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
margin: 0 0 0.55rem;
}
.entity-card__links a {
padding: 0.15rem 0.5rem;
color: #36dcff;
font-size: 0.64rem;
text-decoration: none;
border: 1px solid rgba(48, 194, 224, 0.35);
border-radius: 999px;
}
.entity-card__links a:hover,
.entity-card__links a:focus-visible {
background: rgba(48, 194, 224, 0.12);
}
.entity-card__actions {
display: flex;
gap: 0.35rem;
padding-top: 0.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.entity-card__action {
display: inline-flex;
flex: 1;
align-items: center;
justify-content: center;
gap: 0.3rem;
height: 1.9rem;
padding: 0 0.4rem;
color: rgba(225, 236, 242, 0.88);
font-size: 0.66rem;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 7px;
cursor: pointer;
transition:
background 140ms ease,
border-color 140ms ease;
}
.entity-card__action .material-symbols-outlined {
font-size: 0.95rem;
}
.entity-card__action:hover,
.entity-card__action:focus-visible {
background: rgba(48, 194, 224, 0.12);
border-color: rgba(48, 194, 224, 0.45);
}
.entity-card__action--ask {
color: #ffb877;
}
.entity-card__action--ask:hover,
.entity-card__action--ask:focus-visible {
background: rgba(255, 159, 67, 0.12);
border-color: rgba(255, 159, 67, 0.5);
}
.entity-card__nearby {
margin-top: 0.65rem;
}
.entity-card__nearby h4 {
margin: 0 0 0.25rem;
color: rgba(199, 214, 222, 0.5);
font-size: 0.56rem;
font-weight: 500;
letter-spacing: 0.06rem;
text-transform: uppercase;
}
.entity-card__nearby ul {
margin: 0;
padding: 0;
list-style: none;
}
.entity-card__nearby button {
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
padding: 0.3rem 0.35rem;
color: rgba(225, 236, 242, 0.85);
font-size: 0.68rem;
text-align: left;
background: none;
border: 0;
border-radius: 6px;
cursor: pointer;
}
.entity-card__nearby button:hover,
.entity-card__nearby button:focus-visible {
background: rgba(255, 255, 255, 0.06);
}
.entity-card__nearby .material-symbols-outlined {
color: rgba(199, 214, 222, 0.6);
font-size: 0.95rem;
}
.entity-card__row-title {
display: flex;
flex: 1;
flex-direction: column;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.entity-card__row-title small {
color: rgba(199, 214, 222, 0.45);
font-size: 0.56rem;
}
.entity-card__row-meta {
flex: none;
color: rgba(199, 214, 222, 0.55);
font-family: var(--font-mono);
font-size: 0.6rem;
}
.entity-card-enter-active,
.entity-card-leave-active {
transition:
opacity 200ms ease,
transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.entity-card-enter-from,
.entity-card-leave-to {
opacity: 0;
transform: translateY(-6px);
}
@keyframes entity-card-pulse {
50% {
opacity: 0.35;
}
}
@media (prefers-reduced-motion: reduce) {
.entity-card-enter-active,
.entity-card-leave-active {
transition: opacity 120ms ease;
}
.entity-card-enter-from,
.entity-card-leave-to {
transform: none;
}
.entity-card__status--live::before {
animation: none;
}
}
/* Context is one card for whatever is picked: the old Contacts and Space
Missions modes and the Radio strip are out of it. Their markup stays, as
their controls still find their buttons by id, but none of it shows. */
#global-context-panel
:is(
.global-context-modes,
#context-mode-standby,
#context-flights-view,
#context-missions-view,
#radio-panel
) {
display: none !important;
}
/* ── In view: what the panel shows while nothing is picked ───────────── */
.view-context {
margin: 0 0 0.75rem;
padding: 0.7rem 0.75rem 0.6rem;
color: rgba(225, 236, 242, 0.92);
background: rgba(40, 44, 52, 0.55);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 10px;
}
.view-context__head {
display: flex;
align-items: center;
gap: 0.5rem;
}
.view-context__icon {
display: grid;
flex: none;
place-items: center;
width: 1.9rem;
height: 1.9rem;
color: #36dcff;
font-size: 1.1rem;
background: rgba(29, 69, 81, 0.35);
border: 1px solid rgba(48, 194, 224, 0.35);
border-radius: 7px;
}
.view-context__kind {
display: flex;
flex-direction: column;
font-size: 0.62rem;
letter-spacing: 0.06rem;
text-transform: uppercase;
}
.view-context__sub {
color: rgba(199, 214, 222, 0.5);
}
.view-context__title {
margin: 0.55rem 0 0.1rem;
overflow-wrap: anywhere;
font-family: var(--font-mono);
font-size: 1rem;
font-weight: 600;
}
.view-context__where {
margin: 0 0 0.55rem;
color: rgba(199, 214, 222, 0.5);
font-family: var(--font-mono);
font-size: 0.62rem;
white-space: pre;
}
.view-context__total,
.view-context__empty {
margin: 0 0 0.4rem;
color: rgba(199, 214, 222, 0.7);
font-size: 0.68rem;
line-height: 1.45;
}
.view-context__group + .view-context__group {
margin-top: 0.45rem;
}
.view-context__group h4 {
display: flex;
align-items: center;
gap: 0.4rem;
margin: 0 0 0.15rem;
color: rgba(199, 214, 222, 0.6);
font-size: 0.58rem;
font-weight: 500;
letter-spacing: 0.06rem;
text-transform: uppercase;
}
.view-context__group h4 .material-symbols-outlined {
font-size: 0.95rem;
}
.view-context__count {
margin-inline-start: auto;
color: #36dcff;
font-family: var(--font-mono);
}
.view-context__group ul {
margin: 0;
padding: 0;
list-style: none;
}
.view-context__group button {
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
padding: 0.28rem 0.35rem 0.28rem 1.75rem;
color: rgba(225, 236, 242, 0.85);
font-size: 0.68rem;
text-align: left;
background: none;
border: 0;
border-radius: 6px;
cursor: pointer;
}
.view-context__group button:hover,
.view-context__group button:focus-visible {
background: rgba(255, 255, 255, 0.06);
}
.view-context__row-title {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.view-context__row-meta {
flex: none;
color: rgba(199, 214, 222, 0.55);
font-family: var(--font-mono);
font-size: 0.6rem;
}
.view-context__actions {
display: flex;
margin-top: 0.6rem;
padding-top: 0.5rem;
border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.context-empty {
display: grid;
justify-items: start;
gap: 6px;
padding: 14px 4px 6px;
color: var(--text-secondary);
font: 12px/1.45 var(--font-sans);
}
.context-empty .material-symbols-outlined {
color: var(--accent);
font-size: 22px;
}
.context-empty strong {
color: var(--text-primary);
font: 600 11px/1.2 var(--font-mono);
letter-spacing: 0.14em;
text-transform: uppercase;
}
/* A warning leads the card, above the name: an emergency, a tsunami flag. */
.entity-card__warning {
display: flex;
align-items: flex-start;
gap: 0.4rem;
margin: 0.55rem 0 0;
padding: 0.4rem 0.55rem;
color: #ffd6d0;
font-size: 0.68rem;
font-weight: 600;
line-height: 1.35;
background: rgba(255, 75, 62, 0.16);
border: 1px solid rgba(255, 75, 62, 0.55);
border-radius: 7px;
}
.entity-card__warning .material-symbols-outlined {
flex: none;
color: #ff6b5e;
font-size: 1rem;
}
/* Where the card's data comes from, and how fresh it is. */
.entity-card__source {
margin: 0.6rem 0 0;
padding-top: 0.45rem;
color: rgba(199, 214, 222, 0.5);
font-size: 0.6rem;
border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.entity-card__source span {
letter-spacing: 0.06rem;
text-transform: uppercase;
}
/* Open, Context fills the right column top to bottom, its card scrolling
inside rather than the panel growing and shrinking with each selection. */
#right-context-rail > #global-context-panel:not(.collapsed),
#right-context-rail.layout-focus > #global-context-panel:not(.collapsed) {
flex: 0 0 var(--right-stack-max-height, auto);
height: var(--right-stack-max-height, auto);
max-height: var(--right-stack-max-height, 100%);
}
#right-context-rail
> #global-context-panel:not(.collapsed)
.global-context-panel-inner {
height: 100%;
}
/* The icon font's own rules (display: block, 24px) beat the badge's; keep
the glyph centred in its square at the badge's size. */
.entity-card__head .entity-card__icon.material-symbols-outlined,
.view-context__head .view-context__icon.material-symbols-outlined {
display: grid;
place-items: center;
box-sizing: border-box;
width: 1.9rem;
height: 1.9rem;
font-size: 1.1rem;
line-height: 1;
overflow: hidden;
}
/* The aircraft's model, turning at the top of its card on a soft spotlight. */
/* Origin to destination, as one line with the craft on it. */
.entity-card__route {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0.15rem 0 0.55rem;
font-family: var(--font-mono);
font-size: 0.85rem;
}
.entity-card__route-line {
position: relative;
display: grid;
flex: 1;
place-items: center;
height: 1rem;
background: linear-gradient(
90deg,
rgba(199, 214, 222, 0.35) 50%,
transparent 0
)
center / 7px 1px repeat-x;
}
.entity-card__route-line .material-symbols-outlined {
padding: 0 0.25rem;
color: #36dcff;
font-size: 0.95rem;
background: rgba(40, 44, 52, 1);
transform: rotate(90deg);
}
/* Headline figures: big numbers, small labels. */
.entity-card__tiles {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.35rem;
margin: 0.2rem 0 0.55rem;
}
.entity-card__tile {
display: grid;
gap: 0.2rem;
padding: 0.45rem 0.4rem;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 8px;
}
.entity-card__tile span {
color: rgba(199, 214, 222, 0.5);
font-size: 0.54rem;
letter-spacing: 0.06rem;
text-transform: uppercase;
}
.entity-card__tile strong {
overflow: hidden;
color: rgba(236, 244, 248, 0.95);
font-family: var(--font-mono);
font-size: 0.76rem;
font-weight: 600;
letter-spacing: -0.02em;
text-overflow: ellipsis;
white-space: nowrap;
}
/* The callout on the turning model, in the frame's top-left corner. The
leader sits under the text: a dot near the craft lights first, the line
draws from it up to the corner, then the label and value fade in. */
/* The parts legend and the scan caption, bottom right of the model. */
/* ── Card, second pass ──────────────────────────────────────────────────
One surface: inside Context the card is the panel's content, not a box in
a box. Identity leads (kind, name, who and what), then status and place,
the model, headline figures, details, actions, what is near, the source. */
#global-context-panel .entity-card,
#global-context-panel .view-context {
margin: 0;
padding: 0.15rem 0 0.4rem;
background: none;
border: 0;
border-radius: 0;
}
.entity-card__head {
align-items: flex-start;
gap: 0.6rem;
}
.entity-card__name {
display: grid;
flex: 1;
gap: 0.12rem;
min-width: 0;
}
#entity-card .entity-card__kind {
display: block;
color: rgba(199, 214, 222, 0.5);
font-size: 0.56rem;
letter-spacing: 0.08rem;
text-transform: uppercase;
}
#entity-card .entity-card__title {
margin: 0;
font-size: 1.15rem;
line-height: 1.1;
letter-spacing: 0.03rem;
}
.entity-card__subtitle {
overflow: hidden;
color: rgba(225, 236, 242, 0.72);
font-size: 0.7rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.entity-card__meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem 0.6rem;
margin: 0.55rem 0 0.15rem;
}
#entity-card .entity-card__where {
margin: 0;
font-size: 0.6rem;
}
/* The model sits edge to edge under the name, framed by hairlines. */
/* Tiles: the number leads, its unit sits small beside it. */
#entity-card .entity-card__tile strong {
display: flex;
align-items: baseline;
gap: 0.2rem;
font-size: 0.95rem;
letter-spacing: -0.01em;
}
#entity-card .entity-card__tile small {
color: rgba(199, 214, 222, 0.6);
font-size: 0.6rem;
font-weight: 500;
}
/* Sections get a quiet heading with a hairline under it. */
.entity-card__section {
margin-top: 0.75rem;
}
.entity-card__section > h4,
#entity-card .entity-card__nearby h4 {
display: flex;
align-items: center;
gap: 0.4rem;
margin: 0 0 0.35rem;
padding-bottom: 0.3rem;
color: rgba(199, 214, 222, 0.55);
font-size: 0.56rem;
font-weight: 500;
letter-spacing: 0.08rem;
text-transform: uppercase;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.entity-card__section > h4 span {
padding: 0 0.3rem;
color: rgba(54, 220, 255, 0.85);
font-family: var(--font-mono);
background: rgba(54, 220, 255, 0.1);
border-radius: 999px;
}
/* Actions: the three moves in a row, then asking GEV across the width. */
#entity-card .entity-card__actions {
display: grid;
gap: 0.35rem;
margin-top: 0.8rem;
padding-top: 0;
border-top: 0;
}
.entity-card__action-row {
display: flex;
gap: 0.35rem;
}
#entity-card .entity-card__action--ask {
width: 100%;
height: 2.1rem;
color: #ffb86b;
background: rgba(255, 159, 67, 0.08);
border-color: rgba(255, 159, 67, 0.35);
}
#entity-card .entity-card__action--ask:hover,
#entity-card .entity-card__action--ask:focus-visible {
background: rgba(255, 159, 67, 0.16);
border-color: rgba(255, 159, 67, 0.6);
}
/* ── Callout states ──────────────────────────────────────────────────────
Enter 0-2.3 s (dot, leader, text), hold to 5.2 s (dot breathes, timer
fills), exit over 1 s (text, then leader back into the dot, then dot). */
/* Exit: text first, then the leader retracts toward the dot, then the dot. */
/* The route on its small globe, and the Route / Model switch above it. */
/* In view, richer: region, the view's figures as tiles, places in view and
layer switches as chips. */
.view-context__region {
margin: 0 0 0.15rem;
color: rgba(225, 236, 242, 0.7);
font-size: 0.7rem;
}
.view-context__facts {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.35rem;
margin: 0.4rem 0 0.7rem;
}
.view-context__fact {
display: grid;
gap: 0.18rem;
padding: 0.45rem 0.5rem;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 8px;
}
.view-context__fact span {
color: rgba(199, 214, 222, 0.5);
font-size: 0.54rem;
letter-spacing: 0.06rem;
text-transform: uppercase;
}
.view-context__fact strong {
overflow: hidden;
color: rgba(236, 244, 248, 0.95);
font-family: var(--font-mono);
font-size: 0.78rem;
font-weight: 600;
text-overflow: ellipsis;
white-space: nowrap;
}
.view-context__towns {
margin: 0.2rem 0 0.7rem;
}
.view-context__towns h4 {
margin: 0 0 0.35rem;
padding-bottom: 0.3rem;
color: rgba(199, 214, 222, 0.55);
font-size: 0.56rem;
font-weight: 500;
letter-spacing: 0.08rem;
text-transform: uppercase;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.view-context__chips {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
}
.view-context__chips button {
display: inline-flex;
align-items: center;
gap: 0.2rem;
padding: 0.28rem 0.6rem;
color: rgba(225, 236, 242, 0.85);
font-size: 0.66rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 999px;
cursor: pointer;
}
.view-context__chips button:hover,
.view-context__chips button:focus-visible {
color: #fff;
background: rgba(54, 220, 255, 0.12);
border-color: rgba(54, 220, 255, 0.4);
}
.view-context__chips .material-symbols-outlined {
font-size: 0.85rem;
}
/* A scheduled route that does not fit the plane's position: amber, dashed,
with a note, so it cannot pass for the flight's actual route. */
.entity-card__route--unverified strong {
color: #ffb86b;
}
.entity-card__route--unverified .entity-card__route-line {
background-image: linear-gradient(
90deg,
rgba(255, 184, 107, 0.55) 50%,
transparent 0
);
}
.entity-card__route--unverified
.entity-card__route-line
.material-symbols-outlined {
color: #ffb86b;
}
.entity-card__route-note {
display: flex;
align-items: center;
gap: 0.3rem;
margin: -0.3rem 0 0.55rem;
color: rgba(255, 184, 107, 0.85);
font-size: 0.6rem;
}
.entity-card__route-note .material-symbols-outlined {
font-size: 0.85rem;
}
/* Route progress: the line filled from the origin up to the plane, which
sits at its share of the way, and dashed beyond it to the destination. */
.entity-card__route--progress .entity-card__route-line {
display: block;
background:
linear-gradient(90deg, #36dcff, #36dcff) left center /
var(--route-share, 0%) 2px no-repeat,
linear-gradient(90deg, rgba(199, 214, 222, 0.35) 50%, transparent 0)
center / 7px 1px repeat-x;
transition: background-size 600ms ease;
}
.entity-card__route--progress
.entity-card__route-line
.material-symbols-outlined {
position: absolute;
top: 50%;
left: var(--route-share, 0%);
padding: 0 0.15rem;
transform: translate(-50%, -50%) rotate(90deg);
transition: left 600ms ease;
}
.entity-card__route-stats {
display: flex;
justify-content: space-between;
gap: 0.5rem;
margin: -0.3rem 0 0.6rem;
color: rgba(199, 214, 222, 0.6);
font-family: var(--font-mono);
font-size: 0.58rem;
}
/* The route globe's corner label: each airport's code over its city and
state, on a soft scrim so it reads over the imagery. */
/* The airports' cities, under the progress bar: origin left, destination right. */
.entity-card__route-places {
display: flex;
justify-content: space-between;
gap: 0.75rem;
margin: -0.35rem 0 0.65rem;
color: rgba(225, 236, 242, 0.75);
font-size: 0.64rem;
}
.entity-card__route-places span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.entity-card__route-places span:last-child {
text-align: right;
}
/* While the preview takes turns, a hairline under the active tab fills until
the switch; a tab the viewer picked stays put and shows no timer. */
/* The minimap's compass, top right: north at the top (the view is north up),
the cyan needle on the course to the destination, its bearing beneath. */
/* Follow, while the camera is on the craft. */
#entity-card .entity-card__action--on {
color: #36dcff;
background: rgba(54, 220, 255, 0.12);
border-color: rgba(54, 220, 255, 0.45);
}
/* ── Context refinements: one heading style, one tile style, even rhythm ── */
.view-context__towns h4,
.view-context__group h4,
.spot-conditions__block h4,
.entity-card__section h4,
.entity-card__nearby h4 {
margin: 0 0 0.4rem;
color: rgba(199, 214, 222, 0.55);
font-family: var(--font-mono);
font-size: 0.56rem;
font-weight: 500;
letter-spacing: 0.14rem;
text-transform: uppercase;
}
.view-context__towns,
.view-context__groups,
.spot-conditions__block,
.entity-card__section {
margin-top: 0.85rem;
}
.view-context__fact,
.entity-card__tile,
.spot-conditions__weather {
border-radius: 8px;
border-color: rgba(255, 255, 255, 0.07);
}
.view-context__title {
letter-spacing: 0.02em;
}
.view-context__where {
margin-bottom: 0.2rem;
}
/* Place chips match the omnibox's chips. */
.view-context__chips button {
border-radius: 999px;
}
/* ── In view: the layers that are on ── */
.view-context__live {
margin-top: 0.85rem;
}
.view-context__live h4 {
display: flex;
align-items: center;
gap: 0.4rem;
margin: 0 0 0.4rem;
color: rgba(199, 214, 222, 0.55);
font-family: var(--font-mono);
font-size: 0.56rem;
font-weight: 500;
letter-spacing: 0.14rem;
text-transform: uppercase;
}
.view-context__live h4 .view-context__count {
margin-inline-start: auto;
}
.view-context__live ul {
display: grid;
gap: 0.25rem;
margin: 0;
padding: 0;
list-style: none;
}
.view-context__live-row {
display: flex;
align-items: center;
gap: 0.55rem;
padding: 0.4rem 0.45rem 0.4rem 0.55rem;
background: rgba(255, 255, 255, 0.035);
border: 1px solid rgba(255, 255, 255, 0.06);
}
.view-context__live-icon {
flex: none;
font-size: 0.95rem;
}
.view-context__live-main {
display: grid;
flex: 1 1 auto;
gap: 0.08rem;
min-width: 0;
}
.view-context__live-name {
overflow: hidden;
color: rgba(236, 244, 248, 0.94);
font-size: 0.72rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.view-context__live-meta {
overflow: hidden;
color: rgba(199, 214, 222, 0.55);
font-family: var(--font-mono);
font-size: 0.58rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.view-context__live-state {
flex: none;
padding: 0.12rem 0.4rem;
font-family: var(--font-mono);
font-size: 0.52rem;
letter-spacing: 0.1rem;
text-transform: uppercase;
border: 1px solid currentColor;
border-radius: 999px;
}
.view-context__live-state--live {
color: #4be3a0;
}
.view-context__live-state--loading {
color: #36dcff;
}
.view-context__live-state--stale {
color: #ffb547;
}
.view-context__live-state--error {
color: #ff5c6c;
}
.view-context__live-off {
display: grid;
flex: none;
place-items: center;
width: 22px;
height: 22px;
padding: 0;
color: rgba(199, 214, 222, 0.5);
background: none;
border: 1px solid transparent;
border-radius: 6px;
cursor: pointer;
}
.view-context__live-off .material-symbols-outlined {
font-size: 14px;
}
.view-context__live-off:hover,
.view-context__live-off:focus-visible {
color: #fff;
border-color: rgba(255, 255, 255, 0.18);
}
/* ── Selected camera: thumbnail, facts, More info ── */
.cctv-preview {
display: grid;
gap: 0.5rem;
margin: 0.5rem 0 0.75rem;
}
.cctv-preview__frame {
position: relative;
display: grid;
place-items: center;
aspect-ratio: 16 / 9;
overflow: hidden;
background: #05080b;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
}
.cctv-preview__frame img {
width: 100%;
height: 100%;
object-fit: cover;
}
.cctv-preview__frame.is-empty span:first-child {
color: rgba(199, 214, 222, 0.5);
font-family: var(--font-mono);
font-size: 0.58rem;
letter-spacing: 0.12rem;
text-transform: uppercase;
}
.cctv-preview__badge {
position: absolute;
left: 6px;
bottom: 6px;
padding: 2px 7px;
color: #4be3a0;
font-family: var(--font-mono);
font-size: 0.5rem;
letter-spacing: 0.1rem;
background: rgba(5, 8, 11, 0.8);
border: 1px solid rgba(75, 227, 160, 0.45);
border-radius: 999px;
}
.cctv-preview__name {
margin: 0;
color: rgba(236, 244, 248, 0.94);
font-size: 0.78rem;
}
.cctv-preview__facts {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.35rem;
margin: 0;
}
.cctv-preview__facts div {
padding: 0.35rem 0.5rem;
background: rgba(255, 255, 255, 0.035);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 7px;
}
.cctv-preview__facts dt {
color: rgba(199, 214, 222, 0.5);
font-size: 0.52rem;
letter-spacing: 0.06rem;
text-transform: uppercase;
}
.cctv-preview__facts dd {
overflow: hidden;
margin: 0.1rem 0 0;
color: rgba(236, 244, 248, 0.92);
font-family: var(--font-mono);
font-size: 0.68rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.cctv-preview__more {
justify-content: center;
}
.cctv-preview__expand {
position: absolute;
top: 6px;
right: 6px;
display: grid;
place-items: center;
width: 26px;
height: 26px;
padding: 0;
color: rgba(236, 244, 248, 0.9);
background: rgba(5, 8, 11, 0.7);
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 7px;
cursor: pointer;
}
.cctv-preview__expand .material-symbols-outlined {
font-size: 15px;
}
.cctv-preview__expand:hover,
.cctv-preview__expand:focus-visible {
color: #7af0ff;
border-color: rgba(54, 220, 255, 0.6);
}
/* ── Bigger camera view ── */
.cctv-popup {
position: fixed;
inset: 0;
z-index: 400;
display: grid;
place-items: center;
padding: 2rem;
background: rgba(2, 4, 8, 0.55);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
animation: cctv-popup-in 160ms ease;
}
@keyframes cctv-popup-in {
from {
opacity: 0;
}
}
.cctv-popup__card {
display: grid;
gap: 0.6rem;
width: min(960px, 92vw);
margin: 0;
padding: 0.7rem;
background: rgba(12, 12, 20, 0.92);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 14px;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.cctv-popup__head {
display: flex;
align-items: center;
gap: 0.55rem;
padding: 0 0.2rem;
color: rgba(236, 244, 248, 0.94);
font-family: var(--font-mono);
font-size: 0.8rem;
letter-spacing: 0.04em;
}
.cctv-popup__head > .material-symbols-outlined {
color: #36dcff;
font-size: 18px;
}
.cctv-popup__badge {
padding: 2px 8px;
color: #4be3a0;
font-size: 0.55rem;
letter-spacing: 0.1rem;
border: 1px solid rgba(75, 227, 160, 0.45);
border-radius: 999px;
}
.cctv-popup__close {
display: grid;
place-items: center;
width: 28px;
height: 28px;
margin-inline-start: auto;
padding: 0;
color: rgba(236, 244, 248, 0.8);
background: none;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 8px;
cursor: pointer;
}
.cctv-popup__close:hover {
color: #fff;
border-color: rgba(255, 255, 255, 0.3);
}
.cctv-popup__card img {
width: 100%;
max-height: 72vh;
object-fit: contain;
background: #000;
border-radius: 8px;
}
.cctv-popup__card figcaption {
display: flex;
flex-wrap: wrap;
gap: 0.3rem 1.1rem;
padding: 0 0.2rem 0.1rem;
color: rgba(199, 214, 222, 0.6);
font-family: var(--font-mono);
font-size: 0.6rem;
letter-spacing: 0.08rem;
text-transform: uppercase;
}
.cctv-popup__card figcaption b {
color: rgba(236, 244, 248, 0.92);
font-weight: 500;
}
/* CCTV, open, fills the right column top to bottom like Context. */
#right-context-rail > #cctv-panel:not(.collapsed),
#right-context-rail.layout-focus > #cctv-panel:not(.collapsed) {
flex: 0 0 var(--right-stack-max-height, auto);
height: var(--right-stack-max-height, auto);
max-height: var(--right-stack-max-height, 100%);
}
#right-context-rail > #cctv-panel:not(.collapsed) > .cctv-panel-inner,
#right-context-rail > #cctv-panel:not(.collapsed) > [class$='-inner'] {
height: 100%;
}
/* ── Hero tile ───────────────────────────────────────────────────────────
One slot at the top of every card: an aircraft's route globe and turning
model, a camera's frame, or a quiet placeholder with the item's icon and
name. */
.entity-hero {
position: relative;
margin: 0 0 0.6rem;
overflow: hidden;
border-radius: 10px;
}
/* Both previews fill the tile, one over the other; the hidden one keeps its
size, so showing it needs no layout and no fresh canvas. */
.entity-hero .cctv-preview {
margin: 0;
}
.entity-hero__placeholder {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: 0.9rem;
min-height: 84px;
padding: 0.7rem 0.9rem;
background:
radial-gradient(
ellipse 45% 90% at 12% 50%,
rgba(54, 220, 255, 0.1),
transparent 70%
),
rgba(255, 255, 255, 0.025);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 10px;
}
.entity-hero__placeholder--bare {
grid-template-columns: 1fr;
justify-items: center;
gap: 0.3rem;
text-align: center;
}
.entity-hero__glyph.material-symbols-outlined {
display: grid;
place-items: center;
width: 3.2rem;
height: 3.2rem;
color: #36dcff;
font-size: 1.9rem;
background: rgba(54, 220, 255, 0.08);
border: 1px solid rgba(54, 220, 255, 0.18);
border-radius: 50%;
}
.entity-hero__figures {
display: flex;
flex-wrap: wrap;
gap: 0.4rem 1.1rem;
min-width: 0;
}
.entity-hero__figure {
display: grid;
gap: 0.15rem;
min-width: 0;
}
.entity-hero__figure strong {
overflow: hidden;
color: rgba(240, 247, 250, 0.98);
font-family: var(--font-mono);
font-size: 1.15rem;
font-weight: 600;
line-height: 1.05;
text-overflow: ellipsis;
white-space: nowrap;
}
.entity-hero__figure strong small {
margin-inline-start: 0.2rem;
color: rgba(199, 214, 222, 0.7);
font-size: 0.62rem;
font-weight: 500;
}
.entity-hero__figure span,
.entity-hero__kind {
color: rgba(199, 214, 222, 0.55);
font-family: var(--font-mono);
font-size: 0.52rem;
letter-spacing: 0.12rem;
text-transform: uppercase;
}
/* ── Cockpit leads an aircraft's actions ─────────────────────────────── */
#entity-card .entity-card__action--primary {
width: 100%;
height: 2.3rem;
color: #04131a;
font-size: 0.74rem;
font-weight: 600;
letter-spacing: 0.04rem;
background: #36dcff;
border-color: #36dcff;
box-shadow: 0 0 18px rgba(54, 220, 255, 0.28);
}
#entity-card .entity-card__action--primary:hover,
#entity-card .entity-card__action--primary:focus-visible {
color: #04131a;
background: #7be8ff;
border-color: #7be8ff;
}
/* Following is a state, not the main action: outlined, not filled. */
#entity-card .entity-card__action--on {
background: transparent;
}
/* ── Worldwide counts (globe view, nothing selected) ─────────────────── */
.view-context__world {
margin: 0.6rem 0 0.75rem;
}
.view-context__world h4 {
margin: 0 0 0.4rem;
color: rgba(199, 214, 222, 0.55);
font-family: var(--font-mono);
font-size: 0.56rem;
font-weight: 500;
letter-spacing: 0.14rem;
text-transform: uppercase;
}
.view-context__world-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.35rem;
}
.view-context__world-tile {
display: grid;
grid-template-columns: auto 1fr;
align-items: center;
gap: 0.05rem 0.5rem;
padding: 0.5rem 0.6rem;
color: inherit;
font: inherit;
text-align: start;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 8px;
}
.view-context__world-tile .material-symbols-outlined {
grid-row: 1 / 3;
color: #36dcff;
font-size: 1.3rem;
}
.view-context__world-tile strong {
color: rgba(240, 247, 250, 0.98);
font-family: var(--font-mono);
font-size: 1rem;
font-weight: 600;
line-height: 1.1;
}
.view-context__world-tile span:last-child {
overflow: hidden;
color: rgba(199, 214, 222, 0.6);
font-size: 0.58rem;
letter-spacing: 0.04rem;
text-overflow: ellipsis;
text-transform: uppercase;
white-space: nowrap;
}
.view-context__world-tile.is-off {
cursor: pointer;
border-style: dashed;
}
.view-context__world-tile.is-off .material-symbols-outlined,
.view-context__world-tile.is-off strong {
color: rgba(199, 214, 222, 0.45);
}
.view-context__world-tile.is-off:hover,
.view-context__world-tile.is-off:focus-visible {
background: rgba(54, 220, 255, 0.08);
border-color: rgba(54, 220, 255, 0.3);
}
/* An aircraft's altitude as a filled graph, graded by height: bright at
the top, fading towards the baseline. */
.altitude-graph {
margin: 0 0 0.7rem;
padding: 0.5rem 0.6rem 0.45rem;
border: 1px solid rgba(160, 200, 220, 0.14);
border-radius: 8px;
background: rgba(255, 255, 255, 0.025);
}
.altitude-graph__head,
.altitude-graph__foot {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.5rem;
margin: 0;
}
.altitude-graph__label,
.altitude-graph__foot {
color: rgba(199, 214, 222, 0.6);
font-family: var(--font-mono);
font-size: 0.56rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.altitude-graph__now {
color: #eef6fa;
font-family: var(--font-mono);
font-size: 0.78rem;
font-weight: 600;
}
.altitude-graph__plot {
position: relative;
height: 3.4rem;
margin: 0.35rem 0 0.3rem;
border-bottom: 1px solid rgba(160, 200, 220, 0.22);
background: repeating-linear-gradient(
to bottom,
rgba(160, 200, 220, 0.08) 0 1px,
transparent 1px 25%
);
}
.altitude-graph__plot svg {
display: block;
width: 100%;
height: 100%;
}
.altitude-graph__stop--high {
stop-color: var(--accent);
stop-opacity: 0.75;
}
.altitude-graph__stop--mid {
stop-color: var(--accent);
stop-opacity: 0.3;
}
.altitude-graph__stop--low {
stop-color: var(--accent);
stop-opacity: 0.04;
}
.altitude-graph__line {
fill: none;
stroke: var(--accent);
stroke-width: 1.5;
stroke-linejoin: round;
vector-effect: non-scaling-stroke;
}
.altitude-graph__head-dot {
position: absolute;
right: -3px;
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--accent);
box-shadow: 0 0 6px var(--accent);
transform: translateY(-50%);
}
.altitude-graph__scale {
position: absolute;
top: 1px;
left: 2px;
color: rgba(199, 214, 222, 0.45);
font-family: var(--font-mono);
font-size: 0.5rem;
}
.altitude-graph[data-trend='up'] .altitude-graph__change {
color: #7fe0a8;
}
.altitude-graph[data-trend='down'] .altitude-graph__change {
color: #f0b46a;
}
.altitude-graph__scale--low {
top: auto;
bottom: 1px;
}
/* What a layer that is on is made of: under its row, a bar per split whose
segments are the parts, and a legend with each part's count. */
.view-context__live-item {
background: rgba(255, 255, 255, 0.035);
border: 1px solid rgba(255, 255, 255, 0.06);
}
.view-context__live-item > .view-context__live-row {
background: none;
border: 0;
}
.view-context__split {
display: grid;
gap: 0.45rem;
padding: 0 0.55rem 0.55rem;
}
.view-context__split-basis {
margin: 0;
color: rgba(199, 214, 222, 0.5);
font-family: var(--font-mono);
font-size: 0.54rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.view-context__split-bar {
display: flex;
gap: 2px;
height: 6px;
overflow: hidden;
border-radius: 3px;
background: rgba(255, 255, 255, 0.06);
}
.view-context__split-bar i {
min-width: 2px;
}
.view-context__split-legend {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.15rem 0.6rem;
margin: 0.3rem 0 0;
padding: 0;
list-style: none;
}
.view-context__split-legend li {
display: flex;
align-items: center;
gap: 0.3rem;
min-width: 0;
color: rgba(199, 214, 222, 0.75);
font-size: 0.6rem;
}
.view-context__split-legend i {
flex: none;
width: 6px;
height: 6px;
border-radius: 50%;
}
.view-context__split-legend span {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.view-context__split-legend strong {
color: #eef6fa;
font-family: var(--font-mono);
font-weight: 600;
}
/* The compact graph: caption, figure and a short line, nothing else. */
.altitude-graph--compact {
padding-bottom: 0.5rem;
}
.altitude-graph--compact .altitude-graph__plot {
height: 1.9rem;
margin-bottom: 0;
background: none;
}
/* "Layers on" leads the view, under the place name. */
.view-context__live {
margin: 0.6rem 0 0.7rem;
}