*{box-sizing:border-box}body{margin:0;background:#f3f6f8;color:#20323d;font:15px/1.55 system-ui,sans-serif}header{display:flex;gap:24px;align-items:center;background:#153747;color:white;padding:20px 32px}header strong{font-size:24px}header span{font-size:14px;letter-spacing:2px}header b{color:#75d5c4}header small{flex:1}main{max-width:1320px;margin:auto;padding:24px}h1{font-size:29px;font-weight:650;margin:18px 0}h2{font-size:19px}h3{font-size:16px}p{color:#526571}button{border:0;border-radius:6px;background:#187663;color:white;padding:10px 16px;cursor:pointer;font:inherit;margin:4px}button:hover{background:#125447}button:disabled{opacity:.5;cursor:wait}label{display:block;color:#51626d;font-size:13px;margin:10px 0}input,select,textarea{display:block;border:1px solid #c9d4db;border-radius:5px;background:white;color:#20323d;padding:9px;width:100%;font:inherit}textarea{min-height:80px}.bar{display:flex;gap:15px;align-items:end;flex-wrap:wrap}.bar label{flex:1;min-width:140px}nav{border-bottom:1px solid #c9d4db;padding:14px 0}nav button{background:transparent;color:#334d5e}nav button.active{background:#dcefe9;color:#135a4c}.columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}article,.card{background:white;padding:24px;border:1px solid #dce4e9;border-radius:8px;margin:14px 0}.metrics{display:flex;gap:16px}.metrics .card{flex:1;margin:0;font-size:14px}.metrics strong{display:block;font-size:30px}.error{color:#982c2c;background:#fff0ec;padding:12px}.success{color:#145f4f}table{width:100%;border-collapse:collapse;background:white;margin:14px 0}th,td{border-bottom:1px solid #dce4e9;padding:12px;text-align:left;vertical-align:top;overflow-wrap:anywhere}th{background:#e8eef2}pre{white-space:pre-wrap;word-break:break-word;font:13px/1.5 monospace}details{padding:14px;background:#edf2f4;margin:12px 0}summary{cursor:pointer;font-weight:600}footer{border-top:1px solid #dce4e9;padding:22px 0;color:#687b88;font-size:12px}#demo{padding:12px;background:#fff2c9}#demo b{margin-right:20px}#message{min-height:26px}[hidden]{display:none!important}@media(max-width:850px){.columns{grid-template-columns:1fr}.metrics{flex-wrap:wrap}header small{display:none}main{padding:14px}}

/* WEB-UX-01: readable, independently scrollable data at normal browser zoom. */
.observation-grid td:first-child code{display:block;max-width:100%;overflow-x:auto;padding-bottom:6px}
.tech-passport > code{display:inline-block;max-width:100%;overflow-x:auto;vertical-align:middle}
.passport-scroll{overflow:auto;max-width:100%;border:1px solid #c9d4db;border-radius:6px;margin:12px 0;background:white}
.passport-table{margin:0;table-layout:fixed;min-width:1000px}.passport-table th,.passport-table td{overflow-wrap:normal;word-break:normal;min-width:140px}.passport-table th{font-size:14px;white-space:normal}.passport-table td{white-space:pre-wrap;overflow-wrap:break-word}
.observation-grid{min-width:1320px}.observation-grid th:nth-child(1){width:220px}.observation-grid th:nth-child(2){width:170px}.observation-grid th:nth-child(3){width:175px}.observation-grid th:nth-child(4){width:200px}.observation-grid th:nth-child(5){width:175px}.observation-grid th:nth-child(6){width:380px}
.passport-summary{min-width:820px}.passport-summary th:nth-child(1){width:220px}.passport-summary th:nth-child(2){width:320px}.tech-passport{padding:18px;min-width:0}.tech-passport code,.observation-grid code{white-space:nowrap;word-break:normal;overflow-wrap:normal;user-select:all}.tech-passport p{white-space:pre-wrap}.tech-passport details{background:#f5f8fa}.raw pre{max-height:340px;overflow:auto;white-space:pre;word-break:normal}.raw{max-width:100%}.tech-passport a{display:inline-block;margin:4px 12px 4px 0}.draft-note{color:#805700}

.observation-detail-row > td{padding:12px 18px}.observation-detail-row > td > details{margin:0;white-space:normal}.observation-detail-row .passport-scroll{width:100%}

#risk-form input[type=checkbox],#confirmation-form input[type=checkbox]{display:inline-block;width:auto;margin-right:8px}#risk-list a{display:inline-block;margin:8px}#risk-source pre{max-height:260px;overflow:auto}#risk-form button,#confirmation-form button{white-space:normal}

.lifecycle-dialog{width:min(760px,calc(100vw - 48px));max-height:85vh;overflow:auto;border:1px solid #bacdd3;border-radius:10px;padding:24px}.lifecycle-dialog::backdrop{background:#183b4855}.lifecycle-dialog label{display:block;margin:12px 0}.lifecycle-dialog select,.lifecycle-dialog textarea,.lifecycle-dialog input:not([type=checkbox]){width:100%;box-sizing:border-box}.lifecycle-dialog [role=alert]{color:#9c2525}#lifecycle-panel{background:#fff;border:1px solid #cedde3;border-radius:8px;padding:18px;margin-bottom:18px}#lifecycle-panel button{margin:5px} [hidden]{display:none!important}

.lifecycle-dialog input[type=checkbox]{width:auto;display:inline-block;margin-right:8px}.lifecycle-dialog{scrollbar-gutter:stable}.lifecycle-dialog button{margin:4px}.lifecycle-dialog>button:last-child{position:sticky;bottom:0;box-shadow:0 0 0 5px #fff}
