* { 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;
}
.detail-message { white-space: pre-line; overflow-wrap: anywhere; }

/* Two result columns; no manual-review card. */
.verdict-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.verdict-grid .verdict-card { min-width: 0; }
.coverage-note { margin-top: 16px; color: #526b81; font-size: 13px; }
@media (max-width: 800px) { .verdict-grid { grid-template-columns: 1fr; } }

/* Refined interface: readable results and a focused document workflow. */
:root { color-scheme: light; --ink:#172b42; --muted:#62748a; --line:#dce4ec; }
body { background:#f3f5f8; color:var(--ink); padding:32px 28px; }
.container { max-width:1240px; }
.card { padding:0; border:1px solid var(--line); border-radius:24px; overflow:hidden; box-shadow:0 12px 40px #182c4510; }
.hero-title { background:#142d49; color:#fff; text-align:left; padding:30px 36px 36px; margin:0; }
.institution { display:flex; align-items:center; gap:12px; font-size:12px; letter-spacing:.09em; font-weight:600; color:#d5e0ed; }
.brand-mark { display:grid; place-items:center; width:38px; height:38px; border:1px solid #7895b4; border-radius:10px; font-size:14px; color:white; }
.hero-layout { display:grid; grid-template-columns:1.15fr 1fr; align-items:center; gap:48px; margin-top:32px; }
.eyebrow { font-size:10px; letter-spacing:.16em; color:#9bb9d9; margin-bottom:16px; font-weight:700; }
.system-main-title { display:block; font-size:clamp(23px,2.5vw,34px); line-height:1.23; font-weight:700; letter-spacing:-.025em; color:white; background:none; border:0; padding:0; }
.hero-description { margin-top:22px; font-size:19px; line-height:1.5; color:#e5edf6; max-width:360px; }
.system-sub { text-align:left; font-size:12px; color:#a8bdd3; margin-top:24px; }
.upload-panel { background:white; border-radius:18px; padding:16px; color:var(--ink); }
.upload-area { border:1px dashed #b6c5d5; border-radius:12px; padding:24px 16px 18px; background:#f8fafc; cursor:default; }
.upload-area:hover,.upload-area.drag-active { border-color:#386b9c; background:#edf4fb; }
.document-icon { display:grid; place-items:center; width:44px; height:52px; margin:0 auto 14px; border:1px solid #c4d3e2; border-radius:7px 15px 7px 7px; background:white; color:#426c98; font-size:9px; font-weight:800; letter-spacing:.05em; }
.upload-area h2 { font-size:19px; font-weight:650; }
.upload-description { font-size:12px; color:var(--muted); margin:6px 0 18px; }
.file-input-label { background:#e6eef7; color:#21486f; border:1px solid #cbd9e8; border-radius:8px; padding:10px 18px; font-size:13px; font-weight:650; }
.file-input-label:hover { background:#dae7f5; transform:none; }
.file-status { font-size:12px; color:var(--muted); margin-top:14px; overflow-wrap:anywhere; }
.filename-hint { font-size:11px; line-height:1.7; color:var(--muted); padding:13px 6px 0; }
.filename-hint strong { font-size:12px; font-weight:600; color:#314d6d; }
.controls { margin:0; padding:24px 36px 12px; gap:16px; }
.action-buttons { display:flex; gap:10px; flex-wrap:wrap; }
.btn-check,.btn-report { border-radius:9px; padding:13px 20px; font-size:14px; font-weight:600; }
.btn-check { background:#285e94; display:flex; gap:24px; align-items:center; }
.btn-check:hover:not(:disabled) { background:#1b4b7b; }
.btn-check:disabled { background:#dce4ed; color:#65768b; opacity:1; }
.btn-report { color:#295780; background:#edf3f9; border:1px solid #d5e0ec; }
.btn-report:hover { background:#dce9f6; }
.summary-badge { font-size:12px; background:transparent; color:var(--muted); padding:0; }
.privacy-note { color:var(--muted); font-size:11px; margin:0 36px 24px; }
.progress-bar { margin:0 36px 24px; }
.progress-bar-fill { background:#386c9f; }
.file-props { border:1px solid var(--line); border-radius:12px; background:#fff; padding:18px 20px; overflow-wrap:anywhere; }
.stats-bar { gap:16px; }
.stat-item { border:1px solid var(--line); border-radius:12px; box-shadow:none; text-align:left; display:flex; align-items:center; gap:16px; padding:16px 24px; }
.stat-value { font-size:30px; }
.stat-label { font-size:13px; margin:0; }
.verdict-grid { gap:20px; align-items:start; }
.verdict-card { padding:24px; border-radius:14px; box-shadow:none; border:1px solid var(--line); }
.verdict-card.green { background:white; border-left:1px solid var(--line); border-top:3px solid #358261; }
.verdict-card.red-fix { background:white; border-left:1px solid var(--line); border-top:3px solid #c76948; }
.verdict-title { font-size:14px; letter-spacing:.025em; margin-bottom:20px; padding-bottom:18px; border-bottom:1px solid #e8edf2; }
.checklist li { font-size:13px; line-height:1.6; padding-left:23px; margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid #edf1f5; overflow-wrap:anywhere; }
.checklist li:last-child { margin-bottom:0; padding-bottom:0; border:0; }
.detail-message { border:0; background:#f6f8fa; border-radius:8px; padding:12px; font-size:12px; }
.rule-ref { border-radius:5px; padding:2px 6px; background:#edf2f7; font-size:10px; }
.how-to-fix { display:block; background:#edf3fa; border-radius:6px; padding:10px; margin-top:10px; font-size:12px; }
.footer-note { text-align:left; font-size:11px; line-height:1.8; max-width:950px; margin:24px 0; }
button:focus-visible,.file-input-label:focus-visible,a:focus-visible { outline:3px solid #79ace1; outline-offset:4px; }
@media(max-width:800px) {
 body { padding:16px; } .hero-title { padding:24px; } .hero-layout { grid-template-columns:1fr; gap:28px; margin-top:28px; }
 .system-main-title { max-width:550px; } .hero-description { font-size:17px; max-width:none; } .system-sub { margin-top:16px; }
 .controls { padding:20px 24px 12px; } .privacy-note { margin:0 24px 20px; } .progress-bar { margin:0 24px 20px; }
 .verdict-grid { grid-template-columns:1fr; } .verdict-card { padding:20px; } .institution { font-size:10px; letter-spacing:.04em; }
}
@media(max-width:420px) {
 body { padding:10px; } .hero-title { padding:20px; } .system-main-title { font-size:24px; }
 .action-buttons,.btn-check,.btn-report { width:100%; } .btn-check { justify-content:space-between; }
 .stat-item { padding:14px; min-width:0; gap:10px; } .stat-value { font-size:26px; } .stat-label { font-size:11px; }
 .upload-panel { padding:12px; } .file-props { gap:10px; }
}
@media(prefers-reduced-motion:reduce) { * { transition:none!important; scroll-behavior:auto!important; } }
