.reference-intro{font-size:13px;line-height:1.7;color:#536650}.reference-card{padding:16px;margin:14px 0;background:#fff;border:1px solid #ccd7c3;border-radius:10px;min-width:0}.reference-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.reference-heading a{font-weight:650;overflow-wrap:anywhere}.reference-url{display:block;overflow-wrap:anywhere;color:#63735b;margin:8px 0 14px}.reference-card label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.reference-card textarea{width:100%;resize:vertical;font:inherit;font-size:13px;padding:10px;border:1px solid #cdd8c3;border-radius:5px;background:#fafbf7;color:#173129}.reference-read-status{font-size:12px;line-height:1.6;color:#56694e}.reference-card button,#add-reference,#reference-to-assistant{background:#edf2e5;border:1px solid #bdccaf;border-radius:5px;padding:9px 12px;color:#244331;cursor:pointer;font-size:12px}.reference-card .reference-remove{background:transparent;padding:3px 7px}.reference-count{font-size:11px;font-weight:400;margin-left:12px;color:#657a5d}.reference-actions{display:flex;gap:10px;flex-wrap:wrap}.preview-assistant-actions{display:flex;gap:8px;margin:0 0 12px;flex-wrap:wrap}.preview-assistant-actions button{font-size:12px;background:#f9faf5;border:1px solid #b9c9a9;border-radius:6px;color:#17372b;padding:9px 12px;cursor:pointer}.preview-assistant-actions button:first-child{background:#193d2d;color:#fff;border-color:#193d2d}.preview-assistant-actions [aria-pressed=true]{outline:2px solid #446833;outline-offset:2px}
.studio-assistant{background:#f8faf4;border-left:1px solid #cfdac5;min-height:0;min-width:0;display:flex;flex-direction:column;font-size:13px;color:#19352a;overflow:hidden}.studio-assistant[hidden]{display:none}.assistant-heading{display:flex;justify-content:space-between;align-items:center;padding:19px 18px 12px;border-bottom:1px solid #dbe3d2}.assistant-heading h2{font:600 18px/1.3 Arial,sans-serif;letter-spacing:-.5px;margin:0}.assistant-heading button{border:0;background:transparent;font-size:22px;cursor:pointer;min-width:36px;min-height:36px;color:#294d38}.assistant-context{margin:5px 0 0;font-size:11px;color:#607653}.assistant-scroll{flex:1;min-height:0;overflow:auto;padding:18px;scrollbar-width:thin}.assistant-welcome h3{font-size:21px;line-height:1.2;letter-spacing:-.5px;margin:0 0 10px}.assistant-welcome p{font-size:13px;line-height:1.7;color:#536a49}.assistant-message{margin:0 0 18px}.assistant-message p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;margin:6px 0 0}.assistant-message.user{padding:12px;background:#e8efdd;border-radius:10px}.message-author{font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:600}.assistant-sources{display:flex;flex-wrap:wrap;gap:6px 10px;margin-top:10px;font-size:11px}.assistant-sources small{width:100%;color:#687c5c}.assistant-sources a{overflow-wrap:anywhere;color:#3b663c}.assistant-compose{padding:14px 18px 18px;border-top:1px solid #d4dfc9;background:#f4f7ec}.assistant-compose label{font-size:11px;display:block;font-weight:600;margin:0 0 6px}.assistant-compose select,.assistant-compose textarea{width:100%;border:1px solid #bbcbae;border-radius:6px;background:#fff;padding:10px;color:#19352a;font:inherit;margin-bottom:10px}.assistant-compose textarea{min-height:88px;max-height:180px;resize:vertical}.assistant-actions{display:flex;gap:8px;flex-wrap:wrap}.studio-assistant button{font:inherit}.assistant-actions button,.assistant-history-entry button{border:1px solid #b9c9a9;border-radius:5px;padding:9px 12px;background:#fff;color:#193d2d;cursor:pointer}.assistant-actions .assistant-primary{background:#193d2d;border-color:#193d2d;color:#fff}.studio-assistant button:disabled{opacity:.6;cursor:wait}.assistant-status{font-size:11px;line-height:1.6;margin:9px 0 0;overflow-wrap:anywhere;min-height:18px}.assistant-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:14px}.assistant-chips button{border:1px solid #cad7c0;border-radius:15px;background:#fff;padding:6px 9px;color:#46653b;cursor:pointer;font-size:11px}.assistant-proposal:empty{display:none}.assistant-proposal{border-top:1px solid #c5d3b9;margin-top:18px;padding-top:15px}.assistant-proposal h3{font-size:14px;margin:0 0 12px}.assistant-diff{margin-bottom:12px}.assistant-diff details{padding:9px 0;border-bottom:1px solid #dbe3d3}.assistant-diff summary{font-size:12px;cursor:pointer;font-weight:600}.assistant-diff small{display:block;margin-top:10px;text-transform:uppercase;letter-spacing:.1em;font-size:9px}.assistant-diff p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;margin:4px 0 10px}.change-before{color:#6b7366}.change-after{border-left:3px solid #729c55;padding-left:8px}.assistant-history{padding:12px 18px;border-top:1px solid #dbe3d2;max-height:28%;overflow:auto;font-size:11px}.assistant-history summary{cursor:pointer;font-weight:600}.assistant-history-entry{margin-top:12px}.assistant-history-entry p{line-height:1.5;overflow-wrap:anywhere}.assistant-history-entry button{font-size:11px;padding:6px 9px}
/* The attachment affordance stays inside the message box. */
.chat-composer-box{background:#fff;border:1px solid #b9c9ad;border-radius:12px;padding:6px;min-width:0}.chat-composer-box:focus-within{outline:2px solid #70975b;outline-offset:2px}.chat-composer-box.is-dragging{background:#edf5e6;border-style:dashed}.assistant-compose .chat-composer-box textarea{border:0;outline:0;box-shadow:none;resize:vertical;margin:0;padding:9px;min-height:78px;background:transparent}.chat-composer-toolbar{display:flex;align-items:center;gap:6px;padding:3px;flex-wrap:wrap}.studio-assistant .chat-attach-button{width:34px;height:34px;flex:none;border:1px solid #ccd7c3;border-radius:50%;background:#f5f8ef;font:25px/1 Arial,sans-serif;color:#193d2d;cursor:pointer}.chat-attach-button:hover{background:#e8efdd}.chat-composer-toolbar .assistant-actions{margin-left:auto}.chat-composer-toolbar .assistant-actions button{padding:8px 10px}.assistant-compose .chat-composer-toolbar select{width:auto;max-width:125px;font-size:11px;margin:0;padding:5px;border:0;background:transparent}.chat-upload-help{font-size:10px;color:#64745a;margin-top:8px;line-height:1.6}.chat-upload-help summary{cursor:pointer}.chat-upload-help p{margin:6px 0}.chat-file-help{font-size:11px;line-height:1.5;margin:7px 0;color:#506477}.chat-file-help:empty{display:none}.chat-file{display:flex;align-items:center;gap:5px;padding:6px;background:#f1f5eb;border-radius:7px;margin:4px;min-width:0}.chat-file>img{width:28px;height:28px;object-fit:contain;border-radius:4px;background:#fff}.assistant-compose .chat-file label{display:flex;align-items:center;gap:5px;flex:1;min-width:0;font-size:11px;margin:0}.chat-file label span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-file input[type=checkbox]{width:14px;height:14px;flex:none}.chat-file button{padding:4px;border:0;background:transparent;font-size:11px;cursor:pointer}.message-file{display:block;overflow-wrap:anywhere;margin-top:5px;font-size:11px}.assistant-compose{max-height:58vh;overflow-y:auto}.assistant-compose #assistant-attachments{max-height:145px;overflow-y:auto}.assistant-compose [hidden]{display:none!important}

.chat-start-card{padding:20px;margin:0 0 26px;border:1px solid #bccdae;border-radius:12px;background:#eef3e5}.chat-start-card h3{font-size:22px;margin:0 0 10px;letter-spacing:-.5px}.chat-start-card p{font-size:14px;line-height:1.7}.chat-start-card .field-help{margin-bottom:0;font-size:12px}.chat-entry-link{border:1px solid #b9c9ad;background:#f4f8ed;color:#193d2d;border-radius:7px;padding:10px 12px;font:inherit;cursor:pointer;margin:12px 0}.assistant-starters{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}.assistant-starters button{padding:10px;text-align:left;border:1px solid #c9d6be;border-radius:8px;background:#fff;color:#244331;font-size:12px;line-height:1.5;cursor:pointer}.assistant-starters button:hover,.assistant-starters button:focus-visible{background:#e8efdd;border-color:#789465}.assistant-references,.assistant-saved-media{margin-top:18px;padding-top:12px;border-top:1px solid #d4dfc9}.assistant-references>summary,.assistant-saved-media>summary{font-weight:600;cursor:pointer;font-size:12px}.studio-assistant .reference-card{padding:12px}.studio-assistant .reference-card select{max-width:100%;padding:7px;margin-bottom:10px;border:1px solid #cdd8c3;border-radius:5px;background:#fff;color:inherit}.studio-assistant .reference-count{margin-left:4px}.assistant-saved-media .media-library{grid-template-columns:1fr}.assistant-saved-media .media-card{min-width:0}.assistant-saved-media .media-card>img,.assistant-saved-media .media-card>video{max-height:100px;object-fit:contain}.assistant-saved-media .media-card strong{overflow-wrap:anywhere}.assistant-references[hidden]{display:none}.assistant-compose .chat-file-help{overflow-wrap:anywhere}

.community-page{padding:clamp(24px,5vw,80px) 0;max-width:900px;margin:auto}.community-page h1{font-size:clamp(2.2rem,5vw,4rem)}.community-page h2{font-size:1.7rem}.community-page p,.community-copy{white-space:pre-wrap;overflow-wrap:anywhere}.community-card{border:1px solid var(--line,#ccc);padding:clamp(16px,3vw,32px);margin:24px 0;background:var(--paper,#fff);color:var(--ink,#172b22);border-radius:12px}.community-card img{max-height:420px;width:100%;object-fit:cover}.community-page label{display:block;font-size:.9rem;margin:12px 0 5px}.community-page input,.community-page textarea,.community-page select{box-sizing:border-box;width:100%;padding:12px;background:var(--paper,#fff);color:var(--ink,#172b22);border:1px solid var(--line,#aaa);border-radius:6px;font:inherit}.community-page textarea{min-height:110px}.community-page button{font:inherit;cursor:pointer;border:1px solid var(--line,#aaa);border-radius:6px;background:var(--ink,#172b22);color:var(--paper,#fff);padding:10px 16px;margin:8px 8px 8px 0}.community-page button:disabled{opacity:.5;cursor:wait}.community-page small{display:block;opacity:.8}.community-reply{margin-left:24px;border-left:2px solid var(--line,#ccc);padding-left:16px}.community-status{min-height:1.5em}.community-manager{padding:12px;border-top:1px solid #cdd6c8}.community-manager label{display:block}.community-manager input,.community-manager textarea,.community-manager select{width:100%;box-sizing:border-box;margin:4px 0 10px}.community-manager button{margin:5px 5px 5px 0}.community-manager .community-copy{max-height:160px;overflow:auto}
.community-manager input[type=checkbox]{width:auto}.community-manager article{border-top:1px solid #cdd6c8;padding:12px 0}.community-manager textarea{min-height:100px}

/* The composer and its answers form one inline workspace. */
#builder-editor .studio-assistant { position: static; width: auto; min-height: 0; flex: none; overflow: hidden; border: 1px solid #c9d5bf; border-radius: 12px; background: #fff; }
#builder-editor .assistant-heading { padding: 18px 18px 10px; border: 0; }
#builder-editor .assistant-heading h2 { font-size: 21px; }
.assistant-intro { font-size: 13px; line-height: 1.6; margin: 8px 0 0; color: #52694a; }
.assistant-start-options { margin: 0 18px 12px; font-size: 12px; }
.assistant-start-options > summary { cursor: pointer; color: #385b32; }
#builder-editor .assistant-compose { padding: 0 18px 14px; border: 0; background: #fff; }
.assistant-target { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.assistant-compose .assistant-target label { margin: 0; flex: none; font-size: 11px; }
.assistant-compose .assistant-target select { flex: 1; min-width: 0; margin: 0; padding: 7px; font-size: 12px; }
#assistant-attachments { max-height: 150px; overflow: auto; }
#builder-editor .assistant-scroll { position: relative; flex: none; height: clamp(180px, 30vh, 340px); max-height: 340px; min-height: 0; overflow: auto; overscroll-behavior: contain; border-top: 1px solid #d5dfcc; background: #f8faf4; padding: 16px 18px; }
#builder-editor .assistant-scroll:focus-visible { outline: 2px solid #6c8d54; outline-offset: -3px; }
#builder-editor .assistant-welcome h3 { font-size: 18px; }

/* Undo is anchored to the preview, outside the bounded conversation. */
.preview-browser { position: relative; }
.preview-browser-toolbar { min-height: 44px; height: auto; gap: 8px; padding: 6px 10px; }
#preview-business-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-history-tools { display: flex; align-items: center; flex: none; gap: 6px; }
.preview-history-tools > button, .preview-history-tools > details > summary { border: 1px solid #c8d4bd; background: #fff; color: #24402f; border-radius: 5px; padding: 6px 8px; font: 11px/1.4 Arial,sans-serif; cursor: pointer; white-space: nowrap; }
.preview-history-tools > button:disabled { opacity: .45; cursor: default; }
.preview-history-tools > button:focus-visible, .preview-history-tools > details > summary:focus-visible { outline: 2px solid #608647; outline-offset: 2px; }
.preview-history-tools .assistant-history { position: static; padding: 0; border: 0; max-height: none; overflow: visible; }
.preview-history-popover { position: absolute; z-index: 8; right: 10px; top: 46px; width: min(420px, calc(100% - 20px)); max-height: min(390px, calc(100% - 58px)); overflow: auto; overscroll-behavior: contain; padding: 16px; background: #fff; border: 1px solid #bdcdb0; border-radius: 10px; box-shadow: 0 12px 35px #1733252b; color: #19352a; }
.preview-history-popover h3 { margin: 0 0 8px; font-size: 15px; }
.preview-history-popover .field-help { margin: 6px 0; font-size: 12px; line-height: 1.5; }
#preview-history-status:empty { display: none; }
.preview-history-popover .assistant-history-entry { padding-top: 12px; border-top: 1px solid #dbe3d2; }
.preview-history-popover .assistant-history-entry > p { font-size: 13px; margin-bottom: 8px; }
.preview-history-popover .assistant-history-entry button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 600px) {
  #builder-editor .assistant-heading { padding: 15px 14px 10px; }
  #builder-editor .assistant-compose { padding-inline: 14px; }
  .assistant-start-options { margin-inline: 14px; }
  #builder-editor .assistant-scroll { padding-inline: 14px; }
  .preview-history-tools { gap: 4px; }
  .preview-history-tools > button, .preview-history-tools > details > summary { padding: 6px; font-size: 10px; }
}

/* The newest answer is part of the composer, above history and resources. */
#builder-editor .assistant-compose{max-height:none;overflow:visible}
#builder-editor .assistant-latest-response{margin-top:14px;padding:16px;border:1px solid #9db5a5;border-left:4px solid #285b43;border-radius:10px;background:#edf5f0;color:#173b2b;min-width:0}
#builder-editor .assistant-latest-response h3{font-size:16px;line-height:1.4;margin:0 0 10px;font-weight:700}
#builder-editor .assistant-latest-messages{max-height:360px;max-height:min(42vh,360px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#builder-editor .assistant-latest-messages:empty{display:none}
#builder-editor .assistant-latest-messages .message-author{display:none}
#builder-editor .assistant-latest-messages .assistant-message{background:#fff;border:1px solid #d3e1d8;border-radius:7px;padding:12px;margin:0 0 10px;font-size:14px}
#builder-editor .assistant-latest-messages .assistant-message:last-child{margin-bottom:0}
#builder-editor .assistant-latest-messages .assistant-message p{margin:0;line-height:1.65}
#builder-editor .assistant-latest-response .assistant-status{font-size:12px;font-weight:600;margin:10px 0 0}
#builder-editor .assistant-latest-response .assistant-proposal{margin-top:12px;padding-top:12px}
#builder-editor .assistant-scroll{height:auto;max-height:none;overflow:visible;background:#f8faf4}
.assistant-conversation-history>summary{font-size:13px;font-weight:600;cursor:pointer}
.assistant-conversation-history #assistant-messages{margin-top:12px;max-height:340px;overflow:auto;overscroll-behavior:contain}
#builder-editor .assistant-conversation-history .assistant-message.assistant{background:#fff;border:1px solid #d3e1d8;border-radius:7px;padding:12px}
@media(max-width:600px){#builder-editor .assistant-latest-response{padding:12px}#builder-editor .assistant-latest-messages{max-height:300px}}
