:root{--safe-t:env(safe-area-inset-top,0px);--safe-b:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:#F6F2EA}
body{overscroll-behavior:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0;text-align:inherit}
input,textarea{font:inherit;color:inherit}
a{color:#4F5373}
.app{position:fixed;inset:0;display:flex;flex-direction:column;overflow:hidden;background:#F6F2EA;color:#2B2B33;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text',system-ui,sans-serif;font-size:15px;line-height:1.35;max-width:560px;margin:0 auto}
.serif{font-family:'Fraunces','Iowan Old Style',Georgia,serif}
.hdr{height:calc(56px + var(--safe-t));padding-top:var(--safe-t);flex:none;display:flex;align-items:center;gap:4px;padding-left:6px;padding-right:12px;border-bottom:1px solid #E6E0D3;background:#F6F2EA}
.hdr h1{margin:0;font-size:21px;font-weight:600;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ib{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;color:#4F5373;flex:none}
.ib svg,.tab svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ib.spin svg{animation:giro .9s linear infinite}
@keyframes giro{to{transform:rotate(360deg)}}
.scr{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px 16px 28px;display:flex;flex-direction:column;gap:12px}
.scr>*{flex:none}
.tabs{height:calc(68px + var(--safe-b));padding-bottom:var(--safe-b);flex:none;display:flex;border-top:1px solid #E6E0D3;background:#fff}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:#6B6B76;font-weight:500}
.tab.on{color:#4F5373;font-weight:700}
.card{background:#fff;border:1px solid #E6E0D3;border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px}
.h2{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:#6B6B76;font-weight:600;margin:8px 2px 0}
.chips{display:flex;gap:8px;overflow-x:auto;flex:none;padding:2px 0;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;min-height:44px;padding:0 16px;border-radius:22px;border:1.5px solid #CFC8B8;background:#fff;font-size:14px;font-weight:600;color:#4F5373;display:flex;align-items:center;white-space:nowrap}
.chip.on{background:#4F5373;border-color:#4F5373;color:#fff}
.btn{min-height:50px;padding:0 18px;border-radius:14px;background:#4F5373;color:#fff;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;text-align:center;width:100%}
.btn2{min-height:50px;padding:0 18px;border-radius:14px;background:#fff;border:1.5px solid #4F5373;color:#4F5373;font-weight:700;font-size:16px;display:flex;align-items:center;justify-content:center;text-align:center;width:100%}
.btn.danger,.btn2.danger{color:#A63D40;border-color:#A63D40;background:#fff}
.btn[disabled],.btn2[disabled],.sb[disabled]{opacity:.38}
.row{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;background:#fff;border:1px solid #E6E0D3;border-radius:14px;min-height:64px}
.th{width:48px;height:48px;border-radius:10px;overflow:hidden;background:#E9E4D8;flex:none;display:flex;align-items:center;justify-content:center;color:#6A6E8A;font-size:20px}
.th img{width:100%;height:100%;object-fit:cover;display:block}
.grow{flex:1;min-width:0}
.t1{font-weight:600;font-size:15px}
.t2{font-size:12.5px;color:#6B6B76}
.end{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex:none}
.tag{display:inline-block;font-size:12px;font-weight:600;padding:2px 9px;border-radius:999px;border:1px solid;white-space:nowrap}
.tag.ok{color:#256B4B;background:#E7F3EC;border-color:#BFDFCD}
.tag.warn{color:#85560A;background:#FBF1DC;border-color:#EBD3A0}
.tag.bad{color:#A63D40;background:#FBE9E9;border-color:#EDBDBE}
.tag.info{color:#3B4A7A;background:#E8ECF8;border-color:#C4CDEA}
.stepper{display:flex;align-items:center;gap:4px;flex:none}
.sb{width:44px;height:44px;border-radius:12px;border:1.5px solid #4F5373;color:#4F5373;font-size:22px;font-weight:600;display:flex;align-items:center;justify-content:center;background:#fff}
.q{min-width:26px;text-align:center;font-weight:700;font-size:16px}
.fld{height:48px;border-radius:12px;border:1.5px solid #CFC8B8;padding:0 12px;width:100%;background:#fff;font-size:16px;-webkit-appearance:none;appearance:none}
.fld:focus{outline:2px solid #C4CDEA;border-color:#4F5373}
.lbl{font-size:13px;font-weight:600;color:#4A4A55}
.g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.big{font-size:30px;font-weight:600;line-height:1}
#toast .toast{position:absolute;left:16px;right:16px;bottom:calc(80px + var(--safe-b));background:#2B2B33;color:#fff;padding:12px 14px;border-radius:12px;font-size:14px;z-index:40}
.bg{position:absolute;inset:0;background:rgba(30,30,40,.45);z-index:20;display:flex;align-items:flex-end}
.sheet{background:#F6F2EA;border-radius:20px 20px 0 0;padding:18px 16px calc(24px + var(--safe-b));width:100%;display:flex;flex-direction:column;gap:12px;max-height:92%;overflow-y:auto}
.bar{height:10px;border-radius:5px;background:#E9E4D8;overflow:hidden}
.bar div{height:100%;background:#7F8397;border-radius:5px}
.step{display:flex;align-items:center;gap:10px;min-height:30px;color:#6B6B76;font-size:14px}
.step i{width:14px;height:14px;border-radius:50%;border:2px solid #B9B3A4;background:#fff;flex:none}
.step.done{color:#2B2B33}
.step.done i{background:#4F5373;border-color:#4F5373}
.step.cur{color:#2B2B33;font-weight:700}
.step.cur i{border-color:#4F5373;background:#fff;box-shadow:0 0 0 3px #C4CDEA}
.chk{min-height:44px;padding:0 12px;border-radius:12px;border:1.5px solid #4F5373;color:#4F5373;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;background:#fff}
.chk.on{background:#256B4B;border-color:#256B4B;color:#fff}
.strike{text-decoration:line-through;color:#6B6B76;font-size:12px}
.note{font-size:13px;color:#4A4A55;border-radius:12px;padding:10px 12px;background:#ECEEF7}
.note.warn{background:#FBF1DC;color:#5E3E06}
.line{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.hero{background:#4F5373;border-radius:20px;padding:16px;display:flex;align-items:center;gap:14px;color:#F6F2EA}
.busy{position:absolute;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;background:rgba(246,242,234,.55)}
.busy-in{background:#2B2B33;color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;font-weight:600}
.busy[hidden]{display:none}
.center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:24px}
.codigo{height:64px;font-size:30px;letter-spacing:.35em;text-align:center;font-weight:600}
.link{color:#4F5373;font-weight:700;text-decoration:underline}
