:root {
    color-scheme: light dark;
    --accent: #6b4eff;
    --line: #d8d6e4;
}

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

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

a {
    color: var(--accent);
}

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

h1:focus {
    outline: none;
}

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

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

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

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

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

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;
}

.muted {
    color: #777;
}

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

/* Global styles in app.css apply to every component. They are not scoped. */

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

.cards {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
}

.cards a {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}

.cards span {
    color: #777;
}

.guide {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.guide-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(107, 78, 255, 0.12);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.steps a {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    text-decoration: none;
}

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

.guide-body {
    padding: 16px 14px;
}

.lead {
    font-size: 1.05rem;
}

.next {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}
