/* Urutau - AO VIVO page. Everything is prefixed lv- (the shell already owns .live, .panel, .btn...). Layout: map | side column on desktop, map above a grid on tablet, single column on phones. No horizontal scrolling anywhere: every box is a grid track of fixed height. */ .lv { /* shell tokens with local fallbacks */ --lv-surface: var(--surface-panel, #0d1926); --lv-raised: var(--surface-raised, #13232f); --lv-base: var(--surface-base, #070d14); --lv-line: var(--line, #223546); --lv-ink: var(--ink, #e8f2f4); --lv-muted: var(--ink-muted, #9db3bd); --lv-gap: var(--grid-gap, 12px); --lv-side: var(--side-w, 320px); --lv-h-metric: 76px; /* own sizes: the side column is only 320 px wide, the shell's --h-* are larger */ --lv-h-list: 200px; --lv-r: var(--radius, 10px); display: flex; flex-direction: column; gap: var(--lv-gap); min-width: 0; color: var(--lv-ink); } .lv * { min-width: 0; } /* top bar */ .lv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .lv-ctl { display: flex; gap: 8px; } .lv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; min-height: 36px; padding: 6px 12px; border-radius: var(--lv-r); font-size: 13px; background: var(--lv-surface); color: var(--lv-ink); border: 1px solid var(--lv-line); } .lv-btn.lv-icon { min-width: 36px; padding: 6px; } .lv-btn:hover { border-color: var(--accent); } .lv-btn[aria-pressed="true"].lv-icon { border-color: var(--accent); color: var(--accent); } .lv-seg { display: inline-flex; border-radius: var(--lv-r); overflow: hidden; border: 1px solid var(--lv-line); background: var(--lv-surface); } .lv-seg .lv-btn { border: 0; border-radius: 0; background: transparent; } .lv-seg .lv-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #04121c); font-weight: 600; } .lv-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; } .lv-hosts { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; } .lv-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border-radius: 999px; cursor: pointer; font-size: 12.5px; color: var(--lv-ink); background: var(--lv-surface); border: 1px solid var(--lv-line); max-width: 100%; } .lv-chip:hover { border-color: var(--accent); } .lv-chip[aria-pressed="false"] { opacity: .45; } .lv-chip[aria-pressed="false"] .lv-chip-l { text-decoration: line-through; } .lv-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--h, var(--accent)); flex: none; } .lv-chip-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lv-chip-n { color: var(--lv-muted); font-variant-numeric: tabular-nums; font-size: 11.5px; } .lv-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; } .lv-note { font-size: 12px; padding: 4px 10px; border-radius: 999px; color: var(--lv-muted); background: var(--lv-surface); border: 1px solid var(--lv-line); } .lv-note[hidden], .lv-hint[hidden] { display: none; } /* main: map + side column */ .lv-main { display: grid; grid-template-columns: minmax(0, 1fr) var(--lv-side); gap: var(--lv-gap); align-items: stretch; } .lv-left > .lv-mapwrap { flex: none; } .lv-left { display: flex; flex-direction: column; gap: var(--lv-gap); min-height: 0; } .lv-left .lv-c-rec { flex: 1 1 0; height: auto; min-height: 200px; } .lv-left .lv-ev { grid-template-columns: auto auto auto minmax(0, 1fr); } .lv-left .lv-ev-w { grid-column: auto; } .lv-nopanels .lv-main { grid-template-columns: minmax(0, 1fr); } .lv-nopanels .lv-side { display: none; } .lv-nopanels .lv-left .lv-c-rec { display: none; } .lv-mapwrap { position: sticky; top: 8px; height: clamp(560px, calc(100dvh - 190px), 980px); position: sticky; min-height: 0; overflow: hidden; border: 1px solid var(--lv-line); border-radius: var(--lv-r); background: radial-gradient(900px 420px at 50% 40%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--lv-base) 94%, var(--accent)), var(--surface-sunken, var(--lv-base))); } .lv-isflat .lv-mapwrap { height: auto; aspect-ratio: 2000 / 870; max-height: 980px; } .lv-map { position: absolute; inset: 0; } .lv-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; outline-offset: -3px; } .lv-cv.lv-globe { cursor: grab; } .lv-cv.lv-grab { cursor: grabbing; } .lv-hint { position: absolute; left: 12px; bottom: 10px; font-size: 11px; color: var(--lv-muted); pointer-events: none; } /* side column */ .lv-side { display: flex; flex-direction: column; gap: var(--lv-gap); min-height: 0; } .lv-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: var(--lv-h-metric); gap: 8px; flex: none; } .lv-metric { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 0; overflow: hidden; padding: 4px 12px; background: var(--lv-surface); border: 1px solid var(--lv-line); border-radius: var(--lv-r); } .lv-m-label { font-size: 11px; line-height: 17px; text-transform: uppercase; letter-spacing: .06em; color: var(--lv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lv-m-value { font-size: 24px; font-weight: 700; line-height: 32px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lv-m-sub { font-size: 11.5px; line-height: 17px; color: var(--lv-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lv-m-sub.lv-up { color: var(--danger, #f87171); font-weight: 600; } .lv-m-sub.lv-down { color: var(--ok, #34d399); font-weight: 600; } .lv-spark { position: absolute; right: 8px; bottom: 8px; width: 75px; height: 16px; } .lv-card { display: flex; flex-direction: column; height: var(--lv-h-list); flex: none; overflow: hidden; background: var(--lv-surface); border: 1px solid var(--lv-line); border-radius: var(--lv-r); padding: 10px 12px; } .lv-card-t { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--lv-muted); } .lv-card-b { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; } /* category and origin rows */ .lv-list, .lv-rec { list-style: none; margin: 0; padding: 0; } .lv-k-notfound { --k: var(--cat-notfound); } .lv-k-scanner { --k: var(--cat-scanner); } .lv-k-bruteforce { --k: var(--cat-bruteforce); } .lv-k-exploit { --k: var(--cat-exploit); } .lv-k-ssh-fail { --k: var(--cat-ssh-fail); } .lv-k-ssh-probe { --k: var(--cat-ssh-probe); } .lv-k-ban { --k: var(--cat-ban); } .lv-row { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; height: 22px; padding: 0 6px; border-radius: 6px; background: none; border: 0; color: var(--lv-ink); font-size: 12.5px; text-align: left; } button.lv-row { cursor: pointer; } button.lv-row:hover { background: var(--lv-raised); } button.lv-row[aria-pressed="false"] { opacity: .4; } button.lv-row[aria-pressed="false"] .lv-row-l { text-decoration: line-through; } .lv-row > * { position: relative; } .lv-row > .lv-row-bar { position: absolute; left: 0; top: 2px; bottom: 2px; width: var(--w, 0); border-radius: 5px; background: color-mix(in srgb, var(--k, var(--accent)) 16%, transparent); } .lv-sw { width: 10px; height: 10px; border-radius: 3px; background: var(--k); flex: none; } .lv-hot .lv-sw { box-shadow: 0 0 0 2px color-mix(in srgb, var(--k) 35%, transparent); } .lv-row-l { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lv-row-n { color: var(--lv-muted); font-variant-numeric: tabular-nums; } .lv-city { color: var(--lv-muted); } /* latest events (also the text alternative of the canvas) */ .lv-ev { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 2px 8px; font-size: 11.5px; padding: 5px 0; border-bottom: 1px solid color-mix(in srgb, var(--lv-line) 60%, transparent); } .lv-ev-t { color: var(--lv-muted); font-variant-numeric: tabular-nums; } .lv-tag { font-size: 10.5px; padding: 1px 6px; border-radius: 999px; white-space: nowrap; justify-self: start; border: 1px solid var(--k, var(--lv-line)); background: color-mix(in srgb, var(--k, transparent) 20%, transparent); } .lv-tag.lv-hot { font-weight: 700; } .lv-ip { justify-self: start; background: none; border: 0; padding: 2px 0; cursor: pointer; color: var(--accent); font: inherit; font-family: var(--font-mono, ui-monospace, monospace); text-decoration: underline dotted; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; } .lv-ip:hover { text-decoration: underline; } .lv-ev-w { grid-column: 1 / -1; color: var(--lv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lv-empty { color: var(--lv-muted); font-size: 12.5px; list-style: none; padding: 6px; } .lv-btn:focus-visible, .lv-chip:focus-visible, .lv-row:focus-visible, .lv-ip:focus-visible, .lv-cv:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } /* presentation mode */ .lv-full { background: var(--lv-base); padding: 12px; overflow: auto; } .lv-full .lv-mapwrap { height: calc(100vh - 90px); aspect-ratio: auto; } /* tablet: map on top (55vh), metrics in a strip of 3, a 2-column grid of equal cards */ @media (max-width: 1199px) { .lv { --lv-h-metric: 76px; --lv-h-list: 240px; } .lv-main { display: flex; flex-direction: column; align-items: stretch; height: auto; } .lv-left { display: block; } .lv-mapwrap, .lv-isflat .lv-mapwrap { position: relative; top: auto; height: 55vh; min-height: 340px; aspect-ratio: auto; flex: none; } .lv-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; grid-auto-rows: var(--lv-h-list); gap: var(--lv-gap); } .lv-metrics { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: var(--lv-h-metric); } .lv-card, .lv-c-rec { height: auto; min-height: 0; flex: none; } .lv-c-rec { grid-column: 1 / -1; } .lv-isflat .lv-mapwrap { width: 100%; height: auto; min-height: 220px; aspect-ratio: 2000 / 870; } .lv-full .lv-mapwrap { height: 60vh; } } /* phones: everything in one column, no carousel */ @media (max-width: 767px) { .lv-mapwrap { height: 50vh; min-height: 300px; } .lv-isflat .lv-mapwrap { width: 100%; height: auto; min-height: 220px; aspect-ratio: 2000 / 870; } .lv-side { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; } .lv-card { height: auto; } .lv-c-rec .lv-card-b { max-height: 260px; } .lv-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 72px; gap: 6px; } .lv-metric { padding: 4px 10px; } .lv-m-value { font-size: 20px; line-height: 27px; } .lv-m-label { font-size: 10.5px; line-height: 16px; } .lv-m-sub { line-height: 16px; } .lv-c-rec { grid-column: auto; } .lv-btn { min-height: 40px; } .lv-btn.lv-icon { min-width: 40px; } .lv-chip { min-height: 40px; } .lv-bar { gap: 6px; } .lv-notes { margin-left: 0; width: 100%; } } /* legitimate traffic (anonymous visits) */ .lv-vis { gap: 8px; } .lv-vis-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--lv-muted); flex: none; } .lv-vis[aria-pressed="true"] { border-color: var(--accent); } .lv-vis[aria-pressed="true"] .lv-vis-dot { background: var(--lv-muted); border-color: var(--lv-muted); } .lv-devs { display: none; } .lv-vis-on .lv-devs { display: flex; } .lv-k-visit { --k: var(--ink-muted, #9db3bd); } .lv-ev-visit .lv-vtxt { grid-column: span 1; color: var(--lv-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lv-ev-visit { grid-template-columns: auto auto minmax(0, 1fr); } .lv-left .lv-ev-visit { grid-template-columns: auto auto minmax(0, 1fr); } .lv-leg { display: none; align-items: center; gap: 6px; } .lv-vis-on .lv-leg { display: inline-flex; } .lv-leg-sw { width: 16px; height: 2px; background: var(--ink-muted, #9db3bd); }