body {
    margin: 0;
    background: #F4F6FB;
    color: #0E1A3A;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
}

#top {
    background: #0E1A3A;
    color: #fff;
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 10px 20px;
    flex-wrap: wrap;
}

.brand {
    font-weight: 800;
}

#top nav a {
    color: #C9D3F2;
    text-decoration: none;
    margin-right: 14px;
}

#top nav a.on {
    color: #fff;
    font-weight: 700;
}

.who {
    margin-left: auto;
    font-size: 13px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
}

h1 {
    font-size: 22px;
    margin: 8px 0 12px;
}

h2 {
    font-size: 16px;
    margin: 24px 0 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}

th, td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid #E4E8F2;
    vertical-align: top;
}

th {
    background: #EEF1F8;
    font-weight: 700;
}

@media (max-width: 699px) {
    table {
        display: block;
        overflow-x: auto;
    }
}

button {
    background: #2B5BF5;
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    font: inherit;
    margin: 2px 4px 2px 0;
}

button:hover {
    background: #1F47D6;
}

button.quiet {
    background: transparent;
    color: #C9D3F2;
    border: 1px solid #C9D3F2;
}

input, select {
    font: inherit;
    padding: 7px 9px;
    border: 1px solid #CBD3E4;
    border-radius: 6px;
    margin: 2px 6px 2px 0;
    background: #fff;
}

input.link {
    width: 100%;
    max-width: 640px;
}

form.card {
    max-width: 380px;
    margin: 60px auto;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form.plan {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
}

.muted {
    color: #5B6478;
}

.warn {
    color: #B42318;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #E7F6EC;
    color: #146C2E;
}

.badge.blocked {
    background: #FDECEC;
    color: #B42318;
}

code.data {
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-all;
    color: #5B6478;
}

.stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.stat {
    background: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 160px;
}

.stat .num {
    font-size: 22px;
    font-weight: 800;
}

.stat .label {
    color: #5B6478;
    font-size: 12px;
}

.flash {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #0E1A3A;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 420px;
    z-index: 10;
}

.flash.error {
    background: #B42318;
}

.flash.hidden {
    display: none;
}

.linkbox {
    margin-top: 10px;
}
