:root{--text: #222;--text-muted: #666;--bg: #fff;--border: #d0d0d0;--sans: system-ui, "Segoe UI", Roboto, sans-serif;font:16px/1.5 var(--sans);color:var(--text);background:var(--bg)}body{margin:0}h1{font-size:1.5rem;font-weight:600}h2{font-size:1.25rem;font-weight:600}.muted{color:var(--text-muted)}.app-shell{max-width:960px;margin:0 auto;padding:1rem}.app-header{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--border);margin-bottom:1rem}.app-title{font-weight:600}.app-header nav{display:flex;gap:.75rem}.app-header a{color:var(--text);text-decoration:none;padding:.25rem .5rem;border-radius:4px}.app-header a.active{background:#eee;font-weight:600}.app-user{margin-left:auto;display:flex;align-items:center;gap:.5rem}button,.button{font:inherit;color:var(--text);background:#f5f5f5;border:1px solid var(--border);border-radius:4px;padding:.4rem .9rem;cursor:pointer;text-decoration:none;display:inline-block}button:disabled{opacity:.5;cursor:default}.login-page{text-align:center;padding-top:4rem}.form-grid{display:grid;gap:.75rem;max-width:480px}.form-grid label{display:grid;gap:.25rem;font-weight:500}input,select,textarea{font:inherit;padding:.4rem .5rem;border:1px solid var(--border);border-radius:4px}.form-actions{display:flex;align-items:center;gap:.75rem}.page-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.search-box{width:100%;max-width:480px;margin-bottom:.75rem;box-sizing:border-box}.entity-list{list-style:none;padding:0;margin:0}.entity-list li{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.6rem 0;border-bottom:1px solid var(--border)}.entity-actions{display:flex;gap:.5rem;flex-shrink:0}.editor-card{border:1px solid var(--border);border-radius:6px;padding:1rem;margin-bottom:1rem}.wizard{display:grid;grid-template-columns:220px 1fr;gap:1.5rem;align-items:start}.stepper ol{list-style:none;padding:0;margin:0;display:grid;gap:.25rem}.step{width:100%;display:flex;align-items:center;gap:.5rem;text-align:left;background:none;border:1px solid transparent}.step-active{border-color:var(--border);background:#f5f5f5;font-weight:600}.step-index{display:inline-flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border:1px solid var(--border);border-radius:50%;font-size:.8rem;flex-shrink:0}.step-complete .step-index{background:#222;color:#fff;border-color:#222}.wizard-nav{display:flex;align-items:center;justify-content:space-between;margin-top:1.5rem;padding-top:.75rem;border-top:1px solid var(--border)}.save-indicator{font-size:.85rem}.field-group{border:1px solid var(--border);border-radius:6px;display:grid;gap:.5rem}.checkbox-label{display:flex!important;flex-direction:row;align-items:center;gap:.5rem}.table-scroll{overflow-x:auto;margin:.5rem 0}.circuit-table{border-collapse:collapse;font-size:.85rem}.circuit-table th,.circuit-table td{border:1px solid var(--border);padding:.2rem .3rem;text-align:center}.circuit-table input:not([type=checkbox]){width:100%;min-width:3rem;border:none;padding:.25rem;box-sizing:border-box}.board-card{margin-bottom:1rem}.board-head{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap}.board-head label{display:grid;gap:.25rem;font-weight:500}.circuit-editor>button{margin-top:.5rem}.inspection-section h4{margin:1rem 0 .25rem}.inspection-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.3rem 0;border-bottom:1px solid var(--border)}.inspection-text{font-size:.9rem}.inspection-row select{flex-shrink:0;min-width:8rem}.assessment-good,.assessment-bad{border:2px solid #222;border-radius:6px;padding:.75rem 1rem;font-weight:600}.assessment-bad{background:#eee}.observation-card{margin-bottom:.75rem}.billing-section{border:1px solid var(--border);border-radius:6px;padding:.5rem 1rem 1rem;margin-bottom:1.5rem;max-width:480px}.usage-bar{height:8px;border:1px solid var(--border);border-radius:4px;max-width:300px;margin:.5rem 0;overflow:hidden}.usage-bar-fill{height:100%;background:#222}.upgrade-prompt{border:1px dashed var(--border);border-radius:6px;padding:.5rem .75rem;display:inline-block}.settings-footer,.login-footer{margin-top:2rem}.legal-page{max-width:640px}.due-section{border:1px solid var(--border);border-radius:6px;padding:.5rem 1rem 1rem;margin-bottom:1.25rem}.due-overdue{font-weight:600;text-decoration:underline}.email-section{margin:.75rem 0}.email-history{list-style:none;padding:0;margin:.5rem 0 0;font-size:.9rem}.photo-thumbs{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.5rem}.photo-thumb{position:relative;display:inline-block}.photo-thumb img{width:72px;height:72px;object-fit:cover;border:1px solid var(--border);border-radius:4px;display:block}.photo-thumb button{position:absolute;top:-6px;right:-6px;padding:0 .35rem;line-height:1.2}.photo-add{cursor:pointer}.signature-pad canvas{width:100%;max-width:300px;height:100px;border:1px dashed var(--border);border-radius:4px;touch-action:none;background:#fff}.signature-preview{max-width:300px;max-height:100px;border:1px solid var(--border);border-radius:4px;display:block}.sharing-section{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--border);max-width:480px}.sharing-section h3{font-size:1rem;margin-top:1.5rem}.error-box{border:1px solid #999;background:#f5f5f5;border-radius:6px;padding:.75rem 1rem;margin-bottom:1rem}.error-box ul{margin:.5rem 0 0;padding-left:1.25rem}.wizard-conflict{border:1px solid var(--border);border-radius:6px;padding:1rem;max-width:480px}@media(max-width:640px){.app-header{gap:.5rem}.app-user{width:100%;margin-left:0}.wizard{grid-template-columns:1fr}.stepper ol{display:flex;flex-wrap:wrap}.step-title{font-size:.85rem}}
