:root {
    --bg: #f3f5f8;
    --card: #ffffff;
    --text: #1d2733;
    --muted: #5b6878;
    --border: #d5dbe3;
    --accent: #7a3db8;
    --accent-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #11161c;
        --card: #1a222b;
        --text: #e6ebf1;
        --muted: #9aa7b6;
        --border: #2f3a46;
        --accent: #b48be6;
        --accent-text: #160b22;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Tahoma, "Segoe UI", sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1rem;
}

main {
    width: 100%;
    max-width: 34rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}

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

.muted { color: var(--muted); }

.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.button, button {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: var(--accent-text);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

button.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

pre {
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}
