/* Review surfaces share the studio's blue palette and keep every action in place. */
.brief-review{position:relative;margin:24px 0 32px;border:1px solid #bfd4f8;border-radius:24px;background:linear-gradient(125deg,#f0f6ff 0%,#fff 65%);box-shadow:0 16px 48px -32px #285abf60;overflow:hidden}
.brief-review:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#b9def3,#557cf2,#9ab7ff)}
.brief-review-heading{display:flex;align-items:center;gap:18px;padding:28px 30px 24px}.brief-review-symbol{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#e0ebff;color:#3566df;flex-shrink:0}.brief-review-symbol .icon{width:28px;height:28px}
.review-eyebrow{font-size:12px;font-weight:700;color:#6b83b1;letter-spacing:.2px}.workspace-theme .brief-review h2{font-size:25px;line-height:1.8;color:#203f72;font-weight:800;margin:3px 0}.brief-review-heading p{font-size:14px;line-height:2;color:#637d9e}.review-badge{margin-inline-start:auto;white-space:nowrap;border:1px solid #cbdafb;border-radius:30px;padding:6px 12px;background:#fff;color:#4972c3;font-size:12px}
.brief-review-form{padding:0 30px 26px}.brief-review-fields{display:grid;grid-template-columns:1.5fr 1fr;gap:18px}.brief-review-fields label{display:block;color:#345379;font-size:14px;font-weight:700;margin-bottom:10px}.brief-review-fields textarea{box-sizing:border-box;width:100%;min-height:160px;resize:vertical;border:1px solid #d4e0f2;border-radius:14px;background:#ffffffdd;color:#344e72;padding:15px;font:inherit;font-size:15px;line-height:2.1;transition:box-shadow .15s,border-color .15s}.brief-review-fields textarea:focus{outline:0;border-color:#6c97f1;box-shadow:0 0 0 4px #dbe9ff}.brief-review-fields small{display:block;font-size:12px;color:#768ba6;margin-top:7px;line-height:1.9}
.brief-scope{margin-top:22px;padding:18px 20px;border:1px solid #e1eafa;border-radius:14px;background:#f8fbff}.brief-scope>span{display:flex;gap:8px;align-items:center;color:#506c93;font-size:13px;font-weight:700}.brief-scope>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.brief-scope>div>span{background:#fff;border:1px solid #dfe8f7;border-radius:8px;padding:5px 10px;font-size:12px;color:#486587}.brief-scope p{font-size:12px;color:#778da7;margin-top:12px;line-height:2}.brief-review-form footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px}.brief-review-form footer p{display:flex;gap:8px;align-items:center;font-size:12px;color:#7990ae}.review-form-errors{padding:14px;background:#fff3ed;border:1px solid #f1cbb9;border-radius:12px;color:#a55035;margin-bottom:18px;font-size:14px;line-height:2}
.build-status{margin:20px 0;padding:20px 24px;border:1px solid #dce6f4;border-radius:18px;background:#fff}.build-status-heading{display:flex;align-items:center;gap:12px}.build-status-icon{width:38px;height:38px;display:grid;place-items:center;background:#eaf3ff;color:#3873cc;border-radius:12px;flex-shrink:0}.build-status-heading>div{flex:1}.build-status-heading strong{color:#35577f;font-size:14px}.build-status-heading p{color:#7489a4;font-size:13px;line-height:2;margin-top:4px}.build-status.is-failed{background:#fffaf7;border-color:#efcdbb}.is-failed .build-status-icon{background:#ffeadc;color:#b46a40}.build-status.is-waiting{background:#fbfdff}.build-steps{display:flex;list-style:none;gap:12px;margin:20px 0 0;padding:18px 0 0;border-top:1px solid #edf1f8}.build-steps li{display:flex;align-items:center;gap:8px;color:#8b9bb0;flex:1;font-size:12px;line-height:1.8}.build-steps li>span{width:25px;height:25px;border-radius:50%;background:#f0f3f8;color:#97a5b8;display:grid;place-items:center;flex-shrink:0}.build-steps .is-done{color:#388272}.build-steps .is-done>span{color:#278475;background:#e6f5ef}.build-steps .is-current{color:#346bd5;font-weight:700}.build-steps .is-current>span{background:#e7eeff;color:#3565dc;box-shadow:0 0 0 3px #f3f6ff}.build-steps .icon{width:13px;height:13px}.build-status-note{display:block;color:#889ab2;font-size:12px;line-height:2;margin-top:14px}
.project-chat-panel>[data-chat-review]{flex-shrink:0;max-height:48dvh;overflow-y:auto;overscroll-behavior:contain}.chat-change-review{margin:10px 16px 16px;border:1px solid #c8d9f8;background:#f8fbff;border-radius:15px;direction:rtl}.chat-change-review>header{display:block!important;padding:17px!important;border-bottom:1px solid #dfe9f8}.chat-change-review header>span{display:flex;align-items:center;gap:7px;font-size:12px;color:#6883b0}.chat-change-review header>strong{display:block;font-size:16px;color:#355680;margin:8px 0}.chat-change-review header>p{font-size:12px;color:#7186a2;line-height:1.9}.change-section{border-bottom:1px solid #dfE8f5}.change-section>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;color:#47668f;font-size:14px;padding:13px 16px}.change-section>summary::-webkit-details-marker{display:none}.change-section>summary .icon{width:14px;height:14px}.change-comparison{display:grid;gap:10px;padding:0 12px 14px}.change-comparison>div{min-width:0;padding:12px;border:1px solid #e1e7f0;border-radius:10px;background:#fff}.change-comparison>div>span{display:inline-block;font-size:11px;font-weight:700;border-radius:5px;padding:2px 7px;background:#f1f3f7;color:#7b8494}.change-comparison .change-after{border-color:#cce8db;background:#f7fdf9}.change-after>span{background:#e3f5eb!important;color:#388364!important}.change-comparison p{font-size:13px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere;color:#55708f;max-height:260px;overflow-y:auto;margin-top:8px}.change-actions{display:flex!important;gap:10px;padding:14px!important;border:0!important}.change-actions .btn{font-size:13px;min-height:40px;padding:8px 12px}.chat-undo{margin:10px 16px 16px;padding:14px!important;border:1px solid #cce7d9!important;border-radius:12px;background:#f5fcf8;display:grid!important;gap:10px;font-size:13px;color:#4a7e68}.chat-undo span{display:flex;align-items:center;gap:7px}.chat-undo button{color:#286cbe;text-align:right;font:inherit}.chat-undo button:disabled{opacity:.45}.project-chat-panel button:disabled{opacity:.5;cursor:wait}
@media(max-width:700px){.brief-review-heading{padding:22px 20px;gap:12px;flex-wrap:wrap}.brief-review-symbol{width:44px;height:44px;border-radius:13px}.brief-review-heading>div{flex:1}.workspace-theme .brief-review h2{font-size:20px}.review-badge{margin-inline-start:56px}.brief-review-form{padding:0 20px 22px}.brief-review-fields{grid-template-columns:1fr}.brief-review-fields textarea{min-height:130px}.brief-review-form footer{align-items:stretch;flex-direction:column}.brief-review-form footer .btn{justify-content:center;width:100%;white-space:normal}.build-status{padding:17px}.build-status-heading{flex-wrap:wrap}.build-status-heading form{width:100%;padding-top:6px}.build-status-heading form .btn{font-size:12px}.build-steps{display:grid;grid-template-columns:1fr 1fr;row-gap:16px}.brief-scope{padding:15px}.build-status-heading>div{min-width:180px}}
@media print{.brief-review,[data-chat-review]{display:none}}
@media(prefers-reduced-motion:reduce){.brief-review-fields textarea{transition:none}}
@media(max-width:700px){.brief-review-heading{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:start}.brief-review-heading>div{min-width:0}.brief-review-heading .review-badge{grid-column:2;justify-self:start;margin:0}.brief-review-symbol{margin-top:4px}.brief-review-heading h2{overflow-wrap:normal}}
.project-chat-panel:has(.chat-change-review)>header{flex-shrink:0}
.project-chat-panel:has(.chat-change-review) .project-chat-history{flex:0 1 120px;min-height:60px;max-height:120px}
.project-chat-panel:has(.chat-change-review)>[data-chat-review]{flex:1 1 auto;min-height:100px;max-height:none}
.project-chat-panel:has(.chat-change-review)>form[data-project-chat]{display:none}
.chat-change-review .change-actions{position:sticky;bottom:0;background:#f8fbff;border-top:1px solid #dfe8f5!important;z-index:1}
.chat-change-review .change-actions .btn{min-height:44px}
