/* BEEAH identity tokens only. Shared rows own the gradient across both headings. */
.experience-preview-banner{position:sticky;top:0;z-index:120;display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 22px;background:var(--panel,var(--bg));border-bottom:1px solid var(--line);color:var(--ink)}
.experience-preview-banner form{display:inline-flex;margin:0}.experience-preview-banner details{flex-basis:100%}
.experience-preview-banner strong{font-size:16px}.experience-preview-banner span{font-size:13px}
/* Draft-only framing: keep the preview notice in flow, with the document header below it. */
body.document-reference:has(>.experience-preview-banner){padding-top:0}
body.document-reference>.experience-preview-banner{position:relative;z-index:auto;background:var(--deep);color:var(--ink)}
body.document-reference:has(>.experience-preview-banner)>.topbar{position:sticky;top:0}
body.document-reference>.experience-preview-banner details{max-height:35vh;overflow:auto}
body.document-reference>.experience-preview-banner .button{margin-inline-start:auto;min-height:44px}
.client-preview-launch{display:flex;gap:12px;align-items:end;margin:12px 0}.client-preview-launch label{margin:0}
.experience-controls{padding-block:16px;border-block:1px solid var(--line);margin-block:20px}.experience-controls .form-grid{gap:20px}
.live-intake .requirement-grid{display:block}.live-intake .requirement-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-block:12px;border:1px solid var(--line);background:var(--row);background-size:100% 80px;background-repeat:no-repeat}
.live-intake .requirement-pair>.memo-requirement-group{display:contents;border:0;margin:0}
.live-intake .requirement-pair>.memo-requirement-group>summary{grid-row:1;min-height:80px;box-sizing:border-box;background:transparent;border:0;padding:16px 20px}
.live-intake .requirement-pair>.memo-requirement-group:first-child>summary{grid-column:1}
.live-intake .requirement-pair>.memo-requirement-group:nth-child(2)>summary{grid-column:2}
.live-intake .requirement-pair>.memo-requirement-group:only-child>summary{grid-column:1/-1}
.live-intake .requirement-pair>.memo-requirement-group>.requirement-body{grid-column:1/-1;border-top:1px solid var(--line);background:var(--bg)}
.live-intake .requirement-pair>.memo-requirement-group:not([open])>.requirement-body{display:none}
.live-intake .requirement-pair>.memo-requirement-group[open]>summary{box-shadow:inset 0 -2px 0 var(--ink)}
.experience-stage-branch{margin:0;border:0;border-bottom:1px solid var(--line)}
.experience-stage-branch>summary{display:flex;align-items:center;list-style:none;padding:0;background:transparent;cursor:pointer}
.experience-stage-branch>summary::-webkit-details-marker{display:none}.experience-stage-branch>summary::after{content:'⌄';padding-inline:8px;font-size:14px}
.experience-stage-branch[open]>summary::after{content:'⌃'}.experience-stage-branch>summary>button,.experience-stage-branch>summary>.stage-link{flex:1;min-width:0;border:0;width:100%;display:flex;align-items:center;gap:12px;text-align:start}
.experience-stage-branch .stage-children{padding:6px 12px}.experience-stage-branch .stage-children>a,.experience-stage-branch .stage-children>button{display:block;width:100%;padding:12px;text-align:start;border:0;background:transparent;color:var(--ink)}
.experience-stage-branch .stage-children [aria-current]{background:var(--panel);box-shadow:inset -2px 0 0 var(--ink)}
.experience-review-grid,.experience-diff{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;min-width:0}
.experience-review-grid>div,.experience-diff>section{min-width:0}.experience-file-preview{width:100%;height:580px;border:1px solid var(--line);background:var(--bg)}
.experience-diff pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:14px;max-height:400px;overflow:auto;text-align:start}
.experience-notification{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--line)}.experience-notification>div{flex:1;min-width:200px}.experience-notification form{margin:0}
.draft-status{border-inline-start:2px solid var(--line);padding:8px 12px;margin-block:8px;font-size:13px}.draft-status button{margin-inline:8px}.draft-conflict{border:1px solid var(--ink)}
.experience-simulation{padding:12px;border:1px solid var(--line);background:var(--panel)}
.dashboard-axes a>strong{font-size:14px}.dashboard-axes a>small{display:block}
.experience-controls input,.experience-controls select,.experience-review-grid input{max-width:100%}
@media(max-width:760px){
 .live-intake .requirement-pair{display:block;background:none;border:0}.live-intake .requirement-pair>.memo-requirement-group{display:block;margin-block:12px;border:1px solid var(--line)}
 .live-intake .requirement-pair>.memo-requirement-group>summary{background:var(--row);background-size:100% 100%;min-height:80px;padding:14px}
 .experience-review-grid,.experience-diff{grid-template-columns:1fr}.experience-file-preview{height:380px}.experience-preview-banner{position:relative;padding:12px}.client-preview-launch{flex-wrap:wrap}
}

.live-intake .requirement-pair>details::details-content{display:contents}

/* UI15: compact criteria and current questions, using the existing BEEAH tokens. */
.performance-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.reference-expanded{border:1px solid var(--line);padding:16px;min-width:0;background:transparent}
.reference-expanded h3{font-size:19px;margin:0 0 14px}
.reference-expanded table{min-width:0!important;width:100%}
.criteria-compact .criterion-code{display:block;font-size:11px;font-weight:400;margin-top:4px}
.criteria-compact :is(th,td){padding:12px 14px;vertical-align:top;line-height:1.75;font-size:14px}
.criteria-compact th:first-child{width:21%}
.criteria-method-details{margin-block:14px;border:1px solid var(--line)}
.criteria-method-details>summary{padding:14px 16px;cursor:pointer}
.requirement-question form{display:flex;align-items:end;flex-wrap:wrap;gap:12px}
.requirement-question label{flex:1;min-width:220px;margin:0}
.requirement-question button{min-height:44px}
.requirement-absent{padding:16px;border:1px solid var(--line)}
[data-conditional-requirements][hidden],[data-absence-note][hidden]{display:none!important}
@media(max-width:760px){.performance-reference-grid{grid-template-columns:1fr}.criteria-compact :is(th,td){padding:10px;font-size:14px}.requirement-question form{display:block}.requirement-question button{margin-top:12px}}
.project-register{margin-block:24px;padding-block:20px;border-block:1px solid var(--line)}
.project-register>header h3{margin-top:0}
.project-totals{display:flex;flex-wrap:wrap;gap:16px;padding:16px 0;border-block:1px solid var(--line)}
.project-totals strong{display:block}
.project-register .project-table{width:100%;min-width:1100px;table-layout:fixed}
.project-register .project-table th:first-child{width:32px}.project-register .project-table th:nth-child(2){width:20%}.project-register .project-table th:nth-child(3){width:15%}
.project-register .project-table th:nth-child(4),.project-register .project-table th:nth-child(5){width:130px}
.project-register .project-table th:nth-child(6){width:120px}.project-register .project-table th:nth-child(7){width:90px}
.project-register .project-table th:nth-child(8){width:288px}.project-register .project-table th:last-child{width:60px}
.project-register .project-table :is(th,td){padding:8px;vertical-align:top;box-sizing:border-box;line-height:1.6}
.project-register .project-table [data-project-number]{white-space:nowrap}
.project-register .project-table input,.project-register .project-table textarea{width:100%;min-width:0;box-sizing:border-box;font-size:14px;padding:8px;min-height:44px;margin:0}
.project-register .project-table .project-notes{margin:6px 0 0;border:0;background:transparent;box-shadow:none;min-width:0}
.project-register .project-table .project-notes>summary{display:flex;align-items:center;justify-content:flex-start;gap:8px;list-style:none;padding:4px 0!important;min-height:32px;font-size:13px!important;font-weight:400;white-space:nowrap;word-break:normal;overflow-wrap:normal;background:transparent;box-shadow:none;border:0;cursor:pointer}
.project-register .project-table .project-notes>summary::-webkit-details-marker{display:none}
.project-register .project-table .project-notes>summary::after{content:'＋';font-size:16px;margin:0;position:static}
.project-register .project-table .project-notes[open]>summary::after{content:'−'}
.project-register .project-notes>label{display:block;font-size:13px;margin:4px 0}.project-register .project-notes textarea{resize:vertical;min-height:88px}
.project-register .project-notes p{font-size:12px;line-height:1.7;margin:8px 0}
.project-register .project-row-actions>button{width:44px;min-height:44px;padding:0;margin:0;line-height:1;font-size:20px}
.project-register .project-upload-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}
.project-register .project-file-picker{display:grid;position:relative;gap:5px;min-width:0;margin:0;font-size:13px;line-height:1.6;text-align:center}
.project-register .project-file-action{display:flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;padding:6px;border:1px solid var(--line);background:transparent;white-space:nowrap;font-size:12px;cursor:pointer}
.project-register .project-file-picker input[type=file]{max-width:100%;padding:4px;font-size:12px;cursor:pointer}
.project-register .project-editor-enhanced .project-file-picker input[type=file]{position:absolute;inset-inline:0;top:0;width:100%;height:44px;min-height:44px;margin:0;padding:0;opacity:0;cursor:pointer}
.project-register .project-file-picker:focus-within .project-file-action{outline:2px solid currentColor;outline-offset:2px}
.project-register .project-file-picker:hover .project-file-action{border-color:currentColor}
.project-register [data-project-file-name]{font-size:12px;overflow-wrap:anywhere;line-height:1.6;text-align:start}
.project-register [data-project-file-name][hidden]{display:none!important}
.project-register .project-attachments-cell>a{display:inline-block;margin-top:6px;font-size:12px;line-height:1.7}
.project-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-block:16px}
.project-files{margin-block:10px;border:1px solid var(--line)}
.project-files>summary{padding:14px;cursor:pointer}.project-files-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:18px}
@media(max-width:760px){
 .project-files-grid{grid-template-columns:1fr}
 .project-register .project-table,.project-register .project-table tbody,.project-register .project-table tr,.project-register .project-table td{display:block;width:100%;min-width:0}
 .project-register .project-table thead{display:none}
 .project-register .project-table tr{position:relative;padding:12px;border-bottom:1px solid var(--line);box-sizing:border-box}
 .project-register .project-table td[data-label]::before{content:attr(data-label);display:block;font-size:13px;margin-bottom:6px}
 .project-register .project-table td:first-child{padding-inline-end:52px;margin-bottom:8px}
 .project-register .project-table td:first-child::before{content:'المشروع ';font-size:13px}
 .project-register .project-table td.project-row-actions{position:absolute;inset-inline-end:12px;top:12px;width:44px;padding:0}
 .project-register .project-upload-pair{gap:10px}
 .project-register .project-file-action{white-space:normal}
}

.requirement-question fieldset{border:0;padding:0;margin:0;min-width:0;flex:1;display:flex;align-items:end;gap:12px;flex-wrap:wrap}.requirement-question [data-dependent-note]{flex-basis:100%;margin:0}.requirement-question [data-dependent-note][hidden]{display:none!important}
@media(max-width:760px){.requirement-question fieldset{display:block}.requirement-question label{min-width:0}}

