:root{font-family:system-ui,sans-serif;color:#e8edf5;background:#0c1423;color-scheme:dark;line-height:1.6}
*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1240px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #2e3a51}header p{margin:4px 0;color:#aebdd2}.brand{font-weight:800;letter-spacing:.15em;color:#6ae0c6}.notice{border-left:3px solid #d6b16d;padding:8px 16px;color:#e0cda8}.card{background:#142036;border:1px solid #30415d;border-radius:14px;padding:24px;min-width:0}.compact{max-width:480px;margin:36px auto}.layout{display:grid;grid-template-columns:300px 1fr;gap:20px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.muted,footer{color:#aebdd2;font-size:.88rem}h1,h2{line-height:1.3}h1{font-size:1.7rem}h2{font-size:1.2rem}label{display:block;margin:14px 0 6px}input,textarea,button,select{font:inherit}input:not([type=checkbox]):not([type=radio]),textarea,select{width:100%;background:#0c1423;color:#e8edf5;border:1px solid #627592;border-radius:7px;padding:10px}input[type=checkbox],input[type=radio]{width:19px;height:19px;vertical-align:middle;margin-right:10px;flex:0 0 auto}button{background:#253951;color:#e8edf5;border:1px solid #526b8c;padding:10px 16px;border-radius:8px;cursor:pointer;min-height:44px}button.primary{background:#6ae0c6;color:#0c1423;font-weight:700}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #f2cd80;outline-offset:3px}#login{margin-top:22px;width:100%}#reports button,.cofre-layout aside button{display:block;width:100%;text-align:left;margin:10px 0;overflow-wrap:anywhere}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.boundary{margin-top:24px;padding-top:16px;border-top:1px solid #30415d}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:460px;overflow:auto;font-size:.85rem}code{overflow-wrap:anywhere;font-size:.82rem}.danger{border-color:#e29292;color:#ffc5c5}#message:empty{display:none}#message,.cofre-error{padding:12px;border:1px solid #627592;border-radius:7px}[hidden]{display:none!important}label.recipient{overflow-wrap:anywhere}details{margin:14px 0}summary{cursor:pointer}footer{margin-top:28px;border-top:1px solid #2e3a51}#workspace-nav{margin-bottom:24px}button[aria-current=page],button[aria-pressed=true]{border-color:#6ae0c6;background:#234a49}fieldset{min-width:0;margin:22px 0;padding:14px 18px 18px;border:1px solid #627592;border-radius:8px}legend{font-weight:700;padding:0 6px}.choice{display:flex;align-items:flex-start;min-height:44px;gap:4px;padding:9px 8px;border-radius:6px}.choice:has(input:checked){background:#213f4b}.field{margin-bottom:18px}progress{width:100%;height:9px;accent-color:#6ae0c6}.step-heading:focus{outline:none}.step-heading:focus-visible,.cofre-error:focus{outline:3px solid #f2cd80;outline-offset:4px}.cofre-report section{margin:22px 0}.finding,.plan-item{padding:14px 18px;border:1px solid #415676;border-radius:8px;margin:14px 0}.finding h4,.plan-item h4{margin:0 0 10px}.critical{border-color:#ffb1a1;border-left-width:5px}.cofre-report p,.cofre-report li{overflow-wrap:anywhere}.cofre-report h3{padding-bottom:8px;border-bottom:1px solid #415676}.inventory-items{display:flex;gap:8px;flex-wrap:wrap}.inventory-items button{font-size:.9rem}.cofre-editor>.actions{border-top:1px solid #415676;padding-top:20px}.cofre-error{border-color:#ffb1a1;color:#ffd5ca}@media(max-width:740px){header,main,footer{padding:16px}.layout{grid-template-columns:1fr}.toolbar{align-items:flex-start;flex-wrap:wrap}.card{padding:18px}h1{font-size:1.4rem}.cofre-editor>.actions button{flex:1}.finding,.plan-item{padding:12px}fieldset{padding:12px}}
@media print{html,body{background:white!important;color:#111!important;color-scheme:light;font-size:11pt}header,footer,main>.notice,#message,#workspace>.toolbar,#workspace-nav,#cases-panel,#diagnostics-panel aside,#detail>.actions,.no-print,.technical,#detail>details{display:none!important}header,main,footer{max-width:none;padding:0}#diagnostics-panel .layout{display:block}#detail{padding:0;border:0;background:white;color:#111}.muted,.notice{color:#333}.notice{border-color:#555}.cofre-report h3{border-color:#999}.finding,.plan-item{border-color:#aaa;break-inside:avoid}.cofre-report h3,.cofre-report h4{break-after:avoid}p,li{orphans:3;widows:3}button{display:none!important}@page{margin:17mm}}
.auth-enrollment-qr{max-width:100%;height:auto;background:#fff;padding:8px;border-radius:8px}
.auth-error{color:#ffb4b4;border-left:3px solid currentColor;padding-left:12px}
#auth-controls code{overflow-wrap:anywhere;user-select:all}
@media print{#auth-controls{display:none!important}}
