:root{--red:#b91c1c;--red-dark:#7f1d1d;--red-light:#fee2e2;--green:#15803d;--green-light:#dcfce7;--amber:#b45309;--amber-light:#fef3c7;--gray-50:#fafafa;--gray-100:#f4f4f5;--gray-200:#e4e4e7;--gray-400:#a1a1aa;--gray-600:#52525b;--gray-800:#27272a;--gray-900:#18181b;--radius:12px;--shadow:0 1px 3px #00000014, 0 1px 2px #0000000f;-webkit-font-smoothing:antialiased;color:var(--gray-900);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}html,body{background:var(--gray-100);margin:0;padding:0}body{min-height:100dvh}#root{flex-direction:column;max-width:860px;min-height:100dvh;margin:0 auto;display:flex}.app-header{z-index:20;background:var(--red);color:#fff;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));align-items:center;gap:10px;display:flex;position:sticky;top:0}.app-header h1{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;margin:0;font-size:17px;font-weight:700;overflow:hidden}.app-header .back-btn{color:#fff;cursor:pointer;background:0 0;border:none;padding:4px 8px;font-size:22px}.app-main{padding:16px;padding-bottom:calc(76px + env(safe-area-inset-bottom));flex:1}.bottom-nav{z-index:20;border-top:1px solid var(--gray-200);padding-bottom:env(safe-area-inset-bottom);background:#fff;max-width:860px;margin:0 auto;display:flex;position:fixed;bottom:0;left:0;right:0}.bottom-nav a{text-align:center;color:var(--gray-600);flex:1;padding:8px 0 6px;font-size:11px;font-weight:600;text-decoration:none}.bottom-nav a.active{color:var(--red)}.bottom-nav .icon{margin-bottom:2px;font-size:22px;display:block}.card{border-radius:var(--radius);box-shadow:var(--shadow);background:#fff;margin-bottom:12px;padding:16px}.card h3{margin:0 0 6px;font-size:16px}.card .sub{color:var(--gray-600);font-size:13px}.list-row{border-radius:var(--radius);box-shadow:var(--shadow);color:inherit;background:#fff;align-items:center;gap:12px;margin-bottom:10px;padding:14px 16px;text-decoration:none;display:flex}.list-row .grow{flex:1;min-width:0}.list-row .title{font-size:15px;font-weight:600}.list-row .meta{color:var(--gray-600);margin-top:2px;font-size:12.5px}.chevron{color:var(--gray-400);font-size:20px}label.field{margin-bottom:14px;display:block}label.field .lbl{color:var(--gray-600);margin-bottom:5px;font-size:13px;font-weight:600;display:block}input[type=text],input[type=number],input[type=email],input[type=password],input[type=date],select,textarea{border:1.5px solid var(--gray-200);background:#fff;border-radius:10px;width:100%;padding:12px;font-family:inherit;font-size:16px}input:focus,select:focus,textarea:focus{outline:2px solid var(--red);border-color:#0000}textarea{resize:vertical;min-height:72px}.check-row{align-items:center;gap:10px;padding:10px 0;font-size:15px;display:flex}.check-row input[type=checkbox]{width:22px;height:22px;accent-color:var(--red)}.btn{cursor:pointer;border:none;border-radius:10px;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:13px 20px;font-family:inherit;font-size:15px;font-weight:700;text-decoration:none;display:inline-flex}.btn-primary{background:var(--red);color:#fff}.btn-secondary{color:var(--gray-800);border:1.5px solid var(--gray-200);background:#fff}.btn-block{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.fab{right:18px;bottom:calc(86px + env(safe-area-inset-bottom));z-index:15;background:var(--red);color:#fff;cursor:pointer;border:none;border-radius:50%;justify-content:center;align-items:center;width:58px;height:58px;font-size:30px;text-decoration:none;display:flex;position:fixed;box-shadow:0 4px 14px #b91c1c73}.status-seg{grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0;display:grid}.status-seg button{border:1.5px solid var(--gray-200);cursor:pointer;background:#fff;border-radius:9px;min-height:44px;padding:10px 4px;font-family:inherit;font-size:12.5px;font-weight:700}.status-seg button.sel-compliant{background:var(--green);border-color:var(--green);color:#fff}.status-seg button.sel-partial{background:var(--amber);border-color:var(--amber);color:#fff}.status-seg button.sel-non_compliant{background:var(--red);border-color:var(--red);color:#fff}.status-seg button.sel-not_applicable{background:var(--gray-600);border-color:var(--gray-600);color:#fff}.sev-seg{grid-template-columns:repeat(3,1fr);gap:6px;margin:8px 0;display:grid}.sev-seg button{border:1.5px solid var(--gray-200);cursor:pointer;background:#fff;border-radius:9px;padding:8px 4px;font-family:inherit;font-size:12.5px;font-weight:700}.sev-seg button.sel-high{background:var(--red-dark);border-color:var(--red-dark);color:#fff}.sev-seg button.sel-medium{background:var(--amber);border-color:var(--amber);color:#fff}.sev-seg button.sel-low{background:var(--gray-600);border-color:var(--gray-600);color:#fff}.pill{border-radius:999px;padding:3px 10px;font-size:11.5px;font-weight:700;display:inline-block}.pill-green{background:var(--green-light);color:var(--green)}.pill-amber{background:var(--amber-light);color:var(--amber)}.pill-red{background:var(--red-light);color:var(--red)}.pill-gray{background:var(--gray-200);color:var(--gray-600)}.clause-tag{color:var(--red);background:var(--red-light);border-radius:6px;padding:2px 8px;font-size:11px;font-weight:700}.progress-track{background:var(--gray-200);border-radius:999px;height:8px;overflow:hidden}.progress-fill{background:var(--green);border-radius:999px;height:100%;transition:width .3s}.score-ring{font-size:34px;font-weight:800}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:8px;margin-top:8px;display:grid}.photo-grid img{aspect-ratio:1;object-fit:cover;border-radius:8px;width:100%}.photo-thumb{position:relative}.photo-thumb button{background:var(--gray-900);color:#fff;cursor:pointer;border:none;border-radius:50%;width:24px;height:24px;font-size:13px;position:absolute;top:-6px;right:-6px}.empty{text-align:center;color:var(--gray-600);padding:48px 16px}.empty .big{margin-bottom:10px;font-size:44px}.section-h{color:var(--gray-600);text-transform:uppercase;letter-spacing:.06em;margin:20px 0 10px;font-size:13px;font-weight:800}.offline-banner{background:var(--amber-light);color:var(--amber);text-align:center;padding:6px;font-size:13px;font-weight:600}.sync-dot{border-radius:50%;width:9px;height:9px;display:inline-block}.kv{border-bottom:1px solid var(--gray-100);justify-content:space-between;gap:12px;padding:7px 0;font-size:14px;display:flex}.kv .k{color:var(--gray-600)}.kv .v{text-align:right;font-weight:600}@media print{body{background:#fff}.app-header,.bottom-nav,.fab,.no-print{display:none!important}.app-main{padding:0}#root{max-width:none}.report-page{page-break-after:always}.avoid-break{page-break-inside:avoid}}
