/* Operator laptop: everything, densely. */
body { font-size: 14px; }
.app { height: 100vh; display: flex; flex-direction: column; }
.bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-size: 16px; }
.call { font-family: var(--mono); color: var(--muted); }
.clock { font-size: 18px; font-weight: 700; }
.muted { color: var(--muted); }
.spacer { flex: 1; }
.sim { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px dashed var(--line); border-radius: 10px; }
.sim .tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--warn); }
.sim button, .sim select { font: 600 13px system-ui, sans-serif; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
.sim input[type=range] { width: 180px; accent-color: var(--flight); }

main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 380px; grid-template-rows: 1fr 250px; }
.mapwrap { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; }
aside { grid-row: 1 / 3; grid-column: 2; overflow: auto; border-left: 1px solid var(--line); background: var(--bg); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
h2 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
h2 .muted { text-transform: none; letter-spacing: 0; font-weight: 500; }
h2.one-line { white-space: nowrap; }
h2.one-line .muted { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.grid > div { min-width: 0; }
.grid .k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.grid .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid .v small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.grid .wide { grid-column: 1 / 3; }
.grid .v.copy { cursor: copy; font-family: var(--mono); font-size: 14px; }
.grid .v.ok { color: var(--ok); } .grid .v.warn { color: var(--warn); } .grid .v.bad { color: var(--bad); }
.status { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.status li { display: flex; gap: 8px; align-items: baseline; }
.status li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); transform: translateY(1px); }
.status li.ok::before { background: var(--ok); } .status li.warn::before { background: var(--warn); } .status li.bad::before { background: var(--bad); }
.status small { color: var(--muted); }

.bottom { grid-column: 1; display: grid; grid-template-columns: 1.4fr 1fr; min-height: 0; border-top: 1px solid var(--line); background: var(--panel); }
.charts { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4px; padding: 8px; min-width: 0; }
figure { margin: 0; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
figcaption { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 4px 2px; }
figure svg { flex: 1; width: 100%; min-height: 0; }
svg .ax { stroke: var(--line); stroke-width: 1; }
svg text { fill: var(--muted); font: 10px system-ui, sans-serif; }
svg .ln { fill: none; stroke-width: 2; stroke-linejoin: round; }
svg .now { stroke: var(--text); stroke-opacity: .35; stroke-dasharray: 3 3; }
svg .eta { stroke: var(--info); stroke-dasharray: 5 4; }
.log { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 8px 10px; }
.log-head { display: flex; justify-content: space-between; align-items: baseline; }
.log ol { list-style: none; margin: 0; padding: 0; overflow: auto; font: 12px/1.5 var(--mono); }
.log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line); padding: 2px 0; }
.log li .via { display: inline-block; width: 104px; font-weight: 700; }
.log li .via.rf { color: var(--ok); } .log li .via.net { color: var(--info); } .log li .via.lora { color: #a855f7; }
.log li time { color: var(--muted); margin-right: 8px; }
.log li.gap { color: var(--warn); font-family: system-ui, sans-serif; }

@media (max-width: 1100px) {
  main { grid-template-columns: 1fr; grid-template-rows: 55vh auto auto; overflow: auto; }
  aside { grid-row: 3; grid-column: 1; border-left: 0; }
  .bottom { grid-template-columns: 1fr; }
  .charts { height: 180px; }
  .log { height: 240px; border-left: 0; border-top: 1px solid var(--line); }
  .app { height: auto; min-height: 100vh; }
}

.mapsave { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.mapsave button { font: 600 13px system-ui, sans-serif; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
.navlink { color: var(--info); text-decoration: none; font-weight: 600; }
