:root{color-scheme:dark;font-family:Inter,Montserrat,"Segoe UI",Arial,sans-serif;background:#031d28;color:#f3faff}
*{box-sizing:border-box}html{min-height:100%}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at top right,#06412d,#031e2a 65%);color:#f3faff}
.mobile-app{max-width:780px;margin:0 auto;padding:22px 16px max(35px,env(safe-area-inset-bottom))}.mobile-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{display:grid;place-items:center;width:51px;height:51px;border:2px solid #0ad9d0;border-radius:50%;color:#13e5b8;font-weight:900;font-size:27px}.brand-mark span{font-size:13px;color:#32f459}.brand strong{display:block;font-size:19px;color:#15e4bd;letter-spacing:.05em}.brand small{font-size:10px;color:#b3cdd4}.mobile-badge{border:1px solid #28586b;border-radius:99px;padding:6px 9px;font-size:11px;white-space:nowrap;color:#c0dce4}
.card{border:1px solid #2b5867;background:linear-gradient(145deg,#082d3d,#062632);border-radius:14px;padding:20px;margin:14px 0;box-shadow:0 12px 30px #0002}section[hidden],label[hidden],fieldset[hidden]{display:none!important}
h1{margin:0 0 9px;font-size:22px;line-height:1.3}p{color:#aac4ce;font-size:13px;line-height:1.55;margin:6px 0 18px}.status{border-radius:9px;border:1px solid #28586b;padding:11px 13px;color:#bbdbe3;font-size:13px;margin:10px 0}.status:empty{display:none}.status.error{background:#4a2529;border-color:#b7595a;color:#ffe0dc}.status.ok{background:#114634;color:#adf8c8}
form{display:grid;gap:14px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}label{display:grid;gap:7px;font-size:12px;font-weight:650;color:#cde3e9}input,select,textarea{width:100%;min-width:0;border:1px solid #356274;border-radius:9px;padding:12px 11px;color:#fff;background:#051d29;font:inherit;font-size:15px}textarea{resize:vertical;line-height:1.4}input:focus,select:focus,textarea:focus{outline:2px solid #09bab1;outline-offset:1px}select option{background:#061e2c}fieldset{border:1px solid #315d6e;border-radius:10px;padding:13px;min-width:0}legend{padding:0 5px;font-size:13px;font-weight:700}.identity{border-radius:8px;background:#0a3942;padding:10px 12px;color:#cce9e9;margin-bottom:14px;font-size:12px}
.check{display:flex;align-items:flex-start;gap:10px;line-height:1.6}.check input{width:18px;height:18px;flex:0 0 auto;margin-top:2px}
button{border:0;cursor:pointer;font-size:13px;font-weight:800;border-radius:9px;min-height:45px;padding:10px 16px}.primary{background:linear-gradient(90deg,#138ffc,#28d857);color:white}.secondary{border:1px solid #316474;background:#082735;color:#e4f4f5}.form-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.form-actions button{flex:1 1 160px}button:disabled{opacity:.55;cursor:wait}.success-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#0ba968;font-size:34px;margin-bottom:12px}.protocol{border:1px solid #32725c;border-radius:10px;background:#083c33;padding:13px;color:#bdede0;font-size:12px}.protocol strong{display:block;margin-top:5px;font-size:21px;color:#fff}.mobile-footer{text-align:center;color:#81a6b1;font-size:10px;margin-top:25px}
@media(max-width:610px){.mobile-app{padding:16px 11px 28px}.mobile-header{align-items:flex-start}.mobile-badge{font-size:9px}.card{padding:16px 13px}.fields{grid-template-columns:1fr}h1{font-size:20px}.brand small{font-size:8px}.brand strong{font-size:17px}.form-actions{flex-direction:column-reverse}.form-actions button{width:100%;flex-basis:auto}}
@media print{body{background:white;color:black}.mobile-header,.mobile-footer,.form-actions,.status{display:none!important}.card{background:white;border:0;box-shadow:none;color:black}}

/* Identidade da instituição informada pelo QR e configurada pelo Administrador. */
.brand{min-width:0}.brand-copy{min-width:0}.brand-copy strong{white-space:normal;overflow-wrap:anywhere;line-height:1.2}.brand-mark[hidden]{display:none!important}.qh-mobile-hospital-logo{width:58px;height:58px;max-width:25vw;flex:0 0 58px;object-fit:contain;background:#fff;border-radius:12px;padding:5px}
