:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #172033;
  background: #f4f7fb;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; }

.page-shell { width: min(100% - 32px, 760px); margin: 0 auto; padding: 72px 0; }
.hero { margin-bottom: 32px; }
.eyebrow { color: #3a62ca; font-weight: 700; letter-spacing: .08em; margin: 0 0 10px; text-transform: uppercase; font-size: .78rem; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -.045em; margin: 0 0 12px; }
.hero > p:last-child { color: #596579; line-height: 1.6; margin: 0; max-width: 580px; }

.validator-card, .result { background: #fff; border: 1px solid #dfe5ef; border-radius: 18px; box-shadow: 0 12px 30px rgba(27, 49, 86, .07); padding: 24px; }
.drop-zone { align-items: center; border: 2px dashed #b9c6df; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 38px 20px; text-align: center; transition: .2s ease; }
.drop-zone:hover, .drop-zone.is-dragging { background: #f4f7ff; border-color: #4269cf; }
.drop-zone__icon { align-items: center; background: #eaf0ff; border-radius: 50%; color: #315fc4; display: flex; font-size: 1.5rem; font-weight: 700; height: 42px; justify-content: center; width: 42px; }
.drop-zone span:not(.drop-zone__icon), small { color: #66738a; }
.drop-zone input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.file-name { color: #44536b; font-size: .92rem; min-height: 1.3em; overflow-wrap: anywhere; text-align: center; }
.mode-toggle { background: transparent; border: 0; color: #4269cf; cursor: pointer; display: block; font: inherit; font-size: .9rem; margin: 16px auto; padding: 4px; text-decoration: underline; }
.mode-toggle:hover { color: #1f469f; }
.mode-toggle:focus-visible { outline: 2px solid #4269cf; outline-offset: 2px; }
.xml-content-label { color: #293650; display: block; font-weight: 700; margin-top: 22px; }
#xml-content { border: 1px solid #b9c6df; border-radius: 8px; box-sizing: border-box; font-family: monospace; margin-top: 8px; min-height: 180px; padding: 12px; resize: vertical; width: 100%; }
#xml-content:focus { border-color: #4269cf; outline: 2px solid #dbe5ff; }
.button { background: #2854b8; border: 0; border-radius: 9px; color: #fff; cursor: pointer; font: inherit; font-weight: 700; padding: 13px 18px; width: 100%; }
.button:hover { background: #1f469f; }
.button:disabled { cursor: wait; opacity: .7; }

.result { margin-top: 24px; }
.summary { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.summary h2 { font-size: 1.2rem; margin: 0; }
.summary__counts { display: flex; gap: 8px; }
.badge { border-radius: 999px; font-size: .85rem; font-weight: 700; padding: 6px 10px; }
.badge--error { background: #fee7e7; color: #a42323; }
.badge--alert { background: #fff2d9; color: #8a5700; }
.success { color: #177243; font-weight: 700; margin: 20px 0 0; }
.issues { display: grid; gap: 10px; margin-top: 20px; }
.issue { border-left: 4px solid #d64a4a; display: flex; gap: 12px; padding: 10px 12px; background: #fff8f8; }
.issue--alert { background: #fffaf0; border-left-color: #df9d25; }
.issue__level { color: #8a2630; font-size: .78rem; font-weight: 800; min-width: 70px; text-transform: uppercase; }
.issue--alert .issue__level { color: #825300; }
.issue p { margin: 0; }
.issue__title { font-weight: 700; }
.issue__detail { color: #5c6471; font-size: .9rem; line-height: 1.45; margin-top: 3px !important; }
.request-error { color: #a42323; margin: 0; }

@media (max-width: 560px) { .page-shell { padding: 40px 0; } .validator-card, .result { padding: 18px; } .summary { align-items: flex-start; flex-direction: column; } .issue { flex-direction: column; gap: 4px; } }
