689 lines
12 KiB
CSS
689 lines
12 KiB
CSS
:root {
|
|
color-scheme: dark;
|
|
--page: #090b0f;
|
|
--page-2: #0d1117;
|
|
--surface: #121720;
|
|
--surface-2: #171e29;
|
|
--surface-3: #1d2633;
|
|
--glass: rgba(18, 23, 32, 0.84);
|
|
--ink: #f3f7fb;
|
|
--muted: #9ba8b7;
|
|
--faint: #697586;
|
|
--line: rgba(154, 169, 186, 0.16);
|
|
--line-strong: rgba(154, 169, 186, 0.28);
|
|
--green: #4ee3a0;
|
|
--green-strong: #18c47f;
|
|
--green-soft: rgba(78, 227, 160, 0.13);
|
|
--blue: #66c2ff;
|
|
--blue-strong: #2f8cff;
|
|
--blue-soft: rgba(102, 194, 255, 0.13);
|
|
--amber: #ffd166;
|
|
--amber-soft: rgba(255, 209, 102, 0.14);
|
|
--red: #ff6b86;
|
|
--red-soft: rgba(255, 107, 134, 0.14);
|
|
--violet: #b9a4ff;
|
|
--shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
|
|
--shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.28);
|
|
font-family:
|
|
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
sans-serif;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
min-width: 320px;
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
background:
|
|
linear-gradient(180deg, rgba(102, 194, 255, 0.08), transparent 280px),
|
|
linear-gradient(135deg, rgba(78, 227, 160, 0.06), transparent 42%),
|
|
var(--page);
|
|
color: var(--ink);
|
|
}
|
|
|
|
body::before {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: -1;
|
|
pointer-events: none;
|
|
background-image:
|
|
linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
|
|
background-size: 48px 48px;
|
|
mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 76%);
|
|
content: "";
|
|
}
|
|
|
|
button,
|
|
input {
|
|
font: inherit;
|
|
}
|
|
|
|
.shell {
|
|
width: min(1480px, 100%);
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
.brand,
|
|
.top-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.mark {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 8px);
|
|
align-items: end;
|
|
gap: 4px;
|
|
width: 48px;
|
|
height: 48px;
|
|
padding: 10px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
|
|
var(--surface);
|
|
box-shadow: var(--shadow-soft);
|
|
}
|
|
|
|
.mark span {
|
|
display: block;
|
|
width: 8px;
|
|
border-radius: 999px;
|
|
background: var(--green);
|
|
box-shadow: 0 0 18px rgba(78, 227, 160, 0.4);
|
|
}
|
|
|
|
.mark span:nth-child(1) {
|
|
height: 14px;
|
|
}
|
|
|
|
.mark span:nth-child(2) {
|
|
height: 25px;
|
|
background: var(--blue);
|
|
box-shadow: 0 0 18px rgba(102, 194, 255, 0.42);
|
|
}
|
|
|
|
.mark span:nth-child(3) {
|
|
height: 18px;
|
|
background: var(--amber);
|
|
box-shadow: 0 0 18px rgba(255, 209, 102, 0.36);
|
|
}
|
|
|
|
.eyebrow,
|
|
.section-kicker {
|
|
margin: 0;
|
|
color: var(--green);
|
|
font-size: 11px;
|
|
font-weight: 850;
|
|
letter-spacing: 0;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.section-kicker {
|
|
color: var(--muted);
|
|
}
|
|
|
|
h1,
|
|
h2 {
|
|
margin: 0;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
h1 {
|
|
overflow: hidden;
|
|
font-size: clamp(28px, 4vw, 42px);
|
|
line-height: 1.02;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
h2 {
|
|
margin-top: 2px;
|
|
font-size: 17px;
|
|
}
|
|
|
|
.endpoint,
|
|
.status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 44px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: var(--glass);
|
|
box-shadow: var(--shadow-soft);
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.endpoint {
|
|
gap: 10px;
|
|
padding: 0 12px;
|
|
}
|
|
|
|
.endpoint span {
|
|
border: 1px solid rgba(102, 194, 255, 0.2);
|
|
border-radius: 999px;
|
|
background: var(--blue-soft);
|
|
color: var(--blue);
|
|
font-size: 11px;
|
|
font-weight: 850;
|
|
padding: 4px 7px;
|
|
}
|
|
|
|
.endpoint code {
|
|
color: var(--ink);
|
|
font-family: "JetBrains Mono", Consolas, monospace;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.status {
|
|
gap: 10px;
|
|
min-width: 132px;
|
|
padding: 0 14px;
|
|
color: var(--muted);
|
|
font-weight: 750;
|
|
}
|
|
|
|
.dot {
|
|
width: 9px;
|
|
height: 9px;
|
|
border-radius: 50%;
|
|
background: var(--amber);
|
|
box-shadow: 0 0 0 4px var(--amber-soft), 0 0 18px rgba(255, 209, 102, 0.42);
|
|
}
|
|
|
|
.status.live .dot {
|
|
background: var(--green);
|
|
box-shadow: 0 0 0 4px var(--green-soft), 0 0 20px rgba(78, 227, 160, 0.5);
|
|
}
|
|
|
|
.status.offline .dot {
|
|
background: var(--red);
|
|
box-shadow: 0 0 0 4px var(--red-soft), 0 0 20px rgba(255, 107, 134, 0.45);
|
|
}
|
|
|
|
.layout {
|
|
display: grid;
|
|
gap: 14px;
|
|
}
|
|
|
|
.metrics {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.metrics article,
|
|
.toolbar,
|
|
.packets,
|
|
.details {
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
|
|
var(--glass);
|
|
box-shadow: var(--shadow-soft);
|
|
backdrop-filter: blur(14px);
|
|
}
|
|
|
|
.metrics article {
|
|
position: relative;
|
|
min-height: 108px;
|
|
overflow: hidden;
|
|
padding: 17px;
|
|
}
|
|
|
|
.metrics article::before {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, var(--green), var(--blue), var(--violet));
|
|
content: "";
|
|
}
|
|
|
|
.metrics article::after {
|
|
position: absolute;
|
|
right: 14px;
|
|
bottom: 12px;
|
|
width: 56px;
|
|
height: 28px;
|
|
border-right: 1px solid rgba(255, 255, 255, 0.09);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.09);
|
|
content: "";
|
|
}
|
|
|
|
.metrics span {
|
|
display: block;
|
|
margin-bottom: 14px;
|
|
color: var(--muted);
|
|
font-size: 13px;
|
|
font-weight: 750;
|
|
}
|
|
|
|
.metrics strong {
|
|
display: block;
|
|
overflow: hidden;
|
|
font-size: clamp(24px, 3vw, 34px);
|
|
line-height: 1.05;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
align-items: end;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 14px;
|
|
}
|
|
|
|
.search {
|
|
display: grid;
|
|
flex: 1;
|
|
gap: 7px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.search input {
|
|
width: 100%;
|
|
min-height: 44px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: rgba(9, 11, 15, 0.45);
|
|
color: var(--ink);
|
|
outline: none;
|
|
padding: 0 13px;
|
|
}
|
|
|
|
.search input::placeholder {
|
|
color: var(--faint);
|
|
}
|
|
|
|
.search input:focus {
|
|
border-color: rgba(102, 194, 255, 0.78);
|
|
background: rgba(9, 11, 15, 0.62);
|
|
box-shadow: 0 0 0 4px var(--blue-soft);
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
button {
|
|
min-height: 44px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
|
|
var(--surface-2);
|
|
color: var(--ink);
|
|
cursor: pointer;
|
|
font-weight: 800;
|
|
padding: 0 14px;
|
|
transition:
|
|
border-color 140ms ease,
|
|
background 140ms ease,
|
|
box-shadow 140ms ease,
|
|
transform 140ms ease;
|
|
}
|
|
|
|
button:hover {
|
|
border-color: rgba(102, 194, 255, 0.7);
|
|
box-shadow: 0 0 0 4px var(--blue-soft);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
button.active {
|
|
border-color: rgba(78, 227, 160, 0.5);
|
|
background:
|
|
linear-gradient(180deg, rgba(78, 227, 160, 0.18), transparent),
|
|
var(--surface-2);
|
|
color: var(--green);
|
|
}
|
|
|
|
.content {
|
|
display: grid;
|
|
grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
|
|
gap: 14px;
|
|
min-height: 630px;
|
|
}
|
|
|
|
.packets,
|
|
.details {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.section-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
min-height: 66px;
|
|
padding: 0 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: rgba(255, 255, 255, 0.025);
|
|
}
|
|
|
|
.section-head span {
|
|
border: 1px solid var(--line);
|
|
border-radius: 999px;
|
|
background: rgba(9, 11, 15, 0.42);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 800;
|
|
padding: 7px 10px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.packet-list {
|
|
height: calc(100vh - 326px);
|
|
min-height: 560px;
|
|
overflow: auto;
|
|
padding: 10px;
|
|
scrollbar-color: var(--surface-3) transparent;
|
|
}
|
|
|
|
.packet {
|
|
width: 100%;
|
|
margin: 0 0 8px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: rgba(13, 17, 23, 0.72);
|
|
color: var(--ink);
|
|
text-align: left;
|
|
transition:
|
|
border-color 140ms ease,
|
|
background 140ms ease,
|
|
transform 140ms ease,
|
|
box-shadow 140ms ease;
|
|
}
|
|
|
|
.packet:hover {
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.packet.active {
|
|
border-color: rgba(78, 227, 160, 0.72);
|
|
background:
|
|
linear-gradient(135deg, rgba(78, 227, 160, 0.17), rgba(102, 194, 255, 0.06)),
|
|
rgba(13, 17, 23, 0.9);
|
|
box-shadow: 0 0 0 4px rgba(78, 227, 160, 0.08);
|
|
}
|
|
|
|
.packet-main {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.packet-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.table-wrap {
|
|
max-height: 410px;
|
|
overflow: auto;
|
|
scrollbar-color: var(--surface-3) transparent;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 12px 14px;
|
|
border-bottom: 1px solid var(--line);
|
|
text-align: left;
|
|
vertical-align: top;
|
|
}
|
|
|
|
th {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
background: #121720;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
font-weight: 900;
|
|
}
|
|
|
|
td {
|
|
color: #dce6ef;
|
|
font-size: 13px;
|
|
}
|
|
|
|
td:first-child {
|
|
color: var(--ink);
|
|
font-weight: 850;
|
|
}
|
|
|
|
td.value {
|
|
color: var(--green);
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 900;
|
|
}
|
|
|
|
tr:hover td {
|
|
background: rgba(255, 255, 255, 0.025);
|
|
}
|
|
|
|
.json-panel {
|
|
margin: 14px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
background: rgba(7, 9, 13, 0.72);
|
|
}
|
|
|
|
.json-panel-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
min-height: 58px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--line);
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
|
|
rgba(18, 23, 32, 0.92);
|
|
}
|
|
|
|
.json-panel-head strong {
|
|
display: block;
|
|
margin-top: 3px;
|
|
color: var(--ink);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.json-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.json-actions button {
|
|
min-height: 36px;
|
|
padding: 0 11px;
|
|
}
|
|
|
|
.raw {
|
|
height: 250px;
|
|
margin: 0;
|
|
overflow: auto;
|
|
border: 0;
|
|
border-radius: 0;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
|
|
#07090d;
|
|
color: #d7e2ef;
|
|
font-family: "JetBrains Mono", Consolas, monospace;
|
|
font-size: 12px;
|
|
line-height: 1.55;
|
|
padding: 14px;
|
|
white-space: pre-wrap;
|
|
scrollbar-color: var(--surface-3) transparent;
|
|
}
|
|
|
|
.modal-open {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 30;
|
|
display: none;
|
|
padding: 28px;
|
|
}
|
|
|
|
.modal.open {
|
|
display: grid;
|
|
place-items: center;
|
|
}
|
|
|
|
.modal-backdrop {
|
|
position: absolute;
|
|
inset: 0;
|
|
background:
|
|
radial-gradient(circle at 50% 0%, rgba(102, 194, 255, 0.14), transparent 34rem),
|
|
rgba(2, 4, 8, 0.78);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.modal-card {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
width: min(1120px, 100%);
|
|
height: min(820px, calc(100vh - 56px));
|
|
overflow: hidden;
|
|
border: 1px solid var(--line-strong);
|
|
border-radius: 8px;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
|
|
var(--surface);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.modal-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
min-height: 70px;
|
|
padding: 0 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: rgba(9, 11, 15, 0.42);
|
|
}
|
|
|
|
.modal-raw {
|
|
min-height: 0;
|
|
margin: 0;
|
|
overflow: auto;
|
|
background: #07090d;
|
|
color: #d7e2ef;
|
|
font-family: "JetBrains Mono", Consolas, monospace;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
padding: 18px;
|
|
white-space: pre-wrap;
|
|
scrollbar-color: var(--surface-3) transparent;
|
|
}
|
|
|
|
.empty {
|
|
padding: 18px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
.shell {
|
|
padding: 16px;
|
|
}
|
|
|
|
.topbar,
|
|
.toolbar {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.top-actions {
|
|
align-items: stretch;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.metrics {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.packet-list {
|
|
height: 300px;
|
|
min-height: 300px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 580px) {
|
|
.brand {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.metrics {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.actions,
|
|
.top-actions,
|
|
.json-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal {
|
|
padding: 12px;
|
|
}
|
|
|
|
.modal-head {
|
|
align-items: stretch;
|
|
flex-direction: column;
|
|
padding: 14px;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 10px;
|
|
}
|
|
}
|