/* Expected documents share the current card's ambience; status is also written. */
.expected-documents{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 6px}.expected-document{display:flex;align-items:center;gap:10px;min-width:190px;max-width:290px;padding:8px 12px 8px 8px;border:1px solid #ccd8dc;border-radius:12px;background:#fff;text-decoration:none;color:#214551;transition:box-shadow .18s,border-color .18s}.expected-document:hover,.expected-document:focus-visible{border-color:#a58947;box-shadow:0 4px 14px #153d491a}.expected-art{position:relative;display:block;width:72px;height:60px;flex:0 0 72px}.expected-art img,.expected-art svg,.expected-panel-art img,.expected-panel-art svg{width:100%;height:100%;object-fit:contain;border-radius:8px}.is-missing .expected-art>img,.is-missing .expected-art>svg{filter:grayscale(1);opacity:.45}.is-present{border-color:#b8a15c;background:linear-gradient(120deg,#fffdf4,#fff)}.expected-art b{position:absolute;right:-3px;bottom:-2px;background:#eef2f4;border:2px solid #fff;border-radius:12px;min-width:23px;height:23px;display:grid;place-items:center;font-size:11px}.is-present .expected-art b{background:#d5b967;color:#173d46}.expected-copy{display:grid;gap:3px;line-height:1.25}.expected-copy strong{font-size:12px}.expected-copy small{font-size:10px;color:#677d85}.expected-copy>span{font-size:10px;color:#477d81}.expected-dialog{width:min(650px,94vw);max-height:90dvh;border:1px solid #b4c8ce;border-radius:18px;padding:20px;color:#1b3f4a;box-shadow:0 20px 90px #0d30375c}.expected-dialog::backdrop{background:#143a465c}.expected-dialog-close{position:sticky;top:0;float:right;z-index:2;border-radius:50%;width:36px;height:36px;padding:0;background:#f1f5f6;color:#264955;border:1px solid #c5d5d9}.expected-panel>header,.document-definition>header{display:flex;gap:16px;align-items:center}.expected-panel-art{width:88px;height:76px;display:block;flex:0 0 88px}.expected-panel h2,.document-definition h2{margin:4px 0 8px;font-size:20px}.expected-panel p{margin:6px 0}.expected-evidence{list-style:none;padding:0;display:grid;gap:7px;max-height:180px;overflow:auto}.expected-evidence a{display:flex;align-items:center;gap:8px;padding:9px;background:#f2f6f6;border-radius:8px;overflow-wrap:anywhere}.expected-evidence svg{width:18px;height:18px}.expected-panel form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:16px 0;padding:14px;background:#f4f7f7;border:1px solid #dbe5e6;border-radius:12px}.expected-panel label{flex:1 1 250px;display:grid;gap:7px}.expected-panel form small{flex:1 1 100%;font-size:11px}.expected-panel input,.expected-panel select{max-width:100%;width:100%}.expected-choices{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.expected-panel details>summary{cursor:pointer;font-size:12px}.catalog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.document-catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:18px}.document-definition{margin:0;padding:22px}.document-definition footer{display:flex;justify-content:space-between;gap:10px;font-size:12px}.document-rule-list{list-style:none;padding:0;display:grid;gap:8px}.document-rule-list li{display:flex;gap:10px;align-items:center;border-top:1px solid #dde6e8;padding:9px 0;font-size:12px}.document-rule-list li>span{flex:1}.document-rule-list small{display:block;color:#69858c}.document-rule-list b{font-size:10px;background:#f4edda;padding:4px;border-radius:5px}.definition-inactive{opacity:.65}.expected-dialog [role=alert]{color:#a72c32}@media(max-width:600px){.expected-document{min-width:160px;flex:1 1 160px}.expected-art{width:55px;height:48px;flex-basis:55px}.expected-dialog{padding:14px}.expected-panel>header{align-items:start;gap:10px}.expected-panel h2{font-size:18px}.expected-panel-art{width:66px;height:58px;flex-basis:66px}.catalog-heading{align-items:start}.document-definition{padding:16px}}@media(prefers-reduced-motion:reduce){.expected-document{transition:none}}

.expected-evidence li{display:flex;align-items:center;justify-content:space-between;gap:12px}.expected-evidence li>a{min-width:0;overflow-wrap:anywhere}.expected-evidence li>form{margin:0;flex:none}.expected-evidence .expected-detach{padding:6px 10px;font-size:11px;min-height:32px}.expected-notice{padding:9px 12px;border-radius:8px;background:#f4efdf;font-size:12px;line-height:1.5}

.expected-evidence{max-height:340px;gap:12px}.expected-evidence .expected-file{display:block;padding:14px;border:1px solid #c9dadd;border-radius:12px;background:linear-gradient(120deg,#f6faf9,#fff)}.expected-file-info{display:flex;align-items:center;gap:12px;overflow-wrap:anywhere}.expected-file-info small{display:block;margin-top:5px;color:#637c83;font-size:11px}.expected-file-icon{background:#e2efeb;color:#167a76;border-radius:9px;padding:10px;flex:none}.expected-file-icon svg{width:24px;height:24px}.expected-file-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}.expected-evidence .expected-file-actions a{font-size:12px;min-height:34px;padding:7px 12px}.expected-file-actions form{border:0;background:none;padding:0;margin:0 0 0 auto}.expected-panel>details{margin:16px 0}.expected-file-actions .button:not(.secondary){background:#147c79;color:white}

/* Per-step applicability; fulfilled documents leave only their counter. */
.expected-slot{position:relative;display:flex;flex-direction:column;max-width:290px}.expected-slot .expected-document{height:100%;box-sizing:border-box}.expected-slot [hidden]{display:none!important}.expected-state-picker{position:absolute;top:-5px;left:-5px;z-index:3}.expected-state-picker summary{display:grid;place-items:center;list-style:none;width:28px;height:28px;border:1px solid #b9cbd1;border-radius:9px;background:#fff;color:#42636d;cursor:pointer;box-shadow:0 2px 5px #173c4220;font-size:19px;line-height:1}.expected-state-picker summary::-webkit-details-marker{display:none}.expected-state-picker summary:focus-visible{outline:3px solid #247f96;outline-offset:2px}.expected-slot[data-document-state=TODO] summary{background:#fff2b5;color:#896200;border-color:#d2ad36}.expected-slot[data-document-state=NA] summary{background:#edf0f2;color:#60717b}.expected-slot[data-document-state=NA] .expected-copy strong{text-decoration:line-through;text-decoration-thickness:1px;color:#78878d}.expected-state-menu{position:absolute;top:32px;left:0;display:grid;gap:4px;padding:6px;width:145px;border:1px solid #bccdd2;border-radius:10px;background:white;box-shadow:0 6px 20px #173c4225}.expected-state-menu button{white-space:nowrap;text-align:left;padding:8px;min-height:36px;background:#f3f6f7;color:#224652;border:0;border-radius:6px;font-size:12px}.expected-state-menu button:hover{background:#e6eff1}.expected-slot [data-document-state-error]:not(:empty){display:block;max-width:280px;color:#a3292d;font-size:11px;padding:6px}.expected-slot[data-document-state=TODO] [data-document-hint]{color:#896200;font-weight:600}@media(max-width:600px){.expected-slot{flex:1 1 160px;max-width:100%}.expected-state-picker summary{width:32px;height:32px}.expected-state-menu{top:36px}}

/* Shared compact document rows: one line per expected item. */
.expected-list{margin:.65rem 0}.expected-rows{display:flex;flex-direction:column;gap:.35rem}
.expected-rows .expected-slot{width:100%;max-width:none;min-width:0;flex:0 0 auto}
.expected-rows .expected-document{max-width:none;width:100%;height:auto;min-height:48px;display:flex;flex:0 0 auto;align-items:center;gap:.65rem;padding:.35rem 2.8rem .35rem .55rem}
.expected-rows .expected-art{width:36px;height:36px;min-width:36px;flex:0 0 36px}
.expected-rows .expected-art img,.expected-rows .expected-art svg{width:100%;height:100%;object-fit:contain}
.expected-rows .expected-copy{display:flex;align-items:center;gap:.8rem;flex:1;flex-wrap:wrap}.expected-rows .expected-copy strong{margin:0;flex:1 1 180px}
.expected-rows .expected-copy small{font-size:.72rem}.expected-rows [data-document-hint]{font-size:.75rem}
.expected-rows .expected-state-picker{top:7px;left:auto;right:7px}.expected-rows .expected-state-menu{left:auto;right:0}.expected-add{display:inline-block;font-size:.8rem;padding:.6rem 0}
.legacy-document-checks{font-size:.8rem;margin:.6rem 0}.legacy-document-checks dl{display:grid;grid-template-columns:1fr 2fr;gap:.3rem}
