:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f5f7;
    color: #1f2933;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
}

.page {
    width: min(960px, 100%);
    margin: 0 auto;
    padding: 24px 16px;
}

.card {
    background: #ffffff;
    border: 1px solid #d9e2ec;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #486581;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 6vw, 36px);
    line-height: 1.25;
}

.lead {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #52606d;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0;
}

button,
.button-link {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #0967d2;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    min-height: 48px;
    padding: 0 22px;
    text-decoration: none;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

button.secondary {
    background: #9aa5b1;
}

.reader {
    overflow: hidden;
    border-radius: 16px;
    background: #0b1220;
    min-height: 280px;
}

.reader video {
    border-radius: 16px;
}

.status {
    min-height: 1.6em;
    margin: 16px 0 0;
    font-weight: 700;
}

.status[data-type="error"] {
    color: #c62828;
}

.status[data-type="success"] {
    color: #1b7f3a;
}

.note {
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.badge-result {
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef6ff;
    color: #102a43;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.form-frame {
    width: 100%;
    min-height: 900px;
    border: 1px solid #d9e2ec;
    border-radius: 16px;
    background: #ffffff;
}

@media (max-width: 640px) {
    .page {
        padding: 12px;
    }

    .card {
        padding: 18px;
        border-radius: 16px;
    }

    .reader {
        min-height: 240px;
    }

    .form-frame {
        min-height: 780px;
    }
}
