/* Scoped additions to the existing briefs list and 620px drawer. */
.ba-generation-history{margin:0 0 20px;border:1px solid #dce4f1;border-radius:7px;padding:0 14px;background:#fff;overflow-wrap:anywhere}.ba-orphan-history{margin-top:20px}.ba-generation-history>summary{min-height:46px;align-content:center;color:#46648e;font-size:12px;cursor:pointer}.ba-generation-history>.ba-hint{margin:0 0 10px}.ba-generation-record{border-top:1px solid #e4e9f2}.ba-generation-record>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:10px 0;color:#354e75;font-size:12px;cursor:pointer;list-style:none}.ba-generation-record>summary::-webkit-details-marker{display:none}.ba-generation-record>summary::before{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);flex:none}.ba-generation-record[open]>summary::before{transform:rotate(45deg)}.ba-generation-record>summary>span:first-child{flex:1;min-width:0}.ba-generation-record>summary small{display:block;margin-top:5px;color:#64758d;font-size:10px;line-height:1.6}.ba-history-readonly{font-size:10px;color:#64758d;flex:none}.ba-history-content{padding-bottom:16px;min-width:0}.ba-history-content h3,#ba-editor>.ba-history-title{font-size:13px;color:#354e75;margin:16px 0 8px}.ba-history-content h4{font-size:12px;color:#46648e;margin:12px 0 6px}.ba-history-content pre,.ba-history-raw{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font:inherit;font-size:12px;line-height:1.8;background:#f7f9fc;border:1px solid #e4e9f2;border-radius:5px;padding:10px 12px;color:#405778;max-width:100%}.ba-history-content dl,#ba-editor>section dl,#ba-editor>.ba-history-communication dl{margin:0;font-size:11px;line-height:1.8}.ba-history-content dl>div,#ba-editor>section dl>div,#ba-editor>.ba-history-communication dl>div{padding:8px 0;border-bottom:1px solid #edf0f6}.ba-history-content dt,#ba-editor>section dt,#ba-editor>.ba-history-communication dt{color:#64758d;font-size:10px;margin:0 0 3px}.ba-history-content dd,#ba-editor>section dd,#ba-editor>.ba-history-communication dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#354e75}.ba-history-content details>summary,.ba-history-communication>summary{cursor:pointer;min-height:40px;align-content:center;color:#46648e;font-size:11px}.ba-generation-history :focus-visible{outline:2px solid #3764bd;outline-offset:2px}.ba-history-communication{margin-top:12px;border-top:1px solid #dce4f1}.ba-history-content section{min-width:0}@media(max-width:760px){.ba-generation-history{padding:0 12px}.ba-generation-record>summary{flex-wrap:wrap;gap:6px}.ba-generation-record>summary>span:first-child{flex-basis:calc(100% - 25px)}.ba-history-readonly{margin-left:14px}.ba-history-content details>summary,.ba-history-communication>summary{min-height:44px}}
.ba-title{display:flex;align-items:center;gap:6px}.ba-title h1{margin-right:0}.ba-help{position:relative;display:inline-grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;background:transparent;color:#647da7;font-size:12px}.ba-help::before{content:"";position:absolute;width:21px;height:21px;border:1px solid #c4cede;border-radius:50%;pointer-events:none}.ba-help:hover{background:transparent}.ba-help:hover::before{border-color:#8ba4df;background:#edf2ff55}.ba-help:focus-visible{outline-offset:-3px}.ba-drawer-head #drawer-title{margin-right:0}.ba-drawer-head #ba-drawer-help{margin-right:auto}.ba-table{min-width:760px}.ba-table td:first-child{width:40%}.ba-table td .sub{max-width:430px}.ba-table td:last-child{min-width:190px}.ba-guide-region[hidden]{display:none}.ba-guide{border:1px solid #d7e0f1;border-radius:7px;background:#f8faff;padding:14px 17px;margin:0 0 20px}.ba-guide-top{display:flex;gap:10px;align-items:center}.ba-guide-top strong{font-size:12px;color:#4d6794}.ba-guide-top small{font-size:10px;color:#8190a7;margin-left:auto}.ba-guide-top button{background:none;border:0;font-size:20px;width:44px;height:44px;padding:0;color:#7788a4}.ba-guide h3{font-size:13px;margin:0 0 6px;color:#2f466d}.ba-guide p{font-size:11px;line-height:1.8;color:#657692;margin:0}.ba-guide-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.ba-guide-actions button{min-width:44px;min-height:44px;padding:6px 10px;font-size:11px}.ba-guide-actions button:first-child{margin-right:auto}#ba-editor{min-width:0}#ba-editor .fields>*{min-width:0}#ba-editor .fields .wide{grid-column:1/-1}#ba-editor .fields input,#ba-editor .fields select,#ba-editor .fields textarea{min-width:0;max-width:100%}.ba-field-label{display:flex;justify-content:space-between;gap:6px;align-items:center;min-height:20px}.ba-field-meta{font-size:9px;color:#8291aa;flex:none}.ba-field-meta button{border:0;background:none;padding:0 2px;color:#427962;font-size:9px;font-weight:400;min-height:22px}.ba-required{color:#b13939}.ba-hint{display:block;font-size:10px;line-height:1.7;color:#7b899e;margin:6px 0 0}.ba-ai-card{padding:0;border:1px solid #d4dff3;background:#fff;border-radius:7px;margin:0 0 22px;overflow:hidden}.ba-ai-card>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:48px;padding:12px 15px;color:#42639d;font-size:12px;font-weight:600;background:#f3f7ff}.ba-ai-card>summary::-webkit-details-marker{display:none}.ba-ai-card>summary::after{content:"＋";font-size:15px;font-weight:400}.ba-ai-card[open]>summary::after{content:"−"}.ba-ai-card>summary small{font-size:10px;font-weight:400;color:#8290aa;margin-left:auto}#ba-ai-body{padding:15px}#ba-ai-body>label{font-size:11px}#ba-ai-body>textarea{min-height:148px;font-size:12px;line-height:1.8;background:#fcfdff}#ba-ai-body>.ba-hint{margin:0 0 12px}.ba-scenario{padding:11px 12px;border:1px solid #e0e6f1;border-radius:6px;background:#f8faff;margin:0 0 15px}.ba-scenario label{font-size:11px}.ba-scenario select{font-size:12px}.ba-scenario p{font-size:10px;color:#7a8aa3;margin:8px 0 10px}.ba-scenario .actions button{font-size:10px}.ba-ai-foot{display:flex;justify-content:space-between;gap:10px;margin:6px 0 12px;font-size:9px;color:#8894a8}.ba-notice{font-size:11px;line-height:1.7;margin:12px 0;border:1px solid #d9e3f5;border-radius:5px;padding:10px 12px;color:#506b98;background:#f5f8fe}.ba-notice.warn{color:#846428;background:#fff9ec;border-color:#eddfc0}.ba-notice.error{color:#a83c3c;background:#fff4f2;border-color:#efd3ce}.ba-notice .actions{margin-top:10px}.ba-issues{padding-left:20px;margin:12px 0;font-size:11px;color:#687c9a}.ba-issues li{margin:6px 0}.ba-issues .blocking{color:#9a5d2c}.ba-question{padding:12px 0 0;margin:12px 0 0;border-top:1px solid #e4e9f2;font-size:12px;color:#425a83}.ba-question small{display:block;font-size:10px;color:#8090a7;margin:4px 0}.ba-question input{font-size:12px}.ba-objective{margin-top:14px;padding-top:13px;border-top:1px solid #e3e8f2}.ba-objective input{font-size:12px}.ba-ai-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:15px}.ba-ai-actions button{font-size:11px;padding:8px 12px}.ba-ai-actions .ba-text{margin-right:auto;background:none;border:0;color:#6f7e98;padding:0;font-weight:400}.ba-cost{font-size:10px;color:#8794a8;margin:10px 0 0}.ba-spinner{display:inline-block;width:12px;height:12px;border:2px solid #cbd8f1;border-top-color:#2b53c4;border-radius:50%;vertical-align:middle;margin-right:6px;animation:ba-spin .8s linear infinite}@keyframes ba-spin{to{transform:rotate(360deg)}}.ba-communication{margin-top:16px;border-top:1px solid #dce4f1;padding-top:13px}.ba-communication>summary{display:flex;justify-content:space-between;gap:9px;font-size:12px;color:#4b6690}.ba-communication>summary small{font-size:9px;color:#8190a6}.ba-comm-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 14px;margin-top:14px}.ba-comm-grid>*{min-width:0}.ba-comm-grid .wide{grid-column:1/-1}.ba-comm-grid label{font-size:10px}.ba-comm-grid input,.ba-comm-grid select,.ba-comm-grid textarea{font-size:11px;max-width:100%;min-width:0}.ba-comm-grid textarea{min-height:76px}.ba-communication-boundary{padding:9px 11px;margin:13px 0 0;background:#fff9ec;color:#856b36;border-radius:5px;font-size:10px;line-height:1.7}#ba-edit-form .form-footer{flex-wrap:wrap}#ba-form-error{flex-basis:100%;font-size:11px;margin:0}#ba-edit-form .ba-save-note{margin:0 auto 0 0;flex:1;min-width:120px}#ba-edit-form .form-footer button{font-size:12px}.ba-preview pre{font-size:10px;max-height:340px}.ba-apply-plan{flex-basis:100%;width:100%}.ba-apply-plan label{font-size:11px}.ba-apply-plan select{font-size:12px}.ba-confirm{margin:auto;width:440px;max-width:calc(100% - 32px);height:auto;max-height:80dvh;border:1px solid var(--line);border-radius:9px;padding:22px;box-shadow:0 20px 70px #15213f30}.ba-confirm h2{font-size:16px;margin:0 0 12px}.ba-confirm p{font-size:12px;color:var(--muted)}.ba-confirm .actions{justify-content:flex-end;margin-top:20px}.ba-confirm button{font-size:11px}.ba-settings{border:1px solid var(--line);border-radius:7px;padding:16px;min-width:0}.ba-settings legend{font-size:13px;color:#3f5d93;padding:0 6px}.ba-settings>.hint{margin:0 0 16px}.ba-settings .fields{grid-template-columns:1fr 1fr}
@media(max-width:760px){.ba-table td .sub{max-width:280px}.ba-guide{padding:13px}.ba-guide-actions{gap:7px}.ba-guide-actions button{min-height:44px}.ba-title{gap:4px}.ba-ai-card>summary{padding:12px 13px}.ba-ai-card>summary small{font-size:9px}#ba-ai-body{padding:13px}.ba-scenario .actions button{min-height:44px}.ba-ai-actions button{min-height:44px}.ba-ai-actions .ba-text{min-height:44px}.ba-ai-foot{font-size:9px}.ba-comm-grid{grid-template-columns:minmax(0,1fr)}.ba-comm-grid .wide{grid-column:auto}.ba-communication>summary{flex-direction:column;gap:3px}.ba-confirm{padding:19px}.ba-confirm button{min-height:44px}.ba-field-meta button{min-height:32px}#ba-edit-form .ba-save-note{flex-basis:100%;margin-bottom:7px}#ba-edit-form .form-footer>button{min-height:44px;flex:1}#ba-edit-form .form-footer>.primary{flex:1.3}.ba-settings .fields{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.ba-spinner{animation:none}}
.ba-undo{display:flex;gap:10px;align-items:center;margin:10px 0}.ba-undo button{font-size:11px;min-height:36px;flex:none}.ba-undo span{font-size:10px;color:#64758d;line-height:1.7}@media(max-width:760px){.ba-undo{align-items:flex-start;flex-direction:column;gap:3px}.ba-undo button{min-height:44px}}
.ba-optional{font-weight:400;color:#66758e;font-size:10px;margin-left:5px}#ba-product-urls{min-height:66px!important;margin-top:6px;font-size:12px;line-height:1.6}.ba-research-toggle{display:flex;align-items:center;gap:8px;min-height:44px;margin:7px 0 0;cursor:pointer}.ba-research-toggle input{width:16px!important;height:16px;margin:0;flex:none}#ba-research-privacy{color:#62738c;margin-bottom:12px}.ba-research{padding:12px 0;border-top:1px solid #dce4f1;margin-top:12px;font-size:11px;overflow-wrap:anywhere}.ba-research>summary,.ba-provider-details>summary{cursor:pointer;min-height:36px;line-height:1.6;align-content:center;color:#46648e;font-size:11px}.ba-research article{padding:12px 0}.ba-research article+article{border-top:1px solid #e6ebf2}.ba-research small{display:block;color:#64758d;margin:5px 0;line-height:1.6}.ba-research p{margin:8px 0}.ba-research blockquote,.ba-field-evidence blockquote{font-size:11px;line-height:1.7;color:#576b86;margin:7px 0 12px;padding:0 0 0 10px;border-left:1px solid #c8d3e5}.ba-research a,.ba-field-evidence a,.ba-candidate a{color:#315db1;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.ba-research-refresh{display:flex;align-items:center;gap:10px;margin:12px 0 0}.ba-research-refresh button{font-size:11px;min-height:36px;flex:none}.ba-research-refresh span{font-size:10px;color:#66758e;line-height:1.6}.ba-provider-details{margin-top:10px}.ba-source-choice p{margin:8px 0}.ba-source-choice .actions{display:flex;flex-wrap:wrap;gap:8px}.ba-source-choice button,.ba-manual-conflict button{font-size:11px;min-height:36px}.ba-candidate{padding:10px 0;border-top:1px solid #eadab5}.ba-manual-conflict{margin:10px 0;display:flex;gap:8px;flex-wrap:wrap}.ba-manual-conflict span{flex-basis:100%}.ba-field-evidence{padding:12px;border:1px solid #dce4f1;border-radius:5px;margin:12px 0;font-size:11px;color:#506988;overflow-wrap:anywhere}.ba-field-evidence[hidden]{display:none}.ba-field-evidence button{font-size:11px;min-height:36px}.ba-field-meta button{color:#526a8c;min-height:28px}.ba-field-label{flex-wrap:wrap}.ba-field-meta{margin-left:auto}.ba-hint,.ba-cost,.ba-ai-foot{color:#64758d}#ba-editor textarea::placeholder,#ba-editor input::placeholder{color:#68768a;opacity:1}#ba-editor :focus-visible{outline:2px solid #3764bd;outline-offset:2px}#ba-editor input,#ba-editor textarea{caret-color:#315db1}#ba-editor ::selection{background:#dce8ff;color:#203d70}
@media(max-width:760px){.ba-research>summary,.ba-provider-details>summary,.ba-research-refresh button,.ba-source-choice button,.ba-manual-conflict button,.ba-field-evidence button,.ba-field-meta button{min-height:44px}.ba-research-refresh{align-items:flex-start;flex-direction:column;gap:3px}.ba-field-meta{max-width:100%}.ba-source-choice .actions button{flex:1 1 130px}.ba-manual-conflict button{flex:1}#ba-product-urls{min-height:76px!important}}
.ba-review>p{margin:6px 0 10px}.ba-review details>summary{min-height:36px;display:flex;align-items:center;cursor:pointer;font-size:11px}.ba-review details>summary::before{content:'▸';margin-right:6px}.ba-review details[open]>summary::before{content:'▾'}.ba-review ul{padding-left:18px;margin:6px 0 12px}.ba-review li{margin:8px 0}.ba-review li span{display:block;margin-top:2px}.ba-review-check{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.7;margin-top:10px;cursor:pointer}.ba-review-check input{width:auto!important;flex:none;margin:3px 0 0}.ba-review details>summary:focus-visible{outline:2px solid var(--blue);outline-offset:2px}@media(max-width:760px){.ba-review details>summary,.ba-review-check{min-height:44px}}
