:root{color-scheme:light}
/* O atributo hidden vence qualquer display declarado abaixo (ex.: o QR antes de existir). */
[hidden]{display:none!important}
body{margin:0;background:#f4f6f3;color:#173b32;font:17px/1.55 system-ui,sans-serif}
main{max-width:40rem;margin:0 auto;padding:2rem 1.25rem 4rem}
h1{font-size:1.7rem;line-height:1.15;margin:.2rem 0 1rem}
h2{font-size:1.15rem;margin:0 0 .6rem}
h3{font-size:1rem;margin:1.2rem 0 .3rem}
section{background:#fff;border-radius:14px;padding:1.2rem;margin:1rem 0}
.eyebrow{font-size:.8rem;letter-spacing:.05em;text-transform:uppercase;opacity:.7;margin:0}
label{display:block;margin:.6rem 0}
label.check{display:flex;gap:.6rem;align-items:flex-start}
input:not([type=checkbox]),select{display:block;width:100%;box-sizing:border-box;font:inherit;padding:.6rem;border:1px solid #c9d5cf;border-radius:8px;margin-top:.25rem}
button{font:inherit;background:#164435;color:#fff;border:1px solid #164435;border-radius:9px;padding:.6rem 1rem;cursor:pointer}
button.quiet{background:transparent;color:#164435}
button.danger{background:transparent;color:#8a1f1f;border-color:#8a1f1f}
button[disabled]{opacity:.5;cursor:default}
.row{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.hint{font-size:.9rem;opacity:.8}
.warn{background:#fff6e0;border:1px solid #e8c877;border-radius:10px;padding:.7rem .9rem;font-size:.95rem}
code{display:block;background:#eef2ef;padding:.6rem;border-radius:8px;overflow-wrap:anywhere;user-select:all}
ul{list-style:none;margin:0;padding:0}
li{border-top:1px solid #e3e9e5;padding:.8rem 0}
li:first-child{border-top:0}
blockquote{margin:.4rem 0;padding:.5rem .8rem;border-left:3px solid #164435;background:#f1f5f2;white-space:pre-wrap;overflow-wrap:anywhere}
.tag{display:inline-block;font-size:.8rem;border-radius:999px;padding:.05rem .6rem;background:#e3e9e5}
.tag.entregue{background:#cfeedd}.tag.falha,.tag.incerto{background:#f6d6d6}.tag.aceito,.tag.tentativa{background:#fff0c2}
#qr{display:block;width:260px;height:260px;margin:1rem auto;image-rendering:pixelated}
.thumb{display:block;max-width:100%;max-height:260px;border-radius:10px;margin:.5rem 0}
