.brief-match-entry{grid-column:3;grid-row:2;min-width:0}.brief-match-open{width:100%;height:42px;display:flex;align-items:center;gap:10px;padding:0 15px;color:#e7eee8;background:#202822;border:1px solid #52634c;border-radius:6px;cursor:pointer}.brief-match-open>span{color:#c9ff73}.brief-match-open b{font-size:13px}.brief-match-open small{color:#9eaaa0;font-size:11px}.brief-match-open i{margin-left:auto;font-style:normal}.brief-match-modal[hidden]{display:none}.brief-match-modal{position:fixed;inset:0;z-index:10000;background:#000b;display:grid;place-items:center;padding:24px}.brief-match-dialog{width:min(640px,100%);max-height:90vh;overflow:auto;background:#171c1a;border:1px solid #424d45;border-radius:10px;padding:28px;box-sizing:border-box;color:#edf2e9;position:relative}.brief-close{position:absolute;right:20px;top:16px;background:none;border:0;color:#b5beb6;font-size:25px;cursor:pointer}.brief-eyebrow{font:10px monospace;letter-spacing:2px;color:#aaba9f}.brief-match-dialog h2{font-size:23px;margin:14px 0 8px}.brief-match-dialog>p{font-size:13px;color:#9ea99e;line-height:1.7}.brief-upload{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px;border:1px dashed #647062;border-radius:6px;margin:22px 0 10px;cursor:pointer;background:#1d2420}.brief-upload small,.brief-file,.brief-state{font-size:12px;color:#a7b2a6}.brief-file{margin:10px 0}.brief-run{width:100%;margin:12px 0;padding:13px;border:0;border-radius:5px;background:#c9ff73;color:#26321c;font-weight:600;cursor:pointer}.brief-run:disabled{opacity:.45;cursor:not-allowed}.brief-results h3{font-size:15px;margin-top:24px}.brief-results a{display:flex;gap:14px;color:#e5ebe3;text-decoration:none;padding:12px 0;border-top:1px solid #39433b}.brief-results img{width:68px;height:68px;object-fit:cover;border-radius:4px}.brief-results b{font-size:13px}.brief-results p{font-size:12px;color:#a7b2a6;line-height:1.6;margin:7px 0}@media(max-width:1100px){.brief-match-entry{grid-column:1/-1;grid-row:auto}.brief-match-open{max-width:420px}}
/* Independent entry at the right of the archive controls. */
html body #archive .archive-controls{display:grid!important;grid-template-columns:auto minmax(220px,420px) minmax(260px,1fr)!important;grid-template-rows:auto auto!important;justify-content:stretch!important;align-items:center!important;gap:16px 14px!important}html body #archive .primary-filter-row{grid-column:1/4!important;grid-row:1!important}html body #archive .detail-filter-row{grid-column:1!important;grid-row:2!important}html body #archive .archive-search-row{grid-column:2!important;grid-row:2!important;min-width:0!important}html body #archive .brief-match-entry{grid-column:3!important;grid-row:2!important;justify-self:end;width:min(100%,365px)}.brief-match-open{background:#1b211d;border-color:#465346}.brief-match-open:hover{border-color:#a6c88c;background:#242e25}@media(max-width:1100px){html body #archive .archive-controls{grid-template-columns:1fr!important}html body #archive .primary-filter-row,html body #archive .detail-filter-row,html body #archive .archive-search-row,html body #archive .brief-match-entry{grid-column:1!important;grid-row:auto!important}html body #archive .brief-match-entry{justify-self:start!important;width:100%}}
/* Neutral dark dialog with lime reserved for action and progress. */
.brief-match-modal{background:rgba(0,0,0,.76);backdrop-filter:blur(5px)}.brief-match-dialog{width:min(590px,100%);padding:36px;background:#18191b;border:1px solid #393c40;border-radius:12px;color:#f3f3f0;box-shadow:0 24px 80px #0008}.brief-match-dialog .brief-eyebrow{font-size:10px;letter-spacing:2px;color:#a7aaa8}.brief-match-dialog h2{font-size:25px;letter-spacing:-.5px;margin:13px 0 8px;line-height:1.25}.brief-match-dialog>p{margin:0;color:#a9acaa;font-size:13px;line-height:1.7}.brief-close{color:#aaaeac;right:25px;top:22px}.brief-upload{margin:25px 0 0;padding:27px 20px;background:#202124;border:1px dashed #5a5d5e;border-radius:7px}.brief-upload strong{font-size:14px;color:#eee}.brief-upload small{color:#929695;font-size:11px;text-align:center}.brief-file{margin:10px 0 0;font-size:12px;color:#c3c5c4;overflow-wrap:anywhere}.brief-run{margin:20px 0 0;padding:15px;background:#c9ff2f;color:#171b10;border-radius:5px;font-size:14px}.brief-state{margin-top:13px;color:#aaa;font-size:12px;line-height:1.6}.brief-progress{margin-top:18px}.brief-progress[hidden]{display:none}.brief-progress-label{display:flex;justify-content:space-between;color:#b8bcb8;font-size:11px;margin-bottom:8px}.brief-progress-track{height:4px;background:#383a3b;border-radius:5px;overflow:hidden}.brief-progress-track div{height:100%;width:0;background:#c9ff2f;transition:width .35s}.brief-results a{border-color:#383a3a}.brief-results p{color:#a9adab}.brief-match-open{background:#202122;border-color:#46484a;color:#eceeed}.brief-match-open small{color:#aaa}.brief-match-open>span{color:#c9ff2f}.brief-match-open:hover{background:#292b2b;border-color:#888}
