.help-chat-launch{position:fixed;bottom:20px;left:250px;z-index:40;background:#087f75;color:white;border:1px solid #5bbfb5;border-radius:24px;padding:12px 17px;cursor:pointer;font:600 14px system-ui}.help-chat-launch.hidden{display:none}.help-chat-dialog{width:min(850px,94vw);max-height:90vh;padding:24px;border:1px solid #c7d6de;border-radius:20px;background:#fff;color:#183346;overflow:auto;font:14px/1.5 system-ui}.help-chat-dialog::backdrop{background:#07162199}.help-chat-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.help-chat-heading h2{font-size:21px;margin:0}.help-chat-heading p{margin:4px 0}.help-chat-notice{font-size:12px;color:#587185}.help-tools{display:grid;gap:12px;margin:16px 0}.help-tools label{display:flex;gap:9px;align-items:center}.help-chat-dialog select,.help-chat-dialog textarea{background:#f4f8fa;color:inherit;border:1px solid #bdcfd8;border-radius:9px;padding:10px;max-width:100%;font:inherit}.help-chat-dialog textarea{width:100%;box-sizing:border-box}.help-ai-choice{font-size:12px}.help-ai-choice input{width:auto}.help-memory{padding:12px;border:1px solid #cfdae0;border-radius:12px;margin-bottom:14px}.help-memory summary{cursor:pointer;font-weight:600}.help-memory label{display:block;margin:10px 0}.help-memory small{display:block;color:#587185}.help-chat-dialog .button{border:1px solid #bdcfd8;border-radius:9px;background:#f4f8fa;color:inherit;cursor:pointer;padding:8px 12px;font:600 13px system-ui}.help-chat-dialog .primary{background:#087f75;border-color:#087f75;color:white}.help-chat-dialog button:disabled{opacity:.55;cursor:wait}.help-chat-compose{display:flex;gap:10px;align-items:flex-end}.help-chat-compose textarea{flex:1}.help-chat-messages{max-height:40vh;overflow:auto;margin:16px 0}.help-message{margin:10px 0;padding:12px;border:1px solid #d1e0e5;border-radius:10px;background:#f5f9fa}.help-message.question{margin-left:35px;background:#e6f4f2}.help-message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}#help-documents>div{margin:12px 0;overflow-wrap:anywhere}#help-clear-memory{margin-top:12px}html[data-theme="dark"] .help-chat-dialog,.dark .help-chat-dialog{background:#182f3a;color:#dfebf1;border-color:#355463}html[data-theme="dark"] .help-chat-dialog textarea,html[data-theme="dark"] .help-chat-dialog select,html[data-theme="dark"] .help-chat-dialog .secondary,html[data-theme="dark"] .help-message{background:#10242e;color:#dfebf1;border-color:#355463}html[data-theme="dark"] .help-message.question{background:#163d3e}html[data-theme="dark"] .help-chat-notice,html[data-theme="dark"] .help-memory small{color:#aec5d2}.performance-toolbar{flex-wrap:wrap}#contribution-dates{display:flex;gap:12px;flex-wrap:wrap}#contribution-dates input{min-width:125px;max-width:170px}.performance-kpis{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}@media(max-width:650px){.help-chat-launch{left:16px;bottom:16px}.help-chat-dialog{padding:16px}.help-chat-compose{align-items:stretch;flex-direction:column}.help-tools label{flex-wrap:wrap}}
.help-chat-dialog{margin:auto}.help-chat-dialog .help-tools label{display:flex;text-align:left;justify-content:flex-start}.help-chat-dialog .help-ai-choice{align-items:flex-start;flex-wrap:nowrap}.help-chat-dialog .help-ai-choice input[type="checkbox"]{flex:0 0 16px;width:16px;height:16px;margin:3px 0;padding:0}

.help-source-link{display:inline-block;margin:10px 12px 0 0;color:#087f75;text-decoration:underline}html[data-theme="dark"] .help-source-link{color:#7dd9cd}
/* Focused chat workspace: controls above, conversation centre, composer below. */
.help-chat-dialog[open]{display:flex;flex-direction:column;width:min(940px,94vw);height:min(800px,90vh);padding:0;overflow:hidden;border-radius:22px}.help-chat-dialog .help-chat-heading{padding:22px 24px;border-bottom:1px solid #dce5e9;flex-shrink:0;align-items:center}.help-chat-heading h2{font-size:20px}.help-chat-heading p{font-size:12px;color:#66808c}.help-header-actions{display:flex;gap:7px}.help-chat-dialog .help-chat-messages{flex:1;min-height:80px;max-height:none;margin:0;padding:24px;overflow-y:auto}.help-chat-messages:empty:before{content:'What are you working on? Ask about an estimate, tender or attached file.';display:block;text-align:center;margin:70px auto;max-width:400px;color:#68818d;font-size:20px;line-height:1.7}.help-chat-dialog .help-message{background:transparent;border:0;padding:14px 0;max-width:92%;margin:10px 0;line-height:1.65}.help-chat-dialog .help-message.question{background:#eef4f5;border-radius:18px;padding:12px 18px;margin-left:auto;width:fit-content;max-width:85%}.help-chat-dialog #help-chat-form{padding:12px 22px 16px;border-top:1px solid #e1e8ec;flex-shrink:0}.help-chat-dialog .help-chat-compose{align-items:flex-end;flex-direction:row;padding:10px;border:1px solid #bccfd7;border-radius:20px;background:#f7fafb;box-shadow:0 3px 12px #102c3810}.help-chat-dialog .help-chat-compose textarea{border:0;background:transparent;resize:vertical;min-height:48px;max-height:150px;padding:8px;box-shadow:none;outline:none}.help-chat-dialog #help-attach-button,.help-chat-dialog #send-help-chat{width:38px;height:38px;min-width:38px;border-radius:12px;font-size:22px;padding:0}.help-composer-note{font-size:11px;color:#738996;margin:8px 0 0;text-align:center}.help-chat-dialog #help-settings{margin:0;padding:18px 24px;max-height:45vh;overflow:auto;border:0;border-bottom:1px solid #dce5e9;border-radius:0;flex-shrink:0}.help-chat-dialog #help-settings[hidden]{display:none}.help-chat-dialog #help-settings h3{margin:0 0 12px}.help-chat-dialog #help-reset-memory{margin-top:12px}.help-chat-dialog input[hidden]{display:none}html[data-theme="dark"] .help-chat-dialog .help-chat-heading,html[data-theme="dark"] .help-chat-dialog #help-chat-form,html[data-theme="dark"] .help-chat-dialog #help-settings{border-color:#34505d}html[data-theme="dark"] .help-chat-dialog .help-chat-compose,html[data-theme="dark"] .help-chat-dialog .help-message.question{background:#102630;border-color:#355463}html[data-theme="dark"] .help-chat-dialog .help-message.answer,html[data-theme="dark"] .help-chat-dialog .help-chat-compose textarea{background:transparent}.project-status.status-closed{background:#e5e9ed;color:#52606c}@media(max-width:600px){.help-chat-dialog .help-chat-heading{padding:14px;align-items:flex-start;gap:10px;flex-wrap:wrap}.help-header-actions{margin-left:auto}.help-chat-dialog .help-chat-messages{padding:14px}.help-chat-dialog #help-chat-form{padding:10px}.help-header-actions .button{font-size:12px;padding:7px}.help-chat-dialog .help-chat-compose{gap:6px}}

/* Equal header controls and a compact composer model selector. */
#help-chat-dialog .help-header-actions{display:grid;grid-template-columns:repeat(4,86px);gap:6px;align-items:center}
#help-chat-dialog .help-header-actions button{width:86px;height:42px;min-height:42px;margin:0;padding:0 7px;box-sizing:border-box;font-size:12px}
#help-chat-dialog .help-compose-options{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0 0;color:var(--muted);font-size:12px}
#help-chat-dialog .help-compose-options label{display:flex;align-items:center;gap:8px;margin:0}
#help-chat-dialog #help-model{width:auto;max-width:205px;min-height:32px;padding:4px 8px;font-size:12px}
@media(max-width:650px){#help-chat-dialog .help-header-actions{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}#help-chat-dialog .help-header-actions button{width:100%}#help-chat-dialog .help-compose-options{flex-wrap:wrap;gap:5px}}
/* Tenders retains its gold accent in both colour modes. */
html[data-workspace=tenders] .help-chat-launch{background:#f4cf38;border-color:#d1a900;color:#172b3a}
html[data-workspace=tenders] .help-chat-launch:hover{background:#ffe170}
html[data-workspace=tenders] .help-chat-dialog .primary{background:#f4cf38;border-color:#d1a900;color:#172b3a}
html[data-workspace=tenders] .help-compose-options{color:#8da6b4}
