:root{font-family:Arial,Helvetica,sans-serif;color:#172c40;background:#f0f4f8;font-size:16px;--blue:#1767c5;--navy:#132d49;--line:#dbe3ed}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,.button{border:1px solid #ccd8e5;background:white;color:#243d59;border-radius:7px;padding:10px 14px;cursor:pointer;text-decoration:none;font-size:.875rem;line-height:1.3;display:inline-block}button:hover,.button:hover{background:#edf4fc}button:disabled{opacity:.5;cursor:default}.primary{background:var(--blue);border-color:var(--blue);color:white}.primary:hover{background:var(--blue-hover,#1257aa)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #72abef;outline-offset:3px}[hidden]{display:none!important}header{height:76px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-size:1.15rem;font-weight:bold;letter-spacing:.06em}.brand small{font-size:.75rem;letter-spacing:.15em;color:#698095;border-left:1px solid #ccd8e5;padding-left:14px}.mark{background:var(--navy);border-radius:8px;color:white;padding:8px 12px}.header-actions{display:flex;gap:12px;align-items:center;font-size:.875rem}.shell{display:grid;grid-template-columns:232px 1fr;min-height:calc(100vh - 76px)}aside{background:var(--navy);padding:28px 16px;position:relative;color:white;display:flex;flex-direction:column}.side-label{font-size:.75rem;letter-spacing:.14em;color:#a0b5cb;padding:0 12px 20px}#protocol-list button{width:100%;background:transparent;color:#c8d8eb;border:0;text-align:left;padding:14px 12px;margin-bottom:6px;border-radius:8px}#protocol-list button.selected{background:#294965;color:white;border-left:3px solid #71b6ff}#protocol-list small{display:block;color:#adc2d7;margin-top:6px;font-size:.8125rem}.import{background:transparent;color:#c8d8eb;border-color:#4a647d;margin-top:20px}.side-foot{margin-top:auto;color:#8fa6bd;font-size:.8125rem;line-height:1.7;padding:40px 12px 0}main{padding:30px 32px;min-width:0}.topline{display:flex;justify-content:space-between;color:#61768c;font-size:.875rem;gap:20px}#save-state{color:#356c52}.heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:18px 0 24px}h1{font-size:1.75rem;line-height:1.25;margin:0 0 10px}h2{font-size:1.3rem}h3{font-size:1rem}.heading p{color:#62768b;margin:0}.actions{display:flex;gap:10px;flex-shrink:0}.metadata{border:1px solid var(--line);background:white;border-radius:9px;margin-bottom:24px;padding:16px 18px}.metadata summary{cursor:pointer;font-size:.875rem;font-weight:bold}.metadata-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}.metadata-grid label:last-child{grid-column:span 2}label{font-size:.875rem;display:block;color:#4e647c}label input,label textarea,label select{display:block;width:100%;margin-top:8px;border:1px solid #cfdae7;border-radius:6px;padding:9px;color:#172c40;background:white}textarea{resize:vertical;line-height:1.5}.table-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.tabs{display:flex;background:#e0e8f1;border-radius:8px;padding:4px}.tabs button{background:transparent;border:0;font-weight:bold}.tabs button[aria-selected=true]{background:white;box-shadow:0 1px 4px #15345418;color:var(--blue)}.tabs span{font-size:.8125rem;margin-left:6px;opacity:.7}.online{margin-left:auto;color:#59718a;font-size:.875rem}.table-wrap{background:white;border:1px solid var(--line);border-radius:10px;overflow:auto}table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:980px}th{background:#f7f9fc;text-align:left;font-size:.8125rem;color:#5b7087;font-weight:bold;padding:16px 10px;border-bottom:1px solid var(--line)}th:nth-child(1){width:5%}th:nth-child(2){width:25%}th:nth-child(3){width:12%}th:nth-child(4){width:14%}th:nth-child(5){width:13%}th:nth-child(6){width:25%}th:last-child{width:6%}td{padding:10px 6px;vertical-align:top;border-bottom:1px solid #e4eaf1}tr:last-child td{border-bottom:0}td textarea{width:100%;border:1px solid transparent;padding:7px;background:transparent;border-radius:5px;font-size:.875rem;min-height:72px;resize:vertical;overflow:auto}td textarea:hover{background:#f7faff;border-color:#d8e4f3}td textarea:focus{background:#fff;border-color:#3486e8;outline:2px solid #3486e820}td textarea:read-only{border:0}td:first-child textarea{color:#6d8298;font-weight:bold}td:nth-child(2) textarea{font-weight:500}td button{padding:7px 6px;font-size:.75rem;border:0;background:transparent;color:#627b94}.hint{color:#6c8095;font-size:.8125rem;line-height:1.6}#empty{text-align:center;padding:40px;color:#72869c}.error,#login-error,#user-error{color:#af2b35;font-size:.875rem}.error{padding:14px;background:#fff0f0;border-radius:6px}.conflict{border:1px solid #e8a856;background:#fff8ed;padding:10px;border-radius:6px;font-size:.8125rem;white-space:pre-wrap}.conflict p{max-height:180px;overflow:auto}.conflict button{display:block;border:1px solid #e8a856;background:white;margin-top:6px;font-size:.8125rem}.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(140deg,#132d49,#245580);padding:24px}.login-card{background:white;border-radius:14px;padding:40px;width:440px;max-width:100%;box-shadow:0 24px 80px #06192d50}.login-card h1{margin-top:32px}.login-card p{color:#60768d;line-height:1.5}.login-card label{margin-top:20px}.login-card button{width:100%;margin-top:24px}dialog{border:0;border-radius:12px;width:780px;max-width:95vw;max-height:85vh;padding:28px;box-shadow:0 20px 100px #132d4960}dialog::backdrop{background:#10243a88}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0}.history-item{border-bottom:1px solid #e0e8f0;padding:16px 0;font-size:.875rem}.history-item small{color:#6c8095}.history-item pre{white-space:pre-wrap;font:inherit;max-height:170px;overflow:auto;background:#f4f7fb;padding:10px}.user-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.user-line{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--line)}.user-line strong{margin-right:auto}.user-line select{font-size:.875rem;padding:8px}.user-line small{display:block;color:#6e8296;margin-top:5px}@media(min-width:1700px){main{padding:36px 48px}th,td{padding-left:12px;padding-right:12px}}@media(max-width:1050px){.heading{align-items:flex-start;flex-direction:column}.shell{grid-template-columns:190px 1fr}main{padding:24px 20px}.metadata-grid{grid-template-columns:1fr 1fr}.metadata-grid label:last-child{grid-column:span 2}.brand small{display:none}}@media(max-width:700px){header{padding:12px 16px;height:auto;gap:14px}.header-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}#user-name{max-width:150px}.shell{display:block}aside{padding:14px;display:block}.side-label,.side-foot{display:none}#protocol-list{display:flex;overflow:auto;gap:8px}#protocol-list button{min-width:150px;width:auto}.import{margin-top:4px}main{padding:20px 14px}.topline{flex-direction:column;gap:8px}.heading h1{font-size:1.45rem}.actions{flex-wrap:wrap}.metadata-grid,.user-form{grid-template-columns:1fr}.metadata-grid label:last-child{grid-column:auto}.online{margin-left:0;width:100%}.table-toolbar{gap:10px}dialog{padding:20px}}

.locked-banner{padding:14px 18px;margin-bottom:18px;background:#e5edf6;color:#294965;border:1px solid #c4d3e4;border-radius:8px;font-size:.875rem;line-height:1.5}.actions{flex-wrap:wrap;justify-content:flex-end}

.danger{color:#ad2634;border-color:#e3b1b7;background:white}.danger:hover{background:#fff0f1}

.user-line input[type=email]{border:1px solid #ccd8e5;padding:9px;border-radius:6px;min-width:220px;max-width:100%;font-size:.875rem}

.person-choice{display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid #e0e8f0;padding:12px 0;font-size:.875rem}.person-choice input[type=checkbox]{width:18px;height:18px;flex-shrink:0;margin:0;accent-color:#1767c5}.choose-assignees{color:#1767c5!important;border:1px solid #ccd8e5!important;background:white!important;padding:6px 10px!important;margin:6px}#assignees-options{max-height:48vh;overflow:auto;margin-bottom:18px}#forgot-form button,#reset-form button,#mail-form button{margin-top:18px}#reset-form label{margin-top:16px}

.meeting-panel{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:18px;margin:16px 0;border:1px solid var(--line,#dbe2ea);border-radius:12px;background:#f3f7fb}.meeting-panel h3{margin:0 0 8px}.meeting-panel p{margin:6px 0}.meeting-panel .actions{flex-wrap:wrap}.meeting-panel>div{min-width:0;max-width:100%}#meeting-dialog{width:min(600px,90vw)}#meeting-form{display:grid;gap:16px}#meeting-form textarea{min-height:90px}#meeting-state,#meeting-notifications{overflow-wrap:anywhere}

/* History keeps controls outside the scrolling feed. */
#history-dialog{padding:0;width:1000px;max-width:95vw;height:min(850px,90dvh);max-height:90dvh;overflow:hidden}
#history-dialog[open]{display:flex;flex-direction:column}
.history-head{padding:18px 22px;border-bottom:1px solid var(--line);flex-shrink:0;background:white}.history-head .hint{margin:6px 0 0}
.history-filters{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,2fr) auto;gap:12px;padding:12px 22px;align-items:end;background:#f7f9fc;flex-shrink:0}.history-filters select{max-width:100%;min-width:0}.history-filters label{min-width:0}
#history-status{margin:0;padding:8px 22px;color:#62768b;font-size:.8rem;flex-shrink:0}
#history-content{overflow:auto;min-height:0;flex:1;padding:0 22px 16px;overscroll-behavior:contain}
.history-footer{display:flex;gap:12px;justify-content:space-between;padding:12px 22px;border-top:1px solid var(--line);flex-shrink:0;background:white}.history-footer button:last-child{margin-left:auto}
.history-item{border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin:10px 0;background:white}.history-item-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.history-item-head time,.history-scope{font-size:.8rem;color:#62768b}.history-scope{margin:7px 0;overflow-wrap:anywhere}.history-task-title{font-weight:600;margin:8px 0;max-height:4.5em;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.history-change summary{cursor:pointer;font-weight:600;padding:8px 0}.history-preview{font-weight:normal;color:#62768b;overflow-wrap:anywhere}.history-change[open] .history-preview{display:none}.history-compare{display:grid;grid-template-columns:1fr 1fr;gap:12px}.history-compare>div{min-width:0}.history-value-label{font-size:.75rem;font-weight:bold;color:#61768c;margin:4px 0 6px}.history-value{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 12px;border-radius:7px;line-height:1.55;border:1px solid var(--line)}.history-before{background:#fff5f3}.history-after{background:#effaf2}.history-before mark{background:#ffdcd5;color:#7d2c25}.history-after mark{background:#c7eed0;color:#245c34}.history-blank{color:#7d8c9d;font-style:italic}.row-history{margin-top:6px;font-size:.75rem;padding:7px 5px;width:100%}
@media(max-width:600px){.history-head{padding:14px}.history-filters{grid-template-columns:1fr 1fr;padding:10px 14px}.history-filters button{grid-column:1 / -1;justify-self:start}.history-compare{grid-template-columns:1fr}#history-content{padding:0 14px 12px}.history-footer{padding:10px 14px}#history-status{padding:6px 14px}.history-item{padding:12px}#history-dialog{height:90dvh}}

.history-save-badge{font-size:.75rem;border-radius:12px;padding:4px 8px;background:#e6effb;color:#285484}.history-saves{margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}.history-saves>summary{cursor:pointer;font-size:.8125rem;color:#1767c5}.history-save{padding:12px 0;border-bottom:1px solid var(--line)}.history-save>strong{font-size:.8rem;color:#61768c}.history-saves .history-value{max-height:260px;overflow:auto}

.mine-toggle{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;color:#294965;cursor:pointer;font-weight:600}.mine-toggle input{appearance:auto;width:18px;height:18px;padding:0;margin:0;accent-color:var(--blue);cursor:pointer}.mine-toggle:has(input:disabled){opacity:.5;cursor:default}

.brand-logo{width:42px;height:42px;object-fit:contain}.brand [data-brand-name]{max-width:250px;overflow-wrap:anywhere}.brand [data-brand-subtitle]{max-width:200px;overflow-wrap:anywhere}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}#settings-dialog{width:850px}#settings-dialog .dialog-head{position:sticky;top:-28px;background:white;z-index:2;padding:12px 0}#settings-dialog fieldset{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:8px}#settings-dialog legend{font-weight:bold;padding:0 6px}.inline-check{display:flex;align-items:center;gap:8px;margin-top:14px}.inline-check input{width:auto;margin:0}.settings-grid label{min-width:0}#deployment-info{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:600px){.settings-grid{grid-template-columns:1fr}.brand [data-brand-name]{max-width:140px}#settings-dialog .dialog-head{top:-20px}}

.side-foot{overflow-wrap:anywhere}
