:root{--bg:#f6f8fb;--panel:#fff;--text:#111827;--muted:#667085;--line:#d9e2ec;--brand:#0f766e;--brand-dark:#115e59;--blue:#2563eb;--green:#15803d;--orange:#b45309;--red:#b91c1c;--gray:#64748b}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--text);margin:0;font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}button,input{font:inherit}.screen.center,.login-screen{place-items:center;min-height:100vh;padding:20px;display:grid}.login-panel,.detail-card,.task-card,.welcome-box,.customer-task{background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 40px #0f172a14}.login-panel{width:min(100%,420px);padding:24px}.login-panel span,.mobile-header span,.customer-header span{color:var(--brand);font-size:14px;font-weight:700}.login-panel h1,.mobile-header h1,.customer-header h1{margin:6px 0 20px;font-size:28px}form,.task-list{gap:14px;display:grid}label{color:var(--muted);gap:7px;font-weight:700;display:grid}input{border:1px solid var(--line);width:100%;min-height:48px;color:var(--text);background:#fff;border-radius:8px;padding:0 14px}.mobile-shell{width:min(100%,720px);min-height:100vh;margin:0 auto;padding:18px 16px 96px}.mobile-header,.customer-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.welcome-box{gap:4px;margin-bottom:16px;padding:16px;display:grid}.calendar-toolbar{background:var(--panel);border:1px solid var(--line);border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;padding:12px 14px;display:flex}.calendar-toolbar strong{text-align:center;flex:1;font-size:16px}.calendar-toolbar .secondary-button{min-width:44px;padding:10px}.welcome-box span,.task-card p,.customer-task p,.detail-list dt,.detail-list dd{color:var(--muted)}.task-card,.detail-card,.customer-task{padding:16px}.task-card-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.task-card h3,.detail-card h2,.customer-task h2{margin:0 0 4px;font-size:20px}.task-meta,.inline-actions{flex-wrap:wrap;gap:10px;margin:14px 0;display:flex}.task-meta span,.secondary-button,.primary-button,.success-button,.danger-button{justify-content:center;align-items:center;gap:8px;display:inline-flex}.task-meta span{color:var(--muted)}.primary-button,.success-button,.danger-button,.secondary-button{cursor:pointer;border:0;border-radius:8px;min-height:46px;padding:0 16px;font-weight:800}.primary-button{background:var(--brand);color:#fff}.primary-button:hover{background:var(--brand-dark)}.success-button{background:var(--green);color:#fff}.danger-button{background:var(--red);color:#fff}.secondary-button{color:#1d4ed8;background:#eef4ff}.large{width:100%;min-height:58px;font-size:18px}.status{white-space:nowrap;border-radius:999px;align-items:center;min-height:30px;padding:0 10px;font-size:13px;font-weight:800;display:inline-flex}.status.green{color:#166534;background:#dcfce7}.status.orange{color:#9a3412;background:#ffedd5}.status.red{color:#991b1b;background:#fee2e2}.status.blue{color:#1e40af;background:#dbeafe}.status.gray{color:#374151;background:#e5e7eb}.detail-list{gap:12px;margin:16px 0;display:grid}.detail-list div{gap:3px;display:grid}.detail-list dt{font-size:13px;font-weight:800}.detail-list dd{margin:0}.action-panel{gap:12px;margin-top:16px;display:grid}.confirm-box{background:#f0fdfa;border:1px solid #99f6e4;border-radius:8px;gap:12px;padding:14px;display:grid}.confirm-box.danger{background:#fef2f2;border-color:#fecaca}.feedback,.state-block,.form-error,.offline-banner{border-radius:8px;padding:12px 14px;font-weight:700}.feedback{color:#075985;background:#e0f2fe}.state-block{border:1px dashed var(--line);color:var(--muted);background:#fff}.state-block.error,.form-error{color:var(--red);background:#fef2f2}.offline-banner{color:#9a3412;background:#fff7ed;align-items:center;gap:8px;margin-bottom:12px;display:flex}.bottom-nav{border-top:1px solid var(--line);z-index:20;background:#fff;grid-template-columns:repeat(4,1fr);width:min(100%,720px);padding:8px 8px 10px;display:grid;position:fixed;bottom:0;left:50%;transform:translate(-50%)}.bottom-nav a{min-height:54px;color:var(--muted);border-radius:8px;place-items:center;gap:3px;font-size:12px;font-weight:800;display:grid}.bottom-nav a.active{color:var(--brand);background:#e7f7f5}.customer-shell{width:min(100%,1100px);min-height:100vh;margin:0 auto;padding:24px 16px}.customer-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;display:grid}.camera-viewer{background:var(--panel);border:1px solid var(--line);border-radius:8px;overflow:hidden}.camera-viewer-header{border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:12px 14px;display:flex}.camera-viewer-header div{flex:1;gap:2px;display:grid}.camera-viewer-header span{color:var(--muted);font-size:13px;font-weight:700}.camera-live-dot{color:#b91c1c;background:#fee2e2;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}.camera-canvas-wrap{background:#0f172a;min-height:220px;position:relative}.camera-canvas{background:#0f172a;width:100%;height:auto;min-height:220px;display:none}.camera-canvas.show,.camera-snapshot.show{display:block}.camera-snapshot{object-fit:contain;background:#0f172a;width:100%;height:auto;min-height:220px;display:none}.camera-overlay{text-align:center;color:#fff;background:#0f172ab8;place-items:center;padding:16px;font-weight:700;display:grid;position:absolute;inset:0}.camera-overlay.error{background:#7f1d1dd1;gap:12px;display:grid}.camera-recording-badge{z-index:2;color:#fff;letter-spacing:.08em;background:#dc2626;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;position:absolute;top:12px;left:12px;box-shadow:0 2px 8px #00000059}.camera-workflow-hint{color:#1e40af;background:#eff6ff;border-radius:8px;margin:0 0 12px;padding:12px 14px;font-size:14px;font-weight:700;line-height:1.45}.camera-skip-link{color:#94a3b8;cursor:pointer;background:0 0;border:0;justify-self:start;margin-top:4px;padding:0;font-size:11px;font-weight:500;text-decoration:underline}.camera-skip-link:disabled{opacity:.5;cursor:not-allowed}.report-modal-backdrop{z-index:80;background:#0f172a8c;place-items:end center;padding:0;display:grid;position:fixed;inset:0}.report-modal{border:1px solid var(--line);background:#f8fafc;border-radius:16px 16px 0 0;flex-direction:column;width:min(100%,720px);max-height:96vh;display:flex;overflow:hidden;box-shadow:0 -12px 40px #0f172a38}.report-modal-header,.report-modal-footer{border-bottom:1px solid var(--line);background:#fff;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.report-modal-header h2{margin:0 0 4px;font-size:18px}.report-modal-header p{color:var(--muted);margin:0;font-size:13px;font-weight:600}.report-modal-footer{border-bottom:0;border-top:1px solid var(--line);position:sticky;bottom:0}.report-icon-btn{border:1px solid var(--line);width:40px;height:40px;color:var(--text);cursor:pointer;background:#fff;border-radius:10px;place-items:center;display:inline-grid}.report-modal-body{-webkit-overflow-scrolling:touch;flex:1;gap:12px;min-height:0;padding:12px 16px 20px;display:grid;overflow:auto}.report-header-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 16px 12px;display:grid}.report-header-grid>div{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px}.report-header-grid span{color:var(--muted);margin-bottom:2px;font-size:11px;font-weight:700;display:block}.report-header-grid strong{word-break:break-word;font-size:13px}.report-stepper{border-bottom:1px solid var(--line);background:#fff;flex-shrink:0;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:10px 16px;display:grid}.report-step{min-height:52px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;flex-direction:column;align-items:center;gap:4px;padding:6px 4px;font-size:11px;font-weight:800;display:flex}.report-step.active{color:var(--brand-dark);background:#f0fdfa;border-color:#99f6e4}.report-step.done{color:var(--brand)}.report-step-index{color:#334155;background:#e2e8f0;border-radius:999px;place-items:center;width:24px;height:24px;display:inline-grid}.report-step.active .report-step-index,.report-step.done .report-step-index{background:var(--brand);color:#fff}.report-step-label{text-align:center;line-height:1.1}.report-section{gap:12px;display:grid}.report-section-head{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.report-section-head h3{margin:0 0 4px;font-size:16px}.report-section-head p{color:var(--muted);margin:0;font-size:13px}.report-card-list{gap:12px;display:grid}.report-edit-card{border:1px solid var(--line);background:#fff;border-radius:12px;gap:10px;padding:12px;display:grid;box-shadow:0 1px 2px #0f172a0a}.report-edit-card-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.report-edit-card-head strong{font-size:14px}.report-delete-btn{color:#b91c1c;min-height:36px;font:inherit;cursor:pointer;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:800;display:inline-flex}.report-delete-btn:active{transform:scale(.98)}.report-field-grid,.report-inline-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.report-inline-fields label,.report-field-grid label,.report-modal-body label{color:var(--muted);gap:5px;font-size:12px;font-weight:700;display:grid}.report-modal-body input,.report-modal-body textarea{color:#0f172a;width:100%;min-height:46px;font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;font-size:15px;font-weight:600;display:block}.report-modal-body input:focus,.report-modal-body textarea:focus{border-color:var(--brand);outline:2px solid #99f6e4}.report-modal-body textarea{resize:vertical;min-height:96px;font-weight:500}.report-add-block{border:1.5px dashed var(--brand);width:100%;min-height:48px;color:var(--brand-dark);font:inherit;cursor:pointer;background:#f0fdfa;border-radius:12px;justify-content:center;align-items:center;gap:8px;font-weight:800;display:inline-flex}.report-file-btn{background:var(--brand);color:#fff;cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:0 16px;font-weight:800;display:inline-flex;position:relative;overflow:hidden}.report-file-btn input{opacity:0;cursor:pointer;min-height:100%;position:absolute;inset:0}.report-photo-card{grid-template-columns:1fr auto;align-items:center}.report-photo-card small{color:var(--muted);margin-top:4px;font-weight:600;display:block}.report-summary-box{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.report-summary-box p{color:var(--muted);background:#fff;border:1px solid #99f6e4;border-radius:10px;margin:0;padding:12px;font-size:13px}.report-summary-box strong{color:var(--brand-dark);margin-bottom:2px;font-size:20px;display:block}@media (min-width:721px){.report-modal-backdrop{place-items:center;padding:20px}.report-modal{border-radius:16px;max-height:90vh}.report-step{flex-direction:row;justify-content:center}}@media (max-width:720px){.report-section-head{flex-direction:column}.report-section-head .secondary-button{width:100%}.report-modal-footer{flex-wrap:wrap}.report-modal-footer .primary-button,.report-modal-footer .ghost-button{flex:1;justify-content:center}}.muted-text{color:var(--muted);font-size:13px}.camera-workflow-hint.recording{color:#991b1b;background:#fef2f2}.report-pending-box{gap:12px;display:grid}.report-pending-box .camera-workflow-hint{color:#9a3412;background:#fff7ed;border:1px solid #fdba74;border-radius:8px;margin:0;padding:12px 14px}.camera-ptz-status{color:var(--muted);margin:0;font-size:13px;font-weight:700;line-height:1.4}.camera-header-actions{align-items:center;gap:8px;display:flex}.camera-audio-button{color:#1d4ed8;cursor:pointer;background:#eef4ff;border:0;border-radius:8px;place-items:center;width:40px;height:40px;display:grid}.camera-audio-button.on{color:#15803d;background:#dcfce7}.camera-audio-hint{color:#9a3412;border-top:1px solid var(--line);background:#fff7ed;padding:10px 14px;font-size:13px;font-weight:700}.camera-audio-hint button{color:#c2410c;cursor:pointer;background:0 0;border:0;font-weight:800;text-decoration:underline}.camera-ptz{border-top:1px solid var(--line);gap:12px;padding:14px;display:grid}.camera-ptz-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.camera-ptz-button{border:1px solid var(--line);min-height:54px;color:var(--text);cursor:pointer;background:#f8fafc;border-radius:8px;place-items:center;gap:4px;font-size:11px;font-weight:800;display:grid}.camera-ptz-button.active{color:#1d4ed8;background:#dbeafe;border-color:#93c5fd}.camera-ptz-button.stop{color:#b91c1c;background:#fee2e2;border-color:#fecaca}.camera-ptz-error{color:var(--red);font-size:13px;font-weight:700}@media (max-width:420px){.mobile-header h1,.customer-header h1{font-size:24px}.inline-actions{display:grid}}
