@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #202b2a;
    --muted: #737d78;
    --paper: #f5f4ee;
    --line: #dcded5;
    --green: #176b50;
    --green-dark: #10553e;
    --lime: #d8ed8b;
    --orange: #e8754e;
    --mono: 'DM Mono', 'Courier New', monospace;
    --sans: 'Manrope', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: linear-gradient(90deg, transparent 49.94%, rgba(36, 55, 47, .035) 50%, transparent 50.06%), radial-gradient(ellipse at 10% 22%, rgba(216, 237, 139, .22), transparent 30rem), var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}
.shell { width: min(1060px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 14px; font-weight: 800; text-decoration: none; }
.brand-light { margin-left: 4px; color: var(--muted); font-weight: 500; }
.brand-mark { width: 23px; height: 23px; display: flex; align-items: end; gap: 3px; padding: 3px; border: 1px solid var(--green); transform: rotate(-8deg); }
.brand-mark span { flex: 1; background: var(--green); }
.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { height: 75%; }
.brand-mark span:nth-child(3) { height: 100%; }
.privacy-note, .eyebrow, .format-note, .drop-limit, .file-type, .page-footer > span { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0; }
.privacy-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.build-version { padding-left: 9px; border-left: 1px solid var(--line); color: var(--green); }
.status-dot, .file-state { width: 7px; height: 7px; border-radius: 50%; background: #56a873; }
.intro { max-width: 720px; padding: 76px 0 66px; animation: arrive .5s ease-out both; }
.eyebrow { margin: 0 0 15px; color: var(--green); font-size: 10px; font-weight: 500; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: 0; font-weight: 600; }
h1 span { color: var(--green); }
.intro-copy { max-width: 500px; margin: 19px 0 0; color: #606a65; font-size: 14px; line-height: 1.8; }
.workspace { padding: 31px 34px 35px; background: rgba(255,255,255,.7); border: 1px solid var(--line); border-top: 3px solid var(--green); box-shadow: 0 18px 45px rgba(41,57,45,.045); animation: arrive .55s .08s ease-out both; }
.section-heading, .results-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading .eyebrow, .results-heading .eyebrow { margin-bottom: 8px; }
h2 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 700; }
.format-note { padding-bottom: 4px; color: #7b827e; font-size: 9px; white-space: nowrap; }
.upload-form { margin-top: 24px; }
.dropzone { position: relative; min-height: 156px; display: flex; align-items: center; gap: 18px; padding: 26px; overflow: hidden; border: 1px dashed #aab7aa; background: linear-gradient(135deg, rgba(216,237,139,.12), transparent 55%), #fbfcf8; cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.dropzone:hover, .dropzone.is-dragging { border-color: var(--green); background-color: #f3f8e8; }
.upload-symbol { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid #b8cbb8; color: var(--green); font-size: 25px; }
.drop-copy { display: grid; gap: 6px; font-size: 13px; }
.drop-copy strong { font-weight: 700; }
.drop-copy > span { color: var(--muted); font-size: 12px; }
.drop-limit { position: absolute; right: 26px; bottom: 21px; color: #89918b; font-size: 8px; }
.dropzone input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-actions { min-height: 56px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.file-summary { margin: 0 0 13px; color: var(--muted); font-size: 11px; }
.analyze-button { min-height: 43px; display: flex; align-items: center; gap: 22px; padding: 0 16px; border: 0; background: var(--green); color: white; font: 600 11px var(--sans); cursor: pointer; transition: background .18s ease, transform .18s ease; }
.analyze-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.analyze-button span:last-child { color: var(--lime); font-size: 16px; }
.notice { margin-top: 20px; padding: 13px 15px; font-size: 12px; line-height: 1.6; }
.notice-error { border-left: 3px solid var(--orange); background: #fff1eb; color: #793d2c; }
.notice-neutral { border-left: 3px solid #a5ad9b; background: #f5f6f0; color: #5f6861; }
.results { margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); animation: arrive .35s ease-out both; }
.result-caption { color: var(--muted); font-size: 11px; }
.matches { margin-top: 23px; border: 1px solid #b6cdbb; background: #f2f7ed; }
.matches-title { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #d3e0d1; color: var(--green-dark); font-size: 12px; }
.match-icon { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font: 12px var(--mono); }
.match-row { padding: 14px 16px; }
.match-row + .match-row { border-top: 1px solid #d3e0d1; }
.match-files { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #394841; font-size: 11px; font-weight: 700; }
.match-arrow { color: #849486; }
.match-values { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.match-chip { padding: 5px 8px; border: 1px solid #d6ded1; background: white; color: #56635a; font-size: 10px; overflow-wrap: anywhere; }
.match-important { border-color: #b6cdbb; color: var(--green-dark); }
.match-chip b { font-weight: 700; }
.file-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.file-result { min-width: 0; padding: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.7); animation: arrive .35s ease-out both; }
.file-heading { display: flex; align-items: center; gap: 11px; }
.file-type { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #d7dfcf; background: #f7f9f2; color: var(--green); font-size: 8px; }
.file-name-wrap { min-width: 0; flex: 1; }
.file-name-wrap h3 { overflow-wrap: anywhere; margin: 0; font-size: 12px; font-weight: 700; }
.file-name-wrap p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.file-state { flex: 0 0 7px; }
.file-state.state-error { background: var(--orange); }
.metadata-list { margin: 17px 0 0; border-top: 1px solid #e5e7df; }
.metadata-list > div { display: grid; grid-template-columns: minmax(94px, 38%) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef0e9; font-size: 10px; line-height: 1.5; }
.metadata-list dt { color: var(--muted); }
.metadata-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #303a35; }
.file-error, .empty-metadata { margin: 16px 0 0; color: #9a523c; font-size: 11px; line-height: 1.6; }
.empty-metadata { color: var(--muted); }
.signature-report { margin-top: 17px; padding-top: 14px; border-top: 1px solid #e5e7df; }
.signature-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; font-size: 11px; }
.signature-status { text-align: right; font-size: 10px; line-height: 1.5; }
.status-valid { color: var(--green); }
.status-invalid { color: #a54b33; }
.status-none { color: var(--muted); }
.status-unavailable, .status-unsupported { color: #896224; }
.signature-item { margin-top: 12px; padding-top: 11px; border-top: 1px solid #eef0e9; }
.signature-item > p { margin: 0 0 8px; color: #46514a; font-size: 10px; line-height: 1.5; }
.certificate-list { margin: 0; }
.certificate-list > div { display: grid; grid-template-columns: minmax(78px, 30%) minmax(0, 1fr); gap: 9px; padding: 5px 0; font-size: 9px; line-height: 1.5; }
.certificate-list dt { color: var(--muted); }
.certificate-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #39443d; }
.signature-caveat { margin: 11px 0 0; color: #858c85; font-size: 9px; line-height: 1.5; }
.page-footer { display: flex; align-items: baseline; gap: 13px; padding: 25px 0 32px; color: #858c85; font-size: 10px; line-height: 1.6; }
.page-footer > span { flex: 0 0 auto; color: #67736a; font-size: 8px; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
    .shell { width: min(100% - 34px, 520px); }
    .topbar { height: 69px; }
    .intro { padding: 53px 0 43px; }
    h1 { font-size: 39px; }
    .intro-copy { font-size: 13px; }
    .workspace { padding: 24px 18px; }
    .section-heading, .results-heading { align-items: start; flex-direction: column; gap: 9px; }
    .format-note { padding: 0; }
    .dropzone { min-height: 146px; align-items: start; padding: 21px 17px; }
    .upload-symbol { flex-basis: 36px; width: 36px; height: 36px; }
    .drop-limit { right: 17px; bottom: 16px; font-size: 7px; }
    .form-actions { align-items: start; flex-direction: column; gap: 3px; padding-top: 13px; }
    .file-summary { margin-bottom: 4px; }
    .file-results { grid-template-columns: 1fr; }
    .result-caption { font-size: 10px; }
    .match-row { padding: 13px; }
    .page-footer { align-items: start; flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}