/* Shared visual language for the test workspace and the future support widget. */
:root{--canvas:#f2f5f8;--ink:#142b36;--text:#243f49;--muted:#536976;--line:#d9e3e8;--teal:#006f68;--soft:#e8f4f1;--focus:#6ed7c0;--danger:#a93621}
body.pilot-page,body.widget-page{font-family:Arial,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas)}
[hidden]{display:none!important}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}
.pilot-header{min-height:76px;padding:16px max(24px,calc((100vw - 1280px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;border-bottom:1px solid var(--line)}
.header-actions{display:flex;align-items:center;gap:20px}.pilot-label{padding:8px 12px;border-radius:8px;background:#fff0b8;color:#554414;font-size:13px;font-weight:600}.brand{font-weight:800}.brand-caption{font-weight:400}
.pilot-main{max-width:1328px;margin:auto;padding:30px 24px 40px}.pilot-intro{margin-bottom:24px}.pilot-intro .eyebrow{font-size:11px;letter-spacing:1.5px;margin:0 0 12px;color:var(--teal)}.pilot-intro h1{font-size:clamp(26px,3vw,38px);line-height:1.18;letter-spacing:-1px}.pilot-intro>p:last-child{font-size:16px;color:var(--muted);line-height:1.5;margin-top:12px}
.workspace-nav{display:flex;gap:12px;margin-bottom:24px;flex-wrap:wrap}.workspace-nav a{background:white;border:1px solid var(--line);border-radius:12px;padding:13px 18px;display:flex;gap:26px;align-items:center;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none}.workspace-nav a:first-child{background:var(--teal);border-color:var(--teal);color:white}.workspace-nav a:hover{box-shadow:0 3px 10px #173b3414}.workspace-nav span{font-size:12px;opacity:.7}
.pilot-login{max-width:840px;margin:32px 0;display:grid;grid-template-columns:1fr 1fr;gap:32px;padding:32px}.pilot-login h2{font-size:24px}.pilot-login .muted{font-size:16px;line-height:1.6;margin-top:12px}.pilot-login button{margin-top:16px}.pilot-login input{font-size:17px}
.pilot-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.pilot-chat{min-width:0;overflow:hidden;border:1px solid #becfd7;border-radius:20px;background:white;box-shadow:0 8px 24px #16372f08}.pilot-chat-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 24px;background:#fff;border-bottom:1px solid var(--line)}.pilot-chat-heading h2{font-size:21px;letter-spacing:-.4px}.pilot-chat-heading p{font-size:14px;line-height:1.5;color:var(--muted);margin-top:6px}.live-label{font-size:12px;font-weight:600;color:var(--teal);text-align:center;white-space:nowrap;padding:8px 10px;border-radius:8px;background:var(--soft)}
.pilot-frame{display:block;width:100%;height:650px;border:0;background:white}.pilot-side{display:grid;gap:16px}.pilot-status{display:flex;gap:12px;background:white;border:1px solid var(--line);border-radius:16px;padding:20px}.step-number{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--soft);color:var(--teal);font-size:11px;flex-shrink:0}.pilot-status h2{font-size:13px;font-weight:500;color:var(--muted);margin:5px 0 8px}.pilot-status strong{font-size:18px;line-height:1.4;display:block;overflow-wrap:anywhere}.pilot-status p{font-size:13px;line-height:1.6;color:var(--muted);margin-top:10px}.pilot-status .request-diagnostic{border-top:1px solid var(--line);padding-top:10px;font-size:12px}.pilot-status .request-diagnostic.failed{color:var(--danger)}
.pilot-result{background:#dff1ec;border:1px solid #b6dace;border-radius:16px;padding:24px}.pilot-result .eyebrow{font-size:10px;margin:0 0 12px;letter-spacing:1px}.pilot-result h2{font-size:21px;line-height:1.3;margin-bottom:12px}.pilot-result p:not(.eyebrow){font-size:14px;line-height:1.6;color:#2c5350}.pilot-result a,.pilot-result button{margin-top:16px;font-size:14px}.pilot-note-small{font-size:13px;line-height:1.6;color:var(--muted);padding:0 6px}
.pilot-extra{border:1px solid var(--line);border-radius:16px;background:#fff;margin-top:18px;overflow:hidden;scroll-margin-top:18px}.pilot-extra>summary{cursor:pointer;padding:22px 24px;list-style:none;display:flex;align-items:center;gap:18px;font-size:17px;font-weight:600}.pilot-extra>summary::-webkit-details-marker{display:none}.pilot-extra>summary:after{content:'+';margin-left:auto;font-size:24px;color:var(--teal)}.pilot-extra[open]>summary:after{content:'−'}.pilot-extra .extra-caption{font-size:14px;color:var(--muted);font-weight:400}.pilot-extra>.operation-card,.pilot-extra>.journal-section{margin:12px 24px 28px}.pilot-footer{max-width:1280px;margin:0 auto 28px;padding:0 24px;font-size:13px;color:var(--muted)}
.pilot-page .journal-caption,.pilot-page .operation-body p,.pilot-page .knowledge-filters label,.pilot-page .result-count{font-size:14px}.pilot-page .knowledge-row strong{font-size:16px}.pilot-page .knowledge-category,.pilot-page .knowledge-badge,.pilot-page .knowledge-id{font-size:12px}.pilot-page .knowledge-filters input,.pilot-page select{font-size:16px}.pilot-page .knowledge-full-text{font-size:16px}.pilot-page .field-hint{font-size:13px;color:var(--muted)}.pilot-page .detail-notice{font-size:14px}.pilot-page .primary-button,.pilot-page .secondary-button{min-height:44px;font-size:14px}.pilot-page .dialog-close{width:44px;height:44px}.pilot-page .detail-actions{flex-wrap:wrap}.pilot-page .operation-body .small-note{font-size:12px;color:var(--muted)}
.widget-page.pilot-embedded{padding:0;background:white}.pilot-embedded .widget-shell{max-width:none;height:100dvh;min-height:0;max-height:none;border:0;box-shadow:none;border-radius:0}.pilot-embedded .widget-header,.pilot-embedded .widget-mode-bar{display:none}.pilot-embedded .chat-view{flex:1;min-height:0;display:flex}.pilot-embedded .chat-toolbar{padding:12px 24px;min-height:48px;background:#f7f9fb}.pilot-embedded .chat-toolbar>span{font-size:13px;color:var(--muted)}.pilot-embedded .chat-toolbar .text-button{font-size:13px}
.pilot-embedded .messages{padding:24px;flex:1;min-height:120px;background:white}.widget-page .message{max-width:94%;font-size:16px}.widget-page .message-body{font-size:16px;line-height:1.65}.widget-page .message-author{font-size:12px;color:var(--muted);margin-bottom:7px}.widget-page .message.user .message-body{background:#e3f1ee;color:#163f3c;border:1px solid #bddacf;border-radius:14px 14px 4px 14px;padding:14px 17px}.widget-page .message.assistant .message-body{background:#f5f7fa;border:1px solid #e2e8ee;border-radius:14px 14px 14px 4px;padding:14px 17px}.widget-page .message.system .message-body{font-size:12px;color:var(--muted);background:transparent;padding:4px}.widget-page .message.message-error .message-body{background:#fff3ed;border-color:#edc4b5;color:#853520}.retry-question{font-size:13px;min-height:40px;margin-top:10px}
.pilot-embedded .composer,.widget-page .composer{margin:0 20px 10px;padding:16px;background:#f1f8f6;border:2px solid #9ebfb5;border-radius:14px;box-shadow:0 3px 12px #0b4c3c06}.widget-page .composer:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px #d4ede5}.composer-label{display:block;font-size:14px;font-weight:700;color:var(--ink);margin-bottom:9px}.widget-page .composer textarea{min-height:75px;font-size:16px;line-height:1.5;background:white;border:1px solid #bdcfc9;border-radius:8px;padding:12px;width:100%;resize:vertical;max-height:180px}.widget-page .composer textarea:focus{outline:0;box-shadow:none}.widget-page .composer-bottom{padding-top:12px}.widget-page .composer-bottom>span{font-size:11px;line-height:1.5;color:var(--muted);max-width:65%}.widget-page .send-button{width:auto;min-width:122px;height:44px;border-radius:10px;padding:10px 14px;gap:7px;font-size:14px;display:inline-flex;align-items:center;justify-content:center}.send-label{display:inline}.widget-page .send-button svg{width:18px;height:18px}.pilot-embedded .chat-footer{padding:0 24px 12px;font-size:12px}
.pilot-embedded .conversation-status{font-size:12px;line-height:1.5;margin:0 20px 10px;padding:10px 12px;background:#f5f7fa;border-color:var(--line);color:var(--muted)}.pilot-embedded .resolution-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 24px 12px;margin:0}.pilot-embedded .resolution-row button{font-size:13px;min-height:38px}.pilot-embedded .resolution-row #operator-button{font-weight:650;color:var(--teal)}
.pilot-email-wrap{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid #cddfd7}.pilot-email-wrap label{font-size:14px;font-weight:600;display:block;margin:0 0 8px}.pilot-email-wrap input{padding:11px 12px;font-size:16px;background:white}.pilot-email-wrap p{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.5}.pilot-examples{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.pilot-examples button{border:1px solid #c5d9d1;background:#fff;border-radius:9px;font-size:13px;min-height:40px;padding:9px 12px;color:var(--teal)}.pilot-sources{margin-top:10px}.pilot-sources>summary{color:var(--teal);font-size:12px;cursor:pointer;padding:8px 0}.pilot-embedded #reset-button{display:inline-flex!important}.pilot-embedded .chat-toolbar #reset-button{height:36px;width:auto;font-size:13px;padding:6px 10px;gap:5px}.widget-page .suggestion-label{font-size:11px;line-height:1.5;text-transform:none}.widget-page .suggestion strong{font-size:14px}.widget-page .suggestion-full p{font-size:14px}.widget-page .suggestion-preview{font-size:13px}.widget-page .suggestion{background:#f8faf9}.widget-page .suggestion-open-label,.widget-page .suggestion-close-label{font-size:12px}.pilot-offline{padding:35px;color:var(--muted);font-size:16px;line-height:1.8}
.editor-dialog{width:min(1160px,96vw);max-height:94dvh;padding:28px;overflow:auto;border:1px solid var(--line);border-radius:20px}.editor-dialog .detail-heading h2{font-size:27px}.editor-lead{font-size:15px;line-height:1.6;color:var(--muted);margin-bottom:22px}.editor-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:28px}.editor-fields label,.editor-preview>label{display:block;font-size:14px;font-weight:600;margin:17px 0 8px}.editor-fields>label:first-child{margin-top:0}.editor-fields input,.editor-fields textarea,.editor-fields select,.editor-preview textarea{width:100%;font:inherit;font-size:16px;line-height:1.6;padding:11px 13px;background:white;border:1px solid #9eb4bd;border-radius:9px;color:var(--ink)}.editor-fields textarea{resize:vertical;min-height:90px}.editor-fields #edit-text{min-height:260px}.optional{font-size:12px;font-weight:400;color:var(--muted);margin-left:5px}.editor-save-row{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-top:18px}#editor-saved{font-size:12px;color:var(--muted)}.editor-preview{background:#f3f7f9;border:1px solid var(--line);border-radius:14px;padding:22px;align-self:start}.editor-preview h3{font-size:20px;margin-bottom:10px}.editor-preview p{font-size:14px;line-height:1.6;color:var(--muted)}.editor-preview .eyebrow{font-size:10px;color:var(--teal);margin-bottom:10px}.editor-preview textarea{margin-bottom:12px;resize:vertical}.editor-preview .field-hint{font-size:12px;line-height:1.6;margin-top:10px}.editor-answer{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;border:1px solid var(--line);border-radius:10px;background:white;line-height:1.65;font-size:15px;margin-top:18px;max-height:400px;overflow:auto}.publish-panel{border-top:1px solid #cddae0;margin-top:24px;padding-top:22px}.review-checkbox{display:flex;gap:10px;font-size:13px;line-height:1.6;margin:14px 0 18px;cursor:pointer}.review-checkbox input{width:19px;height:19px;flex-shrink:0;accent-color:var(--teal);margin-top:2px}.editor-history{margin-top:26px;border-top:1px solid var(--line);padding-top:18px}.editor-history summary{font-size:15px;font-weight:600;cursor:pointer}.editor-history p{font-size:14px;line-height:1.6;margin:12px 0;color:var(--muted)}.version-button{display:block;width:100%;text-align:left;border:1px solid var(--line);background:#f8fafb;border-radius:9px;padding:12px 14px;margin-top:10px;font-size:13px;color:var(--teal)}.editor-message{background:#e5f4ec;color:#20533f;border:1px solid #bedccc;padding:12px 16px;font-size:14px;line-height:1.5;border-radius:10px;margin:12px 0 20px}.editor-message.failed{background:#fff1e9;color:#883c21;border-color:#e8c3b1}
@media(max-width:980px){.pilot-workspace{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.pilot-status{padding:16px;gap:8px}.pilot-result{padding:20px}.pilot-status strong{font-size:16px}.pilot-main{padding:25px 20px}.pilot-frame{height:700px}}
@media(max-width:740px){.pilot-header{min-height:66px;padding:14px 18px}.header-actions{gap:12px}.pilot-label{font-size:11px}.pilot-main{padding:24px 16px}.pilot-intro>p:last-child{font-size:15px}.workspace-nav{gap:8px}.workspace-nav a{font-size:13px;padding:11px 13px;gap:12px}.workspace-nav span{display:none}.pilot-workspace{display:flex;flex-direction:column;gap:18px}.pilot-chat,.pilot-side{width:100%}.pilot-side{grid-template-columns:1fr 1fr;gap:12px}.pilot-result,.pilot-note-small{grid-column:1/-1}.pilot-status .step-number{display:none}.pilot-chat-heading{padding:18px 16px;align-items:flex-start}.pilot-chat-heading h2{font-size:19px}.pilot-chat-heading p{font-size:13px}.live-label{font-size:11px;white-space:normal;min-width:72px}.pilot-frame{height:720px}.pilot-extra>summary{padding:18px;font-size:16px}.extra-caption{display:none}.pilot-extra>.operation-card,.pilot-extra>.journal-section{margin:10px 16px 22px}.pilot-login{display:block;margin:25px 0;padding:24px}.pilot-login form{margin-top:22px}.pilot-embedded .messages{padding:18px 14px}.widget-page .composer{margin:0 12px 10px;padding:12px}.widget-page .message{max-width:100%}.widget-page .message-body{font-size:16px}.pilot-embedded .chat-toolbar{padding:10px 14px;gap:8px}.pilot-embedded .resolution-row{padding:0 14px 10px}.pilot-embedded .conversation-status{margin:0 12px 10px}.pilot-embedded .chat-footer{padding:0 14px 12px}.widget-page .composer-bottom>span{max-width:50%;font-size:10px}.widget-page .send-button{min-width:115px}.editor-dialog{padding:20px 16px}.editor-grid{grid-template-columns:1fr;gap:24px}.editor-preview{padding:18px}.editor-dialog .detail-heading h2{font-size:23px}.pilot-page .detail-actions>*{width:100%}.editor-fields #edit-text{min-height:230px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Keep the question field in sight on common laptop screens. */
@media(min-width:741px){.pilot-header{min-height:60px;padding-top:10px;padding-bottom:10px}.pilot-main{padding-top:20px}.pilot-intro .eyebrow{display:none}.pilot-intro h1{font-size:30px}.pilot-intro{margin-bottom:18px}.pilot-intro>p:last-child{font-size:14px;margin-top:8px}.workspace-nav{margin-bottom:18px}.workspace-nav a{padding:11px 16px}.pilot-chat-heading{padding:17px 22px}.pilot-chat-heading p{margin-top:4px}.pilot-frame{height:clamp(475px,calc(100dvh - 300px),650px)}}
.pilot-embedded .pilot-email-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1fr);gap:4px 14px;align-items:center;padding-bottom:12px;margin-bottom:12px}.pilot-embedded .pilot-email-wrap label{font-size:13px;margin:0}.pilot-embedded .pilot-email-wrap input{font-size:15px;padding:9px 11px;grid-column:2;grid-row:1/3}.pilot-embedded .pilot-email-wrap p{font-size:11px;margin:0;line-height:1.4}.pilot-embedded .composer textarea{min-height:60px}.pilot-embedded .composer{padding:12px 14px}.pilot-embedded .composer-label{margin-bottom:7px}.pilot-embedded .composer-bottom{padding-top:9px}.pilot-embedded .messages{min-height:100px}.pilot-embedded .message-body{border-radius:14px}.pilot-embedded .chat-toolbar{min-height:44px}
@media(max-width:740px){.pilot-embedded .pilot-email-wrap{display:block}.pilot-embedded .pilot-email-wrap label{margin-bottom:8px}.pilot-embedded .pilot-email-wrap p{margin-top:6px}}

.live-label.failed{background:#fff0e7;color:#943c20}
@media(min-width:741px){.has-conversation .pilot-frame{height:620px}}
