:root {
    color-scheme: light dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f4f5;
    color: #18181b;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: min(760px, 100%);
    padding: 32px;
    border: 1px solid #d4d4d8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 50px rgb(0 0 0 / 8%);
}

.eyebrow {
    margin: 0 0 12px;
    color: #52525b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 40px);
}

.intro {
    margin: 14px 0 24px;
    color: #52525b;
    line-height: 1.6;
}

.details {
    margin: 0 0 24px;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    overflow: hidden;
}

.details div {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr);
    gap: 16px;
    padding: 13px 16px;
}

.details div + div {
    border-top: 1px solid #e4e4e7;
}

dt {
    color: #71717a;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

button {
    min-height: 42px;
    border: 1px solid #18181b;
    border-radius: 9px;
    background: #18181b;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

button.secondary {
    border-color: #d4d4d8;
    background: transparent;
    color: inherit;
}

button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.consent {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
}

.status,
pre {
    margin: 20px 0 0;
    padding: 14px;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    background: #fafafa;
}

.status.error {
    border-color: #fca5a5;
    color: #b91c1c;
}

pre {
    max-height: 360px;
    overflow: auto;
    white-space: pre-wrap;
}

@media (max-width: 620px) {
    .card {
        padding: 22px;
    }

    .details div,
    .actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        background: #09090b;
        color: #fafafa;
    }

    .card {
        border-color: #3f3f46;
        background: #18181b;
    }

    .intro,
    .eyebrow,
    dt {
        color: #a1a1aa;
    }

    .details,
    .details div + div,
    .status,
    pre,
    button.secondary {
        border-color: #3f3f46;
    }

    .status,
    pre {
        background: #27272a;
    }
}
