.analysis-page,
.analysis-status-page {
    padding: 52px 0 72px;
}

.analysis-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.analysis-info-panel {
    padding: 10px 0;
}

.analysis-info-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
}

.analysis-form-card {
    padding: 28px;
}

.card-header {
    margin-bottom: 22px;
}

.card-header h2 {
    margin: 0 0 8px;
}

.card-header p {
    margin: 0;
    color: var(--muted);
}

.info-stack {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.mini-card {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

input[type="email"] {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0 16px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="email"]:focus {
    border-color: rgba(17, 24, 39, 0.3);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.upload-box {
    position: relative;
    border: 1.5px dashed #c7cdd8;
    background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
    border-radius: 22px;
    min-height: 180px;
    overflow: hidden;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.upload-box:hover {
    border-color: rgba(17, 24, 39, 0.28);
    transform: translateY(-1px);
}

.upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-content {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 20px;
    color: var(--muted);
}

.upload-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.upload-content strong {
    color: var(--primary);
    font-size: 16px;
}

.upload-content span {
    font-size: 13px;
}

.file-preview {
    margin-top: 12px;
    min-height: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.form-check-card {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
}

.checkbox-help {
    margin: 10px 0 0 28px;
    color: var(--muted);
    font-size: 13px;
}

.status-page-wrap {
    max-width: 860px;
}

.status-shell {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(228, 231, 236, 0.95);
    box-shadow: var(--shadow);
    border-radius: 28px;
    padding: 34px;
    text-align: center;
}

.status-topline {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.status-shell h1 {
    margin: 0 0 10px;
    color: var(--text);
}

.status-shell p {
    color: var(--muted);
}

.status-visual {
    display: flex;
    justify-content: center;
    margin: 28px 0 20px;
}

.status-spinner {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    border: 7px solid #e5e7eb;
    border-top-color: var(--primary);
    animation: statusSpin 0.9s linear infinite;
}

.status-spinner.completed {
    animation: none;
    border-color: #d0d5dd;
    border-top-color: #d0d5dd;
}

@keyframes statusSpin {
    to {
        transform: rotate(360deg);
    }
}

.status-progress-card {
    text-align: left;
    background: var(--surface-soft-2);
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 20px;
}

.status-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary);
}

.status-progress-bar {
    height: 10px;
    background: #eaecf0;
    border-radius: 999px;
    overflow: hidden;
}

.status-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), #344054);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.status-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.status-meta-card {
    padding: 16px;
    border-radius: 18px;
    text-align: left;
    background: #fff;
}

.status-meta-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
    font-size: 13px;
}

.status-message-box,
.status-success-box,
.status-softfail-box,
.status-error-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(228, 231, 236, 0.95);
    background: #f8fafc;
}

.status-success-box {
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.16);
}

.status-softfail-box {
    background: #f8fafc;
}

.status-error-box {
    background: rgba(180, 35, 24, 0.05);
    border-color: rgba(180, 35, 24, 0.14);
}

@media (max-width: 960px) {
    .analysis-layout {
        grid-template-columns: 1fr;
    }

    .analysis-form-card {
        order: -1;
    }

    .status-meta-grid {
        grid-template-columns: 1fr;
    }
}

.analysis-purpose-note {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.sample-report-card {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.sample-report-card summary {
    padding: 17px 20px;
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

.sample-report-card summary:focus-visible {
    outline: 3px solid rgba(17, 24, 39, 0.18);
    outline-offset: -3px;
}

.sample-report-content {
    padding: 2px 20px 20px;
    border-top: 1px solid var(--line);
}

.sample-report-content h3 {
    margin: 0 0 10px;
}

.sample-report-content p,
.sample-report-content small {
    color: var(--muted);
}
