/* INTRALENS Lens: the INTRALENS seat look (Aravez-RASD static/css/seat.css tokens), logical properties only so
   Arabic mirrors the panels; the map and the video stay left to right. */
:root { --bg:#0b0e12; --panel:#141a21; --panel2:#10151b; --line:#252e39; --text:#e1e8ef; --muted:#8a9bad; --accent:#4da3ff;
        --ok:#3ecf8e; --warn:#e8c07a; --bad:#ff6b6b; --sim:#ffb347; --strip:44px; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.4 system-ui, "Segoe UI", sans-serif; display: flex; flex-direction: column; overflow: hidden; }
html[lang="ar"] body { font-family: "Segoe UI", Tahoma, "Arabic Typesetting", sans-serif; font-size: 15px; }
button, input { font: inherit; color: var(--text); background: #1b232c; border: 1px solid var(--line); border-radius: 6px; }
button { cursor: pointer; padding: 6px 12px; } button:hover { border-color: #3a4757; }
button.primary { background: var(--accent); color: #06121f; border-color: var(--accent); font-weight: 600; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.tail { font-weight: 600; color: var(--muted); font-size: .86em; letter-spacing: .03em; margin-inline-start: 4px; }

/* header */
.strip { height: var(--strip); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1000; }
.brand { display: flex; align-items: center; gap: 8px; }
/* the italic S runs to the edge of the wordmark image: room before the flag so it never looks cut */
.brand .wordmark { height: 13px; width: auto; display: block; margin-inline-end: 8px; }
.brand .flag { width: 24px; height: 16px; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
.views { display: flex; gap: 4px; margin-inline-start: 12px; padding: 3px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; }
.views button { border: 0; background: none; padding: 4px 14px; border-radius: 6px; color: var(--muted); font-weight: 600; }
.views button.on { background: #22303e; color: var(--text); }
.grow { flex: 1; }
.ver { color: var(--muted); font-size: 12px; }
.user { color: #c5d2de; font-weight: 600; }
.lang { min-width: 36px; font-weight: 700; }

/* the page: map full size, the side panel and the card over it */
.main { flex: 1; position: relative; min-height: 0; }
.map { position: absolute; inset: 0; background: #0a1320; }
.map .leaflet-control-attribution { background: #0b0e12cc; color: var(--muted); }
.map .leaflet-control-attribution a { color: var(--muted); }
.map .leaflet-bar a { background: var(--panel); color: var(--text); border-color: var(--line); }
.side { position: absolute; top: 12px; inset-inline-start: 12px; bottom: 12px; width: 320px; overflow-y: auto; z-index: 800;
  background: #10151bf0; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 28px #000a; padding: 10px 12px; }
.side h2 { margin: 2px 0 8px; font-size: 16px; }
.side h3 { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.side h3 .link { font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--text); }
.side .note { color: var(--warn); font-size: 12.5px; }
.side-head { margin-bottom: 6px; }
.assets { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.assets button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 1px solid transparent; background: #ffffff0a; text-align: start; }
.assets button:hover, .assets button.on { border-color: #4da3ff66; background: #4da3ff14; }
.assets button span { flex: 1; font-weight: 600; }
.assets button small { color: var(--muted); font-size: 11.5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.dot.live { background: var(--ok); box-shadow: 0 0 0 3px #3ecf8e33; } .dot.nofeed { background: #5d6b7a; } .dot.sim { background: var(--sim); box-shadow: 0 0 0 3px #ffb34733; }
.pill { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; background: #26303b; color: var(--muted); }
.pill.sim { background: var(--sim); color: #1a1206; } .pill.live { background: #17342a; color: var(--ok); } .pill.nofeed { background: #26303b; color: #a9b6c3; }

/* the asset card */
.card { position: absolute; top: 12px; inset-inline-end: 12px; width: 400px; max-height: calc(100% - 24px); overflow-y: auto; z-index: 810;
  background: #10151bf5; border: 1px solid #33404f; border-radius: 10px; box-shadow: 0 10px 34px #000b; padding: 10px 12px; }
.card-head { display: flex; align-items: center; gap: 8px; }
.card-head > b:first-child { font-size: 16px; flex: 1; }
.card .x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 0 4px; }
.card .feedbox { color: var(--muted); background: #0b0e12; border: 1px dashed var(--line); border-radius: 6px; padding: 18px 12px; text-align: center; }
.card .primary { width: 100%; margin-top: 10px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; margin: 8px 0; }
.video video { width: 100%; height: 100%; object-fit: contain; display: block; }
/* the video's own corners (it never mirrors) */
.vcap { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 4px; background: #000c; color: var(--sim); font-weight: 700; font-size: 11.5px; }
.vtag { position: absolute; right: 6px; top: 6px; padding: 2px 8px; border-radius: 4px; background: var(--sim); color: #1a1206; font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.vnote { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: var(--muted); font-size: 12.5px; }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; margin: 8px 0 0; }
.nums dt { color: var(--muted); font-size: 10.5px; } .nums dd { margin: 0; font-weight: 600; font-size: 13px; }

.sim-ribbon { position: absolute; bottom: 30px; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: calc(100% - 24px); z-index: 850; white-space: nowrap;
  padding: 4px 14px; border-radius: 999px; background: var(--sim); color: #1a1206; font-weight: 700; font-size: 12.5px; pointer-events: none; text-align: center; }

/* markers (inside the map: left to right) */
.lens-site span { position: absolute; left: 8px; top: -9px; white-space: nowrap; color: #c9d7e6; font-weight: 700; font-size: 12px; text-shadow: 0 1px 3px #000; }
.lens-site::before { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #c9d7e6; box-shadow: 0 0 0 3px #c9d7e633; }
.lens-site.sim::before { background: var(--sim); box-shadow: 0 0 0 3px #ffb34733; }
.lens-aero, .lens-drone { position: relative; filter: drop-shadow(0 1px 2px #000c); }
.lens-aero .tag, .lens-drone .tag { position: absolute; left: 38px; top: 22px; white-space: nowrap; font-weight: 700; font-size: 11.5px; color: #e1e8ef; text-shadow: 0 1px 3px #000; }
.lens-aero.nofeed svg g { fill: #5d6b7a; }

/* sign-in */
body.login { align-items: center; justify-content: center; overflow: auto; background: radial-gradient(circle at 50% 30%, #13202e, var(--bg) 70%); }
.login-box { position: relative; width: min(420px, calc(100% - 32px)); margin: 40px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; box-shadow: 0 12px 40px #000b; }
.brand.big { justify-content: center; margin-bottom: 18px; }
.brand.big .wordmark { height: 18px; margin-inline-end: 10px; } .brand.big .flag { width: 30px; height: 20px; }
.login-box h1 { font-size: 18px; margin: 0 0 14px; }
.login-box label { display: grid; gap: 4px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.login-box input { padding: 9px 10px; font-size: 15px; }
.login-box .primary { width: 100%; padding: 9px; margin-top: 4px; }
.login-box .link { margin-top: 10px; }
.login-box .key code { font-size: 15px; letter-spacing: .06em; color: var(--text); background: #0b0e12; padding: 3px 6px; border-radius: 4px; user-select: all; }
.login-box a { color: var(--accent); }
.login-box .err { color: var(--bad); margin: 12px 0 0; }
.login-box .foot { color: var(--muted); font-size: 12px; margin: 16px 0 0; text-align: center; }
.lang.corner { position: absolute; top: 12px; inset-inline-end: 12px; }

@media (max-width: 800px) {
  .side { width: auto; inset-inline-end: 12px; bottom: auto; max-height: 40%; }
  .card { width: auto; inset-inline-start: 12px; top: auto; bottom: 12px; max-height: 55%; }
  .sim-ribbon { white-space: normal; top: auto; bottom: 8px; }
  .ver { display: none; }
}
