:root{font-family:Arial,Helvetica,sans-serif;color:#17191c;background:#f5f4f2;font-size:14px}*{box-sizing:border-box}body{margin:0}header{min-height:72px;padding:16px 24px;background:white;border-bottom:1px solid #ddd;display:flex;align-items:center;gap:18px;flex-wrap:wrap}.brand{display:block;flex:none;height:26px;width:auto}.badge{font-size:10px;letter-spacing:1px;background:#fff0df;padding:7px 9px;border-radius:4px;color:#87531b}#status{font-size:12px;color:#666;flex:1}nav{display:flex;gap:8px}button{font:inherit;cursor:pointer;border:1px solid #ccc;background:white;padding:10px 16px;border-radius:6px}button.primary{background:#df2535;border-color:#df2535;color:white}button:disabled{opacity:.45;cursor:default}input{font:inherit;padding:12px;border:1px solid #ccc;border-radius:6px}main{max-width:1140px;margin:46px auto;padding:0 24px}h1{font-size:30px;letter-spacing:-.6px;margin:0 0 10px}p{color:#666;line-height:1.5}.card{background:white;border:1px solid #dedbd6;border-radius:12px;padding:25px}.login{max-width:440px;margin:80px auto}.login label{display:block;margin:20px 0 14px}.login input{display:block;width:100%;margin-top:7px}.login button{width:100%;margin-bottom:24px}small{font-size:12px;color:#777}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}#searchForm{display:flex;gap:9px;margin:24px 0}#search{width:350px}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:10px;letter-spacing:1.3px;text-transform:uppercase;color:#777;padding:4px 12px 16px}td{padding:20px 12px;border-top:1px solid #eee}td small{display:block;margin-top:6px}td:last-child{text-align:right}td button{margin-left:6px}footer{display:flex;justify-content:space-between;align-items:center;margin-top:24px}#error{margin:0;padding:12px 24px;background:#fff0f1;color:#a01724;border-bottom:1px solid #ecc}.editorTitle{display:flex;align-items:center;gap:18px;padding:10px 24px;background:white}.editorTitle input{font-weight:600;width:380px;padding:8px}#editor{display:block;border:0;width:100%;height:calc(100vh - 128px);background:#f1f0ee}[hidden]{display:none!important}@media(max-width:850px){header{padding:12px;gap:10px}nav{width:100%;flex-wrap:wrap}nav button{padding:8px}td{padding:14px 5px}main{padding:0 12px}.badge{font-size:9px}.editorTitle input{width:60%}#editor{height:calc(100vh - 175px)}}

.rename{display:flex;align-items:center;gap:6px}.rename input{width:100%;min-width:130px;font-weight:600;background:transparent;border-color:transparent;padding:5px 0}.rename input:hover,.rename input:focus{border-color:#ccc;background:white;padding:5px}.rename button{font-size:11px;white-space:nowrap;padding:6px;margin:0}tr.archived{background:#f4f4f4;color:#888}tr.archived input{color:#888}tr.archived button{color:#777}td:last-child{white-space:nowrap}td button{padding:8px 10px;font-size:12px}

#completedNote{margin:0;padding:8px 24px;background:#f3f5f4;color:#555;font-size:12px}.rename input{min-width:110px}.rename button[data-rename]{color:#777;border:0;background:transparent}#title[readonly]{border-color:transparent}main{max-width:1300px}

dialog{max-width:620px;border:1px solid #ddd;border-radius:12px;padding:26px}dialog::backdrop{background:#0005}dialog button{margin:6px 4px 0 0}td:last-child{white-space:normal;min-width:260px}td:last-child button{margin-top:4px}#shareURL{font-size:12px}

#library{max-width:1480px}#library .card{overflow-x:auto}.contract-type{min-width:140px;max-width:185px;font-size:13px;line-height:1.45}

#versionNote{padding:12px 24px;background:#fff4df;color:#694500;margin:0;font-size:13px}#legacyNote{max-width:780px;margin:32px auto}

.login label.remember{display:flex;align-items:center;gap:8px;font-size:13px;margin:18px 0}.login .remember input{width:16px;height:16px;margin:0;accent-color:#df2535}.login .remember small{font-size:12px}

/* Compact library: separate scope, combined update timestamp and actor. */
#library{max-width:1680px;margin:30px auto}#library .card{padding:16px 20px}#library table{min-width:1080px}#library th{padding:6px 10px 12px;letter-spacing:.65px}#library td{padding:12px 10px;vertical-align:top}#library .contract-name{width:25%;min-width:220px}#library .rename input{padding:2px 0;font-size:14px;min-width:160px}#library td small{font-size:11px;margin-top:4px;line-height:1.4}#library .contract-type{min-width:135px;max-width:190px;font-size:12px;line-height:1.45}#library .contract-scope{min-width:125px;font-size:12px;line-height:1.5}#library .last-saved{min-width:165px;font-size:12px;white-space:nowrap}#library .account-manager{min-width:100px;font-size:12px}#library .status-pill{display:inline-block;font-size:11px;font-weight:600;border-radius:20px;padding:4px 9px;background:#edf1f6;color:#45556c}#library .status-pill.complete{background:#e9f4ed;color:#28633c}#library .row-actions{min-width:145px;width:145px;text-align:right;white-space:nowrap}#library .row-actions button,#library summary{font-size:12px;padding:6px 9px;margin:0;line-height:1.3}#library .more-menu{display:inline-block;vertical-align:top;margin-left:5px;text-align:left}#library summary{cursor:pointer;border:1px solid #ccc;border-radius:6px;list-style:none;background:white}#library summary::-webkit-details-marker{display:none}#library .more-menu[open] summary{background:#f4f4f4}#library .more-menu div{display:grid;gap:4px;margin-top:5px}#library .more-menu div button{text-align:left;white-space:nowrap}#library tbody tr:hover{background:#fafaf9}#library tbody tr.archived{background:#f4f4f4}#library footer{margin-top:16px}#completedNote button{margin-left:12px;padding:6px 10px}#library input:focus-visible,#library button:focus-visible,#library summary:focus-visible{outline:2px solid #df2535;outline-offset:2px}
