:root{color-scheme:light;--bg:#f5f7f8;--panel:#fff;--line:#e3e8ea;--text:#17252a;--muted:#718087;--accent:#087e70;--accent-dark:#05685c;--soft:#e8f4f1;--danger:#b5473b;--warning:#a96713;--shadow:0 8px 26px rgba(21,42,45,.045)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.5}a{color:var(--accent-dark)}button,input,textarea,select{font:inherit}button{cursor:pointer}.topbar{height:68px;padding:0 max(24px,calc((100% - 1240px)/2));display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.92);border-bottom:1px solid var(--line)}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--text);font-weight:750;letter-spacing:-.02em}.brand small{display:block;color:var(--muted);font-size:11px;font-weight:500;letter-spacing:0}.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:var(--accent);color:white;font-weight:800}.topbar nav{display:flex;gap:24px}.topbar nav a{color:var(--muted);font-size:14px;text-decoration:none}.topbar nav a:hover{color:var(--accent-dark)}.page{width:min(1240px,calc(100% - 40px));margin:42px auto 80px}.page-heading{margin-bottom:26px}.eyebrow{margin:0 0 8px;color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.1em}.page-heading h1,.document-head h1{margin:0;font-size:clamp(26px,3.2vw,36px);letter-spacing:-.04em;line-height:1.16}.subheading,.section-title p{color:var(--muted);margin:6px 0 0}.dashboard-grid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:32px;align-items:start}.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.create-panel{padding:24px;position:sticky;top:20px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.section-title>div{min-width:0}.section-title h2{margin:0;font-size:19px;letter-spacing:-.025em}.section-title p{font-size:13px}.section-title .eyebrow{margin-bottom:4px}.section-title>h2{margin:0}.icon-badge{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:var(--soft);color:var(--accent);font-size:22px}.section-title:has(.icon-badge){justify-content:flex-start}.section-title:has(.icon-badge) h2{font-size:17px}.stack-form{display:grid;gap:14px}.stack-form label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:650}.stack-form input,.stack-form textarea,.stack-form select,.inline-form input,.inline-form select,.checklist-row select{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#fff;color:var(--text);outline:none}.stack-form input:focus,.stack-form textarea:focus,.stack-form select:focus,.inline-form input:focus,.checklist-row select:focus{border-color:#78bcb2;box-shadow:0 0 0 3px rgba(8,126,112,.09)}.stack-form textarea{resize:vertical}.stack-form button,.inline-form button{min-height:42px;border:0;border-radius:9px;background:var(--accent);color:#fff;font-weight:700;padding:10px 16px}.stack-form button:hover,.inline-form button:hover{background:var(--accent-dark)}.section-title>div h2{font-size:20px}.project-area>.section-title{margin-bottom:16px}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.project-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);transition:transform .18s,border-color .18s}.project-card:hover{transform:translateY(-2px);border-color:#c6d8d5}.project-card-main{display:block;min-height:130px;padding:19px;color:var(--text);text-decoration:none}.contract-tag{display:inline-flex;border-radius:6px;padding:4px 8px;background:var(--soft);color:var(--accent-dark);font-size:11px;font-weight:750;letter-spacing:.035em}.project-card h3{margin:12px 0 10px;font-size:16px;line-height:1.35;letter-spacing:-.015em}.project-meta{color:var(--muted);font-size:12px}.card-actions{display:flex;align-items:center;justify-content:space-between;padding:10px 18px;border-top:1px solid #eff2f3}.card-actions summary{color:var(--accent-dark);cursor:pointer;font-size:12px;font-weight:650}.card-actions details[open]{position:relative}.card-actions details form{position:absolute;z-index:2;top:26px;left:0;width:280px;padding:16px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.card-actions .stack-form label{margin:0}.card-actions .stack-form button{width:auto}.quiet-button,.text-danger{border:0;background:none;color:var(--muted);font-size:12px;padding:4px}.quiet-button:hover{color:var(--accent-dark)}.text-danger{color:var(--danger)}.empty-state{display:grid;justify-items:center;text-align:center;padding:52px 20px;background:rgba(255,255,255,.55);border:1px dashed #d8e0e2;border-radius:14px;color:var(--muted)}.empty-state h3{margin:12px 0 2px;color:var(--text)}.empty-state p{max-width:400px;margin:4px 0;font-size:14px}.empty-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:var(--soft);color:var(--accent);font-size:23px}.archive-section{margin-top:28px;border-top:1px solid var(--line);padding-top:18px}.archive-section>summary{cursor:pointer;color:var(--muted);font-size:14px;font-weight:650}.count-pill{margin-left:6px;border-radius:99px;background:#e8edef;padding:3px 8px;font-size:11px}.archive-list{display:grid;gap:10px;margin-top:14px}.archive-list>div{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#fff;border:1px solid var(--line);border-radius:12px}.archive-list span{display:grid}.archive-list small{color:var(--muted)}.secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #cce1dc;border-radius:9px;padding:8px 13px;background:#f3faf8;color:var(--accent-dark);font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}.secondary-button:hover{background:#e5f4f0}.archive-list form{margin:0}.alert-panel{margin:0 0 25px;padding:18px 20px;border:1px solid #f1dcbb;border-radius:13px;background:#fffaf2}.alert-panel>div{display:grid;gap:2px}.alert-panel>div strong,.alert-panel>strong{font-size:14px}.alert-panel>div span{color:var(--muted);font-size:12px}.alert-panel ul{display:grid;gap:7px;margin:12px 0 0;padding:0;list-style:none}.alert-panel li{display:flex;justify-content:space-between;gap:12px;font-size:13px}.alert-panel a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.expiry-expired,.expiry-expiring{font-size:12px;font-weight:700;white-space:nowrap}.expiry-expired{color:var(--danger)}.expiry-expiring{color:var(--warning)}.notice{padding:12px 15px;border-radius:10px;background:#eef5f3;color:var(--accent-dark);font-size:14px}.notice-error{background:#fff0ee;color:var(--danger)}.notice-expiring{background:#fff8e9;color:var(--warning)}.breadcrumbs{display:flex;gap:9px;margin-bottom:20px;color:#a0aaae;font-size:13px}.breadcrumbs a{color:var(--muted);text-decoration:none}.breadcrumbs a:hover{color:var(--accent-dark)}.upload-panel{padding:22px 24px;margin-bottom:36px}.upload-form{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr);gap:18px}.file-picker{position:relative;display:grid;justify-items:center;align-content:center;gap:5px;min-height:120px;border:1px dashed #9fc9c1;border-radius:12px;background:#f7fbfa;cursor:pointer;text-align:center;color:var(--text)}.file-picker:hover{background:#eff8f5}.file-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-picker small{color:var(--muted);font-size:11px}.upload-symbol{display:grid;place-items:center;width:32px;height:32px;margin-bottom:2px;border-radius:10px;background:var(--soft);color:var(--accent);font-size:21px}.upload-controls{display:grid;align-content:center;gap:12px}.upload-controls label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:650}.upload-controls input{min-height:41px;border:1px solid var(--line);border-radius:9px;padding:9px 12px}.upload-controls button{min-height:42px;border:0;border-radius:9px;background:var(--accent);color:white;font-weight:700}.section-block{margin:34px 0}.section-block>.section-title{align-items:end}.inline-form{display:flex;gap:8px;align-items:center}.inline-form select,.inline-form input{min-height:38px}.inline-form button{min-height:38px;font-size:12px;padding:8px 12px}.checklist{overflow:hidden}.checklist-row{display:grid;grid-template-columns:minmax(180px,1.3fr) minmax(120px,.6fr) minmax(150px,1fr) 78px;gap:10px;align-items:center;padding:12px 15px;border-bottom:1px solid #edf0f1}.checklist-row:last-child{border-bottom:0}.checklist-name{display:grid}.checklist-name strong{font-size:13px;font-weight:650}.checklist-name small{color:var(--muted);font-size:11px}.checklist-row select{padding:7px 8px;font-size:12px}.icon-button{width:34px;height:34px;border:0;border-radius:8px;background:var(--soft);color:var(--accent-dark);font-weight:800}.icon-button:hover{background:#d5ebe5}.compact-empty{padding:25px}.compact-empty p{margin:2px}.document-list{display:grid;gap:10px}.document-card{overflow:hidden}.document-card-main{display:grid;grid-template-columns:46px minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:16px 18px;color:var(--text);text-decoration:none}.file-type{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#f0f4f5;color:#5c7378;font-size:10px;font-weight:800}.doc-info{display:grid;min-width:0;gap:3px}.doc-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.doc-info small{overflow:hidden;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px}.doc-date{color:var(--muted);font-size:12px;white-space:nowrap}.status-chip{display:inline-flex;border-radius:99px;padding:5px 9px;background:#eef1f2;color:#65747a;font-size:11px;font-weight:700;white-space:nowrap}.status-processed{background:#e5f5ec;color:#31704f}.status-error{background:#fff0ee;color:var(--danger)}.document-card-actions{display:flex;justify-content:flex-end;gap:12px;padding:8px 17px;border-top:1px solid #eff2f3}.document-card-actions a{text-decoration:none;font-size:12px;font-weight:650}.document-card-actions form{margin:0}.document-card-actions button{font-size:12px}.document-view{padding:26px}.document-head{display:flex;align-items:start;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid var(--line)}.document-head h1{font-size:27px}.document-fields{margin-top:22px}.fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fields-grid label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:650}.fields-grid input{min-height:42px;border:1px solid var(--line);border-radius:9px;padding:9px 11px;color:var(--text)}.fields-grid .check-label{display:flex;align-items:center;gap:9px;align-self:end;min-height:42px}.check-label input{width:16px;min-height:16px;accent-color:var(--accent)}.document-fields>button{width:max-content}.note-form{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.note-form textarea{resize:vertical}.note-form button{width:max-content}.preview-block{margin-top:30px}.preview-block iframe{width:100%;height:min(760px,75vh);border:1px solid var(--line);border-radius:12px}.image-preview{display:block;max-width:min(100%,900px);max-height:75vh;margin:0 auto;border:1px solid var(--line);border-radius:12px;object-fit:contain}.text-details{margin-top:17px;padding:13px 15px;border:1px solid var(--line);border-radius:10px;background:#fafbfb}.text-details summary{cursor:pointer;font-size:13px;font-weight:650}.text-details p{color:var(--muted)}pre{max-height:500px;overflow:auto;white-space:pre-wrap;font:12px/1.5 ui-monospace,monospace;color:#536167}.status-chip.status-error{background:#fff0ee}.status-chip.status-processed{background:#e5f5ec}.notice-success{background:#e9f6ef;color:#31704f}
.archive-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.archive-actions form{margin:0}
.projects-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.projects-heading .eyebrow{margin-bottom:5px}.new-project{position:relative}.new-project>summary{list-style:none;cursor:pointer;padding:9px 14px;border-radius:9px;background:var(--accent);color:white;font-size:13px;font-weight:700}.new-project>summary::-webkit-details-marker{display:none}.new-project-form{position:absolute;z-index:5;right:0;top:calc(100% + 8px);width:min(760px,calc(100vw - 40px));display:grid;grid-template-columns:1fr 1.4fr 1.2fr auto;align-items:end;gap:12px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.new-project-form label{display:grid;gap:5px;color:var(--muted);font-size:12px}.new-project-form input,.new-project-form select{width:100%;min-width:0;height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}.new-project-form button{height:38px;padding:0 15px;border:0;border-radius:8px;background:var(--accent);color:#fff;font-weight:700}.project-table-area{margin-top:0}.project-table-area>.section-title{margin-bottom:10px}.projects-table-wrap{overflow:visible;background:#fff;border:1px solid var(--line);border-radius:13px}.projects-table{width:100%;border-collapse:collapse;text-align:left}.projects-table th{padding:10px 14px;background:#f8faf9;color:var(--muted);font-size:11px;font-weight:700}.projects-table td{padding:11px 14px;border-top:1px solid #edf0f0;font-size:13px}.projects-table tbody tr:first-child td{border-top:0}.project-table-link{color:var(--text);font-weight:700;text-decoration:none}.project-table-link:hover{color:var(--accent-dark)}.project-table-actions{white-space:nowrap;text-align:right}.project-table-actions form{display:inline;margin:0}.project-edit{display:inline-block;position:relative;margin-right:10px}.project-edit>summary{list-style:none;cursor:pointer;color:var(--accent-dark);font-size:12px;font-weight:650}.project-edit>summary::-webkit-details-marker{display:none}.project-edit .stack-form{position:absolute;z-index:5;top:25px;right:0;width:260px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow)}.project-edit.is-floating .stack-form{position:fixed;top:var(--project-edit-top,25px);z-index:1000;overflow-y:auto;overscroll-behavior:contain}.project-edit.is-floating.opens-up .stack-form{transform:translateY(0)}.project-edit .stack-form label{margin:0}.project-edit .stack-form button{width:auto}.projects-table .contract-tag{font-size:10px}.project-meta{color:var(--muted)}
.project-list-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:12px}
.project-list-heading>.section-title{margin:0}
.project-search{display:flex;width:min(420px,100%);min-height:42px;align-items:center;gap:9px;padding:0 10px 0 13px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#7f8d91;box-shadow:0 1px 3px rgba(25,41,45,.025)}
.project-search:focus-within{border-color:#78bcb2;box-shadow:0 0 0 3px rgba(8,126,112,.08)}
.project-search>i{font-size:14px}
.project-search input{width:100%;min-width:0;padding:9px 0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:12px}
.project-search input::placeholder{color:#98a3a6}
.project-card[hidden],.project-search-empty[hidden]{display:none!important}
.project-search-empty{grid-column:1/-1;margin:0;padding:24px;border:1px dashed #d7e0e0;border-radius:12px;color:var(--muted);font-size:13px;text-align:center}
.projects-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;align-items:stretch}
.project-card{position:relative;min-width:0;overflow:visible;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 2px 8px rgba(25,41,45,.045);transition:border-color .16s,box-shadow .16s,transform .16s}
.project-card:hover{transform:translateY(-2px);border-color:#c7d8d4;box-shadow:0 9px 22px rgba(25,41,45,.08)}
.project-card-main{display:grid;min-height:160px;align-content:start;gap:11px;padding:17px 18px 15px;color:var(--text);text-decoration:none}
.project-card-kicker{display:flex;min-width:0;align-items:center;gap:8px;flex-wrap:wrap}
.project-card-contract{display:block;color:var(--accent-dark);font-size:clamp(21px,2.1vw,26px);font-weight:800;line-height:1.12;letter-spacing:-.045em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.project-stage{margin-top:-6px;color:var(--accent-dark);font-size:11px;font-weight:700;line-height:1.35}
.project-card-main h3{display:-webkit-box;overflow:hidden;margin:0;color:#26363a;font-size:13px;font-weight:650;line-height:1.4;letter-spacing:-.01em;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.project-card-meta{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:2px;color:var(--muted);font-size:11px;line-height:1.35}
.project-card-customer{display:-webkit-box;min-width:0;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.project-card-customer small{display:block;margin-bottom:3px;color:#909da0;font-size:8px;font-weight:800;letter-spacing:.1em}
.project-card-documents{display:inline-flex;flex:0 0 auto;align-items:center;gap:5px;color:#6b7c80;font-size:10px;font-weight:650;white-space:nowrap}
.project-card-actions{position:relative;display:flex;min-height:42px;align-items:center;justify-content:flex-end;gap:12px;padding:6px 13px;border-top:1px solid #edf1f1}
.project-card-actions>form{margin:0}
.project-card-actions button,.project-card-actions .project-edit-trigger{display:inline-flex;align-items:center;gap:5px;padding:4px 2px;border:0;background:transparent;color:var(--muted);font-size:11px;font-weight:650;white-space:nowrap}
.project-card-actions .project-edit-trigger{color:var(--accent-dark)}
.project-card-actions button:hover,.project-card-actions .project-edit-trigger:hover{color:var(--accent)}
.project-card-actions .text-danger{color:#9a7774}
.project-card-actions .text-danger:hover{color:var(--danger)}
.project-edit-modal{width:min(620px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);margin:auto;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--text);box-shadow:0 24px 64px rgba(24,42,46,.24)}
.project-edit-modal::backdrop{background:rgba(19,31,35,.48);backdrop-filter:blur(2px)}
.project-edit-modal-panel{max-height:calc(100dvh - 28px);overflow:auto;padding:24px}
.project-edit-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.project-edit-modal-head .eyebrow{margin:0 0 5px}
.project-edit-modal-head h2{margin:0;font-size:22px;letter-spacing:-.03em}
.project-edit-modal-close{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid var(--line)!important;border-radius:9px;background:#fff!important;color:var(--muted)!important}
.project-edit-modal-close:hover{background:#f4f7f7!important;color:var(--text)!important}
.project-edit-modal .project-edit-form{position:static;width:auto;max-height:none;overflow:visible;padding:0;border:0;border-radius:0;box-shadow:none}
.project-edit-modal .project-edit-form small{color:var(--muted);font-size:11px}
.projects-heading .new-project-trigger{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-height:43px;padding:10px 16px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-size:13px;font-weight:750;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:0 8px 18px rgba(217,118,58,.16)}
.projects-heading .new-project-trigger:hover{background:var(--accent-dark);color:#fff}
.project-create-modal{width:min(760px,calc(100vw - 28px))}
.project-create-modal .project-edit-modal-panel{padding:28px}
.project-create-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.project-create-form label{display:grid;gap:7px;color:var(--muted);font-size:13px;font-weight:650}
.project-create-form input,.project-create-form select{width:100%;min-width:0;height:46px;padding:10px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-weight:550}
.project-create-form .object-name-input,.project-edit-modal .object-name-input{display:block;width:100%;min-height:46px;max-height:260px;padding:10px 13px;overflow-x:hidden;overflow-y:hidden;overflow-wrap:anywhere;white-space:pre-wrap;resize:none;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-weight:550;line-height:1.45}
.project-create-form .object-name-input:focus,.project-edit-modal .object-name-input:focus{outline:3px solid rgba(217,118,58,.17);border-color:var(--accent)}
.project-create-form input:focus,.project-create-form select:focus{outline:3px solid rgba(217,118,58,.17);border-color:var(--accent)}
.project-create-form .project-create-wide{grid-column:1/-1}
.project-create-customer-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px;min-width:0}
.project-create-customer-row>label{min-width:0}
.project-create-customer-add{display:inline-flex;min-height:46px;align-items:center;justify-content:center;gap:7px;padding:0 13px;white-space:nowrap}
.project-create-form button{height:48px;border:0;border-radius:10px;background:var(--accent);color:#fff;font-size:15px;font-weight:750;cursor:pointer}
.project-create-form button:hover{filter:brightness(.96)}
@media(max-width:600px){.project-create-modal .project-edit-modal-panel{padding:20px}.project-create-form{grid-template-columns:1fr;gap:13px}.project-create-form .project-create-wide{grid-column:auto}.project-create-customer-row{grid-template-columns:minmax(0,1fr) auto}}

.project-row{cursor:pointer}.project-row:hover td{background:#f7fbf9}.project-row:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.document-generation{max-width:850px;margin:0 auto;padding:28px}.document-generation h1{margin:0;font-size:clamp(23px,3vw,31px);letter-spacing:-.03em}.document-generation>.subheading{margin-bottom:20px}.generation-summary{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0;padding:14px;background:#f7faf9;border:1px solid var(--line);border-radius:11px}.generation-summary>span{display:grid;min-width:120px;gap:3px}.generation-summary small{color:var(--muted);font-size:11px}.generation-summary strong{font-size:13px}.generation-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.generation-form label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:650}.generation-form input{min-width:0;min-height:40px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text)}.generation-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin-top:8px}.generation-actions button{min-height:40px;padding:8px 16px;border:0;border-radius:9px;background:var(--accent);color:#fff;font-weight:700}.generation-actions button:disabled{opacity:.45;cursor:not-allowed}.generation-back{display:inline-block;margin-top:16px;font-size:13px}

/* Upload progress, visible file selection, and checklist autosave */
.upload-form{grid-template-rows:auto auto}.selected-files{grid-column:1/-1;display:grid;gap:7px}.selected-file{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:12px}.selected-file-icon{color:var(--accent-dark);font-size:10px;font-weight:800}.selected-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.selected-file small{color:var(--muted)}.upload-feedback{display:flex;align-items:center;gap:9px;color:var(--accent-dark);font-size:12px}.upload-feedback[hidden],.selected-files[hidden]{display:none}.upload-controls button:disabled{opacity:.8;cursor:wait}.spinner{display:inline-block;width:15px;height:15px;margin-right:7px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;vertical-align:-3px;animation:upload-spin .75s linear infinite}@keyframes upload-spin{to{transform:rotate(360deg)}}.autosave-indicator{min-width:68px;color:var(--muted);font-size:10px}.autosave-indicator.is-saving{color:var(--warning)}.autosave-indicator.is-saved{color:var(--accent-dark)}.autosave-indicator.is-save-error{color:var(--danger)}

.checklist-table-wrap{overflow-x:auto}.checklist-table{width:100%;min-width:860px;border-collapse:collapse;text-align:left}.checklist-table th,.checklist-table td{padding:10px 12px;border-bottom:1px solid #edf0f1;vertical-align:middle}.checklist-table th{position:sticky;top:0;z-index:1;background:#f8faf9;color:var(--muted);font-size:11px;font-weight:750}.checklist-table th button{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;font-size:11px;font-weight:750}.checklist-table th button:hover{color:var(--accent-dark)}.checklist-table th input,.checklist-table th select{width:100%;min-width:0;margin-top:7px;padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--text);font-size:11px}.checklist-table tr:last-child td{border-bottom:0}.checklist-table tbody tr:hover td{background:#fbfdfc}.checklist-edit-row{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(190px,1.3fr) 68px;gap:8px;align-items:center}.checklist-edit-row select{min-height:36px;padding:6px 8px;font-size:12px}.checklist-name strong{display:block;line-height:1.4}.checklist-expiry{font-size:11px;font-weight:700;text-decoration:none;white-space:nowrap}.expiry-valid{color:var(--accent-dark)}.checklist-expiry-empty{color:#a7b0b3}.checklist-no-results{margin:0;padding:16px;color:var(--muted);font-size:13px}.checklist-no-results[hidden]{display:none}.checklist-table tr[hidden]{display:none}
.checklist-row{grid-template-columns:minmax(180px,1.2fr) minmax(260px,1fr);gap:16px;padding:13px 16px}.checklist-edit-row{grid-template-columns:minmax(115px,.55fr) minmax(160px,1fr) 68px}.checklist-name [hidden]{display:none}.checklist-name small a{text-decoration:none}.checklist-name small a:hover{text-decoration:underline}
.project-document-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px}.project-document-actions .icon-action{display:inline-grid;place-items:center;width:32px;height:32px;margin:0;border:1px solid transparent;border-radius:8px;color:var(--accent-dark);text-decoration:none;transition:background .15s,border-color .15s}.project-document-actions .icon-action:hover{background:#eef7f4;border-color:#d6e9e4}.project-document-actions .icon-action svg{width:16px;height:16px;fill:currentColor}.project-document-actions .icon-action-danger{background:transparent;color:var(--danger)}.project-document-actions .icon-action-danger:hover{background:#fff1ef;border-color:#f2d8d4}.project-document-actions form{display:flex;align-items:center}
.checklist-row[data-status="received"]{background:#eef8f1;border-left:4px solid #79b992}.checklist-row[data-status="received"]:hover{background:#e7f4eb}.checklist-row[data-status="received"] .checklist-name strong,.checklist-row[data-status="received"] .checklist-document-link{color:#245e3b}
.document-save-status{min-height:15px;font-size:11px}.document-save-status:not(:empty){margin-top:-7px}.document-save-status.is-saving{color:var(--warning)}.document-save-status.is-saved{color:var(--accent-dark)}.document-save-status.is-save-error{color:var(--danger)}
.checklist.panel{overflow-x:auto}.checklist-table-header,.checklist-row{display:grid;grid-template-columns:42px minmax(300px,1.5fr) minmax(130px,.55fr) minmax(220px,1.1fr) 75px;gap:12px;align-items:center;min-width:1000px}.checklist-table-header{padding:10px 16px;background:#f8faf9;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:750}.checklist-row{padding:11px 16px}.checklist-edit-row{display:contents}.checklist-edit-row select{width:100%;min-width:0}.checklist-number{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;text-align:center}.checklist-name{min-width:0}.checklist-name strong,.checklist-name>a{overflow-wrap:anywhere}.checklist-name small{overflow-wrap:anywhere}
.page:has(.project-workspace){width:min(1480px,calc(100% - 40px));margin:26px auto 64px}.project-workspace{display:grid;grid-template-columns:246px minmax(0,1fr);gap:22px;align-items:start}.project-sidebar{position:sticky;top:84px;display:flex;min-height:min(720px,calc(100vh - 110px));flex-direction:column;padding:16px 12px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.project-side-nav{display:grid;gap:17px;padding:16px 0}.project-nav-group{display:grid;gap:4px}.project-nav-caption{padding:0 9px 4px;color:#89979c;font-size:9px;font-weight:800;letter-spacing:.1em}.project-nav-item{display:flex;min-height:38px;align-items:center;gap:10px;padding:7px 9px;border:0;border-radius:8px;background:transparent;color:#45565b;text-align:left;font-size:12px;font-weight:600}.project-nav-item:hover{background:#f3f7f6;color:var(--accent-dark)}.project-nav-item.is-active{background:#eaf5f2;color:var(--accent-dark);font-weight:750}.project-nav-item small{display:inline-flex;min-width:24px;justify-content:center;margin-left:auto;padding:2px 6px;border-radius:20px;background:#edf1f1;color:var(--muted);font-size:10px;font-weight:750}.project-nav-item.is-active small{background:#d7ebe5;color:var(--accent-dark)}.project-nav-icon{display:inline-grid;width:20px;place-items:center;color:#71848a;font-size:17px;line-height:1}.project-nav-item.is-active .project-nav-icon{color:var(--accent)}.project-sidebar-download{display:flex;align-items:center;gap:9px;margin-top:auto;padding:11px 9px;border-top:1px solid #edf0f1;color:var(--accent-dark);font-size:12px;font-weight:700;text-decoration:none}.project-workspace-main{min-width:0}.workspace-header{display:flex;min-height:72px;align-items:center;justify-content:space-between;gap:15px;margin:0 0 17px}.workspace-breadcrumb{display:flex;gap:8px;margin:0 0 5px;color:var(--muted);font-size:11px}.workspace-breadcrumb a{color:var(--muted);text-decoration:none}.workspace-header h1{margin:0;font-size:23px;letter-spacing:-.035em;line-height:1.25}.workspace-header>.contract-tag{flex:0 0 auto}.workspace-tab-panel[hidden]{display:none!important}.workspace-tab-panel{min-width:0;padding:20px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.workspace-tab-panel.section-block{margin:0}.workspace-tab-panel>.section-title{margin-bottom:14px}.workspace-tab-panel .checklist{max-height:calc(100vh - 220px);overflow:auto}.workspace-tab-panel .upload-panel{margin:0;padding:0;border:0;box-shadow:none}.workspace-tab-panel .archive-list>div{gap:12px}
.app-layout{display:grid;grid-template-columns:246px minmax(0,1fr);gap:22px;align-items:start;width:min(1480px,calc(100% - 40px));margin:26px auto 64px}.app-main.page{width:auto;min-width:0;margin:0;padding:0}.app-sidebar{min-height:min(720px,calc(100vh - 110px))}.project-workspace{display:block}.app-main:has(.project-workspace){width:auto;margin:0}.app-layout .project-workspace-main{width:100%}.project-nav-item:is(a,button){text-decoration:none;cursor:pointer}.project-nav-item[aria-current="page"]{background:#eaf5f2;color:var(--accent-dark);font-weight:750}
.project-table-actions>form{display:inline;margin-left:7px}.project-table-actions .active-project-delete{padding:4px;font-size:11px}
@media(max-width:600px){.project-list-heading{align-items:stretch;flex-direction:column;gap:10px}.project-search{width:100%}}
@media(max-width:460px){.app-layout{width:calc(100% - 20px)}.app-layout:has(.project-workspace){width:calc(100% - 20px)}.projects-heading{gap:8px}.project-card-actions{gap:8px;padding-right:10px;padding-left:10px}.project-card-main{min-height:146px;padding:15px}}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.checklist-document-link{color:var(--text);font-size:13px;font-weight:700;line-height:1.4;text-decoration:none}.checklist-document-link:hover{color:var(--accent-dark);text-decoration:underline}.checklist-file-form{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-top:6px}.checklist-file-pick{display:inline-flex;cursor:pointer}.checklist-file-pick span,.checklist-file-form button{border:1px solid #cce1dc;border-radius:7px;padding:5px 8px;background:#f3faf8;color:var(--accent-dark);font-size:10px;font-weight:700}.checklist-file-pick:hover span,.checklist-file-form button:not(:disabled):hover{background:#e5f4f0}.checklist-file-form button:disabled{opacity:.55;cursor:not-allowed}.checklist-file-names{max-width:100%;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.spinner-dark{border-color:#b9dcd5;border-top-color:var(--accent-dark)}

/* Home Assistant inspired graphite navigation and restrained orange accent. */
:root{--accent:#d97706;--accent-dark:#a94e00;--soft:#fff1dd;--bg:#f4f5f6;--line:#e2e5e8;--shadow:0 8px 26px rgba(26,34,40,.055)}
.eyebrow{color:var(--accent-dark)}
.app-sidebar{background:#252a30;border:1px solid #333a42;box-shadow:0 10px 28px rgba(15,19,23,.16);color:#e7ebee}
.app-sidebar .project-nav-group{padding:8px;border:1px solid #383f47;border-radius:14px;background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018));gap:5px}
.app-sidebar .project-nav-group:has(.project-nav-caption){padding-top:10px}
.app-sidebar .project-nav-account{margin-top:auto}

.app-sidebar .project-nav-caption{color:#aeb7bf}

.app-sidebar .project-sidebar-contract{color:#abb4bc}
.app-sidebar .project-nav-item{background:transparent;color:#d1d7dc;border-radius:8px}
.app-sidebar .project-nav-item:hover{background:#343a41;color:#fff}
.app-sidebar .project-nav-item.is-active,.app-sidebar .project-nav-item[aria-current="page"],.app-sidebar .project-nav-item[aria-selected="true"]{position:relative;background:#373d43;color:#fff;font-weight:750}
.app-sidebar .project-nav-item.is-active::before,.app-sidebar .project-nav-item[aria-current="page"]::before,.app-sidebar .project-nav-item[aria-selected="true"]::before{position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:3px;background:#f28c28;content:""}
.app-sidebar .project-nav-item small{background:#424950;color:#d4d9de}
.app-sidebar .project-nav-item.is-active small,.app-sidebar .project-nav-item[aria-selected="true"] small{background:#55402c;color:#ffbf78}
.app-sidebar .project-nav-icon{width:20px;color:#bac2c9;font-size:17px;font-weight:400}
.app-sidebar .project-nav-item:is(:hover,.is-active,[aria-current="page"],[aria-selected="true"]) .project-nav-icon{color:#f28c28}
.app-sidebar .project-sidebar-download{border-color:#3a4149;color:#ffad57}
.app-sidebar .project-sidebar-download:hover{color:#ffc27f}
.brand-mark{background:#d97706}
.stack-form button,.inline-form button,.upload-controls button,.new-project>summary,.new-project-form button,.generation-actions button{background:#ad5000}
.stack-form button:hover,.inline-form button:hover,.upload-controls button:hover,.new-project-form button:hover,.generation-actions button:hover{background:#893f00}
.secondary-button,.quiet-button:hover,.project-nav-item[aria-current="page"]{color:var(--accent-dark)}
.contract-tag,.count-pill,.icon-badge{background:var(--soft);color:var(--accent-dark)}
.status-chip.status-processed,.expiry-valid{background:#e5f5ec;color:#31704f}
.project-nav-icon{font-family:inherit}
.app-sidebar .bi{font-family:"bootstrap-icons"!important;font-style:normal;font-weight:400}
@media(max-width:760px){.app-sidebar .project-nav-item{background:transparent}.app-sidebar .project-nav-item.is-active,.app-sidebar .project-nav-item[aria-current="page"],.app-sidebar .project-nav-item[aria-selected="true"]{background:#373d43}}
.app-layout{grid-template-columns:246px minmax(0,1fr);gap:0;align-items:stretch;width:100%;min-height:100vh;margin:0}
.app-sidebar{position:sticky;top:0;align-self:start;width:246px;height:100vh;min-height:100vh;margin:0;border:0;border-right:1px solid #3a4149;border-radius:0;box-shadow:none}
.app-main.page{padding:26px max(24px,calc((100vw - 1480px)/2));margin:0!important}
.app-main.page:has(.project-topbar){padding-top:0}
.app-main.page:has(.project-workspace){padding-top:0;padding-bottom:64px}
.app-sidebar .project-sidebar-download{margin:0 0 4px;padding:11px 9px;border:0}
.app-sidebar-brand{flex:0 0 auto;padding:4px 7px 18px;margin-bottom:16px;border-bottom:1px solid #3a4149;color:#f1f3f5}
.app-sidebar-brand small{color:#aeb7bf}
@media(max-width:760px){.app-layout{display:flex;min-height:0;flex-direction:column;gap:0;width:100%;margin:0}.app-sidebar{position:static;width:100%;height:auto;min-height:0;margin:0;border:0;border-bottom:1px solid #3a4149;border-radius:0;padding:11px 16px}.app-sidebar-brand{padding:0 3px 9px;margin:0 0 7px}.app-main.page,.app-main.page:has(.project-workspace){width:100%;padding:16px 12px 45px;margin:0!important}.app-main .page-heading{margin-top:4px}.app-sidebar .project-sidebar-download{display:none}}
.alert-ribbon{padding:14px 16px 12px;margin:0 0 25px}
.alert-ribbon-heading{display:flex!important;align-items:baseline;justify-content:space-between;gap:12px}
.alert-ribbon-heading strong{font-size:14px}
.alert-ribbon-track{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(230px,290px);gap:9px!important;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline proximity;padding:2px 1px 9px!important;margin:10px 0 0!important;scrollbar-width:thin;scrollbar-color:#d97706 #f1e7d9}
.alert-card{display:flex;min-width:0;min-height:72px;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:9px;padding:10px 12px;border:1px solid #f0dfc6;border-radius:10px;background:#fffdfa;scroll-snap-align:start}
.alert-card>a{display:flex;min-width:0;align-items:flex-start;gap:8px;color:var(--text);font-size:12px;font-weight:700;line-height:1.35;text-decoration:none;white-space:normal}
.alert-card>a:hover{color:var(--accent-dark)}
.alert-card>a i{flex:0 0 auto;color:var(--accent);font-size:15px}
.alert-card>a span{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.alert-card>.expiry-expired,.alert-card>.expiry-expiring,.alert-card>.expiry-unknown{font-size:10px;font-weight:750;line-height:1.2}
.alert-ribbon-track::-webkit-scrollbar{height:7px}
.alert-ribbon-track::-webkit-scrollbar-track{border-radius:8px;background:#f1e7d9}
.alert-ribbon-track::-webkit-scrollbar-thumb{border-radius:8px;background:#d97706}
@media(max-width:760px){.alert-ribbon{padding:12px}.alert-ribbon-heading{align-items:flex-start;flex-direction:column;gap:1px}.alert-ribbon-track{grid-auto-columns:minmax(220px,78vw)}}
.projects-table{table-layout:fixed;min-width:900px}
.projects-table th:nth-child(1),.projects-table td:nth-child(1){width:12%}
.projects-table th:nth-child(2),.projects-table td:nth-child(2){width:39%}
.projects-table th:nth-child(3),.projects-table td:nth-child(3){width:23%}
.projects-table th:nth-child(4),.projects-table td:nth-child(4){width:8%}
.projects-table th:nth-child(5),.projects-table td:nth-child(5){width:18%}
.projects-table td:nth-child(2) .project-table-link{display:block;overflow-wrap:anywhere}
.projects-table td:nth-child(3){overflow-wrap:anywhere;color:var(--muted)}
@media(max-width:1000px){.projects-table{min-width:900px}}

/* Muted gray-orange accent palette. */
:root{--accent:#b47c50;--accent-dark:#805a3e;--soft:#f2e9e1}
.app-sidebar .project-nav-item:is(:hover,.is-active,[aria-current="page"],[aria-selected="true"]) .project-nav-icon{color:#c49a76}
.app-sidebar .project-sidebar-download{color:#c49a76}
.brand-mark{background:#aa7852}
.stack-form button,.inline-form button,.upload-controls button,.new-project>summary,.new-project-form button,.generation-actions button{background:#805a3e}
.stack-form button:hover,.inline-form button:hover,.upload-controls button:hover,.new-project-form button:hover,.generation-actions button:hover{background:#684832}
.alert-ribbon-track{scrollbar-color:#b47c50 #eee7e0}
.alert-card{border-color:#e7ddd3;background:#fffdfb}
.alert-ribbon-track::-webkit-scrollbar-track{background:#eee7e0}
.alert-ribbon-track::-webkit-scrollbar-thumb{background:#b47c50}
.app-sidebar-add,.project-sidebar-add{display:flex;min-height:42px;flex:0 0 auto;align-items:center;justify-content:center;gap:9px;margin:14px 4px 2px;padding:9px 12px;border:1px solid #9b6f4f;border-radius:9px;background:#805a3e;color:#fff;text-decoration:none;font-size:12px;font-weight:750}
.project-sidebar-add:hover{border-color:#b18b6d;background:#684832;color:#fff}
.project-sidebar-add i{font-size:16px}
@media(max-width:760px){.project-sidebar-add{min-height:36px;justify-content:flex-start;margin:6px 0 5px;padding:6px 10px}.app-sidebar-brand{margin-bottom:7px}}
.project-topbar{position:sticky;top:0;z-index:20;display:flex;box-sizing:border-box;height:78px;min-height:78px;align-items:center;justify-content:flex-start;gap:18px;margin:0 0 18px;padding:10px 0;border-bottom:1px solid var(--line);background:var(--bg)}
.project-topbar-context{display:grid;gap:1px;width:100%;min-width:0;overflow:hidden}
.project-topbar-context .eyebrow{margin:0;font-size:9px}
.project-topbar-context strong{display:-webkit-box;overflow:hidden;color:var(--text);font-size:16px;line-height:1.3;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.project-topbar-context small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.project-topbar{height:70px;min-height:70px;margin-bottom:12px;padding:8px 0}}
@media(max-width:460px){.project-topbar-context strong{font-size:13px;line-height:1.25}.project-topbar-context small{font-size:10px}}

/* Keep checklist cards usable on narrow phone screens. */
.checklist-mobile-field{display:contents}
@media(max-width:760px){
    .workspace-tab-panel .checklist.panel{max-height:none;overflow:visible}
    .checklist-table-header,.checklist-row{width:100%;min-width:0;grid-template-columns:30px minmax(0,1fr);gap:8px 10px}
    .checklist-table-header{padding:10px 12px}
    .checklist-table-header>span:nth-child(n+3){display:none}
    .checklist-row{align-items:start;padding:13px 12px}
    .checklist-number{grid-column:1;grid-row:1;padding-top:7px}
    .checklist-name{grid-column:2;grid-row:1;overflow-wrap:anywhere}
    .checklist-name strong,.checklist-name>a{display:block;overflow-wrap:anywhere;word-break:normal;white-space:normal}
    .checklist-name small{overflow-wrap:anywhere}
    .checklist-file-form{align-items:flex-start}
    .checklist-file-pick span{display:inline-flex;max-width:100%;align-items:center;justify-content:center;text-align:center;line-height:1.3}
    .checklist-edit-row{display:grid;grid-column:2;grid-template-columns:minmax(0,1fr);gap:8px;min-width:0}
    .checklist-mobile-field{display:grid;gap:3px;min-width:0}
    .checklist-mobile-field>span{color:var(--muted);font-size:10px;font-weight:700}
    .checklist-edit-row select{width:100%;min-width:0}
    .checklist-edit-row .autosave-indicator{grid-column:1;min-height:0}
}

/* On phones, keep navigation docked to the left and reveal it as a drawer. */
.mobile-menu-row,.mobile-sidebar-toggle,.sidebar-backdrop{display:none}
@media(max-width:760px){
    .app-layout{display:block;width:100%;min-height:100vh;margin:0}
    .app-sidebar{position:fixed;inset:0 auto 0 0;z-index:1200;width:min(280px,86vw);height:100vh;height:100dvh;min-height:0;margin:0;padding:16px 13px;border:0;border-right:1px solid #3a4149;border-radius:0;box-shadow:8px 0 28px rgba(15,19,23,.24);transform:translateX(-102%);transition:transform .22s ease;overflow-y:auto;overscroll-behavior:contain}
    body.sidebar-open .app-sidebar{transform:translateX(0)}
    .app-sidebar-brand{padding:4px 7px 14px;margin:0 0 14px}
    .app-sidebar .project-sidebar-contract{grid-column:auto;grid-row:auto}
    .app-sidebar .project-side-nav{display:grid;gap:17px;overflow:visible;padding:16px 0}
    .app-sidebar .project-nav-group{display:grid;gap:4px}
    .app-sidebar .project-nav-caption{display:block}
    .app-sidebar .project-nav-item{width:100%;min-height:40px;flex:initial;gap:10px;padding:8px 10px;font-size:12px;white-space:normal}
    .app-sidebar .project-nav-item small{min-width:24px}
    .app-sidebar .project-nav-icon{font-size:17px}
    .app-sidebar .project-sidebar-download{display:flex}
    .app-main.page,.app-main.page:has(.project-workspace){width:100%;margin:0!important;padding:0 12px 45px}
    .app-main .page-heading{margin-top:4px}
    .mobile-menu-row{display:flex;height:48px;align-items:center}
    .mobile-sidebar-toggle{display:grid;width:40px;height:40px;place-items:center;padding:0;border:1px solid #9b6f4f;border-radius:9px;background:#805a3e;color:#fff;box-shadow:0 3px 12px rgba(30,25,21,.2);font-size:22px;line-height:1;cursor:pointer}
    .mobile-sidebar-toggle:focus-visible{outline:2px solid #c49a76;outline-offset:2px}
    .sidebar-backdrop{position:fixed;inset:0;z-index:1190;display:block;width:100%;height:100%;padding:0;border:0;background:rgba(18,22,26,.42);opacity:0;pointer-events:none;transition:opacity .22s ease}
    body.sidebar-open .sidebar-backdrop{opacity:1;pointer-events:auto}
}
@media(prefers-reduced-motion:reduce){.app-sidebar,.sidebar-backdrop{transition:none}}

.act-archive-note{display:flex;align-items:flex-start;gap:13px;padding:16px 18px;margin-bottom:16px;background:#fffdfb}
.report-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-bottom:16px}
.report-actions .secondary-button{gap:7px}
.report-actions button{font-family:inherit;cursor:pointer}
.report-generation-dialog{width:min(980px,calc(100vw - 32px));}
.report-generation-dialog .report-generation-close{position:absolute;top:16px;right:16px;z-index:2}
.report-generation-dialog .document-generation{max-width:none;margin:0;padding:6px 0 0;border:0;box-shadow:none}
.report-generation-dialog .generation-actions{justify-content:flex-end;padding-right:50px}
.generation-loading{margin:12px 44px 12px 0;color:var(--muted);font-size:13px}
.generation-feedback{margin:14px 0 0}
.workspace-compact-toolbar{display:flex;justify-content:flex-end;margin:0 0 14px}
.correspondence-upload-dialog{width:min(820px,calc(100vw - 32px))}
.correspondence-upload-dialog .upload-panel{padding:4px 0 0;margin:0}
.correspondence-upload-dialog .upload-form{grid-template-columns:minmax(200px,.8fr) minmax(250px,1.2fr)}
.correspondence-upload-dialog::backdrop{background:rgba(23,31,35,.42);backdrop-filter:blur(3px)}
.correspondence-upload-dialog .file-picker{min-height:160px;padding:20px;transition:border-color .15s,background .15s,box-shadow .15s}
.correspondence-upload-dialog .file-picker.is-dragover{border-color:var(--accent);background:#eff8f5;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)}
.correspondence-upload-dialog .upload-controls label{gap:6px;color:#495057;font-size:13px;font-weight:600}
.correspondence-upload-dialog .upload-controls select{width:100%;min-height:38px;padding:7px 34px 7px 11px;border:1px solid #ced4da;border-radius:7px;background-color:#fff;color:#212529;font-size:14px;box-shadow:inset 0 1px 2px rgba(0,0,0,.04)}
.correspondence-upload-dialog .upload-controls select:focus{outline:0;border-color:#86b7fe;box-shadow:0 0 0 4px rgba(13,110,253,.18)}
.correspondence-upload-dialog .upload-controls button{border-radius:7px;font-size:14px;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.correspondence-upload-dialog .selected-files{gap:0;margin-top:0;overflow:hidden;border:1px solid #dee2e6;border-radius:7px;background:#fff}
.correspondence-upload-dialog .selected-file{grid-template-columns:24px minmax(0,1fr) auto 28px;gap:10px;padding:9px 11px;border:0;border-bottom:1px solid #dee2e6;border-radius:0;background:#fff;font-size:13px}
.correspondence-upload-dialog .selected-file:last-child{border-bottom:0}
.correspondence-upload-dialog .selected-file-icon{font-size:17px}
.correspondence-upload-dialog .selected-file-remove{display:grid;width:26px;height:26px;place-items:center;border:0;border-radius:5px;background:transparent;color:#6c757d}
.correspondence-upload-dialog .selected-file-remove:hover{background:#f8d7da;color:#b02a37}
.correspondence-upload-dialog .selected-file small{white-space:nowrap}

.act-archive-note>i{flex:0 0 auto;color:var(--accent);font-size:20px}
.act-archive-note strong{font-size:13px}
.act-archive-note p{margin:3px 0 0;color:var(--muted);font-size:12px}
.act-archive-list{display:grid;gap:10px}
.handover-act-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px}
.handover-act-info{display:grid;min-width:0;gap:3px}
.handover-act-info>strong{font-size:13px}
.handover-act-info>span,.handover-act-info>small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.act-state{flex:0 0 auto;font-size:11px;font-weight:700}
.act-state-sent{color:#31704f}
.act-state-manual{color:var(--muted)}
.act-state-pending{color:var(--warning)}
.handover-act-card .secondary-button{gap:6px}
@media(max-width:640px){.handover-act-card{align-items:flex-start;flex-direction:column;gap:9px;padding:13px}.act-archive-note{padding:13px}}

/* Project accent: terracotta. */
:root{--accent:#D9763A;--accent-dark:#A64E1C;--soft:#F8EAE1}
.brand-mark{background:#D9763A}
.app-sidebar .project-nav-item.is-active::before,.app-sidebar .project-nav-item[aria-current="page"]::before,.app-sidebar .project-nav-item[aria-selected="true"]::before{background:#D9763A}
.app-sidebar .project-nav-item:is(:hover,.is-active,[aria-current="page"],[aria-selected="true"]) .project-nav-icon{color:#D9763A}
.app-sidebar .project-sidebar-download{color:#E49A6D}
.app-sidebar .project-sidebar-download:hover{color:#F0B18C}
.stack-form button,.inline-form button,.upload-controls button,.new-project>summary,.new-project-form button,.generation-actions button{background:#D9763A}
.stack-form button:hover,.inline-form button:hover,.upload-controls button:hover,.new-project-form button:hover,.generation-actions button:hover{background:#B65A25}
.app-sidebar-add,.project-sidebar-add,.mobile-sidebar-toggle{border-color:#D9763A;background:#D9763A}
.project-sidebar-add:hover,.mobile-sidebar-toggle:hover{border-color:#B65A25;background:#B65A25}
.alert-ribbon-track{scrollbar-color:#D9763A #F1E7E0}
.alert-ribbon-track::-webkit-scrollbar-thumb{background:#D9763A}
.special-expiry-date{min-height:36px;border:1px solid var(--line);border-radius:8px;padding:6px 9px;background:#fff;color:var(--text)}
.special-expiry-date{width:100%}
.checklist-row[data-expiry="expired"] [data-expiry-display]{color:var(--danger);font-weight:750}
.checklist-row[data-expiry="expiring"] [data-expiry-display]{color:var(--warning);font-weight:750}
.correspondence-list{display:grid;gap:12px;margin-top:16px}.correspondence-card{padding:16px}.correspondence-card-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 12px;margin-bottom:13px}.correspondence-card-heading strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.correspondence-card-heading small{color:var(--muted);font-size:11px}.correspondence-fields{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.correspondence-fields label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:650}.correspondence-fields input,.correspondence-fields select,.correspondence-fields textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;padding:9px 11px;color:var(--text);background:#fff;font:inherit}.correspondence-fields input,.correspondence-fields select{min-height:40px}.correspondence-fields textarea{resize:vertical}.correspondence-fields .correspondence-wide{grid-column:1/-1}.correspondence-save-indicator{min-height:16px;font-size:11px}.correspondence-save-indicator.is-saving{color:var(--muted)}.correspondence-save-indicator.is-saved{color:#31704f}.correspondence-save-indicator.is-save-error{color:var(--danger)}
.checklist-document-select-field{min-width:0}.checklist-document-select-field select{min-height:42px;white-space:normal;text-overflow:ellipsis}.checklist-preview-button{margin-top:6px;min-height:34px}.checklist-table-header,.checklist-row{grid-template-columns:36px minmax(280px,1.3fr) minmax(125px,.6fr) minmax(320px,1.5fr) 65px}@media(max-width:640px){.checklist-document-select-field{grid-column:1}}

/* Compact document completeness list. */
.checklist-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.checklist-toolbar h2{margin:0;font-size:20px;letter-spacing:-.03em}
.checklist-toolbar>div:first-child>p:last-child{margin:4px 0 0;color:var(--muted);font-size:12px}
.checklist-toolbar .eyebrow{margin:0 0 4px;font-size:9px}
.checklist-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.checklist-lock-button{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:15px}
.checklist-lock-button:hover,.checklist-lock-button[aria-pressed="true"]{border-color:#e8b08d;background:#fff7f2;color:var(--accent-dark)}
.checklist-icon-trigger{width:36px;height:36px;padding:0;font-size:15px}
.checklist-filters{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:9px;background:#f5f6f6}
.checklist-filters button{min-height:31px;padding:6px 10px;border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap}
.checklist-filters button.is-active{background:#fff;color:var(--accent-dark);box-shadow:0 1px 3px #1a22200f}
.checklist-apply-form{gap:6px}
.checklist-apply-form select,.checklist-apply-form button{min-height:36px;font-size:11px}
.checklist.panel{max-height:none;overflow:visible;padding:0}
.checklist-row{position:relative;z-index:0;display:grid;grid-template-columns:38px minmax(0,1.4fr) minmax(140px,.7fr) minmax(115px,.55fr) 72px;gap:12px;align-items:center;min-width:0;padding:5px 13px;border-bottom:1px solid #edf0f1}
.checklist-row:last-child{border-bottom:0}
.checklist-row[hidden]{display:none!important}
.checklist-filter-empty{margin:0;padding:24px 15px;color:var(--muted);font-size:12px;text-align:center}
.checklist-number{justify-self:center;color:#929aa0;font-size:11px;text-align:center}
.checklist-name{display:grid;gap:5px}
.checklist-name-title{display:flex;align-items:flex-start;gap:8px;min-width:0}
.checklist-name-title strong{flex:1}
.checklist-document-count-badge{display:inline-flex;flex:none;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 7px;border:1px solid #cfe2d4;border-radius:999px;background:#eaf5ed;color:#2e7047;font-size:11px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.checklist-name-title>.checklist-document-count-badge{margin-right:4px}
.checklist-multiple-documents[hidden]{display:none!important}
.checklist-row[data-row-previewable="true"]{cursor:pointer}
.checklist-row[data-row-previewable="true"]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.checklist-name strong,.checklist-name>a{font-size:12px;font-weight:650;line-height:1.4}
.checklist-name small{color:var(--muted);font-size:10px;line-height:1.4}
.checklist-status-label{justify-self:center;display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:20px;background:#f1f3f4;color:#59666c;font-size:10px;font-weight:700;white-space:nowrap}
.checklist-status-label::before{width:6px;height:6px;border-radius:50%;background:#9ca5aa;content:""}
.checklist-status-label.status-received{background:#e8f4ed;color:#32714e}
.checklist-status-label.status-received::before{background:#4b9b69}
.checklist-status-label.status-not_required{background:#f2f0eb;color:#776a54}
.checklist-status-label.status-not_required::before{background:#a28c67}
.checklist-row-actions{display:flex;align-items:center;justify-self:end;gap:1px}
.checklist-upload-trigger{display:grid;width:24px;height:28px;flex:0 0 24px;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--accent-dark);cursor:pointer}
.checklist-upload-trigger:hover{border-color:var(--line);background:#f7f8f8}
.checklist-upload-trigger i{font-size:17px}
.checklist-inline-action{display:grid;width:24px;height:28px;flex:0 0 24px;place-items:center;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer}
.checklist-inline-action:hover{border-color:var(--line);background:#f7f8f8;color:var(--accent-dark)}
.checklist-row-delete-form{margin:0}
.checklist-row-delete{display:none;width:32px;height:32px;place-items:center;border:0;border-radius:8px;background:transparent;color:var(--danger);font-size:15px}
.checklist-row-delete:hover{background:#fff0ee}
.checklist.is-editing-template .checklist-row-delete:not([hidden]){display:grid}
.checklist.is-editing-template .checklist-row-menu{display:none}
.checklist-row-menu{position:relative;justify-self:end}
.checklist-row-menu>summary{display:grid;width:34px;height:34px;place-items:center;border:1px solid transparent;border-radius:8px;color:#69757a;cursor:pointer;list-style:none}
.checklist-row-menu>summary::-webkit-details-marker{display:none}
.checklist-row-menu>summary:hover,.checklist-row-menu[open]>summary{border-color:var(--line);background:#f7f8f8;color:var(--accent-dark)}
.checklist-row-menu>summary i{font-size:19px}
.checklist-row-menu-panel{position:absolute;top:calc(100% + 5px);right:0;z-index:10;display:grid;width:min(420px,calc(100vw - 48px));max-height:72vh;gap:10px;overflow:auto;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 12px 34px #18202726}
.checklist-row-menu-panel form{margin:0}
.checklist-row-menu-panel .checklist-edit-row{display:grid;gap:10px;min-width:0}
.checklist-row-menu-panel .checklist-mobile-field{display:grid;gap:4px;min-width:0}
.checklist-row-menu-panel .checklist-mobile-field>span{color:var(--muted);font-size:10px;font-weight:700}
.checklist-row-menu-panel .checklist-edit-row select{min-height:38px;width:100%;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:12px}
.checklist-row-menu-panel .autosave-indicator{min-height:0;font-size:10px}
.checklist-linked-document-card{display:flex;box-sizing:border-box;align-items:center;gap:8px;width:min(100%,430px);min-width:0;max-width:430px;margin:0;padding:6px 8px;border:1px solid #dce8df;border-radius:8px;background:#f8fcf9;color:#315d40;text-align:left;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s;overflow:hidden}
.checklist-linked-document-card:hover{border-color:#a8cbb3;background:#f0f8f2;box-shadow:0 2px 8px #254f3810}
.checklist-linked-document-card[hidden]{display:none}
.checklist-linked-document-icon{display:grid;width:30px;height:34px;flex:none;place-items:center;border:1px solid #d9e7dd;border-radius:6px;background:#fff;color:#4b8d62;font-size:16px}
.checklist-linked-document-meta{display:flex;min-width:0;align-items:baseline;gap:8px;flex:1;font-size:11px;line-height:1.3}
.checklist-linked-document-meta strong,.checklist-linked-document-meta>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.checklist-linked-document-meta strong{font-size:11px;font-weight:750}
.checklist-linked-document-meta>span{color:#64756b}
.checklist-linked-document-meta .checklist-linked-document-open{display:none}
.checklist-linked-document-arrow{display:none}
.ird-actions .ird-delete-document{border-color:#f1d5d1;background:#fff4f2;color:#b33a2d}
.ird-actions .ird-delete-document:hover{background:#ffe8e4}
.checklist-row-menu-panel .checklist-file-form{display:flex;align-items:center;gap:8px;padding-top:9px;border-top:1px solid #edf0f1}
.checklist-row-menu-panel .checklist-file-pick span{display:inline-flex;padding:7px 9px;border-radius:7px;background:#f7f3f0;color:var(--accent-dark);font-size:11px;font-weight:700;cursor:pointer}
.checklist-row-menu-panel .checklist-file-names{min-width:0;overflow-wrap:anywhere;color:var(--muted);font-size:10px}


@media(max-width:900px){.checklist-toolbar{align-items:flex-start;flex-direction:column}.checklist-toolbar-actions{width:100%;justify-content:space-between}}
.correspondence-table-wrap{margin-top:16px;overflow-x:auto}.correspondence-table{min-width:1120px}.correspondence-table-head,.correspondence-table-row{display:grid;grid-template-columns:115px 150px minmax(170px,1fr) minmax(170px,1fr) minmax(260px,1.5fr) 68px;gap:10px;align-items:start}.correspondence-table-head{position:sticky;top:0;padding:11px 13px;background:#f7f9f9;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px;font-weight:750}.correspondence-table-row{margin:0;padding:10px 13px;border-bottom:1px solid #edf0f1}.correspondence-table-row:last-child{border-bottom:0}.correspondence-table-row label{display:block;min-width:0}.correspondence-table-row input,.correspondence-table-row select,.correspondence-table-row textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:8px 9px;background:#fff;color:var(--text);font:inherit;font-size:12px}.correspondence-number-date,.correspondence-subject-summary{display:grid;gap:6px}.correspondence-table-row textarea{resize:vertical}.correspondence-row-actions{display:grid;justify-items:center;gap:5px}.correspondence-row-actions .secondary-button{min-height:34px;padding:6px 10px}.correspondence-row-actions .notice-error{font-size:10px}

.checklist-add-trigger{min-height:36px;margin:0;padding:7px 10px;font-size:11px}.checklist-add-dialog{width:min(430px,calc(100vw - 32px))}

.checklist-add-trigger{display:inline-flex;min-height:36px;align-items:center;justify-content:center;gap:7px;margin:0;padding:7px 10px;border:0;border-radius:9px;background:var(--accent);color:#fff;font-size:11px;font-weight:750;cursor:pointer}.checklist-add-trigger:hover{background:var(--accent-dark)}.checklist-add-dialog{width:min(430px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--text);box-shadow:0 22px 75px rgba(20,28,33,.24)}.checklist-add-dialog::backdrop{background:rgba(24,30,35,.48);backdrop-filter:blur(2px)}.checklist-add-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.checklist-add-dialog-heading h2{margin:0;font-size:21px;letter-spacing:-.03em}.checklist-add-close,.document-preview-close{display:grid;width:36px;height:36px;flex:0 0 auto;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);cursor:pointer}.checklist-add-close:hover,.document-preview-close:hover{background:#f5f6f7;color:var(--text)}.checklist-add-form{display:grid;gap:14px}.checklist-add-form>label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:700}.checklist-add-form input{width:100%;min-height:44px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-size:14px}.checklist-add-form input:focus{outline:2px solid color-mix(in srgb,var(--accent) 28%,transparent);border-color:var(--accent)}.checklist-add-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}.checklist-add-actions>button[type=submit]{display:inline-flex;min-height:38px;align-items:center;justify-content:center;gap:7px;border:0;border-radius:9px;padding:8px 13px;background:var(--accent);color:#fff;font-size:13px;font-weight:750;cursor:pointer}.checklist-add-actions>button[type=submit]:hover{background:var(--accent-dark)}@media(max-width:560px){.checklist-add-dialog{padding:18px}}

.checklist-table-head,.checklist-row{grid-template-columns:38px minmax(220px,1.4fr) minmax(140px,.7fr) minmax(130px,.7fr) minmax(112px,.45fr) 72px}
.checklist-table-head{display:grid;gap:12px;align-items:center;padding:9px 13px;border-bottom:1px solid #edf0f1;background:#f8faf9;color:var(--muted);font-size:10px;font-weight:750}
.checklist-table-head{border-radius:15px 15px 0 0}
.checklist-table-head>span{text-align:center}
.checklist-table-head>span{overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.checklist-template-download{display:inline-flex;align-items:center;gap:5px;margin-top:5px;color:var(--accent-dark);font-size:11px;font-weight:700;text-decoration:none}
.checklist-template-download:hover{color:var(--accent);text-decoration:underline}
.checklist-table-head,.checklist-row{grid-template-columns:var(--checklist-grid-columns,minmax(32px,.25fr) minmax(220px,1.4fr) minmax(110px,.7fr) minmax(120px,.7fr) minmax(112px,.45fr) minmax(41px,.3fr))}
.checklist-table-head>span,.checklist-row>*{position:relative;min-width:0}
.checklist-table-head>span+span,.checklist-row>*+*{border-left:1px solid #d5dfe1;padding-left:12px}
.checklist-table-head>span+span{height:100%;display:flex;align-items:center;justify-content:center}
.checklist-column-resizer{position:absolute;top:-5px;right:-8px;z-index:4;width:16px;height:calc(100% + 10px);min-height:24px;padding:0;border:0;background:transparent;cursor:col-resize;touch-action:none}
.checklist-column-resizer::after{position:absolute;top:50%;left:7px;width:2px;height:22px;border-radius:2px;background:#aab8bb;content:"";transform:translateY(-50%);transition:background .12s,box-shadow .12s}
.checklist-column-resizer:hover::after,.checklist-column-resizer:focus-visible::after,.checklist-column-resizer.is-dragging::after{background:var(--accent);box-shadow:0 0 0 2px #d9763a2b}
.checklist-column-resizer:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.checklist-expiry-cell{display:block;min-width:0;color:var(--muted);font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.checklist-replacement-field{display:flex;min-width:0;align-items:center;justify-content:center;align-self:stretch;cursor:pointer}
.checklist-replacement-field input{width:16px;height:16px;margin:0;accent-color:var(--accent);cursor:pointer}
.checklist-replacement-label{display:none}
.checklist-replacement-field.is-saving{opacity:.55}
.checklist-replacement-field.has-save-error input{outline:2px solid var(--danger);outline-offset:2px}
.checklist-expiry-cell strong{display:block;color:#53656a;font-size:10px;font-weight:700}
.checklist-expiry-cell button{padding:0;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer}
.checklist-expiry-cell button:hover{text-decoration:underline}
.checklist-note-display{min-width:0;overflow-wrap:anywhere;color:var(--muted);font-size:11px;line-height:1.4}
.checklist-menu-action{display:flex;width:100%;min-height:38px;align-items:center;gap:9px;padding:8px 9px;border:0;border-radius:8px;background:#f6f8f8;color:var(--text);font-size:12px;font-weight:650;text-align:left;cursor:pointer}
.checklist-menu-action:hover{background:#edf5f2;color:var(--accent-dark)}
.checklist-menu-action i{width:16px;color:var(--accent-dark);font-size:15px;text-align:center}
.checklist-file-pick input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
.checklist-file-pick{position:relative}
.checklist-file-form{display:grid;gap:6px}
.checklist-file-form .checklist-file-names{padding:0 9px}



.checklist-note-dialog{width:min(640px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:22px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--text);box-shadow:0 22px 75px rgba(20,28,33,.24)}
.checklist-note-dialog::backdrop{background:rgba(24,30,35,.48);backdrop-filter:blur(2px)}
.checklist-note-dialog-form{display:grid;gap:8px}
.checklist-note-dialog-form>label{color:var(--muted);font-size:12px;font-weight:700}
.checklist-note-dialog-form textarea{width:100%;min-height:100px;max-height:55vh;overflow-y:auto;resize:none;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-size:14px;line-height:1.5}
.checklist-note-dialog-form textarea:focus,.checklist-dialog-date:focus{outline:2px solid color-mix(in srgb,var(--accent) 28%,transparent);border-color:var(--accent)}
.checklist-note-dialog-form .checklist-add-actions{justify-content:flex-end}
.checklist-note-cancel{min-height:38px;padding:8px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:13px;font-weight:650;cursor:pointer}
.checklist-dialog-date{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text);font:inherit}
@media(max-width:760px){
    .checklist-table-head{display:none}
    .checklist-row{grid-template-columns:30px minmax(0,1fr);gap:8px 10px}
    .checklist-note-display{grid-column:2;grid-row:2;padding:5px 0 0}
    .checklist-expiry-cell{grid-column:2;grid-row:3}
    .checklist-replacement-field{grid-column:2;grid-row:4;justify-self:start;justify-content:flex-start;gap:8px}
    .checklist-replacement-label{display:inline;color:var(--muted);font-size:11px;font-weight:650}
    .checklist-row-actions{grid-column:2;grid-row:5;justify-self:start}
    .checklist-row-menu-panel{left:0;right:auto;width:min(420px,calc(100vw - 58px))}
    .checklist-row>*+*{border-left:0;padding-left:0}
    .checklist-column-resizer{display:none}
}

.checklist-add-dialog{width:min(860px,calc(100vw - 32px))}
.checklist-add-form>label>span{display:flex;align-items:baseline;gap:7px}
.checklist-add-optional{color:#89969b;font-size:10px;font-weight:500}
.checklist-add-form textarea{width:100%;min-height:44px;max-height:45vh;overflow-y:hidden;resize:none;overflow-wrap:anywhere;white-space:pre-wrap;word-break:break-word;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-size:14px;line-height:1.5}
.checklist-add-form textarea:focus{outline:2px solid color-mix(in srgb,var(--accent) 28%,transparent);border-color:var(--accent)}
.checklist-add-form select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-size:14px}
.checklist-add-form select:focus{outline:2px solid color-mix(in srgb,var(--accent) 28%,transparent);border-color:var(--accent)}
.checklist-add-custom-fields{display:grid;gap:14px}
.checklist-add-custom-fields>label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:700}
.checklist-add-custom-fields[hidden],.checklist-add-form>label[hidden]{display:none}
.checklist-template-preview{max-height:32vh;overflow:auto;padding:12px 14px;border:1px solid #dce7e3;border-radius:10px;background:#f7faf8;color:var(--text);font-size:12px;line-height:1.5}
.checklist-template-preview[hidden]{display:none}
.checklist-template-preview strong{display:block;margin-bottom:7px;color:var(--accent-dark)}
.checklist-template-preview ol{margin:0;padding-left:22px}
.checklist-template-preview li+li{margin-top:3px}
.checklist-add-actions>button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:560px){.checklist-add-dialog{width:calc(100vw - 24px);padding:18px}}

.checklist-note-display[data-note-empty="true"]{text-align:center}
@media(min-width:761px) and (max-width:900px){.checklist-table-head,.checklist-row{grid-template-columns:var(--checklist-grid-columns,32px minmax(170px,1.4fr) minmax(100px,.75fr) minmax(100px,.8fr) minmax(100px,.45fr) 50px);gap:8px}}
.checklist-row{border-bottom:2px solid #cbd6d9;box-shadow:inset 0 -1px 0 rgba(37,55,60,.045)}
.checklist-row[data-status="received"]{border-bottom-color:#bfd4c5}
.checklist-row:last-child{border-bottom:0;box-shadow:none}
.checklist-row.is-removing{height:0!important;min-height:0!important;grid-template-rows:minmax(0,0fr);gap:0!important;overflow:hidden!important;padding-top:0!important;padding-bottom:0!important;border-bottom-width:0!important;opacity:0}
.checklist-row.is-removing>*{min-height:0!important;overflow:hidden!important;padding-block:0!important;border-width:0!important}
.checklist-row{transition:height .3s ease,opacity .24s ease,padding .3s ease,border-width .3s ease}
.checklist-note-display[data-note-empty="false"]{text-align:left}
.checklist-add-trigger[hidden]{display:none!important}
[data-checklist-filters][hidden]{display:none!important}
.checklist-note-display[data-note-empty="true"]{text-align:center}
.checklist-row-menu-panel{display:flex;flex-direction:column;align-items:stretch;width:max-content;min-width:min(150px,calc(100vw - 48px));max-width:min(280px,calc(100vw - 48px))}
.checklist-row-menu-panel .checklist-menu-action{width:auto;min-width:0;white-space:nowrap}
.handover-act-card{position:relative}
.handover-act-menu{position:relative;flex:0 0 auto}
.handover-act-menu>summary{display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--accent-dark);cursor:pointer;list-style:none}
.handover-act-menu>summary::-webkit-details-marker{display:none}
.handover-act-menu>summary i{font-size:18px}
.handover-act-menu>summary:hover,.handover-act-menu[open]>summary{background:#f3f7f6}
.handover-act-menu-panel{position:absolute;top:calc(100% + 5px);right:0;z-index:10;display:grid;gap:3px;width:max-content;min-width:150px;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 34px #18202726}
.handover-act-menu-panel a,.handover-act-menu-panel button{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:12px;font-weight:650;text-align:left;text-decoration:none;white-space:nowrap;cursor:pointer}
.handover-act-menu-panel a:hover{background:#f2f7f5;color:var(--accent-dark)}
.handover-act-menu-panel form{margin:0;border-top:1px solid #edf0f1}
.handover-act-menu-panel button{color:var(--danger)}
.handover-act-menu-panel button:hover{background:#fff3f1}
.handover-act-menu-panel i{width:16px;text-align:center}
.ird-review-dialog{width:min(1500px,calc(100vw - 32px));height:min(900px,calc(100dvh - 32px));max-width:none;max-height:none;padding:20px;border:1px solid var(--line);border-radius:16px;background:#f7f8f8;color:var(--text);box-shadow:0 24px 80px #0005}.ird-review-dialog::backdrop{background:#101619c9;backdrop-filter:blur(3px)}.ird-review-dialog>header{display:flex;align-items:center;justify-content:space-between;height:48px;margin-bottom:12px}.ird-review-dialog h2{margin:0;font-size:21px}.ird-review-dialog:has(.ird-review:not([hidden]))>header h2[data-ird-heading]{display:none}.ird-upload-stage{display:grid;max-width:680px;gap:18px;margin:8vh auto}.ird-upload-stage>p{color:var(--muted)}.ird-dropzone{display:grid;min-height:250px;align-content:center;justify-items:center;gap:12px;border:2px dashed #b5c9c6;border-radius:16px;background:#fff;color:var(--accent-dark);cursor:pointer;text-align:center}.ird-dropzone.is-dragging{border-color:var(--accent);background:#eff9f6}.ird-dropzone input{position:absolute;width:1px;height:1px;opacity:0}.ird-dropzone i{font-size:42px}.ird-dropzone strong{font-size:16px}.ird-dropzone span{color:var(--muted);font-size:13px}.ird-upload-stage>button,.ird-actions button{min-height:42px;border:0;border-radius:9px;padding:10px 16px;background:var(--accent);color:#fff;font-weight:700;cursor:pointer}.ird-upload-stage>button:disabled{opacity:.5;cursor:not-allowed}.ird-loading{display:grid;height:75%;align-content:center;justify-items:center;gap:14px;color:var(--muted)}.ird-loading strong{color:var(--text)}.ird-loading .spinner{width:38px;height:38px;border:4px solid #d6e5e2;border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}.ird-review{--ird-split:25%;display:grid;grid-template-columns:minmax(0,var(--ird-split)) 10px minmax(300px,1fr);height:calc(100% - 62px);min-height:0;border:1px solid #dfe4e6;border-radius:12px;overflow:hidden;background:#fff}.ird-preview{grid-column:1;display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;overflow:hidden;background:#41474b}.ird-preview iframe{grid-row:2;width:100%;height:100%;min-height:0;border:0}.ird-document-strip{display:flex;min-width:0;gap:6px;overflow-x:auto;padding:8px;background:#f7f8f8;border-bottom:1px solid var(--line);scrollbar-width:thin}.ird-document-tab{display:grid;min-width:130px;max-width:230px;gap:2px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);text-align:left;cursor:pointer}.ird-document-tab>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:700}.ird-document-tab>small{color:var(--muted);font-size:9px}.ird-document-tab.is-active{border-color:#79b7aa;background:#edf7f4;color:var(--accent-dark)}.ird-document-tab.is-saved>small{color:#31704f}.ird-splitter{grid-column:2;grid-row:1;z-index:3;display:grid;place-items:center;min-width:14px;margin-left:-2px;margin-right:-2px;outline:none;background:#d8dfdf;cursor:col-resize;touch-action:none;user-select:none}.ird-splitter::before{content:"";width:4px;height:56px;border-radius:99px;background:#718287;transition:background .15s,transform .15s}.ird-splitter:hover,.ird-splitter.is-dragging{background:#c1d8d3}.ird-splitter:hover::before,.ird-splitter:focus-visible::before,.ird-splitter.is-dragging::before{background:var(--accent);transform:scaleX(1.45)}.ird-splitter:focus-visible{box-shadow:inset 0 0 0 2px var(--accent)}.ird-fields{grid-column:3;grid-row:1;min-width:0;overflow:auto;padding:20px 22px}.ird-review-caption{margin:0 0 15px;color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.ird-fields>label{display:grid;gap:6px;margin-bottom:12px;color:var(--muted);font-size:12px;font-weight:700}.ird-fields input:not([type=checkbox]),.ird-fields textarea{width:100%;min-height:40px;border:1px solid var(--line);border-radius:8px;padding:9px 10px;background:white;color:var(--text);font:inherit;font-size:13px}.ird-fields textarea{resize:vertical}.ird-fields select[data-batch-checklist]{width:100%;min-height:42px;height:auto;max-height:190px;overflow-y:auto;white-space:normal;border:1px solid var(--line);border-radius:8px;padding:6px 9px;background:#fff;color:var(--text);font:inherit;font-size:13px}.ird-fields select[data-batch-checklist] option{white-space:normal;padding:5px 3px}.ird-fields .ird-no-expiry{display:flex;align-items:center;gap:8px}.ird-no-expiry input{accent-color:var(--accent)}.ird-actions{display:flex;justify-content:space-between;gap:10px;margin-top:18px}.ird-actions button:first-child{border:1px solid var(--line);background:#fff;color:var(--text)}.ird-error{margin:10px 0;padding:11px;border-radius:8px;background:#fff0ee;color:var(--danger)}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:760px){.ird-review-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:12px}.ird-review{grid-template-columns:1fr;height:calc(100% - 62px);grid-template-rows:minmax(220px,42%) 10px minmax(250px,1fr)}.ird-preview{grid-column:1;grid-row:1}.ird-splitter{grid-column:1;grid-row:2;cursor:row-resize}.ird-fields{grid-column:1;grid-row:3;padding:14px}}
.ird-review-dialog [hidden],.ird-review-dialog[hidden]{display:none!important}
.ird-files-panel>header .ird-file-add{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:30px;margin-left:auto;padding:4px 10px;border:1px solid var(--accent);border-radius:7px;background:var(--accent);color:#fff;font-size:12px;font-weight:700;line-height:1.2}
.ird-files-panel>header .ird-file-add:hover{border-color:var(--accent-dark);background:var(--accent-dark);color:#fff}
.ird-files-panel>header .ird-file-add:focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 35%,transparent);outline-offset:2px}
.ird-archived-document-sources{display:none!important}
.ird-autosave-status{min-height:16px;margin:8px 0 0;color:var(--muted);font-size:11px;font-weight:600}
.ird-save-toast{position:fixed;z-index:11000;top:18px;left:50%;right:auto;display:flex;align-items:center;gap:9px;max-width:min(420px,calc(100vw - 36px));padding:10px 16px;border:1px solid #b8dbc3;border-radius:10px;background:#eff8f1;color:#28623d;box-shadow:0 8px 28px rgba(26,34,40,.18);font-size:13px;font-weight:700;opacity:0;transform:translate(-50%,-10px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.ird-save-toast.is-visible{opacity:1;transform:translate(-50%,0)}.ird-save-toast>i{color:#24834b;font-size:16px}.ird-save-toast.is-error{border-color:#efc4bd;background:#fff2ef;color:#9c3528}.ird-save-toast.is-error>i{color:#c44536}@media(max-width:600px){.ird-save-toast{top:12px;left:50%;right:auto;max-width:calc(100vw - 24px)}}
.checklist-menu-action-danger{width:100%;border:0;background:#fff5f4;color:var(--danger);text-align:left;cursor:pointer}.checklist-menu-action-danger:hover{background:#ffe9e6}
.ird-number-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px;margin-bottom:12px}.ird-number-date-fields>label{display:grid;min-width:0;gap:6px;margin:0;color:var(--muted);font-size:12px;font-weight:700}.ird-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:10px}.ird-date-fields:has(.ird-no-expiry input:checked){grid-template-columns:minmax(130px,.85fr) minmax(0,1.15fr)}.ird-date-fields>label{display:grid;min-width:0;gap:6px;margin-bottom:12px;color:var(--muted);font-size:12px;font-weight:700}.ird-date-fields>label input[type=date]{min-width:0}.ird-date-fields>.ird-no-expiry{display:flex;align-items:center;gap:7px;min-height:40px}.ird-date-fields>.ird-no-expiry input{flex:0 0 auto;accent-color:var(--accent)}.ird-fields textarea[name="issuer"]{resize:none;overflow-y:hidden}@media(max-width:900px){.ird-date-fields,.ird-date-fields:has(.ird-no-expiry input:checked){grid-template-columns:repeat(2,minmax(0,1fr))}.ird-date-fields>label{margin-bottom:4px}.ird-date-fields>.ird-no-expiry{min-height:34px}}@media(max-width:480px){.ird-number-date-fields{grid-template-columns:1fr}}
.checklist-document-link{display:inline;padding:0;border:0;background:none;text-align:left;cursor:pointer}.ird-review.is-preview-only{grid-template-columns:minmax(0,1fr)}.ird-review.is-preview-only .ird-preview{grid-column:1}.ird-review.is-preview-only .ird-splitter{display:none}
.ird-review.is-preview-only{grid-template-rows:minmax(0,1fr)}
.checklist-multiple-documents{display:grid;max-width:430px;gap:6px;margin-top:7px}
.ird-review:not(.is-preview-only){grid-template-columns:minmax(0,var(--ird-split)) 14px minmax(300px,1fr)}
.ird-splitter{position:relative;z-index:3;display:grid;place-items:center;outline:none;background:#d8dfdf;cursor:col-resize;touch-action:none;user-select:none}
.ird-splitter::before{content:"";width:4px;height:56px;border-radius:99px;background:#718287;transition:background .15s,transform .15s}
.ird-splitter:hover::before,.ird-splitter:focus-visible::before,.ird-splitter.is-dragging::before{background:var(--accent);transform:scaleX(1.45)}
.ird-splitter:focus-visible{box-shadow:inset 0 0 0 2px var(--accent)}
@media(max-width:760px){.ird-review:not(.is-preview-only){grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(220px,var(--ird-split-vertical,42%)) 14px minmax(250px,1fr)}.ird-review:not(.is-preview-only) .ird-preview{grid-column:1;grid-row:1}.ird-review:not(.is-preview-only) .ird-splitter{grid-column:1;grid-row:2;cursor:row-resize;margin:-2px 0}.ird-review:not(.is-preview-only) .ird-fields{grid-column:1;grid-row:3}.ird-splitter::before{width:48px;height:4px}}
.checklist-linked-document-card.checklist-multiple-card{max-width:430px;padding:6px 9px}
.checklist-letter-card .checklist-linked-document-meta{gap:8px}
.checklist-letter-card .checklist-linked-document-meta strong{color:#315d40}
.checklist-multi-upload{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:5px 9px;border:1px solid #dce8df;border-radius:8px;background:#fff;color:#315d40;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.checklist-name .checklist-multi-upload{justify-self:start;white-space:nowrap;flex:0 0 auto;width:max-content;max-width:100%;margin-top:2px}
.checklist-multi-upload:hover{border-color:#a8cbb3;background:#f0f8f2}
.checklist-geodesy-trigger{display:grid;width:100%;min-width:0;gap:5px;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.checklist-geodesy-trigger:hover strong{text-decoration:underline;text-underline-offset:2px}
.checklist-geodesy-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:3px}
.checklist-geodesy-trigger small{color:var(--muted);font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.checklist-geodesy-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.checklist-geodesy-actions [data-geodesy-upload]{margin-right:auto}
.checklist.is-editing-template [data-multiple-document-upload]{display:none}

/* Template library page */
.template-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}
.template-page-heading>div{min-width:0}
.template-page-heading .subheading{font-size:15px}
.template-create-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:0;border-radius:9px;background:var(--accent);color:#fff;font-weight:750;box-shadow:0 3px 8px rgba(171,83,31,.15);white-space:nowrap}
.template-create-trigger:hover{background:var(--accent-dark);transform:translateY(-1px)}
.template-list{display:grid;gap:18px}
.template-card{min-width:0;padding:22px 24px 24px;overflow:visible}
.template-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.template-card-toggle{display:flex;min-width:0;flex:1;align-items:flex-start;justify-content:space-between;gap:16px;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.template-card-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:5px;border-radius:4px}
.template-card-chevron{flex:0 0 auto;margin-top:5px;color:var(--muted);transition:transform .18s ease,color .18s ease}
.template-card.is-expanded .template-card-chevron{color:var(--accent-dark);transform:rotate(180deg)}
.template-card-count{display:inline-block;margin-top:7px;color:var(--muted);font-size:11px;font-weight:650}
.template-card-content[hidden]{display:none!important}
.template-card-content{padding-top:3px}
.template-card-identity{min-width:0}
.template-card-identity h2{margin:0;color:var(--text);font-size:21px;letter-spacing:-.025em}
.template-card-identity>p{margin:5px 0 0;color:var(--muted);font-size:14px}
.template-card-title{margin:22px 0 10px;padding-top:17px;border-top:1px solid var(--line)}
.template-card-title h3{margin:0;font-size:16px;letter-spacing:-.015em}
.template-card-title p{margin:3px 0 0;color:var(--muted);font-size:12px}
.template-menu{position:relative;flex:0 0 auto}
.template-menu>summary{display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);cursor:pointer;list-style:none}
.template-menu>summary::-webkit-details-marker{display:none}
.template-menu>summary:hover,.template-menu[open]>summary{border-color:#cbd9d8;background:#f7faf9;color:var(--accent-dark)}
.template-menu>summary i{font-size:18px}
.template-menu-panel{position:absolute;z-index:8;top:calc(100% + 6px);right:0;display:grid;width:210px;gap:4px;padding:7px;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 12px 32px rgba(25,41,45,.16)}
.template-menu-panel form{margin:0}
.template-menu-panel button{display:flex;width:100%;align-items:center;gap:9px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);text-align:left;font-size:13px;font-weight:650}
.template-menu-panel button:hover{background:#f2f6f5}
.template-menu-panel button i{width:16px;color:var(--muted)}
.template-menu-panel button.is-danger{color:var(--danger)}
.template-menu-panel button.is-danger i{color:var(--danger)}
.template-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff}
.template-items-table-head,.template-items-readonly li{display:grid;grid-template-columns:52px minmax(280px,1.45fr) minmax(220px,.8fr);gap:14px;align-items:start}
.template-items-table-head{position:sticky;top:0;z-index:1;padding:10px 14px;border-bottom:1px solid #dfe6e7;background:#f5f8f8;color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.035em;text-transform:uppercase}
.template-items-readonly{min-width:680px;margin:0;padding:0;list-style:none}
.template-items-readonly li{padding:9px 14px;border-bottom:1px solid #edf1f2;color:var(--text);font-size:13px;line-height:1.4}
.template-items-readonly li:last-child{border-bottom:0}
.template-items-readonly li:nth-child(even){background:#fbfcfc}
.template-item-number{color:#87959a;font-size:12px;font-variant-numeric:tabular-nums}
.template-item-title{font-weight:650}
.template-item-download{display:flex;width:max-content;max-width:100%;align-items:center;gap:5px;margin-top:4px;color:var(--accent-dark);font-size:11px;font-weight:700;text-decoration:none}
.template-item-download:hover{color:var(--accent);text-decoration:underline}
.template-item-description{color:var(--muted);font-size:12px}
.template-create-dialog{width:min(540px,calc(100vw - 28px));padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--text);box-shadow:0 24px 80px #0004}
.template-create-dialog::backdrop{background:#101619a8;backdrop-filter:blur(3px)}
.template-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.template-dialog-heading h2{margin:0;font-size:22px;letter-spacing:-.025em}
.template-dialog-close{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted)}
.template-create-form{display:grid;gap:15px}
.template-create-form>label,.template-edit-form label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:700}
.template-create-form>label span{font-weight:500}
.template-create-form input,.template-create-form textarea,.template-edit-form input,.template-item-edit input,.add-item input{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#fff;color:var(--text);font:inherit;font-size:13px;outline:none}
.template-create-form input:focus,.template-create-form textarea:focus,.template-edit-form input:focus,.template-item-edit input:focus,.add-item input:focus{border-color:#78bcb2;box-shadow:0 0 0 3px rgba(8,126,112,.09)}
.template-create-form textarea{resize:vertical}
.template-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:5px}
.template-dialog-actions>button[type=submit]{min-height:40px;padding:9px 14px;border:0;border-radius:9px;background:var(--accent);color:#fff;font-weight:700}
.template-edit-form{display:grid;gap:10px;margin-top:12px}
.template-edit-form[hidden],.template-edit-list[hidden],.add-item[hidden]{display:none!important}
.template-items{display:grid;gap:8px}
.template-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.template-item-edit{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.7fr) 90px;gap:8px;align-items:center}
.template-item .text-danger{padding:8px;color:var(--danger)}
.template-save-status{color:var(--muted);font-size:11px}
.template-edit-list{margin-top:12px}
.add-item{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,.7fr) auto;gap:8px;margin-top:12px}
@media(max-width:700px){.template-page-heading{align-items:flex-start;flex-direction:column}.template-card{padding:17px 14px}.template-items-table-head,.template-items-readonly li{grid-template-columns:34px minmax(220px,1fr) minmax(180px,.8fr);gap:9px;padding-left:10px;padding-right:10px}.template-item-edit,.add-item{grid-template-columns:1fr}.template-item{grid-template-columns:minmax(0,1fr) auto}}

/* Keep checklist column boundaries aligned and continuous across every row. */
.checklist-table-head,.checklist-row{column-gap:0;}
.checklist.panel{max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;}
.checklist-table-head{align-items:stretch;}
.checklist-row{align-items:stretch;}
.checklist-table-head>span{align-self:stretch;}
.checklist-table-head>span+span{box-sizing:border-box;}
.checklist-row>*{align-self:stretch;}
.checklist-row>*+*{box-sizing:border-box;}
.checklist-name{align-content:start;}
.checklist-number,.checklist-status-label,.checklist-row-actions{align-self:stretch;display:flex;align-items:center;}
.checklist-note-display,.checklist-expiry-cell{align-self:stretch;display:grid;align-content:center;}
.checklist-number,.checklist-status-label{justify-content:center;}
.checklist-row-actions{justify-self:stretch;width:100%;justify-content:center;}
.checklist-row>*:last-child{padding:8px;}
.checklist-table-head>span:last-child{padding:8px;}
.checklist-row-actions{gap:1px;flex-wrap:nowrap;}
.checklist-row-actions>*{flex:0 0 24px;width:24px;}
.checklist.is-editing-template .checklist-upload-trigger{display:none!important;}
@media(min-width:761px){.checklist-table-head,.checklist-row{width:max(100%,calc(var(--checklist-grid-width,0px) + 26px));}.checklist-table-head{padding-left:13px;padding-right:13px;}}
.checklist-table-head>span{overflow-wrap:anywhere;word-break:break-all;white-space:normal;}
.checklist-row-actions,.checklist-row-actions>*{min-width:0;max-width:100%;}
.checklist-row-actions button{max-width:100%;overflow-wrap:anywhere;white-space:normal;}
.checklist-row{border-left:0!important;}
.checklist-row::before{position:absolute;inset:0 auto 0 0;width:4px;content:"";background:transparent;pointer-events:none;}
.checklist-row[data-status="received"]::before{background:#79b992;}
.checklist-row[data-expiry-band="soon"]:not([data-replacement-required="true"])::before{background:#e7a342;}
.checklist-row[data-replacement-required="true"]::before,.checklist-row[data-expiry-band="expired"]::before{background:#d75b50;}
.checklist-properties-trigger{color:var(--accent-dark);}
.checklist-row-actions [data-checklist-properties-open][hidden]{display:none!important;}
.checklist-row-actions [hidden]{display:none!important;}
.checklist-properties-date-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.checklist-properties-date-row>label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:700;}
.checklist-properties-date-row select{appearance:auto;}
.checklist-properties-actions{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;}
.checklist-properties-delete{min-height:38px;padding:8px 12px;border:0;border-radius:9px;background:#fff1ef;color:#b72f25;font-size:13px;font-weight:700;cursor:pointer;}
.checklist-properties-delete:hover{background:#ffe5e1;}
.checklist-properties-actions>[data-checklist-properties-save]{min-height:38px;padding:8px 14px;border:0;border-radius:9px;background:var(--accent);color:#fff;font-size:13px;font-weight:700;cursor:pointer;}
.checklist-properties-actions>[data-checklist-properties-save]:disabled{opacity:.65;}
@media(max-width:560px){.checklist-properties-date-row{grid-template-columns:1fr;}.checklist-properties-actions{grid-template-columns:1fr 1fr;}.checklist-properties-actions>span{display:none;}.checklist-properties-delete{grid-column:1/-1;}}
.checklist-column-resizer{right:-7px;width:14px;touch-action:none;user-select:none;}
.checklist-table-head>span{height:auto;min-height:30px;align-self:stretch;display:flex;align-items:center;justify-content:center;overflow:hidden}
.checklist-header-label{width:100%;text-align:center;display:-webkit-box;max-height:2.4em;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;word-break:break-all;white-space:normal;line-height:1.2;text-overflow:ellipsis}
.app-main.page{min-height:100vh;display:flex;flex-direction:column}
@media(max-width:760px){.app-main.page,.app-main.page:has(.project-workspace){min-height:calc(100vh - 70px)}}
.checklist-row .checklist-status-label{position:relative;align-self:stretch;justify-self:stretch;display:grid;width:100%;height:100%;min-height:40px;place-items:center;padding:0;border-radius:0;background:transparent;font-size:16px;cursor:help}
.checklist-status-label>i{display:grid;width:40px;height:40px;place-items:center;border-radius:12px}
.checklist-status-label::before{display:none}
.checklist-status-label.status-received>i{background:#e4f3e9;color:#26834d}
.checklist-status-label.status-missing>i{background:#f1f3f4;color:#718087}
.checklist-status-label.status-not_required>i{background:#f3f0e9;color:#857650}
.checklist-status-label[data-tooltip]::after{position:absolute;z-index:20;left:50%;bottom:calc(100% + 7px);width:max-content;max-width:220px;padding:5px 8px;border-radius:5px;background:#212529;color:#fff;content:attr(data-tooltip);font-size:11px;font-weight:600;line-height:1.3;white-space:normal;opacity:0;pointer-events:none;transform:translate(-50%,3px);transition:opacity .12s,transform .12s}
.checklist-status-label[data-tooltip]:hover::after,.checklist-status-label[data-tooltip]:focus-visible::after{opacity:1;transform:translate(-50%,0)}
.checklist-status-label:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.checklist-column-resizer::after{left:6px;}

/* The outer divider remains slim; the PDF thumbnail divider is independent. */
.ird-review:not(.is-preview-only){grid-template-columns:minmax(0,var(--ird-split)) 10px minmax(300px,1fr);}
.ird-splitter{min-width:10px;width:10px;margin:0;background:transparent;}
.ird-splitter::before{width:2px;height:42px;}
.ird-splitter:hover,.ird-splitter.is-dragging{background:transparent;}
.ird-splitter:hover::before,.ird-splitter:focus-visible::before,.ird-splitter.is-dragging::before{transform:scaleX(1.25);}
.pdf-viewer-body{width:100%;height:100%;min-width:0;overflow:hidden;background:#25282a;color:#f2f4f5;font:13px/1.4 Arial,sans-serif;}
.pdf-viewer{display:grid;width:100%;height:100dvh;grid-template-rows:48px minmax(0,1fr);overflow:hidden;background:#25282a;}
.pdf-viewer-toolbar{display:flex;align-items:center;gap:5px;padding:0 10px;background:#363a3d;border-bottom:1px solid #4a4f52;}
.pdf-viewer-toolbar button,.pdf-viewer-toolbar>a{display:inline-flex;min-width:30px;height:30px;align-items:center;justify-content:center;gap:6px;padding:0 7px;border:0;border-radius:4px;background:transparent;color:#eceff0;text-decoration:none;cursor:pointer;}
.pdf-viewer-toolbar button:hover,.pdf-viewer-toolbar>a:hover{background:#4a4e51;}
.pdf-viewer-toolbar i{font-size:15px;}
.pdf-page-counter{display:flex;align-items:center;gap:6px;color:#f1f2f3;font-size:12px;}
.pdf-page-counter input{width:38px;height:24px;padding:2px 4px;border:1px solid #202224;border-radius:2px;background:#17191a;color:#fff;text-align:center;font:inherit;}
.pdf-page-counter input::-webkit-inner-spin-button,.pdf-page-counter input::-webkit-outer-spin-button{appearance:none;margin:0;}
.pdf-toolbar-divider{width:1px;height:24px;margin:0 5px;background:#555a5d;}
.pdf-zoom-value{min-width:42px;text-align:center;font-size:11px;}
.pdf-viewer-layout{--pdf-thumbnails-width:12.5%;display:grid;grid-template-columns:minmax(90px,var(--pdf-thumbnails-width)) 8px minmax(0,1fr);min-width:0;min-height:0;overflow:hidden;}
.pdf-thumbnails{grid-column:1;min-width:0;min-height:0;overflow:auto;padding:14px 9px;background:#25282a;}
.pdf-thumbnail{display:grid;width:min(100%,145px);justify-items:center;gap:6px;margin:0 auto 16px;padding:4px 4px 6px;border:2px solid transparent;border-radius:2px;background:transparent;color:#f5f5f5;cursor:pointer;font:inherit;font-size:12px;}
.pdf-thumbnail:hover{background:#363a3d;}
.pdf-thumbnail.is-active{border-color:#78aefb;background:#303a47;}
.pdf-thumbnail img{display:block;width:100%;height:auto;background:white;box-shadow:0 1px 4px #0007;}
.pdf-viewer-splitter{position:relative;z-index:2;grid-column:2;grid-row:1;display:grid;place-items:center;background:#414649;cursor:col-resize;touch-action:none;user-select:none;}
.pdf-viewer-splitter::before{width:2px;height:48px;border-radius:2px;background:#81898c;content:"";transition:background .15s,transform .15s;}
.pdf-viewer-splitter:hover,.pdf-viewer-splitter.is-dragging{background:#51595c;}
.pdf-viewer-splitter:hover::before,.pdf-viewer-splitter:focus-visible::before,.pdf-viewer-splitter.is-dragging::before{background:#b5c0c2;transform:scaleX(1.5);}
.pdf-viewer-splitter:focus-visible{outline:2px solid #78aefb;outline-offset:-2px;}
.pdf-page-viewport{grid-column:3;grid-row:1;min-width:0;min-height:0;overflow:auto;padding:16px;background:#25282a;text-align:center;}
.pdf-page-stage{position:relative;width:100%;max-width:1200px;margin:0 auto 16px}.pdf-page-image{display:block;width:100%;height:auto;max-width:100%;margin:0;background:#fff;box-shadow:0 2px 8px #0008}.pdf-highlight-layer{position:absolute;inset:0;pointer-events:none}.pdf-text-highlight{position:absolute;display:block;border:1px solid rgba(199,151,0,.32);border-radius:2px;background:rgba(255,220,70,.38);mix-blend-mode:multiply;}
@media(max-width:600px){.pdf-viewer-toolbar{gap:2px;padding:0 5px}.pdf-viewer-toolbar button,.pdf-viewer-toolbar>a{min-width:27px;padding:0 5px}.pdf-viewer-toolbar [data-fit-page] span{display:none}.pdf-viewer-layout{grid-template-columns:minmax(74px,var(--pdf-thumbnails-width)) 8px minmax(0,1fr)}.pdf-thumbnails{padding:8px 4px}.pdf-page-viewport{padding:8px}}
@media(max-width:760px){.ird-review:not(.is-preview-only){grid-template-rows:minmax(220px,var(--ird-split-vertical,42%)) 10px minmax(250px,1fr)}.ird-review:not(.is-preview-only) .ird-splitter{width:10px;min-width:10px;margin:0}}

/* Replacement checkbox controls row color and takes precedence over expiry. */
.checklist-row[data-replacement-required="true"],
.checklist-row[data-replacement-required="true"]:hover{background:#fff0ee!important;}
.checklist-row[data-replacement-required="true"]::before{background:#d75b50;}
.checklist-row[data-replacement-required="false"][data-has-attachment="true"],
.checklist-row[data-replacement-required="false"][data-has-attachment="true"]:hover{background:#f1f8f3!important;}
.checklist-row[data-replacement-required="false"][data-has-attachment="true"]::before{background:#79b992;}
.checklist-row{transition:background-color .18s ease;}
/* Plain-text request output; letterhead and formatting are handled by the user. */
.report-generation-dialog{width:min(1040px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;}
.report-generation-dialog .document-generation{padding:8px 2px 2px;}
.request-text-label{display:block;margin:8px 0 6px;color:var(--muted);font-size:12px;font-weight:700;}
.request-text-output{display:block;width:100%;min-height:320px;max-height:58vh;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:13px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;}
.request-text-output:focus{outline:2px solid color-mix(in srgb,var(--accent) 28%,transparent);border-color:var(--accent);}
.request-text-actions{justify-content:flex-start;}
.request-text-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;}
.request-text-actions [role=status]{color:var(--accent-dark);font-size:12px;font-weight:650;}
@media(max-width:700px){.report-generation-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px;}.report-generation-dialog .report-generation-close{position:sticky;top:0;float:right;margin:0 -6px -34px 0;}.request-text-output{min-height:260px;max-height:55vh;}}
.correspondence-table-wrap{--correspondence-grid-columns: minmax(82px,.7fr) minmax(200px,1.1fr) minmax(130px,1.1fr) minmax(130px,1.1fr) minmax(140px,1.25fr) minmax(160px,1.35fr) minmax(42px,.32fr);overflow:auto;max-width:100%;margin-top:14px;padding:0;border:1px solid var(--line);border-radius:14px;background:#fff}.correspondence-table-head,.correspondence-table-row{display:grid;grid-template-columns:var(--correspondence-grid-columns);width:100%;min-width:900px;align-items:stretch;gap:0;margin:0;padding:0}.correspondence-table-head{position:sticky;top:0;z-index:2;background:#f7f9f9;color:var(--muted);font-size:11px;font-weight:750;border-bottom:1px solid var(--line)}.correspondence-table-head>[role=columnheader]{position:relative;display:flex;align-items:center;min-height:36px;padding:8px 12px;border-right:1px solid var(--line);white-space:nowrap}.correspondence-table-head>[role=columnheader]:last-child{border-right:0}.correspondence-column-resizer{position:absolute;z-index:3;right:-5px;top:0;width:10px;height:100%;padding:0;border:0;background:transparent;cursor:col-resize;touch-action:none}.correspondence-column-resizer:after{content:"";position:absolute;top:5px;bottom:5px;left:4px;width:2px;border-radius:2px;background:#aebbc0;opacity:.7}.correspondence-column-resizer:hover:after,.correspondence-column-resizer:focus-visible:after,.correspondence-column-resizer.is-dragging:after{background:var(--accent);opacity:1}.correspondence-table-row{min-width:max-content;min-height:50px;border-bottom:1px solid #edf0f1;color:var(--text);font-size:12px;cursor:pointer;transition:background .15s ease}.correspondence-table-row:last-child{border-bottom:0}.correspondence-table-row:hover,.correspondence-table-row:focus-visible{outline:none;background:#f7faf9}.correspondence-table-row>[role=cell]{display:flex;align-items:center;gap:6px;min-width:0;padding:8px 12px;border-right:1px solid #e8edef;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.correspondence-table-row>[role=cell]:last-child{border-right:0}.correspondence-table-number{font-weight:700}.correspondence-table-number small{color:var(--muted);font-weight:500}.correspondence-table-subject,.correspondence-table-summary{display:block!important;align-content:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.correspondence-table-file>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.correspondence-row-actions{justify-content:center;color:var(--accent);font-size:16px}.correspondence-empty{margin-top:14px}.ird-correspondence-direction{display:grid;gap:6px;width:min(100%,360px);margin:0 auto 14px;color:var(--muted);font-size:12px;font-weight:700}.ird-correspondence-direction select{width:100%;min-height:42px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit}.ird-correspondence-fields{overflow-y:auto}.ird-correspondence-fields>.ird-review-caption,.ird-correspondence-fields>label:nth-of-type(3),.ird-correspondence-fields>label:nth-of-type(4),.ird-correspondence-fields>label:nth-of-type(5),.ird-correspondence-fields>label:nth-of-type(6),.ird-correspondence-fields>label:nth-of-type(7),.ird-correspondence-fields>.ird-actions{grid-column:1/-1}.ird-correspondence-fields>label{min-width:0}.ird-correspondence-fields input,.ird-correspondence-fields select,.ird-correspondence-fields textarea{min-width:0;width:100%}.ird-correspondence-fields .ird-actions{display:flex;flex-wrap:wrap;gap:8px}

@media(max-width:760px){.correspondence-table-wrap{margin-inline:-8px;border-radius:10px}.correspondence-table-head,.correspondence-table-row{min-width:900px}.correspondence-table-row>[role=cell]{padding:8px}.ird-correspondence-fields{padding:14px}.ird-correspondence-fields .ird-actions{display:grid;grid-template-columns:1fr}.ird-correspondence-fields .ird-actions button{width:100%}}

@media(min-width:761px){.new-project-form{width:min(960px,calc(100vw - 40px));grid-template-columns:.9fr .95fr 1.35fr 1.1fr 1fr auto}}
@media(max-width:760px){.new-project-form{left:0;right:auto;width:min(600px,calc(100vw - 24px));grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep correspondence rows on the same grid width as the header. */
.correspondence-table-head,.correspondence-table-row{width:100%;min-width:900px}

.correspondence-table-number{flex-direction:column;align-items:flex-start;justify-content:center;gap:2px;white-space:normal;line-height:1.2}
.correspondence-table-number>strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.correspondence-table-number>small{display:block;white-space:nowrap;line-height:1.2}
.correspondence-table-row .correspondence-table-subject,.correspondence-table-row .correspondence-table-summary{display:flex!important;align-items:center;white-space:normal}
.correspondence-table-cell-text{display:-webkit-box;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.25}
.ird-correspondence-fields textarea[name="summary"]{resize:none;overflow-y:hidden}
.correspondence-table-head>[role="columnheader"]{justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.2}
.correspondence-table-number{display:grid!important;grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:center;justify-items:start}
.correspondence-table-number>small{font-size:inherit}
.correspondence-table-number{display:flex!important;flex-direction:column;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:2px;min-width:0;white-space:normal;overflow:hidden;line-height:1.2}
.correspondence-table-number>strong{flex:0 1 auto;min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.correspondence-table-number>small{display:block;flex:0 0 auto;max-width:100%;overflow-wrap:anywhere;white-space:normal;line-height:1.2}
.correspondence-table-head>[role="columnheader"]:last-child{font-size:0}
.ird-correspondence-fields>label:first-of-type{width:max-content;max-width:100%}
.ird-correspondence-fields>label:first-of-type select{width:160px;max-width:100%;min-height:36px;padding:7px 30px 7px 10px;border:1px solid var(--line);border-radius:7px;background-color:#f8f9fa;color:var(--text);font-size:13px}
.ird-correspondence-fields textarea[name="summary"]{height:auto;min-height:calc(1.4em + 20px);max-height:calc(5 * 1.4em + 20px);overflow-y:hidden;resize:none;font-family:inherit;font-size:10pt;font-weight:400;line-height:1.4}
.ird-correspondence-fields>label:nth-of-type(2),.ird-correspondence-fields>label:nth-of-type(3){display:inline-grid;width:calc(50% - 6px);margin-right:8px;vertical-align:top}
.ird-correspondence-fields>label:nth-of-type(3){margin-right:0}

.document-archive-section{margin-top:18px}
.document-archive{border:1px solid #dfe8e1;border-radius:12px;background:#fff;overflow:hidden}
.document-archive>summary{display:flex;align-items:center;gap:9px;padding:13px 16px;color:#345f43;font-weight:650;cursor:pointer;list-style:none}
.document-archive>summary::-webkit-details-marker{display:none}
.document-archive>summary span{margin-left:auto;min-width:24px;padding:2px 7px;border-radius:999px;background:#edf5ef;text-align:center;font-size:12px}
.document-archive-list{border-top:1px solid #e7ede8}
.document-archive-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #edf1ee}
.document-archive-row:last-child{border-bottom:0}
.document-archive-row>button{display:flex;align-items:center;gap:10px;min-width:0;padding:0;border:0;background:none;color:#354b3c;text-align:left;cursor:pointer}
.document-archive-row>button>span{display:grid;gap:3px;min-width:0}
.document-archive-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.document-archive-row small{color:#77837b}
.document-archive-row form{flex:none}
.document-archive-empty{padding:0 16px 12px;color:#77837b}
@media(max-width:600px){.document-archive-row{align-items:flex-start}.document-archive-row .secondary-button{padding:7px 9px;font-size:12px}}
.card-document-archive{margin:12px 0;padding:0 10px;border:1px solid #dfe8e1;border-radius:9px;background:#fbfdfb}
.card-document-archive>summary{display:flex;align-items:center;gap:8px;padding:10px 0;color:#345f43;font-weight:600;font-size:13px;cursor:pointer;list-style:none}
.card-document-archive>summary::-webkit-details-marker{display:none}
.card-document-archive>summary span{margin-left:auto;min-width:22px;padding:2px 6px;border-radius:999px;background:#edf5ef;text-align:center;font-size:12px}
.card-document-archive-list{display:grid;max-height:180px;overflow:auto;border-top:1px solid #e7ede8}
.card-document-archive-list>button{display:flex;align-items:center;gap:8px;padding:9px 2px;border:0;border-bottom:1px solid #edf1ee;background:transparent;color:#354b3c;text-align:left;cursor:pointer}
.card-document-archive-list>button:last-child{border-bottom:0}
.card-document-archive-list>button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-document-archive-list .document-archive-empty{margin:0;padding:9px 2px;font-size:13px}
.document-archive-badge{display:inline-flex!important;align-items:center;justify-content:center;justify-self:start;width:max-content;max-width:100%;min-height:22px;margin-left:5px;padding:2px 8px;border:1px solid #b77916;border-radius:999px;background:#fff0c2;color:#8a5300;font-size:11px;font-weight:750;line-height:1.2;white-space:nowrap;box-shadow:0 0 0 2px #fff8e3}
.document-archive-badge{user-select:none}
.correspondence-attachment-order{max-height:230px;overflow:auto;padding:12px 14px;border:1px solid #dfe8e1;border-radius:10px;background:#fbfdfb}
.correspondence-attachment-order>p{margin:0 0 8px;color:#65756b;font-size:12px}
.correspondence-attachment-order ol{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.correspondence-attachment-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px;border:1px solid #e8ede9;border-radius:7px;background:white}
.correspondence-attachment-name{min-width:0;overflow:hidden;color:#34483a;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.correspondence-attachment-actions{display:flex;flex:none;gap:4px}
.correspondence-attachment-actions button{width:28px;height:28px;padding:0;border:1px solid #dce5de;border-radius:6px;background:#f7faf8;color:#42684f;font-weight:700}
.correspondence-attachment-actions button:disabled{opacity:.35;cursor:default}
.correspondence-attachment-order[hidden]{display:none}

/* Project notebook */
.notebook-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.notebook-heading h1{margin:0;font-size:clamp(26px,3.2vw,36px);line-height:1.16}.notebook-heading p:last-child{margin:6px 0 0;color:var(--muted)}.notebook-new,.notebook-save{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 14px;border:0;border-radius:9px;background:var(--accent);color:#fff;font-size:13px;font-weight:700}.notebook-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,280px);gap:16px;align-items:stretch;height:min(620px,calc(100dvh - 270px));min-height:320px}.notebook-list,.notebook-editor{min-width:0;min-height:0;padding:16px;overflow:hidden}.notebook-list{display:flex;flex-direction:column}.notebook-list h2{flex:0 0 auto;margin:0 0 12px;font-size:15px}.notebook-list [data-notebook-list]{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;scrollbar-gutter:stable}.notebook-list>div{display:grid;gap:5px}.notebook-entry-button{display:grid;gap:3px;width:100%;padding:10px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--text);text-align:left}.notebook-entry-button:hover,.notebook-entry-button.is-active{border-color:#dce5e3;background:#f4f8f7}.notebook-entry-button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.notebook-entry-button small,.notebook-empty{color:var(--muted);font-size:10px}.notebook-editor{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px}.notebook-title-label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:700}.notebook-title-label input{width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;color:var(--text);font-size:14px}.notebook-toolbar{display:flex;gap:4px;padding:5px;border:1px solid var(--line);border-radius:8px;background:#fafbfb}.notebook-toolbar button{min-width:34px;height:32px;border:0;border-radius:6px;background:transparent;color:var(--text)}.notebook-toolbar button:hover{background:#e9f1ef}.notebook-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:8px;background:#fff;outline:none;font-size:14px;line-height:1.6}.notebook-content:empty:before{content:attr(data-placeholder);color:#98a2a5}.notebook-content:focus{border-color:#78bcb2;box-shadow:0 0 0 3px rgba(8,126,112,.08)}.notebook-content blockquote{margin:8px 0;padding:5px 12px;border-left:3px solid var(--accent);color:#59676b}.notebook-actions{display:flex;align-items:center;gap:10px}.notebook-actions [data-notebook-status]{flex:1;color:var(--muted);font-size:11px}.notebook-actions .text-danger{padding:8px}.notebook-save{min-width:110px}
@media(max-width:760px){.notebook-layout{grid-template-columns:1fr;height:auto;min-height:0}.notebook-editor{order:1;height:min(55dvh,520px);min-height:300px}.notebook-list{order:2;height:min(30dvh,240px);min-height:160px}.notebook-heading{align-items:flex-start}.notebook-heading .notebook-new{flex:0 0 auto}.notebook-actions{flex-wrap:wrap}}
.contract-stage{display:block;max-width:180px;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.25;white-space:normal}
@media(min-width:761px){.new-project-form{grid-template-columns:.8fr .75fr 1fr 1.2fr 1.05fr 1fr auto}}

/* Account registration, personal settings and superadministrator access tools. */
.account-page{background:#f4f6f6}.account-app{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}.account-sidebar{position:sticky;top:0;height:100vh;padding:20px 13px;background:#252a30;color:#fff;display:flex;flex-direction:column}.account-sidebar .brand{padding:0 7px 19px;border-bottom:1px solid #3b4147}.account-nav{display:grid;gap:5px;padding-top:20px}.account-nav-user{margin-top:auto;padding-top:12px;border-top:1px solid #3b4147}.account-nav a{display:flex;align-items:center;gap:11px;padding:11px;border-radius:8px;color:#d9dddf;text-decoration:none;font-size:13px;font-weight:650}.account-nav a:hover{background:#363d43;color:#fff}.account-nav i{font-size:17px}.account-main{width:min(1120px,100%);margin:0 auto;padding:48px 34px 22px}.account-card{padding:30px;border:1px solid #e1e6e7;border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(25,35,40,.045)}.account-card h1{margin:0;font-size:clamp(26px,3vw,34px);letter-spacing:-.035em}.account-card h2{margin:0;font-size:18px}.account-intro{max-width:760px;color:var(--muted);margin:8px 0 22px}.auth-card{width:min(560px,100%);margin:6vh auto}.account-form{display:grid;gap:15px}.account-form p{margin:0}.account-form label{display:grid;gap:6px;color:#5f6c70;font-size:12px;font-weight:700}.account-form input:not([type=checkbox]),.account-form input[type=email],.account-form input[type=password],.account-form input[type=text],.account-form input[type=search],.account-form select{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d9e0e1;border-radius:9px;background:#fff;color:#1b292d;font:inherit;font-size:14px}.account-form input:focus,.account-form select:focus{outline:2px solid rgba(216,112,46,.16);border-color:#d97839}.account-primary,.account-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;border:0;border-radius:9px;background:#d97839;color:#fff;font-size:13px;font-weight:750;text-decoration:none}.account-primary:hover{background:#bd5f25}.account-secondary{border:1px solid #dce2e3;background:#fff;color:#3d5055}.account-secondary:hover{background:#f5f7f7}.account-button-link{width:max-content}.account-links{display:flex;flex-wrap:wrap;gap:18px;margin-top:18px}.account-links a,.account-heading a,.directory-list a{color:#b85a24;font-size:13px;font-weight:700}.field-error,.errorlist{color:#b52c25;font-size:12px}.errorlist{margin:0;padding-left:18px}.account-message{margin:0 0 14px;padding:11px 14px;border-radius:9px;background:#eaf5ed;color:#287447}.account-message.error{background:#fff0ef;color:#a8322a}.account-warning{margin:18px 0;padding:14px 16px;border:1px solid #f0d3a1;border-radius:11px;background:#fff9ed;color:#694c20}.account-warning p{margin:5px 0 0;font-size:13px}.account-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}.account-summary>div{display:grid;gap:4px;padding:13px;border:1px solid #e5e9ea;border-radius:10px}.account-summary span,.account-summary strong{overflow-wrap:anywhere}.account-summary span{color:var(--muted);font-size:11px}.account-summary strong{font-size:13px}.account-form-wide{max-width:820px}.account-form-wide h2{margin:5px 0}.admin-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:26px 0}.admin-tiles a{display:grid;gap:7px;padding:20px;border:1px solid #e1e6e7;border-radius:13px;color:var(--text);text-decoration:none}.admin-tiles a:hover{border-color:#e0a376;background:#fffaf6}.admin-tiles i{color:#d97839;font-size:22px}.admin-tiles span{color:var(--muted);font-size:12px}.account-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.profile-heading form{margin:0}.profile-heading .account-secondary{gap:7px;cursor:pointer}.account-table-wrap{overflow:auto}.account-table{width:100%;border-collapse:collapse;font-size:13px}.account-table th,.account-table td{padding:12px;border-bottom:1px solid #e8eded;text-align:left;vertical-align:middle}.account-table th{color:var(--muted);font-size:11px}.account-table td strong,.account-table td small{display:block}.account-table td small{margin-top:3px;color:var(--muted)}.access-badge{display:inline-flex;padding:4px 8px;border-radius:20px;background:#f1f2f2;font-size:11px;font-weight:700;white-space:nowrap}.access-blocked{background:#fff0ee;color:#a8322a}.access-view{background:#eef3fc;color:#365a96}.access-edit{background:#e9f5ed;color:#287447}.directory-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.directory-panel{min-width:0;padding:18px;border:1px solid #e4e9e9;border-radius:13px}.directory-panel h2{margin:0 0 14px;font-size:18px}.directory-list{display:grid;gap:0;margin:18px 0 0;padding:0;list-style:none}.directory-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #edf0f0;font-size:13px}.directory-list li span strong,.directory-list li span small{display:block}.directory-list li span small{color:var(--muted);font-size:11px}.permission-field{min-width:0;margin:0;padding:13px;border:1px solid #e0e6e6;border-radius:10px}.permission-field legend{padding:0 5px;color:#405156;font-size:13px;font-weight:750}.permission-filter{margin:0 0 9px}.permission-field ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;max-height:310px;overflow:auto;margin:0;padding:0;list-style:none}.permission-field li label{display:flex;align-items:flex-start;gap:7px;color:#344348;font-size:12px;font-weight:500}.permission-field li input{margin:3px 0 0}.permission-field li label{display:flex}.permission-field li{min-width:0;overflow-wrap:anywhere}.account-sidebar .app-sidebar-brand{display:flex}
@media(max-width:760px){.account-app{grid-template-columns:1fr}.account-sidebar{position:relative;height:auto;padding:12px}.account-sidebar .brand{padding-bottom:10px}.account-nav{grid-template-columns:repeat(3,minmax(0,1fr));padding-top:8px}.account-nav a{justify-content:center;padding:8px 4px;font-size:11px}.account-main{padding:22px 14px}.account-card{padding:20px}.directory-columns,.admin-tiles{grid-template-columns:1fr}.account-summary{grid-template-columns:1fr}.account-heading{align-items:flex-start}.account-table{min-width:660px}.permission-field ul{grid-template-columns:1fr}}
body[data-access-level="view"] .new-project,body[data-access-level="view"] .project-card-actions,body[data-access-level="view"] .checklist-toolbar-actions,body[data-access-level="view"] .checklist-row-actions,body[data-access-level="view"] .template-menu,body[data-access-level="view"] [data-template-add-item],body[data-access-level="view"] .project-acts-actions,body[data-access-level="view"] .notebook-toolbar,body[data-access-level="view"] .notebook-new,body[data-access-level="view"] .notebook-save,body[data-access-level="view"] [data-notebook-delete]{display:none!important}.project-side-nav{display:flex;min-height:0;flex:1;flex-direction:column}.project-nav-account{margin-top:auto}.sidebar-logout-form{margin:0}.sidebar-logout-form .project-nav-item{width:100%;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
body[data-access-level="view"] .workspace-compact-toolbar,body[data-access-level="view"] [data-open-checklist-add],body[data-access-level="view"] [data-checklist-lock],body[data-access-level="view"] [data-open-ird-upload],body[data-access-level="view"] [data-open-ird-correspondence-upload],body[data-access-level="view"] [data-open-geodesy-properties],body[data-access-level="view"] [data-checklist-properties-open],body[data-access-level="view"] [data-checklist-row-delete],body[data-access-level="view"] [data-multiple-document-upload],body[data-access-level="view"] .checklist-multi-upload,body[data-access-level="view"] .report-actions,body[data-access-level="view"] [data-delete-correspondence],body[data-access-level="view"] .act-delete-form{display:none!important}body[data-access-level="view"] .notebook-toolbar,body[data-access-level="view"] .notebook-actions{display:none!important}body[data-access-level="view"] .notebook-content{pointer-events:none}
body[data-access-level="view"] .template-create-trigger{display:none!important}
body[data-access-level="view"] .checklist-replacement-field,body[data-access-level="view"] .correspondence-row-actions{display:none!important}body[data-access-level="view"] .correspondence-table-row input,body[data-access-level="view"] .correspondence-table-row select,body[data-access-level="view"] .correspondence-table-row textarea{pointer-events:none;background:#f8f9f9}

.project-analytics-page{max-width:1040px;margin:0 auto}.project-analytics-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:4px 0 26px}.project-analytics-heading h1{margin:0;font-size:clamp(27px,3.2vw,36px);letter-spacing:-.04em;line-height:1.16}.project-analytics-heading>div:first-child>p:last-child{max-width:600px;margin:8px 0 0;color:var(--muted)}.analytics-index-status{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:13px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--accent-dark)}.analytics-index-status>i{font-size:22px}.analytics-index-status span{display:grid;font-size:12px}.analytics-index-status strong{font-size:16px}.analytics-index-status small{max-width:220px;margin-top:2px;color:var(--muted);font-size:10px}.analytics-ask{padding:24px;margin-bottom:20px}.analytics-ask .section-title{align-items:center}.analytics-question-form{display:grid;gap:8px}.analytics-question-form>label{font-size:12px;font-weight:700;color:var(--muted)}.analytics-question-form textarea{width:100%;min-height:88px;resize:vertical;border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:#fff;color:var(--text);outline:none}.analytics-question-form textarea:focus{border-color:#78bcb2;box-shadow:0 0 0 3px rgba(8,126,112,.09)}.analytics-form-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:2px}.analytics-form-footer small{color:var(--muted);font-size:11px}.analytics-form-footer button{display:inline-flex;align-items:center;gap:8px;min-height:42px;border:0;border-radius:9px;padding:9px 16px;background:var(--accent);color:white;font-weight:700}.analytics-form-footer button:hover{background:var(--accent-dark)}.analytics-answer{padding:22px 24px;border-color:#cde2dc;background:#f7fbf9}.analytics-answer .eyebrow{margin-bottom:9px}.analytics-answer-text{white-space:pre-wrap;line-height:1.75}.analytics-sources{margin-top:27px}.analytics-source-list{display:grid;gap:11px}.analytics-source{padding:16px 18px}.analytics-source-heading{display:flex;align-items:center;gap:12px}.analytics-source-number{align-self:flex-start;color:var(--accent);font-size:13px;font-weight:800}.analytics-source-heading>div{display:grid;min-width:0;flex:1}.analytics-source-heading>div strong{font-size:13px}.analytics-source-heading>div small{color:var(--muted);font-size:11px}.analytics-source-heading>a{flex:0 0 auto;color:var(--accent-dark);font-size:12px;font-weight:700;text-decoration:none}.analytics-source-fields{margin:12px 0 8px;color:var(--muted);font-size:11px}.analytics-source-fields strong{color:var(--text)}.analytics-source details{border-top:1px solid #edf0f1;padding-top:8px}.analytics-source details summary{cursor:pointer;color:var(--accent-dark);font-size:11px;font-weight:650}.analytics-source details p{margin:8px 0 0;white-space:pre-wrap;color:#59686c;font-size:12px;line-height:1.65}
@media(max-width:760px){.project-analytics-heading{align-items:stretch;flex-direction:column}.analytics-index-status{align-self:flex-start}.analytics-ask{padding:18px}.analytics-form-footer{align-items:stretch;flex-direction:column}.analytics-form-footer button{justify-content:center}.analytics-source{padding:14px}.analytics-source-heading{align-items:flex-start;flex-wrap:wrap}.analytics-source-heading>a{margin-left:30px}}
[data-analytics-error][hidden], [data-analytics-answer][hidden], [data-analytics-sources][hidden], [data-analytics-stop][hidden]{display:none!important}.analytics-form-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.analytics-form-actions button{white-space:nowrap}.analytics-form-actions .analytics-stop-button{border:1px solid var(--line);background:#fff;color:var(--text)}.analytics-form-actions .analytics-stop-button:hover{background:#f3f5f6}.analytics-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:analytics-spin .75s linear infinite}@keyframes analytics-spin{to{transform:rotate(360deg)}}@media(max-width:760px){.analytics-form-actions{width:100%}.analytics-form-actions button{flex:1}}
.account-password-field{position:relative;display:flex;align-items:center}.account-password-field input{padding-right:48px!important}.password-toggle{position:absolute;right:5px;top:50%;display:grid;width:34px;height:34px;place-items:center;transform:translateY(-50%);border:0;border-radius:7px;background:transparent;color:#6c7b80;cursor:pointer}.password-toggle:hover{background:#f0f3f3;color:#253238}.password-toggle:focus-visible{outline:2px solid #d97839;outline-offset:1px}.password-toggle i{font-size:17px}
.organization-select-row{display:flex;align-items:flex-end;gap:10px}.organization-select-row>label{flex:1;min-width:0}.organization-open-button{flex:0 0 auto;gap:7px;cursor:pointer}.organization-modal-backdrop[hidden]{display:none!important}.organization-modal-backdrop{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:20px;background:rgba(17,24,27,.56)}.organization-modal{width:min(620px,100%);max-height:min(760px,calc(100vh - 40px));overflow:auto;padding:24px;border:1px solid #e1e6e7;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(12,20,22,.3)}.organization-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.organization-modal-header .eyebrow{margin:0 0 5px}.organization-modal-header h2{margin:0;font-size:23px}.organization-modal-close{display:grid;width:36px;height:36px;place-items:center;border:1px solid #dce2e3;border-radius:9px;background:#fff;color:#415156;font-size:25px;line-height:1;cursor:pointer}.organization-search,.organization-add-form input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d9e0e1;border-radius:9px;background:#fff;color:#1b292d;font:inherit;font-size:14px}.organization-search:focus,.organization-add-form input:focus{outline:2px solid rgba(216,112,46,.16);border-color:#d97839}.organization-add-form{display:grid;gap:7px;margin-top:16px}.organization-add-form label{color:#5f6c70;font-size:12px;font-weight:700}.organization-add-form>div{display:flex;gap:9px}.organization-add-form>div input{flex:1;min-width:0}.organization-add-form .account-primary{flex:0 0 auto;cursor:pointer}.organization-feedback{min-height:18px;margin:10px 0 4px;color:#287447;font-size:12px}.organization-feedback.is-error{color:#b52c25}.organization-modal-list{display:grid;gap:0;max-height:330px;overflow:auto;margin:0;padding:0;list-style:none}.organization-modal-list>li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px;border-bottom:1px solid #edf0f0;color:#344348;font-size:13px}.organization-modal-list>li[hidden]{display:none}.organization-modal-list small{color:#89979c}.organization-delete-button{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:0;border-radius:7px;background:transparent;color:#b52c25;font:inherit;font-size:12px;cursor:pointer}.organization-delete-button:hover{background:#fff0ee}.organization-empty{color:#89979c!important}@media(max-width:560px){.organization-select-row{align-items:stretch}.organization-open-button{min-height:42px}.organization-modal{padding:18px}.organization-add-form>div{align-items:stretch;flex-direction:column}}
.account-form .account-switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:40px;color:#5f6c70;font-size:12px;font-weight:700;cursor:pointer}.account-switch-row .account-switch-input,.permission-field input[type=checkbox]{position:relative;appearance:none;-webkit-appearance:none;display:inline-block;width:2.25rem;height:1.25rem;flex:0 0 2.25rem;margin:0;border:1px solid #b8c2c5;border-radius:2rem;background:#cbd3d6;vertical-align:middle;cursor:pointer;transition:background-color .16s ease,border-color .16s ease}.account-switch-row .account-switch-input::before,.permission-field input[type=checkbox]::before{position:absolute;top:2px;left:2px;width:calc(1.25rem - 6px);height:calc(1.25rem - 6px);border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.22);content:"";transition:transform .16s ease}.account-switch-row .account-switch-input:checked,.permission-field input[type=checkbox]:checked{border-color:#d97839;background:#d97839}.account-switch-row .account-switch-input:checked::before,.permission-field input[type=checkbox]:checked::before{transform:translateX(1rem)}.account-switch-row .account-switch-input:focus-visible,.permission-field input[type=checkbox]:focus-visible{outline:3px solid rgba(217,120,57,.28);outline-offset:2px}.account-switch-field{display:grid;gap:4px}.permission-field li label{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:16px}.permission-field li input[type=checkbox]{margin:0}
.permission-field li label,.permission-field div label{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:16px}.permission-field li input[type=checkbox],.permission-field div input[type=checkbox]{margin:0}
.permission-field div[id^="id_allowed_"]>div>label{position:relative!important;display:block!important;width:100%;min-height:28px;padding:2px 54px 2px 0;box-sizing:border-box;line-height:1.4}.permission-field div[id^="id_allowed_"]>div>label input[type=checkbox]{position:absolute;top:2px;right:0;margin:0!important}
.account-form .access-level-field{width:min(190px,100%)}
.sidebar-author-credit{display:block;margin:8px 0 4px;padding:8px 4px 0;border-top:1px solid #3a4149;color:#7f8991;font-size:9px;font-weight:500;letter-spacing:.035em;text-align:center}
.sidebar-author-credit a{color:inherit;text-decoration:none}
.sidebar-author-credit a:hover{color:#aeb7bf;text-decoration:underline;text-underline-offset:2px}

/* Desktop sidebar collapse: compact icon rail with a short, reduced-motion-aware transition. */
@media (min-width:761px){
    .app-layout{--sidebar-expanded:246px;--sidebar-compact:76px;grid-template-columns:var(--sidebar-expanded) minmax(0,1fr);transition:grid-template-columns .28s cubic-bezier(.16,1,.3,1)}
    body.sidebar-collapsed .app-layout{grid-template-columns:var(--sidebar-compact) minmax(0,1fr)}
    .app-sidebar{width:100%;min-width:0;overflow-x:clip;transition:background-color .2s ease}
    .app-sidebar-brand-row{display:flex;min-width:0;align-items:center;gap:8px;padding:4px 7px 18px;margin-bottom:16px;border-bottom:1px solid #3a4149}
    .app-sidebar-brand{min-width:0;flex:1;padding:0;margin:0;border:0}
    .sidebar-collapse-toggle{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;color:#82909c;font-size:14px;transition:color .2s ease,background-color .2s ease,border-color .2s ease,transform .28s cubic-bezier(.16,1,.3,1)}
    body:not(.sidebar-collapsed) .app-sidebar .sidebar-collapse-toggle{transform:translateX(8px)}
    .sidebar-collapse-toggle:hover{border-color:transparent;background:rgba(255,255,255,.045);color:#c8d0d8}
    .sidebar-collapse-toggle:focus-visible{outline:2px solid #f28c28;outline-offset:2px}
    .sidebar-collapse-toggle i{display:block;transition:transform .28s cubic-bezier(.2,.75,.25,1),color .2s ease}
    .sidebar-collapse-toggle:hover i{transform:scale(1.12)}
    .app-sidebar .project-nav-item>span,.app-sidebar-brand>span:last-child,.app-sidebar .project-sidebar-download>span{overflow:hidden;max-width:190px;opacity:1;transform:translateX(0);white-space:nowrap;transition:max-width .24s ease,opacity .16s ease,transform .24s ease}
    .app-sidebar .project-nav-caption,.sidebar-author-credit{overflow:hidden;max-height:24px;opacity:1;transition:max-height .22s ease,opacity .16s ease,margin .22s ease,padding .22s ease}
    .app-sidebar .project-nav-group{min-width:0}
    .app-sidebar .project-nav-item{position:relative;transition:background-color .18s ease,color .18s ease,transform .18s ease}
    .app-sidebar .project-nav-item:hover{transform:translateX(2px)}
    .app-sidebar .project-nav-icon{flex:0 0 20px}
    body.sidebar-collapsed .app-sidebar{padding-right:8px;padding-left:8px;overflow:visible}
    body.sidebar-collapsed .app-sidebar-brand-row{position:relative}
    body.sidebar-collapsed .app-sidebar-brand-row{justify-content:center;gap:0;padding:4px 0 14px;margin-bottom:12px}
    body.sidebar-collapsed .app-sidebar-brand{flex:0 0 30px;justify-content:center;gap:0}
    body.sidebar-collapsed .app-sidebar-brand .brand-mark{width:30px;height:30px;border-radius:9px}
    body.sidebar-collapsed .app-sidebar-brand>span:last-child,
    body.sidebar-collapsed .app-sidebar .project-nav-item>span,
    body.sidebar-collapsed .app-sidebar .project-sidebar-download>span{max-width:0;opacity:0;transform:translateX(-6px);pointer-events:none}
    body.sidebar-collapsed .sidebar-collapse-toggle{position:absolute;top:12px;right:-14px;z-index:5;display:grid;width:28px;height:38px;place-items:center;padding:0;border:1px solid #3a4554;border-left:0;border-radius:0 9px 9px 0;background:#151d2a;color:#c9d2df;font-size:13px;opacity:0;pointer-events:none;transform:translateX(-8px);transition:opacity .16s ease,transform .2s cubic-bezier(.2,.75,.25,1),color .16s ease}
    body.sidebar-collapsed .app-sidebar:hover .sidebar-collapse-toggle,body.sidebar-collapsed .app-sidebar:focus-within .sidebar-collapse-toggle{opacity:1;pointer-events:auto;transform:translateX(14px)}
    body.sidebar-collapsed .sidebar-collapse-toggle:hover{background:#151d2a;color:#fff}
    body.sidebar-collapsed .sidebar-collapse-toggle i{transform:none}
    body.sidebar-collapsed .sidebar-collapse-toggle:hover i{transform:scale(1.12)}
    body.sidebar-collapsed .app-sidebar .project-side-nav{gap:12px}
    body.sidebar-collapsed .app-sidebar .project-nav-group{gap:5px}
    body.sidebar-collapsed .app-sidebar .project-nav-caption{max-height:0;padding:0;opacity:0}
    body.sidebar-collapsed .app-sidebar .project-nav-item{width:44px;min-height:44px;justify-content:center;gap:0;margin:0 auto;padding:8px 0}
    body.sidebar-collapsed .app-sidebar .project-nav-item:hover{transform:translateY(-1px)}
    body.sidebar-collapsed .app-sidebar .project-nav-icon{width:20px}
    body.sidebar-collapsed .app-sidebar .project-nav-item small{position:absolute;top:0;right:-1px;display:inline-flex;min-width:0;height:13px;align-items:center;justify-content:center;margin:0;padding:0 3px;border:1px solid #252a30;border-radius:8px;background:#424950;color:#e8ecef;font-size:8px;line-height:1;white-space:nowrap}
    body.sidebar-collapsed .app-sidebar .project-nav-item.is-active small,body.sidebar-collapsed .app-sidebar .project-nav-item[aria-selected="true"] small{background:#8b4c1c;color:#fff1e4}
    body.sidebar-collapsed .app-sidebar .project-sidebar-download{width:44px;justify-content:center;gap:0;margin:0 auto;padding:11px 0}
    body.sidebar-collapsed .app-sidebar .project-nav-account{padding-top:10px;border-top:1px solid #3a4149}
    body.sidebar-collapsed .sidebar-author-credit{max-height:0;margin:0;padding:0;border:0;opacity:0}
}
@media(max-width:760px){
    .app-sidebar-brand-row{display:block;padding:0;margin:0;border:0}
    .sidebar-collapse-toggle{display:none}
}
@media(prefers-reduced-motion:reduce){
    .app-layout,.app-sidebar,.app-sidebar *{transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* Keep correspondence dialog actions on one compact row. */
.ird-correspondence-fields .ird-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:12px}
.ird-correspondence-fields .ird-actions button{display:inline-flex;width:auto;min-width:0;min-height:38px;flex:1 1 0;align-items:center;justify-content:center;gap:6px;padding:8px 7px;font-size:12px;line-height:1.2;white-space:nowrap}
.ird-correspondence-fields .ird-actions [role="status"]:empty{display:none}
.ird-correspondence-fields .ird-actions [role="status"]:not(:empty){order:4;flex:0 0 100%;font-size:11px}
.ird-correspondence-fields textarea[name="subject"]{height:auto;min-height:calc(1.4em + 20px);overflow:hidden;resize:none;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font-family:inherit;font-size:10pt;font-weight:400;line-height:1.4}
.access-inactive{background:#f1f2f2;color:#68777b}
.permission-field label[hidden]{display:none!important}
@media(max-width:760px){.account-form .access-level-field{width:100%}}
.customer-access-fieldset{min-width:0;margin:0;padding:13px;border:1px solid #e0e6e6;border-radius:10px}
.customer-access-fieldset legend{padding:0 5px;color:#405156;font-size:13px;font-weight:750}
.customer-access-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:42px}
.customer-access-summary>div{display:flex;min-width:0;align-items:center;flex-wrap:wrap;gap:7px}
.customer-access-count{color:#718085;font-size:12px;font-weight:700;white-space:nowrap}
.customer-access-chips{display:flex;min-width:0;flex-wrap:wrap;gap:6px}
.customer-access-chip{display:inline-flex;max-width:100%;align-items:center;gap:6px;padding:4px 7px 4px 10px;border:1px solid #f0d1bc;border-radius:999px;background:#fff7f1;color:#88491f;font-size:11px;font-weight:650}
.customer-access-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.customer-access-chip button{width:20px;height:20px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:17px;line-height:1;cursor:pointer}
.customer-access-chip button:hover{background:#f4e2d5}
.customer-access-empty{margin:0;color:#89979c;font-size:12px}
.customer-access-summary>.account-secondary{flex:0 0 auto;gap:7px;cursor:pointer}
.customer-access-dialog{width:min(600px,calc(100vw - 28px));max-width:none;max-height:min(720px,calc(100dvh - 28px));margin:auto;padding:0;overflow:hidden;border:1px solid #e1e6e7;border-radius:16px;background:#fff;color:#1b292d;box-shadow:0 24px 70px rgba(12,20,22,.3)}
.customer-access-dialog::backdrop{background:rgba(17,24,27,.56);backdrop-filter:blur(2px)}
.customer-access-panel{display:grid;max-height:min(720px,calc(100dvh - 28px));grid-template-rows:auto auto minmax(0,1fr) auto;gap:14px;padding:24px}
.customer-access-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.customer-access-header .eyebrow{margin:0 0 5px}
.customer-access-header h2{margin:0;font-size:22px;letter-spacing:-.025em}
.customer-access-header p:last-child{margin:5px 0 0;color:#718085;font-size:12px}
.customer-access-close{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border:1px solid #dce2e3;border-radius:9px;background:#fff;color:#526267;cursor:pointer}
.customer-access-search{display:flex;align-items:center;gap:9px;min-height:44px;padding:0 12px;border:1px solid #d9e0e1;border-radius:9px;color:#89979c}
.customer-access-search:focus-within{border-color:#d97839;box-shadow:0 0 0 3px rgba(217,120,57,.12)}
.customer-access-search input{width:100%;min-width:0;padding:9px 0;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;font:inherit;font-size:13px}
.account-form .customer-access-dialog .customer-access-search{display:flex;grid-template-columns:none;align-items:center;gap:9px;min-height:44px;margin:0;padding:0 12px;border:1px solid #d9e0e1;border-radius:9px;background:#fff;color:#89979c;font-size:13px;font-weight:400}
.account-form .customer-access-dialog .customer-access-search:focus-within{border-color:#d97839;box-shadow:0 0 0 3px rgba(217,120,57,.12)}
.account-form .customer-access-dialog .customer-access-search>i{flex:0 0 auto;font-size:15px;line-height:1}
.account-form .customer-access-dialog .customer-access-search input{display:block;width:100%;min-width:0;height:42px;min-height:0;margin:0;padding:0;border:0!important;border-radius:0;outline:0!important;background:transparent!important;box-shadow:none!important;color:#1b292d;font:inherit;font-size:13px;font-weight:500}
.customer-access-results{min-height:0;overflow:auto;border:1px solid #e5e9ea;border-radius:10px}
.customer-access-results>[data-customer-results-count]{display:block;padding:9px 12px;border-bottom:1px solid #edf0f0;color:#718085;font-size:11px;font-weight:650}
.customer-access-options{padding:0 12px}
.customer-access-options>div>div{border-bottom:1px solid #edf0f0}
.customer-access-options>div>div[hidden]{display:none!important}
.customer-access-options>div>div:last-child{border-bottom:0}
.customer-access-options label{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:16px;min-width:0;min-height:44px;padding:7px 2px;color:#344348;font-size:12px;font-weight:550;overflow-wrap:anywhere;cursor:pointer}
.customer-access-options label[hidden]{display:none!important}
.customer-access-options input[type=checkbox]{position:relative;appearance:none;-webkit-appearance:none;display:inline-block;width:2.25rem;height:1.25rem;flex:0 0 2.25rem;margin:0;border:1px solid #b8c2c5;border-radius:2rem;background:#cbd3d6;cursor:pointer;transition:background-color .16s ease,border-color .16s ease}
.customer-access-options input[type=checkbox]::before{position:absolute;top:2px;left:2px;width:calc(1.25rem - 6px);height:calc(1.25rem - 6px);border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.22);content:"";transition:transform .16s ease}
.customer-access-options input[type=checkbox]:checked{border-color:#d97839;background:#d97839}
.customer-access-options input[type=checkbox]:checked::before{transform:translateX(1rem)}
.customer-access-options input[type=checkbox]:focus-visible{outline:3px solid rgba(217,120,57,.28);outline-offset:2px}
.customer-access-no-results{margin:0;padding:18px;color:#89979c;font-size:12px;text-align:center}
.customer-access-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:2px}
.customer-access-actions button{cursor:pointer}
@media(max-width:560px){.customer-access-summary{align-items:flex-start;flex-direction:column}.customer-access-summary>.account-secondary{width:100%}.customer-access-panel{padding:18px}.customer-access-actions button{flex:1}}

.directory-editor{margin-bottom:18px}.directory-editor input[type=search]{min-width:0}.directory-editor button{width:max-content;max-width:100%;cursor:pointer}.directory-list li[hidden],.directory-empty-filter[hidden]{display:none!important}.directory-entry-copy{min-width:0;overflow-wrap:anywhere}.directory-list li.is-editing{display:block;padding:12px 0}.directory-inline-edit{display:grid;gap:10px;width:100%}.directory-inline-name{display:grid;gap:5px;color:#5f6c70;font-size:12px;font-weight:700}.directory-inline-name input{box-sizing:border-box;width:100%;min-height:40px;padding:8px 10px;border:1px solid #d9e0e1;border-radius:8px;background:#fff;color:#1b292d;font:inherit;font-size:13px}.directory-inline-name input:focus{outline:2px solid rgba(216,112,46,.16);border-color:#d97839}.directory-inline-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.directory-inline-edit .account-switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;color:#5f6c70;font-size:12px;font-weight:700;cursor:pointer}.directory-inline-edit .directory-row-actions{gap:10px}.directory-inline-edit .directory-save{padding:5px 9px;border:0;border-radius:7px;background:#d97839;color:#fff;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.directory-inline-edit .directory-save:hover{background:#bd5f25}.directory-row-actions{display:flex;flex:0 0 auto;align-items:center;gap:12px}.directory-row-actions form{margin:0}.directory-row-actions .directory-delete{padding:0;border:0;background:none;color:#9a7774;font-size:13px;font-weight:700;cursor:pointer}.directory-row-actions .directory-delete:hover{color:var(--danger)}.directory-empty-filter{margin:10px 0 0;color:var(--muted);font-size:12px}

.project-list-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px}.project-scope-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--muted);font-size:11px;font-weight:700;text-decoration:none;white-space:nowrap}.project-scope-toggle:hover{border-color:#d8a57f;color:var(--accent-dark)}.project-card-gip{display:block;overflow:hidden;margin-top:-7px;color:var(--muted);font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){.project-list-tools{align-items:stretch;flex-direction:column}.project-scope-toggle{align-self:flex-start}.project-list-tools .project-search{width:100%}}

.analytics-answer-text{white-space:normal;line-height:1.75}.analytics-answer-text p{margin:0 0 12px}.analytics-answer-text p:last-child{margin-bottom:0}.analytics-answer-text h1,.analytics-answer-text h2,.analytics-answer-text h3,.analytics-answer-text h4,.analytics-answer-text h5,.analytics-answer-text h6{margin:14px 0 7px;font-size:1em}.analytics-answer-text ul,.analytics-answer-text ol{display:grid;gap:7px;margin:7px 0 14px;padding-left:24px}.analytics-answer-text li{padding-left:2px}.analytics-answer-text blockquote{margin:8px 0;padding:8px 12px;border-left:3px solid #cde2dc;color:var(--muted)}.analytics-answer-text code{padding:2px 5px;border-radius:4px;background:#eaf0ee;font-size:.92em}
.analytics-citation-link{display:inline-block;margin:0 1px;color:var(--accent-dark);font-weight:750;text-decoration:underline;text-decoration-color:#d8a37f;text-underline-offset:2px}
.analytics-citation-link:hover{color:var(--accent);text-decoration-color:currentColor}
.analytics-citation-dialog{width:min(1100px,calc(100vw - 32px));height:min(900px,calc(100dvh - 32px));max-width:none;max-height:none;padding:0;overflow:hidden;border:1px solid #454b4e;border-radius:14px;background:#25282a;color:#f2f4f5;box-shadow:0 24px 80px rgba(0,0,0,.4);grid-template-rows:auto minmax(0,1fr)}
.analytics-citation-dialog:not([open]){display:none}
.analytics-citation-dialog[open]{display:grid}
.analytics-citation-dialog::backdrop{background:rgba(15,21,23,.72);backdrop-filter:blur(2px)}
.analytics-citation-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;background:#303538;border-bottom:1px solid #454b4e}
.analytics-citation-dialog header .eyebrow{margin:0 0 2px;color:#e28b55}
.analytics-citation-dialog header h2{margin:0;font-size:15px;line-height:1.35;overflow-wrap:anywhere}
.analytics-citation-dialog header small{display:block;margin-top:2px;color:#aab3b6;font-size:11px}
.analytics-citation-dialog header button{display:grid;flex:0 0 36px;width:36px;height:36px;place-items:center;border:0;border-radius:8px;background:#454b4e;color:#f2f4f5;font-size:16px}
.analytics-citation-dialog header button:hover{background:#596165}
.analytics-citation-dialog iframe{width:100%;height:100%;min-height:0;border:0;background:#25282a}
@media(max-width:600px){.analytics-citation-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);border-radius:10px}.analytics-citation-dialog header{padding:10px 12px}}
.analytics-sources-accordion{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.38)}.analytics-sources-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;padding:12px 16px;list-style:none;cursor:pointer}.analytics-sources-summary::-webkit-details-marker{display:none}.analytics-sources-summary>span:first-child{display:grid;gap:3px}.analytics-sources-summary strong{color:var(--text);font-size:18px;letter-spacing:-.02em}.analytics-sources-summary small{color:var(--muted);font-size:12px}.analytics-sources-summary-meta{display:flex;align-items:center;gap:10px;color:var(--accent-dark)}.analytics-sources-summary-meta>i{transition:transform .16s ease}.analytics-sources-accordion[open] .analytics-sources-summary-meta>i{transform:rotate(180deg)}.analytics-sources-accordion .analytics-source-list{padding:0 12px 12px}.analytics-sources-accordion[open] .analytics-sources-summary{border-bottom:1px solid var(--line)}
.project-analytics-top,.project-analytics-page{width:100%;max-width:1040px;margin:0 auto}

/* Search by document title in the contract IRD list. */
.checklist-document-search{position:relative;margin:0 0 14px}
.checklist-document-search>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.checklist-document-search input{display:block;box-sizing:border-box;width:100%;min-height:42px;margin:0;padding:10px 14px 10px 40px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text);font:inherit;font-size:13px}
.checklist-document-search input:focus{outline:2px solid var(--accent);outline-offset:1px}

/* Keep explanatory text for checklist entries that have no uploaded file. */
.checklist-row[data-has-attachment="true"] .checklist-name small{display:none}
.checklist-row[data-has-attachment="true"] [data-checklist-note-display][data-note-empty="true"]{visibility:hidden}


@media(max-width:760px){.ird-file-row{grid-template-columns:minmax(0,1fr) auto;gap:7px}.ird-file-state{display:none}.ird-file-archive-toggle{font-size:9px}}

.ird-files-panel{margin:0 0 16px;padding:12px;border:1px solid #efd3c2;border-radius:10px;background:#fff}
.ird-files-panel>header{display:flex;align-items:center;gap:9px;margin:0 0 10px;color:var(--text);font-size:13px}
.ird-files-panel>header>i{color:var(--accent);font-size:16px}
.ird-files-count{display:inline-grid;min-width:22px;height:22px;place-items:center;border-radius:99px;background:#f9e9df;color:var(--accent-dark);font-size:11px;font-weight:750}
.ird-files-list{display:grid;gap:6px;max-height:210px;overflow:auto}
.ird-file-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:48px;padding:7px 10px;border:1px solid #e5eaea;border-radius:8px;background:#fff;transition:border-color .15s,background .15s}
.ird-file-row.is-active{border-color:#9bc9bd;background:#eef7f3}
.ird-file-details{display:grid;min-width:0;gap:2px;text-align:left}
.ird-file-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ird-file-select{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;overflow:hidden;padding:0;border:0;background:transparent;color:var(--text);font:inherit;font-size:12px;font-weight:650;text-align:left;cursor:pointer}
.ird-file-select:hover,.ird-file-row.is-active .ird-file-select{color:var(--accent-dark)}.ird-file-select:hover .ird-file-title{text-decoration:underline;text-underline-offset:2px}
.ird-file-date{color:var(--muted);font-size:10px}
.ird-file-state{padding:4px 7px;border-radius:99px;background:#e8f4ec;color:#31704f;font-size:10px;font-weight:650;white-space:nowrap}
.ird-file-actions{display:flex;align-items:center;gap:10px}
.ird-file-delete{display:grid;place-items:center;width:30px;height:30px;border:1px solid #f0d4d2;border-radius:8px;background:#fff7f6;color:var(--danger);font-size:14px;cursor:pointer}
.ird-file-delete:hover{border-color:#e9b5b1;background:#fff0ee}
.ird-file-delete:disabled{opacity:.5;cursor:not-allowed}
.ird-file-archive-toggle{position:relative;display:inline-flex;align-items:center;gap:7px;width:auto;height:auto;color:var(--muted);font-size:10px;white-space:nowrap;cursor:pointer}
.ird-file-archive-toggle input{position:relative;appearance:none;flex:0 0 32px;width:32px;height:18px;margin:0;border:0;border-radius:99px;background:#d4dcde;cursor:pointer;transition:background .15s}
.ird-file-archive-toggle input:checked{background:var(--accent)}
.ird-file-archive-toggle input:after{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;content:"";transition:transform .15s}
.ird-file-archive-toggle input:checked:after{transform:translateX(14px)}
.ird-file-archive-toggle input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ird-file-archive-toggle input:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:760px){.ird-file-row{grid-template-columns:minmax(0,1fr) auto;gap:7px}.ird-file-state{display:none}.ird-file-actions{gap:6px}.ird-file-archive-toggle{font-size:9px}.ird-file-delete{width:28px;height:28px}}

.ird-actions[data-ird-new-document-actions]{justify-content:flex-end;flex-wrap:nowrap;gap:8px}
.ird-actions[data-ird-new-document-actions] button{flex:0 0 auto;min-height:32px;padding:5px 9px;border-radius:7px;font-size:12px;line-height:1.2;white-space:nowrap}
/* Sidebar palette and active navigation treatment from the SVOD reference. */
.app-sidebar{background:#151d2a;border-color:#2e3948;color:#e9edf3}
.app-sidebar .app-sidebar-brand-row{border-color:#3a4554}
.app-sidebar .project-nav-group{border-color:#303b4b;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));border-radius:16px}
.app-sidebar .project-nav-caption{color:#d1d9e4;letter-spacing:.14em}
.app-sidebar .project-nav-item{color:#c9d2df}
.app-sidebar .project-nav-item:hover{background:#273343;color:#fff}
.app-sidebar .project-nav-group{gap:7px;padding:10px}
.app-sidebar .project-nav-item{min-height:48px;gap:12px;padding:10px 11px;font-size:13px}
.app-sidebar .project-nav-icon{width:22px;font-size:18px}
.app-sidebar .project-nav-group:has(.project-nav-caption){padding-top:12px}
@media(min-width:761px){
    .app-sidebar .project-side-nav>.project-nav-group:first-child{row-gap:0;padding-right:7px;padding-left:7px}
    .app-sidebar .project-side-nav>.project-nav-group:first-child>.project-nav-item{min-height:40px;padding-top:6px;padding-bottom:6px}
    .app-sidebar .project-side-nav>.project-nav-group:first-child>.project-nav-caption{margin-bottom:0}
    .app-sidebar .project-side-nav>.project-nav-group:nth-child(2){row-gap:4px}
    .app-sidebar .project-side-nav>.project-nav-group:nth-child(2)>.project-nav-item{min-height:40px;padding-top:6px;padding-bottom:6px}
    .app-sidebar .project-side-nav>.project-nav-group:nth-child(2)>.project-nav-caption{margin-bottom:7px}
    .app-sidebar .project-side-nav>.project-nav-group:nth-child(2)>.project-nav-item{margin-top:0;margin-bottom:0}
}
.app-sidebar .project-nav-item.is-active,.app-sidebar .project-nav-item[aria-current="page"],.app-sidebar .project-nav-item[aria-selected="true"]{background:#303b4b;color:#fff}
.app-sidebar .project-nav-item.is-active::before,.app-sidebar .project-nav-item[aria-current="page"]::before,.app-sidebar .project-nav-item[aria-selected="true"]::before{background:#ff8619}
.app-sidebar .project-nav-icon{color:#d3dbe6}
.app-sidebar .project-nav-item:is(:hover,.is-active,[aria-current="page"],[aria-selected="true"]) .project-nav-icon{color:#ff8619}
.app-sidebar .project-nav-item small{background:#3b4758;color:#e2e8f0}
.app-sidebar .project-nav-item.is-active small,.app-sidebar .project-nav-item[aria-selected="true"] small{background:#674322;color:#ffd3a1}
.app-sidebar .project-sidebar-download{border-color:#3a4554;color:#ff9a38}
.app-sidebar .project-sidebar-download:hover{color:#ffc176}

/* Keep the mobile drawer compact and consistent with desktop navigation. */
@media(max-width:760px){
    .app-sidebar{
        width:min(320px,78vw);
        padding:18px 14px 18px;
        background:#151d2a;
    }
    .app-sidebar .app-sidebar-brand-row{
        gap:10px;
        padding:8px 8px 18px;
        margin-bottom:14px;
        border-bottom:1px solid #3a4554;
    }
    .app-sidebar .app-sidebar-brand{border-bottom:0}
    .app-sidebar .svod-brand{
        min-height:54px;
        max-width:calc(100% - 38px);
        margin:0;
    }
    .svod-brand .svod-logo-image{
        width:100%;
        max-width:100%;
        max-height:54px;
    }
    .app-sidebar .project-side-nav{
        display:flex;
        min-height:0;
        flex:1 1 auto;
        flex-direction:column;
        gap:14px;
        padding:14px 0 0;
        overflow:visible;
    }
    .app-sidebar .project-nav-group{
        display:grid;
        gap:4px;
        padding:10px;
        border:1px solid #303b4b;
        border-radius:16px;
        background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
    }
    .app-sidebar .project-nav-group:has(.project-nav-caption){padding-top:10px}
    .app-sidebar .project-nav-group:not(.project-nav-account):nth-child(2){flex:0 0 auto;min-height:0;overflow:visible}
    .app-sidebar .project-nav-group:not(.project-nav-account):nth-child(2) .project-nav-caption{margin-bottom:7px}
    .app-sidebar .project-nav-group:not(.project-nav-account):nth-child(2) .project-nav-item{min-height:40px;font-size:13px}
    .app-sidebar .project-nav-caption{
        padding:0 9px;
        margin:0 0 7px;
        color:#d1d9e4;
        font-size:9px;
        letter-spacing:.15em;
    }
    .app-sidebar .project-nav-item{
        width:100%;
        min-height:40px;
        flex:0 0 auto;
        gap:10px;
        padding:8px 10px;
        border-radius:9px;
        font-size:13px;
    }
    .app-sidebar .project-nav-icon{width:20px;font-size:17px}
    .app-sidebar .project-nav-item.is-active::before,
    .app-sidebar .project-nav-item[aria-current="page"]::before,
    .app-sidebar .project-nav-item[aria-selected="true"]::before{
        top:8px;
        bottom:8px;
        width:4px;
    }
    .app-sidebar .project-nav-account{
        gap:4px;
        margin-top:auto;
        padding:10px;
    }
    .app-sidebar .project-nav-account .project-nav-item{min-height:40px}
    .app-sidebar .sidebar-author-credit{
        margin-top:8px;
        padding:8px 0 0;
        border-top:1px solid #3a4554;
        color:#8996a9;
        font-size:9px;
        text-align:center;
    }
}

/* Keep the sign-in sidebar aligned with the project sidebar brand and footer. */
.account-sidebar .app-sidebar-brand.svod-brand{
    flex:0 0 auto;
    width:100%;
    min-height:54px;
    margin:0 0 16px;
    padding:0 7px 18px;
    border:0;
    border-bottom:1px solid #3a4554;
    border-radius:0;
    background:transparent;
}
.account-sidebar .svod-brand .svod-logo-image{
    display:block;
    width:100%;
    max-width:190px;
    max-height:54px;
    object-fit:contain;
    object-position:left center;
}
.account-sidebar .sidebar-author-credit{margin-top:auto}
@media(max-width:760px){
    .account-sidebar .app-sidebar-brand.svod-brand{width:100%;max-width:none;margin-bottom:12px}
    .account-sidebar .sidebar-author-credit{margin-top:28px}
}

.ird-checklist-picker{display:grid;gap:9px;margin:0 0 16px;padding:12px;border:1px solid #cbded9;border-left:3px solid var(--accent);border-radius:11px;background:#f5faf8}
.ird-checklist-picker-heading{display:flex;align-items:center;gap:9px;color:var(--text)}
.ird-checklist-picker-icon{display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;border-radius:8px;background:#e2f0ec;color:var(--accent-dark);font-size:15px}
.ird-checklist-picker-heading>span:last-child{display:grid;gap:2px}
.ird-checklist-picker-heading strong{font-size:12px;font-weight:750}
.ird-checklist-picker-heading small{color:var(--muted);font-size:10px;font-weight:500}
.ird-checklist-search{display:grid;gap:4px;color:var(--muted);font-size:10px;font-weight:700}
.ird-checklist-search>span{display:flex;align-items:center;gap:5px}
.ird-checklist-search>span i{color:var(--accent-dark)}
.ird-checklist-search input{min-height:36px!important;padding:7px 9px!important;background:#fff!important}
.ird-checklist-picker>small{color:var(--muted);font-size:10px;line-height:1.4}
.ird-document-tab-wrap{position:relative;display:flex;flex:0 0 auto;min-width:130px;max-width:230px}
.ird-document-tab-wrap>.ird-document-tab{width:100%;min-width:0;padding-right:30px}
.ird-document-tab-wrap>.ird-document-tab.is-dragging{opacity:.5}
.ird-document-tab-wrap>.ird-document-tab.is-drop-target{border-color:var(--accent);background:#e8f4f0;box-shadow:0 0 0 2px #4f9f8a55}
.ird-document-tab-remove{position:absolute;top:5px;right:5px;display:grid;width:21px;height:21px;place-items:center;padding:0;border:0;border-radius:5px;background:#f2f4f4;color:#728087;cursor:pointer}
.ird-document-tab-remove:hover{background:#fff0ed;color:#b54230}
.ird-document-tab-remove:disabled{opacity:.45;cursor:wait}
.ird-file-version{align-self:flex-start;padding:2px 6px;border-radius:999px;background:#edf4f2;color:#426f64;font-size:10px;font-weight:700}
.ird-version-dnd-hint{display:block;padding:0 10px 6px;background:#f7f8f8;color:var(--muted);font-size:10px}
.ird-batch-file-error{grid-column:1;grid-row:2;display:grid;place-content:center;gap:10px;min-width:0;padding:28px;background:#f7f8f8;color:var(--text);font-size:14px;font-weight:600;line-height:1.55;text-align:center;overflow:auto}.ird-batch-file-error[hidden]{display:none}
