:root {
    --bg: #0b1020;
    --card: #131a2a;
    --text: #e8eefc;
    --muted: #a8b3cf;
    --accent: #7aa2f7;
    --line: #283047;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial;
    background: var(--bg);
    color: var(--text);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

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

h2 {
    margin: 8px 0 16px
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 0
}

.nav a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px
}

.footer {
    opacity: .7;
    font-size: 14px
}

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

.card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    transition: transform .1s
}

.card:hover {
    transform: translateY(-2px)
}

.form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px
}

.row {
    display: grid;
    gap: 6px;
    margin-bottom: 12px
}

input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0f1625;
    color: var(--text)
}

.actions {
    display: flex;
    gap: 10px
}

button {
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--accent);
    color: #0b1020;
    border: none;
    cursor: pointer;
    font-weight: 600
}

.result {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0
}

.stat {
    background: #0f1625;
    border: 1px solid var(--line);
    padding: 10px 12px;
    border-radius: 12px
}

.table-wrap {
    overflow: auto;
    border-radius: 12px;
    border: 1px solid var(--line)
}

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

th,
td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: right
}

th:first-child,
td:first-child {
    text-align: center
}

.muted {
    color: var(--muted);
    font-size: 14px
}

.h1-title {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.h1-title img {
    max-width: 4rem;
    margin-right: 1rem;
}

@media only screen and (max-width: 474px) {
    .h1-title {
        flex-direction: column;
        margin-bottom: 1.5rem;

    }

    .h1-title img {
        margin-right: 0px;
        margin-bottom: 0.5rem;
    }

}

@media only screen and (max-width: 393px) {
    .h1-title {
        font-size: x-large;
    }
}

@media only screen and (max-width: 344px) {
    .h1-title {
        font-size: larger;
    }
}