:root {
    color-scheme: light dark;
    --accent: #6b4eff;
    --line: #d8d6e4;
    --danger: #d32f2f;
    --ok: #2e7d32;
}

body {
    margin: 0;
    font-family: -apple-system, system-ui, sans-serif;
    line-height: 1.5;
}

a, button, input, label { touch-action: manipulation; }

select { touch-action: manipulation; }

.bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 16px;
    background: #1f1b3a;
    color: #fff;
}

.brand {
    font-weight: 700;
    margin-right: auto;
}

.bar nav {
    display: flex;
    gap: 4px;
}

.bar nav a {
    color: #d9d4ff;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
}

.bar nav a.active {
    background: var(--accent);
    color: #fff;
}

main {
    padding: 20px 16px 40px;
    max-width: 720px;
    margin: 0 auto;
    box-sizing: border-box;
}

h1 {
    font-size: 1.8rem;
    margin: 0 0 12px;
}

h1:focus {
    outline: none;
}

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

.loading {
    padding: 32px 16px;
    color: #777;
}

.muted {
    color: #777;
}

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

input:not([type=checkbox]), select, textarea {
    font: inherit;
    color: inherit;
    background: transparent;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    box-sizing: border-box;
}

button {
    font: inherit;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: inherit;
}

button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

button:disabled {
    opacity: 0.45;
}

button.link {
    border: none;
    color: var(--accent);
    padding: 4px 6px;
}

code {
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: #ffe8a3;
    color: #222;
}

.card {
    margin: 0 0 16px;
    padding: 4px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.card h2 {
    margin-top: 12px;
}

.value {
    font-weight: 600;
}

.row input {
    flex: 1;
}

.sticky {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #1f1b3a;
    color: #fff;
}

.filler li {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
