* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 24px;
    font: 14px/1.5 -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: #1f2328;
    background: #f6f8fa;
}

h1 {
    font-size: 20px;
    margin: 0 0 2px;
}

.sub {
    color: #656d76;
    margin: 0 0 20px;
}

.bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat {
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 88px;
}

.stat .n {
    font-size: 22px;
    font-weight: 700;
}

.stat .l {
    color: #656d76;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.flabel {
    color: #656d76;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-right: 4px;
}

.fbtn {
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #d0d7de;
    background: #fff;
    color: #1f2328;
    border-radius: 6px;
    padding: 5px 12px;
}

.fbtn:hover {
    background: #f3f4f6;
    border-color: #afb8c1;
}

.fbtn.active {
    background: #0969da;
    border-color: #0969da;
    color: #fff;
}

.fbtn.probe {
    margin-left: 12px;
}

.fbtn:disabled {
    opacity: .5;
    cursor: default;
}

.tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    overflow: hidden;
}

.tbl th,
.tbl td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #eaeef2;
    vertical-align: top;
}

.tbl thead th {
    background: #f6f8fa;
    color: #656d76;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 600;
    white-space: nowrap;
}

.tbl tbody tr:last-child td {
    border-bottom: none;
}

.tbl tbody tr.notready {
    background: #fbfcfd;
}

.tbl tbody tr:hover {
    background: #f9fafb;
}

.name {
    font-weight: 600;
    font-size: 15px;
}

.shot {
    width: 200px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
    background: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    display: block;
}

.shot.plat {
    width: 150px;
}

.pill {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
    margin-bottom: 8px;
}

.pill.free {
    background: #1a7f37;
}

.pill.busy {
    background: #9a6700;
}

.pill.ready {
    background: #0969da;
}

.pill.notready {
    background: #6e7781;
}

.net {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.net.good {
    color: #1a7f37;
}

.net.ok {
    color: #9a6700;
}

.net.slow {
    color: #cf222e;
}

.login-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
    background: #afb8c1;
}

.login-dot.in {
    background: #1a7f37;
}

.login-dot.out {
    background: #cf222e;
}

.login-dot.unknown {
    background: #afb8c1;
}

.meta {
    color: #656d76;
    font-size: 12px;
    margin-top: 4px;
    word-break: break-all;
}

.meta.proxy {
    font-weight: 600;
    color: #24292f;
}

.meta.age {
    margin-top: 6px;
}

.meta.cdp {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

a {
    color: #0969da;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button.toggle {
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #d0d7de;
    background: #f6f8fa;
    color: #1f2328;
    border-radius: 6px;
    padding: 4px 10px;
}

button.toggle:hover {
    background: #eef1f4;
    border-color: #afb8c1;
}

.err {
    color: #cf222e;
}

.mem-widget {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 150px;
    text-align: right;
    z-index: 10;
}

.mem-label {
    color: #656d76;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 2px;
}

.mem-value {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.mem-bar {
    width: 100%;
    height: 8px;
    background: #eaeef2;
    border-radius: 4px;
    overflow: hidden;
}

.mem-bar-fill {
    height: 100%;
    width: 0%;
    background: #1a7f37;
    border-radius: 4px;
    transition: width .3s ease, background-color .3s ease;
}

.mem-bar-fill.ok {
    background: #9a6700;
}

.mem-bar-fill.high {
    background: #cf222e;
}

.mem-pct {
    font-size: 12px;
    color: #656d76;
    margin-top: 4px;
}