:root{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#1f2430;background-color:#f7f8fa}.app-shell{display:flex;min-height:100vh}.sidebar{width:220px;flex-shrink:0;background:#1f2430;color:#f7f8fa;padding:1rem .75rem}.sidebar-brand{font-size:1.25rem;font-weight:700;padding:.5rem .75rem 1rem}.sidebar-nav{display:flex;flex-direction:column;gap:.25rem}.nav-link{color:#c7ccd6;text-decoration:none;padding:.5rem .75rem;border-radius:8px}.nav-link:hover{background:#2c3342;color:#fff}.form-ok{color:#067647;background:#ecfdf3;border:1px solid #abefc6;border-radius:8px;padding:.5rem .75rem}.nav-link.active{background:#3450a3;color:#fff}.app-body{flex:1;display:flex;flex-direction:column;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1.5rem;background:#fff;border-bottom:1px solid #e2e5ea}.link-button{background:none;border:none;color:#3450a3;cursor:pointer;font:inherit;padding:.25rem .5rem}.content{padding:1.5rem;max-width:1100px;width:100%}.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}.card{background:#fff;border:1px solid #e2e5ea;border-radius:12px;padding:1.25rem}.card-value{font-size:2rem;font-weight:700}.card-label{margin-top:.25rem;font-size:.95rem}.card-hint{font-size:.8rem;margin-top:.25rem}.page-center{display:grid;place-items:center;min-height:60vh}.tabs{display:flex;gap:.25rem;border-bottom:1px solid #e2e5ea;margin:1rem 0}.tab{border:none;background:none;padding:.5rem .9rem;font:inherit;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent}.tab.active{color:#1f2430;border-bottom-color:#3450a3;font-weight:600}.stack{display:flex;flex-direction:column;gap:.75rem;max-width:480px}.stack label{display:flex;flex-direction:column;gap:.25rem;font-size:.9rem}.stack input,.stack select{padding:.5rem .75rem;border:1px solid #d4d8e0;border-radius:8px;font:inherit}.row-actions{display:flex;gap:.5rem;flex-wrap:wrap}.row-actions button,.inline-edit button{padding:.4rem .9rem;border:none;border-radius:8px;background:#3450a3;color:#fff;cursor:pointer;font:inherit}.row-actions button.secondary,.inline-edit button.secondary{background:#e2e5ea;color:#1f2430}.row-actions button.danger,td button.danger{background:#b42318}td button{padding:.3rem .7rem;border:none;border-radius:8px;cursor:pointer;font:inherit}td button.secondary{background:#e2e5ea;color:#1f2430}.inline-edit{display:flex;gap:.25rem}.inline-edit input{padding:.3rem .5rem;border:1px solid #d4d8e0;border-radius:8px;font:inherit}.login-page{min-height:100vh;display:grid;place-items:center}.login-card{width:340px;background:#fff;border:1px solid #e2e5ea;border-radius:12px;padding:2rem;display:flex;flex-direction:column;gap:.5rem}.login-card h1{margin:0}.login-card input{padding:.5rem .75rem;border:1px solid #d4d8e0;border-radius:8px;font:inherit}.login-card button{margin-top:.5rem;padding:.6rem;border:none;border-radius:8px;background:#3450a3;color:#fff;font:inherit;cursor:pointer}.login-card button:disabled{opacity:.6;cursor:default}.form-error{color:#b42318;background:#fef3f2;border:1px solid #fecdca;border-radius:8px;padding:.5rem .75rem;margin:0}.muted{color:#6b7280}.images-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem;margin-top:1rem}.image-card{margin:0;background:#fff;border:1px solid #e2e5ea;border-radius:12px;padding:.5rem}.image-card img{width:100%;height:140px;object-fit:cover;border-radius:8px}.image-placeholder{height:140px;display:grid;place-items:center;background:#f1f3f7;border-radius:8px;font-size:2rem}.image-card.image-pending{opacity:.7}.image-card.image-rejected{border-color:#fecdca;background:#fef3f2}.image-card.image-dragover{outline:2px solid #3450a3}.image-card figcaption{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;margin-top:.5rem}.progress{display:flex;align-items:center;gap:.5rem;margin:.5rem 0}.progress-bar{height:8px;background:#3450a3;border-radius:999px;transition:width .2s}.badge-main{align-self:flex-start;background:#eef2fb;color:#3450a3;border-radius:999px;padding:.1rem .5rem;font-size:.8rem}.uploader{margin-top:1.5rem}.uploader .error{color:#b42318;background:#fef3f2;border:1px solid #fecdca;border-radius:8px;padding:.5rem .75rem}.uploader figure{margin:1rem 0 0}.uploader figure img{max-width:100%;height:auto;max-height:320px;border-radius:8px;border:1px solid #e2e5ea}.uploader figcaption{margin-top:.5rem;font-size:.85rem;color:#6b7280;overflow-wrap:anywhere}.page-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.page-header h1{margin:0}.button{display:inline-block;padding:.5rem 1rem;border:none;border-radius:8px;background:#3450a3;color:#fff;font:inherit;text-decoration:none;cursor:pointer}.button.secondary{background:#e2e5ea;color:#1f2430}.filters{display:flex;align-items:end;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}.filters input,.filters select{padding:.5rem .75rem;border:1px solid #d4d8e0;border-radius:8px;font:inherit;background:#fff}.filters button{padding:.5rem 1rem;border:none;border-radius:8px;background:#3450a3;color:#fff;font:inherit;cursor:pointer}.table-wrap{overflow-x:auto;background:#fff;border:1px solid #e2e5ea;border-radius:12px}.table-wrap table{width:100%;border-collapse:collapse;font-size:.95rem}.table-wrap th,.table-wrap td{padding:.6rem .75rem;text-align:left;border-bottom:1px solid #eef0f4;vertical-align:top}.table-wrap th{color:#6b7280;font-weight:600;font-size:.85rem;white-space:nowrap}.table-wrap tr:last-child td{border-bottom:none}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;overflow-wrap:anywhere}.status{display:inline-block;padding:.1rem .5rem;border-radius:999px;background:#eef2fb;color:#3450a3;font-size:.85rem}.test-result{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem;margin:1rem 0 0;max-width:640px}.test-result div{background:#fff;border:1px solid #e2e5ea;border-radius:12px;padding:.75rem 1rem}.test-result dt{color:#6b7280;font-size:.85rem}.test-result dd{margin:.25rem 0 0;font-size:1.25rem;font-weight:700}.form-steps{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;padding:0;margin:0 0 1.25rem;font-size:.9rem}.form-steps li{color:#6b7280;border:1px solid #e2e5ea;background:#fff;border-radius:999px;padding:.25rem .75rem}.form-steps li.active{border-color:#3450a3;color:#3450a3;font-weight:600}.form-steps li.done{background:#eef2fb;border-color:#d4dcf5;color:#3450a3}.sites-grid{display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 1rem}.site-check{display:inline-flex;align-items:center;gap:.4rem;padding:.4rem .75rem;background:#fff;border:1px solid #e2e5ea;border-radius:8px;cursor:pointer}.photo-list{list-style:none;padding:0;margin:.75rem 0;display:flex;flex-direction:column;gap:.25rem}.ref-layout{display:flex;gap:1.25rem;align-items:flex-start}.ref-levels{flex-shrink:0;width:210px;display:flex;flex-direction:column;gap:.25rem;background:#fff;border:1px solid #e2e5ea;border-radius:12px;padding:.75rem}.ref-group-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;margin:.5rem 0 .25rem}.ref-group-label:first-child{margin-top:0}.ref-level{border:none;background:none;text-align:left;padding:.45rem .6rem;border-radius:8px;font:inherit;color:#1f2430;cursor:pointer}.ref-level:hover{background:#eef1f6}.ref-level.active{background:#3450a3;color:#fff;font-weight:600}.ref-main{flex:1;min-width:0}.breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-bottom:.75rem;font-size:.92rem}.crumb{display:inline-flex;align-items:center}.crumb:not(:last-child):after{content:"›";margin-left:.4rem;color:#9aa1ad}.crumb button{border:none;background:#eef1f6;color:#3450a3;padding:.3rem .6rem;border-radius:999px;font:inherit;cursor:pointer}.crumb button:hover{background:#e2e7f2}.crumb-current{padding:.3rem .6rem;border-radius:999px;background:#3450a3;color:#fff;font-weight:600}.ref-toolbar{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem;flex-wrap:wrap}.ref-filter{margin-left:auto;padding:.45rem .7rem;border:1px solid #d4d8e0;border-radius:8px;font:inherit;max-width:260px}tr.clickable{cursor:pointer}tr.clickable:hover{background:#f2f5fb}.drill-arrow{color:#3450a3;font-weight:700}.ref-empty{padding:.75rem}.search-box{position:relative;flex:1;max-width:420px}.search-box input{width:100%;padding:.5rem .8rem;border:1px solid #d4d8e0;border-radius:8px;font:inherit}.search-popover{position:absolute;z-index:30;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid #e2e5ea;border-radius:10px;box-shadow:0 8px 24px #141e321f;overflow:hidden}.search-hit{display:flex;flex-direction:column;gap:.1rem;width:100%;text-align:left;border:none;background:none;padding:.55rem .75rem;font:inherit;cursor:pointer}.search-hit:hover{background:#f2f5fb}.search-hit-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#6b7280}.search-hit-path{color:#6b7280;font-size:.85rem}.modal-backdrop{position:fixed;inset:0;z-index:50;background:#14192373;display:grid;place-items:center;padding:1rem}.modal{background:#fff;border-radius:14px;box-shadow:0 16px 48px #141e3240;padding:1.25rem 1.5rem;max-width:560px;width:100%;max-height:88vh;overflow:auto}.modal h2{margin-top:0;font-size:1.15rem}.modal-fields{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.field{display:flex;flex-direction:column;gap:.25rem;font-size:.9rem}.field:has(textarea){grid-column:1 / -1}.field input,.field select,.field textarea{padding:.5rem .7rem;border:1px solid #d4d8e0;border-radius:8px;font:inherit}.field input[type=checkbox]{width:1.1rem;height:1.1rem;padding:0}.modal-actions{display:flex;gap:.5rem;margin-top:1rem;justify-content:flex-end}.modal-actions button{padding:.5rem 1rem;border:none;border-radius:8px;background:#3450a3;color:#fff;font:inherit;cursor:pointer}.modal-actions button.secondary{background:#e2e5ea;color:#1f2430}
