*{box-sizing:border-box}body{margin:0;background:#f5f7fa;color:#223044;font:14px/1.6 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}aside{position:fixed;width:200px;background:#12382f;color:#e5f4ec;height:100vh;padding:20px;overflow:auto}aside h2{font-size:19px}aside p{font-size:12px;color:#b7d4c7}nav{display:grid;gap:4px;margin-top:20px}button,.button,a{cursor:pointer}button,.button{border:1px solid #d2ddd8;border-radius:6px;background:white;color:#225547;padding:7px 12px;font:inherit;text-decoration:none;white-space:nowrap}button:hover,.button:hover{background:#eaf3ee}button:disabled{opacity:.5;cursor:default}.primary{background:#126b56;color:white}.primary:hover{background:#105b49}nav button{background:transparent;border:0;color:#d9ebe3;text-align:left}nav button.active{background:#275a49;color:white}#account-actions{display:flex;gap:5px;flex-wrap:wrap}#account-actions button{font-size:11px;padding:3px 6px}main{margin-left:200px;padding:24px 28px;min-width:760px}header{display:flex;align-items:center;justify-content:space-between;gap:20px}h1{font-size:25px;margin:0}#identity{font-size:12px;color:#627367}#status{min-height:24px;color:#5b7167}.error-text{color:#bb3344!important}#tools{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:16px 0}label{display:grid;gap:4px;font-size:12px;color:#526657}input,select,textarea{font:inherit;background:#fff;border:1px solid #c9d5cf;border-radius:5px;padding:8px;min-width:120px}input[type=checkbox]{min-width:0;width:18px;height:18px}textarea{width:100%;min-height:130px;font-family:ui-monospace,'PingFang SC',monospace}input[type=file]{max-width:500px}form{display:grid;gap:16px;max-width:900px}#login-panel,#password-panel{background:#fff;padding:28px;border-radius:10px;max-width:520px;margin:30px auto}#login-panel input,#password-panel input{width:100%}.table-wrap{border:1px solid #e0e7e3;border-radius:8px;background:#fff;overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{background:#edf3ef;color:#496055;font-weight:600;text-align:left;white-space:nowrap;padding:12px;position:sticky;top:0}td{padding:12px;border-top:1px solid #e7ede9;vertical-align:top;max-width:400px;overflow-wrap:anywhere;white-space:pre-wrap}tr:hover td{background:#f7faf8}.title-cell{min-width:200px;max-width:440px;font-weight:500}.actions{min-width:130px;white-space:normal}.actions button,.actions a{font-size:12px;padding:4px 7px;margin:2px}.actions a{color:#16705a}.state{white-space:nowrap;color:#37634e}.flagged td{background:#fff0ef!important;border-top-color:#f4c9c6}.empty{text-align:center;padding:50px;color:#819187}.pagination{display:flex;gap:10px;align-items:center;justify-content:flex-end;padding:16px}.pagination span{margin-right:auto;color:#718379}.hint{color:#6d7f73;font-size:12px;max-width:100%;flex-basis:100%}.metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:18px 0}.metrics article{background:#fff;border:1px solid #dfe7e1;border-radius:8px;padding:18px;display:grid}.metrics strong{font-size:30px;color:#126b56}.metrics span{color:#627968}.drawer-header{display:flex;justify-content:space-between;align-items:center;position:sticky;top:-28px;background:white;padding:12px 0;z-index:2}#editor{position:fixed;inset:20px 25px 20px max(220px,15vw);background:white;box-shadow:0 0 0 100vw #102a234d,0 10px 40px #0003;overflow:auto;z-index:20;padding:28px;border-radius:10px}#editor label{margin-bottom:15px}#editor>button{margin:10px 10px 10px 0}#editor pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7f5;border:1px solid #e0e8e3;padding:14px;border-radius:6px;max-height:450px;overflow:auto}details{margin:14px 0}summary{cursor:pointer;color:#245e48}details pre{white-space:pre-wrap}.feedback{padding:12px;background:#fff0ec;border-left:3px solid #d75c45;margin:10px 0}[hidden]{display:none!important}@media(max-width:1000px){aside{width:160px;padding:12px}main{margin-left:160px;padding:20px}.metrics{grid-template-columns:repeat(3,1fr)}}

.relation-picker{margin:16px 0}.relation-label{display:block;font-weight:600;margin-bottom:8px}.relation-chosen{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.relation-chip{padding:5px 10px!important;border-radius:16px!important;background:#e8f3ef!important;color:#175e4b!important;text-align:left}.relation-picker>details{border:1px solid #ccd9d3;border-radius:8px;padding:10px;background:white}.relation-picker summary{cursor:pointer;color:#176c56}.relation-options{max-height:300px;overflow:auto}.relation-options fieldset{border:0;border-top:1px solid #e4ebe7;padding:8px 0;margin:8px 0}.relation-options legend{font-weight:600;color:#46665a;padding:0 5px}.relation-option{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;padding:8px!important;margin:0!important;cursor:pointer}.relation-option:hover{background:#f0f6f3}.relation-option input{width:18px!important;min-width:18px;height:18px}.relation-option small{display:block;color:#66786f;margin-top:3px}.tools>details{flex-basis:100%}.relation-picker:focus-within{outline-offset:3px}

.nav-group{font-size:12px;color:#6d8077;margin:22px 0 7px}.knowledge-tabs{display:flex;gap:8px;flex-basis:100%;padding:6px 0 14px;border-bottom:1px solid #dce6e0;margin-bottom:8px}

/* Compact application shell; authentication and content never share a screen. */
body{font-size:14px;background:#f6f8fa}main{padding:24px 28px;min-width:0}header{min-height:44px;margin-bottom:18px}h1{font-size:24px;line-height:1.35}.header-right{display:flex;align-items:center;gap:18px}#page-actions{display:flex;gap:8px}#page-actions button{font-size:13px;padding:5px 12px}#status:empty{display:none}#status{min-height:0;margin:8px 0 12px}#knowledge-tabs:empty{display:none}.knowledge-tabs{display:flex;gap:24px;margin:0;border-bottom:1px solid #dce4df;padding:0;flex-wrap:wrap}.knowledge-tabs button{border:0;border-radius:0;padding:12px 2px;background:transparent;color:#66746d;font-weight:500;border-bottom:2px solid transparent}.knowledge-tabs button.primary{color:#126b56;border-bottom-color:#126b56;background:transparent}.knowledge-tabs button:hover{color:#126b56;background:transparent}#tools{background:white;padding:14px 16px;border:1px solid #e0e7e3;border-radius:8px;margin:16px 0 12px;gap:10px;align-items:center}#tools:empty{display:none}#tools>label{gap:0;font-size:0}#tools input,#tools select{font-size:14px;height:36px;padding:6px 10px;min-width:150px}#tools>button,#tools>.button{height:36px;display:inline-flex;align-items:center;padding:6px 14px}.toolbar-search{order:0}.toolbar-search input{width:260px}.toolbar-domain{order:1}.toolbar-add{order:3;margin-left:auto}.toolbar-export{order:4}.loading-state{padding:70px 20px;text-align:center;color:#75827b;background:white;border:1px solid #e0e7e3;border-radius:8px}th,td{padding:10px 12px}.pagination{padding:12px 2px}.nav-group{color:#a4bfb2;font-size:11px;letter-spacing:1px}aside h2{margin:0 0 4px}aside nav{margin-top:20px}#identity{white-space:nowrap}body[data-session=login] #tools,body[data-session=login] #list,body[data-session=login] #knowledge-tabs,body[data-session=login] #page-actions,body[data-session=checking] #tools,body[data-session=checking] #list,body[data-session=password] #tools,body[data-session=password] #list,body[data-session=password] #knowledge-tabs{display:none!important}body[data-session=login] main{max-width:900px;margin-left:max(200px,calc((100vw - 700px)/2));padding-top:64px}body[data-session=login] header{justify-content:center}body[data-session=login] #status{text-align:center}body[data-session=login] #login-panel{margin-top:20px;border:1px solid #e0e7e3}body[data-session=login] #login-panel h2{display:none}@media(max-width:1000px){main{padding:20px}#tools{gap:8px}.toolbar-search input{width:200px}.header-right{gap:10px}}@media(max-width:720px){aside{width:140px}main{margin-left:140px;padding:16px}.header-right{flex-wrap:wrap;justify-content:flex-end}#tools .toolbar-add{margin-left:0}.toolbar-search{flex-basis:100%}.toolbar-search input{width:100%}.knowledge-tabs{gap:14px}#identity{display:none}}

.review-card{border:1px solid #dce5df;border-radius:8px;margin:18px 0;padding:20px;background:#fff}.review-card h3{margin:0 0 8px}.review-badge{display:inline-block;padding:2px 10px;background:#fff0d3;color:#865b12;border-radius:12px;margin-bottom:12px}.review-badge.added{background:#e4f4eb;color:#196747}.review-diff{table-layout:fixed}.review-diff th:first-child{width:18%}.review-diff th:not(:first-child){width:41%}.review-diff td.before-value{background:#fff3ef}.review-diff td.after-value{background:#edf8f0}.review-value{white-space:pre-wrap;overflow-wrap:anywhere}.review-card pre{max-height:none!important}.review-card h4{margin:14px 0 5px}

.blocking-loading{position:fixed;inset:0;background:#122c2466;z-index:1000;display:flex;align-items:center;justify-content:center;cursor:wait}.loading-panel{min-width:240px;background:white;border-radius:12px;padding:28px 36px;box-shadow:0 12px 50px #0003;display:grid;justify-items:center}.loading-spinner{width:30px;height:30px;border:3px solid #dcece4;border-top-color:#16705a;border-radius:50%;animation:loading-turn .8s linear infinite}@keyframes loading-turn{to{transform:rotate(360deg)}}#toast-host{position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:1100;display:grid;gap:8px;max-width:90vw}.toast{display:flex;align-items:center;gap:18px;background:#eaf7ee;color:#22583a;border:1px solid #a9d5b7;padding:12px 18px;border-radius:8px;box-shadow:0 5px 20px #0002}.toast-error{background:#fff0ed;color:#9d3434;border-color:#eab4ac}.toast button{border:0;background:transparent;padding:0;color:inherit}.review-state{font-weight:600;color:#17694e}@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none}}

.account-tags{display:flex;flex-wrap:wrap;gap:6px;white-space:normal}.account-tag{background:#edf4f0;color:#315e49;border-radius:4px;padding:2px 8px;font-size:12px;white-space:nowrap}.account-choices{border:1px solid #dce6e0;border-radius:8px;padding:14px;margin:16px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.account-choices legend{font-weight:600;padding:0 6px}.account-choices label{display:flex!important;align-items:flex-start;gap:10px;margin:0!important;padding:10px;border:1px solid #e5ece7;border-radius:6px;cursor:pointer}.account-choices label:has(input:checked){background:#edf7f1;border-color:#85b8a1}.account-choices small{display:block;font-size:12px;color:#68796f;margin-top:3px}.account-choices input{flex-shrink:0;margin-top:3px}@media(max-width:700px){.account-choices{grid-template-columns:1fr}}

/* Business-facing interaction baseline */
#tools>label{font-size:12px;gap:5px;color:#526657}#tools{align-items:flex-end}#tools>label input{min-width:180px}.toolbar-reset{order:2}.toolbar-search input{max-width:100%}textarea{font-family:inherit;line-height:1.7}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #72aa96;outline-offset:2px}.form-error{background:#fff0ed;color:#9d3434;border:1px solid #eab4ac;border-radius:6px;padding:12px}body.editor-open{overflow:hidden}#editor{inset:24px 24px 24px auto;width:min(960px,calc(100vw - 48px));padding:24px 28px}#editor>form{max-width:none}#editor h2{font-size:21px}#editor h4{color:#63736a;font-size:13px;margin-bottom:4px}#editor p{margin-top:4px}#editor .drawer-header{top:-24px;border-bottom:1px solid #e7ede9;margin-bottom:20px;padding:12px 0}#editor form>button.primary{position:sticky;bottom:0;justify-self:start;box-shadow:0 0 0 8px white;margin:8px}td.title-cell{min-width:220px;white-space:normal}.state{font-size:12px;font-weight:600}th:last-child.actions,td.actions{position:sticky;right:0;background:white;border-left:1px solid #e7ede9}#status.error-text{padding:12px 16px;background:#fff1ef;border-radius:6px}.empty{font-size:14px;line-height:1.8;color:#62756a}#editor .hint{line-height:1.7}input:read-only{background:#f2f5f3;color:#68796f}@media(max-width:720px){#editor{inset:8px;width:calc(100vw - 16px);padding:16px}#tools>label{flex:1}#tools>label input{width:100%;min-width:0}}

.discard-prompt{position:sticky;bottom:0;padding:16px;background:#fff8e8;border:1px solid #e6cb84;border-radius:8px;box-shadow:0 2px 16px #0002;z-index:5}.discard-prompt button{margin-right:10px}

#editor progress{width:100%;height:16px;accent-color:#126b56;margin:12px 0}#editor .review-card select{width:100%}

/* One account entry in the header, separate from business navigation. */
#identity{display:none}#account-actions{display:block;position:relative}.account-menu{margin:0;position:relative}.account-menu>summary{display:flex;align-items:center;gap:9px;list-style:none;border:1px solid transparent;padding:5px 8px;border-radius:8px;color:#33483f;font-size:13px}.account-menu>summary::-webkit-details-marker{display:none}.account-menu>summary:hover,.account-menu[open]>summary{background:#edf3ef;border-color:#dfe7e2}.account-avatar{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;background:#e0eee7;color:#215943;border-radius:50%;font-weight:600}.account-name{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-chevron{font-size:16px;color:#7a8980}.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);width:240px;padding:16px 8px 8px;background:#fff;border:1px solid #e0e7e3;box-shadow:0 8px 28px #17382b1f;border-radius:10px;z-index:30}.account-dropdown>strong{display:block;padding:0 10px;font-size:14px}.account-dropdown .account-role{margin:4px 10px 12px;color:#7b8981;font-size:12px;line-height:1.6;white-space:normal}#account-actions .account-dropdown button{display:block;width:100%;border:0;border-radius:5px;background:transparent;font-size:14px;padding:9px 10px;text-align:left;color:#34483d}#account-actions .account-dropdown button:hover{background:#f0f6f2}#account-actions .account-dropdown .account-signout{border-top:1px solid #e8ede9;border-radius:0;margin-top:6px;padding-top:12px;color:#995348}body[data-session=login] #account-actions:empty{display:none}@media(max-width:720px){.account-name{max-width:80px}.account-dropdown{width:220px}.header-right{gap:6px}}

.test-timeline{padding:8px 0 8px 18px}.timeline-event{position:relative;border-left:2px solid #d5e6dc;padding:0 0 26px 24px}.timeline-event:before{content:"";position:absolute;left:-6px;top:5px;width:10px;height:10px;border-radius:50%;background:#287659}.timeline-event h4{font-size:16px!important;color:#243c30!important}.timeline-time{font-size:12px;color:#7b897f}.timeline-error:before{background:#b34c43}.timeline-error{border-left-color:#e9c7c3}.timeline-event pre{max-height:360px!important}.timeline-event .hint{margin-bottom:8px}

.review-settings{max-width:800px;background:white;border:1px solid #dce5e1;border-radius:12px;padding:28px}.review-setting-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;border-bottom:1px solid #e8eeeb}.setting-description{display:block;font-size:14px;color:#60746c;margin-top:8px}.review-setting-row input[role=switch]{appearance:none;flex:0 0 44px;width:44px;min-width:44px;height:26px;border:0;border-radius:20px;background:#a7b3ae;position:relative;cursor:pointer;padding:0;margin:0}.review-setting-row input[role=switch]:before{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;background:white;border-radius:50%;transition:transform .15s}.review-setting-row input[role=switch]:checked{background:#146c56}.review-setting-row input[role=switch]:checked:before{transform:translateX(18px)}.review-setting-row input:focus-visible{outline:3px solid #76baa8;outline-offset:3px}
.library-card {padding:16px 0;border-bottom:1px solid #e2e8f0}.library-card textarea {min-height:150px}pre {white-space:pre-wrap;overflow-wrap:anywhere}details {margin:12px 0}details summary {cursor:pointer;padding:10px 0}

.domain-tag{display:inline-block;padding:2px 9px;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap}.domain-0{background:#e3efff;color:#235696}.domain-1{background:#ede7ff;color:#64419a}.domain-2{background:#fff0d9;color:#885709}.domain-3{background:#e0f3e6;color:#276642}.domain-4{background:#ffe5e8;color:#983548}.domain-5{background:#e9edf1;color:#4f5c68}.domain-6{background:#dff3f4;color:#28656a}.domain-other{background:#eee9e1;color:#685b49}.library-more{position:relative;margin:0}.library-more summary{padding:5px 10px;font-size:12px;color:#697b72}.library-more[open]{padding:8px;border:1px solid #dce6df;background:white;border-radius:6px}.library-upload-history{margin-top:28px}.library-upload-history>summary{font-size:12px;color:#718079}.embedded-checks{border-bottom:1px solid #e0e7e3;padding-bottom:16px;margin-bottom:20px}
