:root{--navy: #1f3864;--blue: #2e75b6;--bg: #f4f6f9;--card: #ffffff;--text: #1a1a1a;--muted: #5a6472;--border: #d6dce4;--green: #2e7d32;--amber: #b98900;--orange: #d9640d;--red: #c62828}*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}.app{max-width:640px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}.app-header{background:var(--navy);color:#fff;padding:14px 16px;display:flex;align-items:center;gap:10px;position:sticky;top:0;z-index:10}.app-header h1{font-size:1.05rem;margin:0;font-weight:700;flex:1}.net-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.net-online{background:#6fcf7c}.net-offline{background:var(--amber);box-shadow:0 0 0 3px #b9890059}.back-btn{background:none;border:none;color:#fff;font-size:1.8rem;line-height:1;padding:0 8px 4px 0;cursor:pointer}.app-main{flex:1;padding:16px}.screen{display:flex;flex-direction:column;gap:14px}h2{color:var(--navy);margin:0;font-size:1.2rem}.btn-primary,.btn-secondary{font:inherit;font-weight:700;border-radius:8px;padding:12px 18px;cursor:pointer;min-height:48px}.btn-primary{background:var(--blue);color:#fff;border:none}.btn-primary:disabled{background:var(--border);color:var(--muted);cursor:not-allowed}.btn-secondary{background:#fff;color:var(--navy);border:1px solid var(--border)}.btn-block{width:100%}.form{display:flex;flex-direction:column;gap:14px}.form label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:var(--navy);font-size:.92rem}.form input[type=text],.form textarea,.form select{font:inherit;font-weight:400;padding:12px;border:1px solid var(--border);border-radius:8px;background:#fff;color:var(--text);width:100%}.form textarea{resize:vertical}.checkbox{flex-direction:row!important;align-items:flex-start;gap:10px!important;font-weight:400!important;color:var(--text)!important}.checkbox input{width:22px;height:22px;flex-shrink:0;accent-color:var(--blue)}.form-actions{display:flex;gap:10px;justify-content:flex-end}.inline-form{display:flex;gap:8px}.inline-form input{flex:1;font:inherit;padding:10px 12px;border:1px solid var(--border);border-radius:8px}.card-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.card{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:14px}.card-btn{width:100%;text-align:left;font:inherit;cursor:pointer;display:flex;flex-direction:column;gap:4px}.card-title{font-weight:700;color:var(--navy)}.card-sub{color:var(--muted);font-size:.88rem}.empty-note{color:var(--muted);text-align:center;padding:24px 0}.inspection-head{padding-bottom:4px;border-bottom:2px solid var(--blue)}.head-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.btn-small{min-height:40px;padding:8px 14px;white-space:nowrap}.back-link{text-align:left;padding:0}.error-note{color:var(--red);font-size:.9rem;margin:0}.ai-section{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--border);padding-top:14px}.ai-section h2{flex:1}.polish-review{display:flex;flex-direction:column;gap:10px}.polish-item{display:flex;flex-direction:column;gap:8px}.polish-item textarea{font:inherit;padding:10px;border:1px solid var(--blue);border-radius:8px;resize:vertical}.polish-original{font-size:.85rem;color:var(--muted);border-left:3px solid var(--border);padding-left:8px;white-space:pre-wrap}.storage-panel{border-top:1px solid var(--border);padding-top:12px;display:flex;flex-direction:column;gap:6px;font-size:.88rem}.storage-row{line-height:1.4}.muted-row{color:var(--muted);font-size:.82rem}.status-ok{color:#2e7d32}.status-warn{color:var(--red);font-weight:700}.status-amber{color:var(--amber);font-weight:700}.storage-actions{display:flex;gap:18px}.chip-row{display:flex;gap:8px;flex-wrap:wrap}.chip{font:inherit;padding:8px 14px;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--navy);cursor:pointer;min-height:40px}.chip-active{background:var(--navy);border-color:var(--navy);color:#fff;font-weight:700}.chip-add{border-style:dashed;color:var(--blue)}.segment{display:flex;gap:0;border:1px solid var(--border);border-radius:8px;overflow:hidden}.segment-btn{flex:1;font:inherit;padding:12px 8px;background:#fff;border:none;border-right:1px solid var(--border);color:var(--muted);cursor:pointer;min-height:48px}.segment-btn:last-child{border-right:none}.segment-active{background:var(--blue);color:#fff;font-weight:700}.segment-active.sev-gering{background:var(--amber)}.segment-active.sev-matig{background:var(--orange)}.segment-active.sev-ernstig{background:var(--red)}.finding-form{background:var(--card);border:1px solid var(--blue);border-radius:10px;padding:14px}.finding-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.finding-element{font-weight:700;color:var(--navy)}.finding-desc{margin:8px 0 0;white-space:pre-wrap}.badge{font-size:.78rem;font-weight:700;color:#fff;padding:4px 10px;border-radius:999px;white-space:nowrap}.badge-positief{background:var(--green)}.badge-gering{background:var(--amber)}.badge-matig{background:var(--orange)}.badge-ernstig{background:var(--red)}.template-list{display:flex;flex-direction:column;gap:8px}.template-list-head{font-size:.85rem;font-weight:700;color:var(--muted)}.template-item{font:inherit;display:flex;align-items:flex-start;gap:8px;text-align:left;padding:10px 12px;background:#eef4fa;border:1px solid var(--border);border-radius:8px;color:var(--text);cursor:pointer;min-height:44px}.template-item:active{background:#dce9f6}.template-item .badge{flex-shrink:0;margin-top:1px}.template-text{font-size:.88rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.photo-input input{font-weight:400}.thumb-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.thumb{width:84px;height:84px;object-fit:cover;border-radius:8px;border:1px solid var(--border)}.media-size{margin-top:6px;font-size:.78rem;color:var(--muted)}.finding-actions{display:flex;gap:18px;margin-top:10px;padding-top:8px;border-top:1px solid var(--bg)}.link-btn{font:inherit;font-size:.88rem;font-weight:700;background:none;border:none;padding:4px 0;color:var(--blue);cursor:pointer}.link-danger{color:var(--red)}.thumb-wrap{position:relative}.thumb-x{position:absolute;top:-6px;right:-6px;width:26px;height:26px;border-radius:50%;border:none;background:var(--navy);color:#fff;font-size:.95rem;line-height:1;cursor:pointer}.thumb-removed .thumb{opacity:.35}.thumb-removed .thumb-x{background:var(--red)}
