Files
Lucas RayanandClaude Opus 5.5 e5058968e2
Release / Publish tags (push) Successful in 14s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 1m14s
Release / Build image (amd64) (push) Successful in 24s
Release / Build image (arm64) (push) Successful in 1m13s
CI / Format and vet (push) Successful in 41s
CI / Tests (Linux, race detector) (push) Successful in 1m1s
CI / Dependency audit (push) Successful in 33s
CI / Docker image (build and smoke test) (push) Skipped
Release / Gitea release (push) Successful in 4s
feat: 1.5.0 incident management (tickets from egress findings, triage, comments, suppression with expiry)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:18:06 -03:00

162 lines
12 KiB
CSS

/* Egress page */
.eg-page { display: grid; gap: var(--grid-gap, 16px); min-width: 0; }
.eg-page .panel, .eg-page .card-metric { min-width: 0; }
/* verdict */
.eg-verdict { --tn: var(--ok); --tn-soft: var(--ok-soft); display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--tn) 45%, var(--line)); border-radius: 14px;
background: linear-gradient(110deg, color-mix(in srgb, var(--tn-soft) 90%, transparent), var(--surface-panel) 70%); min-width: 0; }
.eg-verdict.tone-danger { --tn: var(--danger); --tn-soft: var(--danger-soft); }
.eg-verdict.tone-warn { --tn: var(--warn); --tn-soft: var(--warn-soft); }
.eg-verdict.tone-info { --tn: var(--info); --tn-soft: var(--info-soft); }
.eg-verdict.tone-neutral { --tn: var(--ink-faint); --tn-soft: var(--surface-raised); }
.eg-v-ico { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--surface-base); background: var(--tn);
box-shadow: 0 0 0 7px color-mix(in srgb, var(--tn) 22%, transparent); }
.eg-v-txt { min-width: 0; display: grid; gap: 6px; }
.eg-v-txt h2 { margin: 0; font-size: 1.5rem; line-height: 1.2; color: var(--ink); }
.eg-v-txt > p { margin: 0; color: var(--ink-muted); overflow-wrap: anywhere; }
.eg-v-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.eg-v-src { font-size: .8125rem; color: var(--ink-faint) !important; display: flex; align-items: center; gap: 6px; }
.eg-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; background: var(--warn); }
.eg-dot-ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
/* KPIs */
.eg-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--grid-gap, 16px); }
@media (max-width: 900px) { .eg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* evidence */
.eg-evs { display: grid; gap: 14px; }
.eg-ev { --sv: var(--info); border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised); overflow: hidden; min-width: 0; position: relative; }
.eg-ev::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--sv); }
.eg-sev-high { --sv: var(--danger); }
.eg-sev-medium { --sv: var(--warn); }
.eg-ev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 16px 10px 20px; border-bottom: 1px solid var(--line);
background: linear-gradient(90deg, color-mix(in srgb, var(--sv) 14%, transparent), transparent 60%); }
.eg-ev-title { margin: 0; font-size: 1.0625rem; }
.eg-ev-body { padding: 14px 16px 16px 20px; display: grid; gap: 14px; min-width: 0; }
.eg-ev-top { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.eg-route { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.eg-node { display: grid; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-panel); min-width: 0; }
.eg-node-dst { border-color: color-mix(in srgb, var(--sv) 55%, var(--line)); }
.eg-node-k { font-size: .75rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }
.eg-node-ip { font-weight: 600; overflow-wrap: anywhere; }
.eg-node-org { font-size: .8125rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.eg-port { color: var(--ink-muted); }
.eg-arrow { width: 44px; height: 2px; background: linear-gradient(90deg, var(--line-strong), var(--sv)); position: relative; flex: none; }
.eg-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--sv); border-right: 0; }
.eg-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-fact { display: grid; padding: 6px 12px; border-radius: 8px; background: var(--surface-panel); border: 1px solid var(--line); min-width: 0; }
.eg-fact strong { font-size: 1.05rem; }
.eg-fact > span { font-size: .75rem; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 4px; }
.eg-ev-vizrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.eg-ev-viz { min-width: 0; display: grid; gap: 4px; }
.eg-ev-viz .hint { margin: 0; font-size: .75rem; }
.eg-ev-lab { margin: 0; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
.eg-rhythm, .eg-hist, .eg-scan-tl { width: 100%; display: block; background: var(--surface-sunken); border-radius: 8px; }
.eg-rhythm { height: 52px; }
.eg-hist { height: 52px; }
.eg-scan-tl { height: 64px; }
.eg-axis { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.eg-tick { stroke: var(--sv); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.eg-bin { fill: color-mix(in srgb, var(--sv) 40%, transparent); }
.eg-bin.on { fill: var(--sv); }
.eg-ev-axis { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.eg-ev-axis strong { color: var(--ink); font-weight: 600; }
.eg-ev-detail { margin: 0; font-size: .8125rem; color: var(--ink-muted); padding: 6px 10px; background: var(--surface-sunken); border-radius: 6px; overflow-wrap: anywhere; }
.eg-ev-advice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eg-ev-advice > div { padding: 10px 12px; border-radius: 8px; background: var(--surface-panel); border: 1px solid var(--line); min-width: 0; }
.eg-ev-advice p { margin: 0; overflow-wrap: anywhere; }
.eg-ev-advice p + p { margin-top: 4px; color: var(--ink-muted); }
.eg-ev-todo { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)) !important; }
.eg-ev-btn { justify-self: start; text-decoration: none; }
.eg-calm { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--ok) 50%, var(--line)); background: color-mix(in srgb, var(--ok-soft) 50%, transparent); }
.eg-calm-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--surface-base); font-weight: 800; font-size: 1.3rem; }
.eg-calm p { margin: 4px 0 0; color: var(--ink-muted); }
/* map */
.eg-mapwrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: center; }
.eg-mapbox { border-radius: 10px; background: color-mix(in srgb, var(--surface-sunken) 70%, transparent); overflow: hidden; min-width: 0; }
.eg-map { width: 100%; height: auto; display: block; }
.eg-land { fill: var(--surface-raised); stroke: var(--line); stroke-width: .6; }
.eg-land.s1 { fill: color-mix(in srgb, var(--seq-2) 45%, var(--surface-raised)); } .eg-land.s2 { fill: color-mix(in srgb, var(--seq-2) 70%, var(--surface-raised)); } .eg-land.s3 { fill: var(--seq-2); } .eg-land.s4, .eg-land.s5 { fill: var(--seq-3); }
.eg-arc { fill: none; stroke: var(--accent); stroke-width: 2.2; opacity: .75; stroke-dasharray: 6 5; }
.eg-arc.warn { stroke: var(--warn); opacity: .95; }
.eg-arc.danger { stroke: var(--danger); opacity: 1; stroke-width: 3; }
.eg-dst { fill: color-mix(in srgb, var(--accent) 35%, transparent); stroke: var(--accent); stroke-width: 2; }
.eg-dst.warn { fill: color-mix(in srgb, var(--warn) 35%, transparent); stroke: var(--warn); }
.eg-dst.danger { fill: color-mix(in srgb, var(--danger) 35%, transparent); stroke: var(--danger); }
.eg-src { fill: var(--ok); stroke: var(--surface-base); stroke-width: 2; }
.eg-src-halo { fill: color-mix(in srgb, var(--ok) 25%, transparent); }
.eg-cc { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.eg-cc li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; }
.eg-cc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg-cc-n { font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.eg-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: var(--surface-sunken); overflow: hidden; }
.eg-bar > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--seq-2), var(--seq-4)); }
/* tables */
.eg-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.eg-table th, .eg-table td { padding: 8px var(--s-3, 10px); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.eg-table th { color: var(--ink-muted); font-weight: 500; font-size: .8125rem; }
.eg-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eg-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.eg-row-bad td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.eg-wl-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.eg-wl-supp { flex-basis: 100%; font-size: .75rem; margin: 0; }
.eg-spark { width: 140px; color: var(--accent); }
.eg-spark .cm-spark { width: 130px; height: 24px; display: block; position: static; }
.eg-spark .cm-spark polyline { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.eg-ok { color: var(--ok); font-weight: 700; }
.eg-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.eg-chips .chip { margin: 0; }
.eg-chip-port { color: var(--accent); }
.eg-dst-ip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.eg-flag { font-size: 1.1rem; }
.eg-asn { color: var(--ink-faint); }
.eg-conns { min-width: 110px; }
.eg-conns .eg-bar { margin-top: 4px; }
/* scanner */
.eg-scan { display: grid; gap: 12px; }
.eg-scan-ok { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--ink-muted); }
.eg-burst { fill: color-mix(in srgb, var(--info) 55%, transparent); stroke: var(--info); stroke-width: 1; vector-effect: non-scaling-stroke; }
.eg-burst.bad { fill: color-mix(in srgb, var(--danger) 60%, transparent); stroke: var(--danger); }
.eg-bursts { list-style: none; margin: 0; padding: 0; display: grid; }
.eg-bursts li { display: grid; grid-template-columns: 96px minmax(0, 260px) minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.eg-bursts li.bad { box-shadow: inset 3px 0 0 var(--danger); padding-left: 8px; }
.eg-b-when { color: var(--ink-faint); white-space: nowrap; }
.eg-b-chips { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.eg-scanwarn { margin: 0; }
@media (max-width: 1000px) {
.eg-mapwrap { grid-template-columns: 1fr; }
.eg-ev-vizrow, .eg-ev-advice { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
.eg-verdict { padding: 16px; gap: 12px; }
.eg-v-ico { width: 40px; height: 40px; font-size: 1.2rem; box-shadow: 0 0 0 5px color-mix(in srgb, var(--tn) 22%, transparent); }
.eg-v-txt h2 { font-size: 1.2rem; }
.eg-ev-body { padding: 12px 12px 14px 16px; }
.eg-ev-head { padding-left: 16px; }
.eg-arrow { transform: rotate(90deg); width: 20px; margin: 6px 0 6px 20px; }
.eg-route { flex-direction: column; align-items: stretch; gap: 4px; }
.eg-facts .eg-fact { flex: 1 1 40%; }
/* tables become stacked rows */
.eg-table thead { display: none; }
.eg-table, .eg-table tbody, .eg-table tr, .eg-table td { display: block; width: 100%; }
.eg-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.eg-table td { border: 0; padding: 0; text-align: left !important; }
.eg-table td.eg-c-name { grid-column: 1 / -1; }
.eg-table td[data-l]::before { content: attr(data-l); display: block; font-size: .6875rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }
.eg-row-bad td:first-child { box-shadow: none; }
.eg-row-bad { box-shadow: inset 3px 0 0 var(--danger); padding-left: 10px !important; }
.eg-spark, .eg-conns { width: auto; min-width: 0; }
.eg-bursts li { grid-template-columns: 84px minmax(0, 1fr); }
.eg-b-chips { grid-column: 1 / -1; }
}
/* ticket badge and suppressed findings (v1.5.0) */
.eg-ticket { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); max-width: 100%; }
.eg-ticket:hover .badge, .eg-ticket:focus-visible .badge { border-color: var(--line-strong); }
.eg-ev-sup { opacity: .7; }
.eg-sup-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-muted); cursor: pointer; min-height: 36px; }