:root{--brand:#0F766E;--brand-strong:#115E59;--brand-tint:#E7F4F2;--page:#F9F9F7;--surface:#FCFCFB;--ink:#0B0B0B;--ink2:#52514E;--muted:#898781;--hairline:#E1E0D9;--border:rgba(11,11,11,.10);--good:#0CA30C;--good-text:#006300;--warn:#FAB219;--serious:#EC835A;--critical:#D03B3B;--s1:#2A78D6;--s2:#EB6834;--s3:#7C4DBE;--r:12px;--shadow:0 1px 2px rgba(0,0,0,.05)}*{box-sizing:border-box}body,html{margin:0}body{background:var(--page);color:var(--ink);font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}.money{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.side{background:var(--surface);border-right:1px solid var(--hairline);padding:16px 12px;position:-webkit-sticky;position:sticky;top:0;height:100vh;overflow:auto}.logo{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;padding:10px 8px 18px}.mono{width:36px;height:36px;border-radius:10px;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:700;font-size:14px}.marklogo{width:64px;height:64px;flex:none;background:#fff;border:1px solid var(--hairline);border-radius:50%;padding:11px 8px;box-sizing:border-box}.logo b{font-size:15px;line-height:1.2}.logo span{display:block;font-size:11.5px;color:var(--muted);font-weight:400}.navgrp{font-size:11px;letter-spacing:.08em;color:var(--muted);text-transform:uppercase;padding:14px 10px 6px}.nav{display:flex;flex-direction:column;gap:2px}.nav a,.nav button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:9px 10px;border:0;background:none;border-radius:9px;font:inherit;font-size:14px;color:var(--ink2);cursor:pointer}.nav a svg,.nav button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.nav a:hover,.nav button:hover{background:#f1f1ee}.nav a.act,.nav button.act{background:var(--brand-tint);color:var(--brand-strong);font-weight:600}.shell:not([data-role=admin]) .admin-only,.shell:not([data-role=tenant]) .tenant-only,.shell[data-role=tenant] .owner-only{display:none}.main{padding:0 28px 60px;min-width:0}.top{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--hairline);margin-bottom:22px;position:-webkit-sticky;position:sticky;top:0;background:var(--page);z-index:5}.top h1{font-size:20px;margin:0;flex:1 1;font-weight:650}.roleswitch{display:flex;border:1px solid var(--border);border-radius:999px;overflow:hidden;background:var(--surface)}.roleswitch button{border:0;background:none;padding:7px 14px;font:inherit;font-size:13px;color:var(--ink2);cursor:pointer}.roleswitch button.act{background:var(--brand);color:#fff;font-weight:600}.avatar{width:34px;height:34px;border-radius:999px;background:var(--brand-tint);color:var(--brand-strong);display:grid;place-items:center;font-size:12px;font-weight:700;cursor:pointer}.usermenu{position:absolute;right:0;top:42px;width:216px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:12px 14px;box-shadow:0 10px 26px rgba(0,0,0,.14);z-index:60}.who{font-size:12.5px;color:var(--muted);text-align:right;line-height:1.3}.grid{display:grid;grid-gap:16px;gap:16px}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);box-shadow:var(--shadow);padding:18px;overflow-x:auto}.card h3{margin:0 0 4px;font-size:13px;font-weight:600;color:var(--ink2)}.hero{font-size:28px;font-weight:700;letter-spacing:-.01em}.cap{font-size:12.5px;color:var(--muted)}.chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;border-radius:999px;padding:3px 10px;white-space:nowrap}.chip.good{background:#e8f6e8;color:var(--good-text)}.chip.warn{background:#fdf3d8;color:#7a5600}.chip.serious{background:#fdeae2;color:#8a3413}.chip.critical{background:#fbe5e5;color:#8f1f1f}.chip.neutral{background:#f1f1ee;color:var(--ink2)}.chip.brand{background:var(--brand-tint);color:var(--brand-strong)}.chip.bloque{display:block;white-space:normal}.btn{display:inline-block;border:0;border-radius:9px;padding:9px 14px;font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;background:var(--brand);color:#fff}.btn:hover{background:var(--brand-strong)}.btn.ghost{background:none;color:var(--brand-strong);border:1px solid var(--hairline)}.btn[disabled]{background:#d7d6d0;color:#8b8a85;cursor:not-allowed}table{width:100%;border-collapse:collapse;font-size:13.5px}th{font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600;text-align:left;padding:8px 10px}td,th{border-bottom:1px solid var(--hairline)}td{padding:10px;vertical-align:top}tr:last-child td{border-bottom:0}td.num,th.num{text-align:right}td.num{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.pillrow{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.pill{border:1px solid var(--hairline);background:var(--surface);border-radius:999px;padding:6px 14px;font:inherit;font-size:13px;color:var(--ink2);cursor:pointer}.pill.act{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}.scaninput{width:100%;border:1px solid var(--hairline);background:var(--surface);border-radius:9px;padding:10px 12px;font:inherit;font-size:14.5px;color:var(--ink)}.scaninput:focus{outline:2px solid var(--brand);outline-offset:1px;border-color:var(--brand)}.sechead{display:flex;align-items:center;gap:10px;margin:26px 0 12px}.sechead h2{font-size:16px;margin:0}.sechead .cap{flex:1 1}.note{font-size:12.5px;color:var(--muted);border-left:3px solid var(--hairline);padding:2px 0 2px 10px;margin-top:14px}.progress{height:8px;background:#eeeeea;border-radius:999px;overflow:hidden}.progress i{display:block;height:100%;background:var(--brand);border-radius:999px}.thumb{width:64px;height:48px;border-radius:8px;background:#ececec;border:1px solid var(--hairline);display:inline-grid;place-items:center;color:var(--muted);font-size:16px;margin-right:6px}img.thumb{object-fit:cover;display:inline-block;vertical-align:top}.cover{width:100%;height:110px;object-fit:cover;border-radius:8px;margin:8px 0 10px;border:1px solid var(--hairline);display:block}.scrollwrap{max-height:430px;overflow:auto}.scrollwrap th{position:-webkit-sticky;position:sticky;top:0;background:var(--surface);z-index:1}.feed li{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--hairline);font-size:13.5px;align-items:baseline}.feed li:last-child{border:0}.feed{list-style:none;margin:0;padding:0}.legend{display:flex;flex-wrap:wrap;gap:16px;font-size:12.5px;color:var(--ink2);margin-bottom:8px}.legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}.cardhead{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.cardhead .cap{flex:1 1}.sintocar fieldset,.sintocar-suelto{border:0;padding:0;margin:0;min-width:0}.sintocar-suelto{display:inline}.sintocar fieldset:disabled,.sintocar-suelto:disabled{opacity:.58}.sintocar-aviso{font-size:12px;color:#7a5600;background:#fdf3d8;border:1px solid #f2d38b;border-radius:8px;padding:5px 10px;margin-bottom:8px;display:inline-block}.hbar{display:grid;grid-template-columns:150px 1fr 92px;grid-gap:10px;gap:10px;align-items:center;font-size:13px;padding:5px 0}.hbar .bar{height:14px;border-radius:0 4px 4px 0;background:var(--s2)}.hbar .v{text-align:right;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;color:var(--ink2)}.footer{margin-top:44px;font-size:12px;color:var(--muted);border-top:1px solid var(--hairline);padding-top:14px}.calbig{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:4px;gap:4px;font-size:12px}.calbig b.dh{text-align:center;color:var(--muted);font-weight:600;padding:2px 0}.calbig .d{min-height:62px;background:#f6f6f3;border-radius:8px;padding:4px 5px}.calbig .d .dn{font-size:11px;color:var(--muted);font-weight:600}.calbig .d.off{background:none}.calbig .d.today{outline:2px solid var(--brand);background:var(--brand-tint)}.evt{display:block;margin-top:3px;border-radius:5px;padding:1.5px 6px;font-size:10.5px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cal{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:4px;gap:4px;font-size:12px;text-align:center;color:#b6b5af}.cal b{color:var(--muted);font-weight:600}.cal span{padding:7px 0;background:#f4f4f1;border-radius:7px}.tilerow{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));grid-gap:12px;gap:12px;margin-bottom:16px}.tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:12px 14px;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px}.tile .cap{font-size:11.5px}.tile .v{font-size:19px;font-weight:700;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.alertbar{display:flex;gap:10px;align-items:center;background:#fdf3d8;border:1px solid #f2d38b;color:#7a5600;border-radius:10px;padding:10px 14px;margin:-6px 0 20px;font-size:13.5px}.alertbar a{color:#7a5600;font-weight:600;text-decoration:underline}.alertbar button{background:none;border:0;cursor:pointer;color:inherit;font-size:14px;margin-left:auto;padding:2px 6px}.mobilebar,.sheet{display:none}.sheet{position:fixed;inset:0;background:rgba(20,20,16,.42);z-index:40}.sheet.open{display:block}.sheetpanel{position:absolute;left:0;right:0;bottom:0;background:var(--surface);border-radius:16px 16px 0 0;padding:8px 12px 88px;max-height:80vh;overflow:auto;box-shadow:0 -8px 30px rgba(0,0,0,.16)}.sheetgrab{width:38px;height:4px;border-radius:99px;background:var(--border);margin:6px auto 10px}.sheetpanel .navgrp{padding:12px 6px 4px}.sheetgrid{display:grid;grid-template-columns:1fr 1fr;grid-gap:6px;gap:6px}.sheetgrid button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:1px solid var(--border);background:var(--surface);border-radius:11px;padding:11px 12px;font:inherit;font-size:13.5px;color:var(--ink2);cursor:pointer}.sheetgrid button.act{background:var(--brand-tint);border-color:var(--brand);color:var(--brand-strong);font-weight:600}.sheetgrid button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.modal{display:none;position:fixed;inset:0;background:rgba(20,20,16,.42);z-index:50;padding:24px}.modal.open{display:flex;align-items:center;justify-content:center}.modalpanel{background:var(--surface);border-radius:var(--r);width:100%;max-width:620px;max-height:86vh;overflow:auto;padding:18px 20px 20px;box-shadow:0 18px 50px rgba(0,0,0,.22)}.modalhead{display:flex;align-items:flex-start;gap:12px}.modalhead h3{margin:0;flex:1 1;font-size:17px}.modalhead .x{border:0;background:none;font:inherit;font-size:17px;line-height:1;color:var(--muted);cursor:pointer;padding:2px 4px}.fichagrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-gap:12px;gap:12px;margin:14px 0 4px;padding:12px 0;border-top:1px solid var(--hairline);border-bottom:1px solid var(--hairline)}.subtit{font-size:12.5px;font-weight:700;margin:16px 0 8px}.resena{border-left:2px solid var(--brand-tint);padding:2px 0 2px 11px;margin-bottom:11px}.resena .quien{font-size:12.5px;font-weight:600}.avisobox{background:#fdf3d8;border:1px solid #f2d38b;color:#7a5600;border-radius:10px;padding:10px 12px;font-size:13px;margin-top:14px}@media (max-width:900px){.shell{grid-template-columns:minmax(0,1fr)}.side{display:none}.main{padding:0 14px 90px}.g2,.g3,.tilerow{grid-template-columns:1fr}.top{flex-wrap:nowrap;gap:10px}.top h1{flex:1 1 auto;font-size:19px;min-width:0;overflow-wrap:anywhere}.roleswitch{max-width:100%;overflow-x:auto}.roleswitch button{white-space:nowrap}.chip{white-space:normal}.who{display:block;font-size:11px;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobilebar{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--hairline);z-index:20}.mobilebar button{flex:1 1;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;font:inherit;font-size:11px;color:var(--ink2);padding:8px 0 10px;cursor:pointer}.mobilebar button.act{color:var(--brand-strong);font-weight:700}.mobilebar button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.calbig{grid-template-columns:repeat(7,minmax(0,1fr));font-size:11px}.calbig .d{min-height:64px;padding:3px}.calbig .evt{font-size:9.5px;padding:1px 3px}.legend{gap:8px 12px;justify-content:center}.legend span{white-space:nowrap;font-size:11px}.cardhead{flex-direction:column;align-items:center;text-align:center;gap:8px}.cardhead .cap{flex:none}.hbar{grid-template-columns:110px 1fr 84px}.modal{padding:0}.modal.open{align-items:flex-end}.modalpanel{border-radius:16px 16px 0 0;max-height:88vh;padding-bottom:80px}}.mobilebar a,.nav a,.nav a:hover{text-decoration:none}.mobilebar a{flex:1 1;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;font:inherit;font-size:11px;color:var(--ink2);padding:8px 0 10px}.mobilebar a.act{color:var(--brand-strong);font-weight:700}.mobilebar a svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav button[disabled]{background:none;color:var(--ink2)}.sheetgrid a{display:flex;align-items:center;gap:9px;width:100%;text-align:left;border:1px solid var(--border);background:var(--surface);border-radius:11px;padding:11px 12px;font-size:13.5px;color:var(--ink2);text-decoration:none}.sheetgrid a.act{background:var(--brand-tint);border-color:var(--brand);color:var(--brand-strong);font-weight:600}.sheetgrid a svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.mapa li{align-items:flex-start}.mapa li svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;margin-top:1px}.mobilemenu{display:none}@media (max-width:900px){.mobilemenu{display:flex;flex:1 1;flex-direction:column;align-items:center;gap:3px;border:0;background:none;font:inherit;font-size:11px;color:var(--ink2);padding:8px 0 10px;cursor:pointer}.mobilemenu svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}}