:root{--brand-blue: #2C5068;--brand-turquoise: #6CBCC0;--brand-white: #FFFFFF;--color-background: #F5F8FA;--color-surface: #FFFFFF;--color-surface-muted: #EAF2F5;--color-text: #203642;--color-text-muted: #526773;--color-border: #CBD6DC;--color-input-border: #7A939F;--color-primary: #2C5068;--color-on-primary: #FFFFFF;--color-primary-hover: #234054;--color-primary-pressed: #1B3242;--color-accent: #6CBCC0;--color-on-accent: #203642;--color-accent-subtle: #EAF6F6;--color-link: #176C70;--color-focus: #176C70;--color-disabled: #E2E8EC;--color-on-disabled: #526773;--color-success: #23704C;--color-success-background: #EDF7F0;--color-warning: #875600;--color-warning-background: #FFF6DE;--color-error: #B42332;--color-error-background: #FFF0F0;--color-info: #2C5068;--color-info-background: #EDF4F8;color-scheme:light}*,*:before,*:after{box-sizing:border-box}html{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;-webkit-text-size-adjust:100%}body{margin:0;min-width:320px;background:var(--color-background);color:var(--color-text)}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.65}a{color:var(--color-link)}:focus-visible{outline:3px solid var(--color-focus);outline-offset:3px}.app-shell{min-height:100dvh;padding-bottom:3rem}.brand-strip{background:var(--color-surface);border-bottom:1px solid var(--color-border);padding:.75rem max(1.25rem,env(safe-area-inset-left))}.brand-strip a{display:inline-block;line-height:0}.brand-strip img{width:10.5rem;height:auto}.eyebrow{color:var(--color-link);font-size:.75rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,4vw,3rem);letter-spacing:-.04em}h2{font-size:clamp(1.35rem,3vw,1.9rem);letter-spacing:-.025em}h3{font-size:1.13rem}p{line-height:1.55}.button{display:inline-flex;justify-content:center;align-items:center;min-height:2.8rem;padding:.65rem 1.1rem;border-radius:.65rem;text-decoration:none;font-weight:700;text-align:center}.button.primary{border:1px solid var(--color-primary);background:var(--color-primary);color:var(--color-on-primary)}.button.primary:hover{background:var(--color-primary-hover)}.button.secondary{border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text)}.button.secondary:hover{background:var(--color-surface-muted)}.text-button{border:0;background:none;color:var(--color-link);font-weight:700;text-decoration:underline;padding:.5rem}.auth-form,.welcome{width:min(100% - 2rem,29rem);margin:clamp(2rem,7vh,5rem) auto 0;padding:clamp(1.3rem,5vw,2.2rem);border:1px solid var(--color-border);border-radius:1.2rem;background:var(--color-surface);box-shadow:0 12px 36px color-mix(in srgb,var(--brand-blue) 8%,transparent)}.auth-form h2,.welcome h2{margin-bottom:.7rem}.auth-form p,.welcome p{color:var(--color-text-muted)}.auth-form label{display:block;margin:1rem 0 .35rem;font-weight:700}.auth-form input{width:100%;min-height:2.8rem;padding:.65rem .8rem;border:1px solid var(--color-input-border);border-radius:.55rem;color:var(--color-text);background:var(--color-surface)}.auth-form>.button,.auth-form form>.button{width:100%;margin-top:1.25rem}.auth-form .text-button{margin-top:.75rem}.password-field{display:flex;align-items:center;border:1px solid var(--color-input-border);border-radius:.55rem}.password-field:focus-within{outline:3px solid var(--color-focus);outline-offset:3px}.password-field input{border:0;min-width:0}.password-field input:focus-visible{outline:none}.password-field .text-button{margin:0;padding-right:.8rem}.auth-link{display:inline-block;margin-top:1rem}.form-error,.form-success{border-radius:.55rem;padding:.75rem;margin:1rem 0 0}.auth-form .form-error,.form-error{color:var(--color-error);background:var(--color-error-background)}.form-success{color:var(--color-success);background:var(--color-success-background)}.welcome{width:min(100% - 2rem,44rem)}.welcome>.button{margin:.4rem 0 2rem}.install-guide{border:1px solid var(--color-border);border-radius:1rem;padding:1.5rem;background:var(--color-surface)}.welcome .install-guide{border:0;border-top:1px solid var(--color-border);border-radius:0;padding:1.5rem 0 0}.install-guide h2{margin:.45rem 0 .6rem}.install-guide p{color:var(--color-text-muted)}.install-guide ol{padding-left:1.25rem;line-height:1.8}.install-ready{color:var(--color-success);font-weight:700}.dashboard{width:min(100% - 2rem,70rem);margin:2rem auto}.dashboard-header,.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem}.dashboard-header{margin-bottom:2rem}.dashboard-actions{display:flex;flex-wrap:wrap;gap:.6rem}.device-gate h1{margin:.5rem 0 .7rem}.dashboard-header h1{margin:.3rem 0}.dashboard-header p{color:var(--color-text-muted);margin:0}.dashboard>.install-guide{margin-bottom:1rem}.storage-status{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.8rem 1rem;border:1px solid var(--color-border);border-radius:.7rem;background:var(--color-accent-subtle);font-size:.9rem}.projects-section{margin:3rem 0}.section-heading{margin-bottom:1.2rem}.section-heading h2{margin:.35rem 0 0}.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem}.project-card,.empty-state,.personal-qr{border:1px solid var(--color-border);border-radius:1rem;padding:1.4rem;background:var(--color-surface)}.project-card{min-height:12rem}.project-card-top{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:1.5rem}.project-code{color:var(--color-text-muted);font-size:.82rem;font-weight:700}.project-status{background:var(--color-accent-subtle);color:var(--color-link);border-radius:99px;padding:.25rem .65rem;font-size:.78rem;font-weight:800}.project-card h3{margin-bottom:.35rem}.project-card p{margin-bottom:0;color:var(--color-text-muted)}.project-card .project-role{margin-top:1rem;color:var(--color-text);font-weight:700}.empty-state{text-align:center}.empty-state .personal-qr{border:0;padding:1rem 0 0}.dashboard>.personal-qr{max-width:25rem}.personal-qr img{max-width:100%;height:auto;background:var(--brand-white)}.small-note{font-size:.85rem;color:var(--color-warning)}.clients-section{margin-top:2rem;padding:clamp(1rem,3vw,2rem);border:1px solid var(--color-border);border-radius:1rem;background:var(--color-surface)}.clients-section>p{color:var(--color-text-muted)}.client-site-layout{display:grid;grid-template-columns:minmax(14rem,.75fr) minmax(0,1.5fr);gap:1.25rem}.client-list{display:grid;align-content:start;gap:.5rem}.client-list-item{display:grid;gap:.25rem;width:100%;padding:.85rem;border:1px solid var(--color-border);border-radius:.65rem;background:var(--color-surface);color:var(--color-text);text-align:left}.client-list-item.selected{border-color:var(--color-primary);background:var(--color-accent-subtle)}.client-list-item span,.site-item span{display:block;color:var(--color-text-muted);font-size:.9rem;overflow-wrap:anywhere}.site-list,.client-site-editor{min-width:0;padding:1.25rem;border:1px solid var(--color-border);border-radius:.75rem}.site-list .section-heading{align-items:center}.site-list h3{margin:0}.client-logo{display:block;max-width:min(100%,14rem);max-height:7rem;object-fit:contain;margin:.75rem 0}.site-item{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 0;border-top:1px solid var(--color-border)}.client-site-editor{margin-top:1.25rem}.client-site-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:1rem}.client-site-editor label{display:grid;gap:.35rem;font-weight:700}.client-site-editor input{width:100%;min-width:0;min-height:2.7rem;padding:.55rem .7rem;border:1px solid var(--color-border);border-radius:.5rem;background:var(--color-surface);color:var(--color-text)}.client-site-editor input[type=file]{height:auto}.client-site-editor .remove-logo-label{display:flex;align-items:center;gap:.5rem;font-weight:500}.client-site-editor .remove-logo-label input{width:1.2rem;min-height:1.2rem;height:1.2rem}.reason-field{margin-top:1rem}.editor-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.25rem}.offline-note{padding:.85rem 1rem;border-radius:.65rem;background:var(--color-accent-subtle);color:var(--color-text)}.users-section{margin-top:2rem;padding:clamp(1rem,3vw,2rem);border:1px solid var(--color-border);border-radius:1rem;background:var(--color-surface)}.users-forms{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,19rem),1fr));gap:1.5rem;margin-block:1.5rem}.user-form,.user-action-form{display:grid;align-content:start;gap:.85rem;padding:1.25rem;border:1px solid var(--color-border);border-radius:.75rem}.user-form h3,.user-action-form h3{margin:0}.user-form label,.user-action-form label{display:grid;gap:.4rem;font-weight:700}.user-form input,.user-form select,.user-action-form input{width:100%;min-width:0;min-height:2.7rem;padding:.5rem .65rem;border:1px solid var(--color-border);border-radius:.5rem;background:var(--color-surface);color:var(--color-text);font:inherit}.user-form input:focus-visible,.user-form select:focus-visible,.user-action-form input:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px}.users-list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:1rem}.users-table-wrap{overflow-x:auto;max-width:100%}.users-table{width:100%;border-collapse:collapse;text-align:left}.users-table th,.users-table td{padding:.8rem;border-bottom:1px solid var(--color-border);vertical-align:top}.users-table th[scope=row]{min-width:14rem}.users-table th[scope=row] span{font-weight:400;overflow-wrap:anywhere}.user-actions{display:flex;flex-wrap:wrap;gap:.5rem}.user-actions button:not(.button){min-height:2.4rem;padding:.3rem .65rem;border:1px solid var(--color-border);border-radius:.5rem;background:var(--color-surface);color:var(--color-link);font:inherit;cursor:pointer}.user-actions button:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px}.user-action-form{margin-top:1.5rem;max-width:34rem}.mfa-setup{margin-top:1.2rem}.mfa-setup img{display:block;max-width:100%;height:auto;margin:0 auto 1rem}.mfa-setup code{display:block;overflow-wrap:anywhere;margin-top:.5rem}.loading-message{text-align:center;margin-top:4rem}.offline-ready{width:min(100% - 2rem,70rem);margin:2rem auto;color:var(--color-success)}.update{position:fixed;inset:auto 1rem max(1rem,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:1rem;max-width:28rem;margin:auto;padding:.75rem 1rem;border:1px solid var(--color-border);border-radius:.75rem;background:var(--color-surface);box-shadow:0 8px 24px color-mix(in srgb,var(--brand-blue) 14%,transparent)}.update button{min-height:2.7rem;border:0;border-radius:.5rem;padding:0 1rem;background:var(--color-primary);color:var(--color-on-primary);font-weight:700}@media(max-width:600px){.client-site-layout{grid-template-columns:1fr}.site-item{align-items:flex-start}.users-table-wrap{overflow:visible}.users-table,.users-table tbody{display:block}.users-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.users-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:.75rem;border:1px solid var(--color-border);border-radius:.65rem}.users-table th,.users-table td{min-width:0;padding:.6rem}.users-table th[scope=row],.users-table td:last-child{grid-column:1 / -1}.users-table td:before{content:attr(data-label);display:block;margin-bottom:.15rem;color:var(--color-text-muted);font-size:.75rem;font-weight:700}.dashboard-header,.section-heading{flex-direction:column;align-items:stretch}.dashboard-header .button,.section-heading .button{width:100%}.storage-status{align-items:flex-start;flex-direction:column}.project-card-top{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
