* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #eef2f5;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    padding: 24px 20px;
    color: #1a2c3e;
    line-height: 1.5;
}
.container { max-width: 1400px; margin: 0 auto; }
.card {
    background: white;
    border-radius: 28px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    padding: 24px 28px;
    margin-bottom: 32px;
}
.hero-title { text-align: center; margin-bottom: 24px; }
.system-main-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0b3552, #1f5e8c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    text-transform: uppercase;
    border-bottom: 3px solid #2c7cb6;
    padding-bottom: 8px;
}
.system-sub {
    text-align: center;
    color: #2c5a7a;
    margin-top: 8px;
    font-size: 0.9rem;
}
.upload-area {
    border: 2px dashed #9bb7d0;
    border-radius: 32px;
    background: #f9fbfd;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.upload-area:hover { border-color: #2c7cb6; background: #f0f6fe; }
.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #1e4668;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}
.file-input-label:hover { background: #0f3552; transform: scale(0.98); }
input[type="file"] { display: none; }
.file-status { margin-top: 20px; font-size: 0.9rem; color: #2c5a7a; font-weight: 500; }
.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 16px 0 0;
}
.btn-check {
    background: #1f8a4c;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-check:disabled { background: #a3c2b7; cursor: not-allowed; opacity: 0.6; }
.btn-check:hover:not(:disabled) { background: #0f6a3c; transform: translateY(-1px); }
.btn-report {
    background: #2c7cb6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-report:hover { background: #1e5a8a; }
.summary-badge {
    background: #eef2fa;
    border-radius: 60px;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
}
.verdict-grid { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.verdict-card {
    flex: 1;
    min-width: 320px;
    border-radius: 28px;
    padding: 20px 24px;
    background: white;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.verdict-card.green { border-left: 8px solid #2b8c4a; background: linear-gradient(135deg, #fff, #f4fbf7); }
.verdict-card.red-fix { border-left: 8px solid #c23b0e; background: linear-gradient(135deg, #fff, #fff5f2); }
.verdict-card.red-manual { border-left: 8px solid #e68a2e; background: linear-gradient(135deg, #fff, #fffaf5); }
.verdict-title {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 12px;
}
.green .verdict-title { color: #1a6e42; }
.red-fix .verdict-title { color: #b13b0e; }
.red-manual .verdict-title { color: #c8591a; }
.checklist { list-style: none; padding-left: 0; }
.checklist li {
    margin-bottom: 18px;
    padding-left: 28px;
    position: relative;
    font-size: 0.94rem;
    line-height: 1.4;
}
.checklist li:before {
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}
.green .checklist li:before { content: "✓"; color: #2b8c4a; }
.red-fix .checklist li:before { content: "✗"; color: #c23b0e; }
.red-manual .checklist li:before { content: "🔍"; color: #e68a2e; }
.detail-message {
    background: #f8f9fc;
    border-radius: 20px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #2c3e4e;
    border-left: 3px solid;
}
.rule-ref {
    font-weight: 700;
    color: #1e4668;
    background: #eef2fa;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    display: inline-block;
    margin-right: 8px;
}
.file-props {
    background: #eef2fa;
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}
.warning-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #856404;
}
.error-banner {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 16px;
    padding: 12px 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #721c24;
}
.warning-r7 {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: white;
}
.stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.stat-item {
    background: white;
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    flex: 1;
    min-width: 150px;
    text-align: center;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e4668;
}
.stat-label {
    font-size: 0.8rem;
    color: #5c6f87;
    margin-top: 4px;
}
.progress-bar { margin: 20px 0; }
.progress-bar-inner {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1f8a4c, #0f6a3c);
    width: 0%;
    transition: width 0.3s ease;
}
.progress-text {
    text-align: center;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}
.footer-note {
    font-size: 0.8rem;
    text-align: center;
    color: #5c6f87;
    margin-top: 20px;
}
.how-to-fix {
    background: #e8f0fe;
    color: #1e4668;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    display: inline-block;
}
.alignment-stats {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #1e4668;
    border: 1px solid #c8d9e8;
}
@media (max-width: 720px) {
    .card { padding: 18px; }
    .system-main-title { font-size: 1.3rem; }
    .controls { flex-direction: column; align-items: stretch; }
    .verdict-card { min-width: 100%; }
    .file-props { flex-direction: column; gap: 8px; }
}
.ref-warning-detail {
    background: #fff0f0;
    border-left: 3px solid #c23b0e;
}