:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #071b3a; background: #f3f6fa; font-synthesis: none; line-height: 1.5; --navy: #071b3a; --blue: #0d74d1; --cyan: #21a7f0; --muted: #617083; --line: #dfe6ee; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }
.top { background: white; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1180px; margin: auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; }
.brand img { display: block; width: 306px; height: 90px; object-fit: contain; }
.top-label { padding-left: 28px; border-left: 1px solid var(--line); }
.top-label span { display: block; font-size: 12px; font-weight: 650; letter-spacing: .1em; color: var(--muted); }
.top-label strong { display: block; font-size: 15px; margin-top: 3px; font-weight: 650; }
main { max-width: 1180px; margin: 0 auto; padding: 38px 24px 48px; }
.page-heading { max-width: 810px; margin-bottom: 28px; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .12em; color: var(--blue); }
h1 { font-size: clamp(28px, 3.1vw, 40px); line-height: 1.18; letter-spacing: -.035em; margin: 10px 0 12px; font-weight: 750; }
h1 span { color: var(--blue); }
p { font-size: 16px; color: var(--muted); margin: 0; }
.workspace { display: grid; grid-template-columns: 1.4fr 1fr; border: 1px solid var(--line); background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 28px #071b3a07; }
.upload-panel { padding: 28px; border-top: 3px solid var(--blue); }
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.step { font-size: 13px; font-weight: 750; background: #e8f3ff; color: var(--blue); width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
h2 { font-size: 19px; letter-spacing: -.02em; margin: 0; }
.dropzone { border: 1.5px dashed #9fc8eb; border-radius: 12px; background: #f8fbff; min-height: 265px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 24px; gap: 10px; transition: background .15s, border-color .15s; }
.dropzone.dragging { background: #e5f3ff; border-color: var(--blue); }
.dropzone svg { box-sizing: content-box; color: var(--blue); padding: 12px; background: #e8f3ff; border-radius: 15px; margin-bottom: 6px; width: 34px; height: 34px; }
.dropzone strong { font-size: 18px; }
.dropzone > span { font-size: 14px; color: var(--muted); }
.dropzone small { font-size: 12px; color: var(--muted); }
.button { border: none; min-height: 46px; padding: 11px 22px; border-radius: 8px; font-size: 15px; font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .15s, box-shadow .15s; white-space: normal; text-align: center; }
.primary { background: var(--blue); color: white; box-shadow: 0 3px 8px #0d74d120; }
.primary:hover { background: #0963b5; box-shadow: 0 4px 12px #0d74d132; }
.button:disabled { opacity: .6; cursor: wait; }
.file-button { margin-top: 5px; }
#file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dropzone:focus-within { outline: 3px solid #7ebfec; outline-offset: 3px; }
:focus-visible { outline: 3px solid #7ebfec; outline-offset: 4px; }
.status { font-size: 14px; margin-top: 15px; overflow-wrap: anywhere; }
.privacy { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.6; margin-top: 20px; color: var(--muted); }
.privacy svg { width: 17px; height: 20px; flex: 0 0 17px; margin-top: 1px; }
.error { padding: 13px 15px; border: 1px solid #efb8b8; background: #fff3f3; border-radius: 8px; color: #9d2c2c; margin-top: 14px; font-size: 14px; overflow-wrap: anywhere; }
.rules-panel { padding: 28px; background: #f8fafc; border-left: 1px solid var(--line); border-top: 3px solid #c9dcea; }
.rules-panel > p { font-size: 14px; }
.example { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-top: 20px; }
.example > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.example > strong { display: block; font-size: 14px; margin: 6px 0 15px; line-height: 1.6; }
.example > div { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-top: 1px solid #edf1f6; gap: 12px; }
.example b { color: var(--blue); background: #edf6ff; border-radius: 4px; min-width: 25px; text-align: center; }
.rule-details { margin-top: 18px; font-size: 14px; }
.rule-details summary { cursor: pointer; font-weight: 600; }
.rule-details ul { padding-left: 20px; color: var(--muted); }
.rule-details li + li { margin-top: 8px; }
.results { margin-top: 28px; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 28px #071b3a05; }
.result-heading { padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.result-heading h2 { margin: 6px 0; }
.result-heading p { font-size: 14px; overflow-wrap: anywhere; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fafc; }
.metrics > div { padding: 21px 28px; border-right: 1px solid var(--line); }
.metrics > div:last-child { border: 0; }
.metrics strong { display: block; font-size: 30px; letter-spacing: -.04em; line-height: 1.3; }
.metrics span { font-size: 13px; color: var(--muted); }
.metrics .highlight { background: #eaf5ff; }
.highlight strong { color: var(--blue); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { padding: 13px 28px; text-align: right; border-bottom: 1px solid #eaf0f6; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; width: 55%; min-width: 210px; }
thead { background: #f8fafc; color: var(--muted); font-size: 13px; }
thead th { font-weight: 650; white-space: nowrap; }
tbody tr:nth-child(even) { background: #fbfcfe; }
tbody td:last-child { font-weight: 650; }
tfoot { background: #eaf2fa; font-weight: 750; }
.issues { padding: 24px 28px; border-top: 1px solid var(--line); background: #fffaf0; }
.issues h3 { font-size: 16px; margin: 0 0 5px; }
.issues p, .issues li { font-size: 14px; color: #795b27; }
.issues ul { margin: 14px 0 0; padding-left: 20px; }
.issues li + li { margin-top: 10px; }
.issues strong { color: #5b431c; }
footer { max-width: 1180px; padding: 0 24px 26px; margin: 0 auto; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); gap: 16px; }
footer strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .top-inner { padding: 8px 16px; }
  .brand img { width: 238px; height: 70px; }
  .top-label { display: none; }
  main { padding: 27px 16px 35px; }
  .workspace { grid-template-columns: 1fr; }
  .upload-panel, .rules-panel { padding: 22px; }
  .rules-panel { border-left: none; border-top: 1px solid var(--line); }
  .page-heading { margin-bottom: 22px; }
  .page-heading p { font-size: 15px; }
  .result-heading { padding: 22px; flex-direction: column; align-items: stretch; gap: 16px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics > div { padding: 18px 22px; border-bottom: 1px solid var(--line); }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics strong { font-size: 27px; }
  th, td { padding: 12px 16px; }
  .issues { padding: 22px; }
  .dropzone { min-height: 245px; }
  footer { padding: 0 16px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
