* { box-sizing: border-box; }
body {
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f5f7;
    color: #1d2129;
    margin: 0;
    padding: 32px 16px;
}
.wrap { max-width: 760px; margin: 0 auto; }
h1 { font-size: 1.6rem; margin-bottom: 4px; }
.subtitle { color: #5c6470; margin-top: 0; margin-bottom: 24px; }

.card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

fieldset {
    border: 1px solid #e3e5e8;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
legend { font-weight: 600; padding: 0 6px; color: #333; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #40454d;
    margin-bottom: 14px;
}
label.file-label { font-size: 0.85rem; }

input[type="text"],
input[type="date"],
input[type="tel"],
input[type="email"] {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 9px 10px;
    border: 1px solid #cfd3d8;
    border-radius: 6px;
    font-size: 0.95rem;
}

input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 8px;
    border: 1px dashed #cfd3d8;
    border-radius: 6px;
    background: #fafbfc;
    font-size: 0.85rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
@media (max-width: 560px) {
    .grid-2 { grid-template-columns: 1fr; }
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.radio-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    margin-bottom: 0;
}
.radio-row input { margin: 0; }

.btn-primary {
    background: #2f6fed;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.btn-primary:hover { background: #2559c9; }

/* Results page */
.results { margin-top: 24px; display: grid; gap: 14px; }
.result-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-left: 6px solid #cfd3d8;
}
.result-card h3 { margin: 0 0 4px 0; font-size: 1rem; }
.result-card .verdict { font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.03em; margin-top: 2px; }
.result-card .engine { color: #6b7280; font-size: 0.78rem; margin-top: 2px; }
.result-card .msg { color: #40454d; margin-top: 6px; font-size: 0.9rem; }
.result-card .score-bar {
    height: 8px;
    border-radius: 4px;
    background: #eceff2;
    margin-top: 10px;
    overflow: hidden;
}
.result-card .score-bar span { display: block; height: 100%; background: #e0584b; }
.result-card .score-text { color: #5c6470; font-size: 0.78rem; margin-top: 4px; }
.result-card.ai_generated .verdict { color: #c0392b; }
.result-card.likely_real .verdict { color: #2f855a; }
.result-card.possibly_ai .verdict { color: #b7791f; }

.result-card.ai_generated { border-left-color: #e0584b; }
.result-card.possibly_ai { border-left-color: #e0a34b; }
.result-card.likely_real { border-left-color: #38a169; }
.result-card.error, .result-card.unavailable, .result-card.pending, .result-card.unknown { border-left-color: #9aa2ad; }

.back-link { display: inline-block; margin-top: 24px; color: #2f6fed; text-decoration: none; font-weight: 600; }
