* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f1117;
    color: #e8e8ef;
}

a {
    color: #8ab4ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 32px;
    background: #171a23;
    border-bottom: 1px solid #2a2f3d;
}

.topbar h1 {
    margin: 0;
    font-size: 24px;
}

.topbar p {
    margin: 4px 0 0;
    color: #a8adbd;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

nav a {
    padding: 8px 12px;
    border-radius: 8px;
    background: #222635;
    color: #d8def0;
}

nav a.active {
    background: #3a4566;
}

.container {
    padding: 24px 32px;
}

.panel {
    margin-bottom: 24px;
    padding: 20px;
    background: #171a23;
    border: 1px solid #2a2f3d;
    border-radius: 12px;
    overflow-x: auto;
}

.panel h2 {
    margin-top: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.card {
    padding: 18px;
    background: #222635;
    border-radius: 12px;
}

.card strong {
    display: block;
    font-size: 30px;
}

.card span {
    color: #a8adbd;
}

.filters {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

label {
    display: grid;
    gap: 4px;
    color: #a8adbd;
}

input,
select,
button {
    padding: 8px 10px;
    border: 1px solid #3a4053;
    border-radius: 8px;
    background: #10131b;
    color: #e8e8ef;
}

button {
    cursor: pointer;
    background: #29334f;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

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

th {
    color: #a8adbd;
    font-weight: 600;
    background: #1d212c;
}

small {
    display: block;
    color: #a8adbd;
    margin-top: 3px;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #29334f;
    color: #cdd8ff;
    white-space: nowrap;
}

.footer {
    padding: 16px 32px 32px;
    color: #7f8597;
}

.tag-neutral,
.tag-positive,
.tag-warning,
.tag-danger {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.tag-neutral {
    background: rgba(138, 141, 154, 0.15);
    color: #a8adbd;
    border: 1px solid rgba(138, 141, 154, 0.3);
}

.tag-positive {
    background: rgba(94, 252, 130, 0.15);
    color: #5efc82;
    border: 1px solid rgba(94, 252, 130, 0.3);
}

.tag-warning {
    background: rgba(255, 159, 28, 0.15);
    color: #ff9f1c;
    border: 1px solid rgba(255, 159, 28, 0.3);
}

.tag-danger {
    background: rgba(255, 118, 118, 0.15);
    color: #ff7676;
    border: 1px solid rgba(255, 118, 118, 0.3);
}

