:root {
    --border: #e4e4e7;
    --muted: #71717a;
    --muted-bg: #fafafa;
    --primary: #18181b;
    --primary-fg: #fafafa;
    --destructive: #dc2626;
    --success: #059669;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--muted-bg);
    color: #18181b;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    max-width: 26rem;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 1.4rem;
    margin: 0;
}

.header p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.stack {
    width: 100%;
    max-width: 26rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard {
    max-width: 40rem;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.card h2 {
    font-size: 1rem;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-fg);
    font-size: 0.75rem;
    font-weight: 600;
}

.card p.description {
    color: var(--muted);
    font-size: 0.85rem;
    margin: -0.5rem 0 0.75rem 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--primary-fg);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn.secondary {
    background: white;
    color: var(--primary);
}

.btn.outline {
    background: white;
    color: #18181b;
    border-color: var(--border);
    width: auto;
    padding: 0.4rem 0.8rem;
}

.separator-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.separator-row hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--border);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

.field label {
    font-size: 0.85rem;
}

.field input {
    padding: 0.5rem 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.error-text {
    color: var(--destructive);
    font-size: 0.85rem;
    margin: 0 0 0.75rem 0;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
}

.status-line.ok {
    color: var(--success);
}

.status-line.fail {
    color: var(--destructive);
}

dl.kv {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 0.75rem;
    font-size: 0.85rem;
    margin: 0;
}

dl.kv dt {
    color: var(--muted);
}

dl.kv dd {
    margin: 0;
    word-break: break-all;
}

pre.json {
    background: var(--muted-bg);
    border-radius: 0.6rem;
    padding: 0.75rem;
    font-size: 0.75rem;
    overflow-x: auto;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 40rem;
    margin-bottom: 1.5rem;
}

.top-bar h1 {
    font-size: 1.1rem;
    margin: 0;
}

.top-bar p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}
