*{box-sizing:border-box}
[hidden]{display:none!important}
:root{font:16px/1.52 system-ui,sans-serif;--ink:#112e44;--navy:#092d45;--blue:#005d8b;--cyan:#429dc9;--muted:#40596c;--line:#c9dbe8;--paper:#f4f8fb;color:var(--ink);background:var(--paper)}
body{margin:0}
.wrap{width:min(1160px,calc(100% - 3.5rem));margin-inline:auto}
a{color:var(--blue)}
a:focus-visible,button:focus-visible,input:focus-visible,.dropzone:focus-within .file-picker{outline:3px solid #0077a9;outline-offset:4px}
.header{background:#fff;border-top:5px solid var(--cyan)}
.mast{min-height:106px;display:flex;align-items:center;justify-content:space-between;gap:1.2rem;padding:1rem 0}
.unam-brand img{display:block;width:clamp(150px,24vw,240px);height:auto}
.unam-brand p{margin:.5rem 0 0;color:var(--muted);font-size:.81rem;font-weight:680;letter-spacing:.015em}
.bfa-brand img{display:block;width:clamp(85px,13vw,142px);height:auto;max-height:62px;object-fit:contain}
.intro-band{position:relative;isolation:isolate;overflow:hidden;background:var(--navy);color:#fff;border-bottom:4px solid var(--cyan)}
.intro-band::after{content:"";position:absolute;z-index:-1;inset:0 0 0 54%;background:url('/unam.png') no-repeat center right -110px / 560px;filter:brightness(0) invert(1);opacity:.09;pointer-events:none}
.intro-inner{padding:2.85rem 0 3rem}
h1{font-size:clamp(2.5rem,6vw,4.5rem);letter-spacing:-.058em;line-height:1;margin:0}
.intro-inner p{max-width:64ch;margin:1rem 0 0;color:#e2eef6}
main{padding:2rem 0 1.75rem}
.workspace{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}
form,aside{min-width:0;padding:clamp(1.35rem,3.5vw,2.65rem)}
h2{margin:0 0 1rem;letter-spacing:-.025em;font-size:clamp(1.35rem,2.7vw,1.95rem);line-height:1.2}
button,.file-picker{font:inherit;font-weight:700;cursor:pointer}
.modes{display:grid;grid-template-columns:1fr 1fr;gap:.25rem;padding:.25rem;margin:0 0 1rem;background:#eaf2f7;border-radius:9px}
.modes button{min-height:45px;border:0;border-radius:7px;color:var(--blue);background:transparent;padding:.45rem .6rem}
.modes button[aria-pressed=true]{background:var(--blue);color:#fff}
.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:185px;padding:1rem;text-align:center;background:#f0f7fc;border:1px dashed #6d9bb8;border-radius:12px;transition:background .15s,border-color .15s}
.dropzone[data-dragging=true]{background:#dbeffa;border-color:#0075a7}
.upload-symbol{display:grid;place-items:center;width:47px;height:47px;border-radius:50%;background:#d6eaf6;color:#005780;font-size:1.8rem;font-weight:700;line-height:1}
.dropzone p{margin:.55rem 0 .75rem;font-weight:690}
.dropzone input{width:100%;min-height:44px;max-width:330px;color:var(--muted);font:inherit}
.dropzone input::file-selector-button{min-height:44px;margin-right:.65rem;border:1px solid #8db4cc;border-radius:7px;padding:.5rem .8rem;color:var(--blue);background:#fff;font:inherit;font-weight:700;cursor:pointer}
.file-picker{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.help,.access{color:var(--muted);font-size:.86rem;margin:.55rem 0 1rem}
.field-label{display:block;font-weight:680;margin-bottom:.35rem}
#hash{display:block;width:100%;min-height:46px;border:1px solid #829eb2;border-radius:7px;padding:.55rem .7rem;font:inherit;color:var(--ink)}
#submit{min-height:46px;border:0;border-radius:8px;background:var(--blue);color:#fff;padding:.6rem 1.05rem}
#submit:hover:not(:disabled),#download:hover{background:#08476b}
button:disabled{opacity:.53;cursor:default}
.consent{display:flex;align-items:flex-start;gap:.55rem;background:#fff2d3;border-radius:7px;padding:.7rem;margin-bottom:.85rem}
.consent input{width:19px;height:19px;margin:.12rem 0 0;flex:none}
#status{color:#8d2423;margin:.75rem 0 0}#status:empty{display:none}
aside{position:relative;isolation:isolate;overflow:hidden;color:#eaf6fd;background:#0c3854}
aside::before{content:"";position:absolute;z-index:-1;inset:0;background:url('/unam.png') no-repeat right -78px bottom 18px / 435px;filter:brightness(0) invert(1);opacity:.10;pointer-events:none}
.result-heading p{font-weight:730;color:#b8dff2;font-size:.80rem;margin:0 0 .5rem}
.result-heading h2{margin-bottom:1.1rem;color:#fff}
.result-empty{padding:1.15rem 0;border-top:1px solid #5c8198;color:#cde4f0}.result-empty p{max-width:32ch;margin:0}
#result{background:#fff;color:var(--ink);border-radius:12px;padding:1rem;animation:result-in .18s ease-out}
@keyframes result-in{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.outcome-banner{background:#e0f2eb;border-left:4px solid #087761;padding:.55rem .7rem;border-radius:0 7px 7px 0}
.outcome-banner[data-found=false]{background:#f8efdf;border-color:#9b6a29}
.outcome-banner h3{margin:0;font-size:1.08rem}
dl{margin:.75rem 0 0}dt{font-size:.81rem;font-weight:710;color:var(--muted)}dd{margin:0 0 .6rem;padding:.25rem 0 .55rem;border-bottom:1px solid #dae7ef;overflow-wrap:anywhere;font:.9rem/1.4 ui-monospace,monospace}
#download{display:flex;align-items:center;justify-content:space-between;gap:.6rem;min-height:47px;padding:.6rem .75rem;border-radius:7px;background:var(--blue);color:#fff;text-decoration:none;font-weight:700}
#download span{font-size:.73rem;border:1px solid #a2c6d9;border-radius:4px;padding:.1rem .3rem}
footer{display:flex;justify-content:space-between;gap:.6rem 1.2rem;flex-wrap:wrap;border-top:1px solid var(--line);padding:1rem 0 1.5rem;font-size:.86rem}
footer nav{display:flex;gap:1rem;flex-wrap:wrap}
@media(max-width:720px){.wrap{width:calc(100% - 2rem)}.intro-inner{padding:2rem 0}.intro-band::after{inset-inline-start:0;opacity:.065}.workspace{grid-template-columns:minmax(0,1fr)}aside::before{background-size:320px}.mast{min-height:86px}main{padding-top:1.2rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}