:root{color-scheme:light dark;--bg:#F5F2E9;--surface:#fff;--text:#24212E;--accent:#4B3AAA;--subtle:#E9E4F5;--road:#72839F}
@media(prefers-color-scheme:dark){:root{--bg:#171420;--surface:#292436;--text:#F5F2E9;--accent:#B9AEF4;--subtle:#40365D}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:1rem/1.55 system-ui,sans-serif}header,main,footer{max-width:1180px;margin:auto;padding:1.5rem}header{display:flex;align-items:center;gap:1rem}header img{border-radius:12px}h1{font-size:1.5rem;margin:0}header p{margin:0}.badge{margin-left:auto;background:var(--subtle);padding:.45rem .8rem;border-radius:2rem;font-weight:600}section{background:var(--surface);padding:1.5rem;border-radius:1.4rem;margin-bottom:1.5rem}h2{font-size:1.3rem;margin-top:0}.intro p{max-width:65ch}.primary,button,nav a,summary{min-height:44px;display:inline-flex;align-items:center;padding:.65rem 1rem;font:inherit;border-radius:.8rem;cursor:pointer}.primary{background:var(--accent);color:var(--bg);font-weight:650}button{border:1px solid var(--accent);background:var(--surface);color:var(--accent)}input[type=file]{max-width:100%;margin:1rem;display:block}a{color:var(--accent)}:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin-bottom:1rem}.metric{background:var(--subtle);padding:1rem;border-radius:1rem}.metric strong{display:block;font-size:1.8rem;overflow-wrap:anywhere}.metric span{display:block}details{margin-top:1rem}summary{font-weight:600;color:var(--accent)}nav{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}caption{text-align:left;font-weight:600;padding:.5rem}th,td{padding:.8rem;border-bottom:1px solid var(--road);vertical-align:top}th{white-space:nowrap}td{min-width:7rem;overflow-wrap:anywhere}.muted,footer{font-size:.9rem}#status{font-weight:600}#status.error{color:var(--text);border-left:4px solid var(--accent);padding-left:1rem}[hidden]{display:none!important}@media(max-width:600px){header,main,footer{padding:1rem}.badge{display:none}section{padding:1rem}.summary{grid-template-columns:1fr 1fr}.metric strong{font-size:1.5rem}}

.claim-group{border:1px solid var(--road);border-radius:1rem;padding:1rem;margin:1rem 0}.claim-group button{margin:.3rem}label{display:inline-block;margin:.5rem}input:not([type=checkbox]):not([type=file]),select{font:inherit;min-height:44px;padding:.5rem;max-width:100%;border:1px solid var(--road);border-radius:.5rem;background:var(--surface);color:var(--text)}fieldset label{min-height:44px;display:inline-flex;align-items:center}button:disabled{opacity:.6;cursor:default}#workflow-status{font-weight:600}h3{overflow-wrap:anywhere}

.receipt-copy{display:block;max-width:100%;height:auto;border:1px solid var(--road);margin-block:1rem}

#report-file{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0} .intro:focus-within .primary{outline-offset:4px} .intro.loaded h2,.intro.loaded>p:not(#status),.intro.loaded #sample{display:none}.intro.loaded{padding:1rem}.intro.loaded #status{margin-bottom:0;font-size:.9rem}.claim-group>strong{font-size:2rem;display:block}.claim-group>h3{margin-bottom:.2rem}.claim-group>p{margin:.3rem 0}.claim-group .table-wrap{margin:.8rem 0}header{flex-wrap:wrap}#report{margin-bottom:1.5rem}

.copy-route{white-space:pre-line;overflow-wrap:anywhere;max-width:75ch}.period-controls{display:flex;flex-wrap:wrap;gap:.5rem}.period-controls label{display:flex;flex-direction:column;gap:.25rem}#copy-status{font-weight:600}#intro.loaded #continue-claim{display:none}
