.ac-toolbar{display:flex;align-items:center;gap:16px;margin:-4px 0 20px;flex-wrap:wrap}.ac-toolbar>label{display:flex;align-items:center;gap:12px;font-size:13px}.ac-toolbar select{width:248px}.ac-save-state{font-size:12px;color:var(--muted)}.ac-toolbar>.btn{margin-left:auto}
.ac-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:20px;align-items:start}.ac-editor{min-width:0}.ac-tabs{display:flex;gap:4px;overflow-x:auto;margin-bottom:16px;border-bottom:1px solid var(--border);padding-bottom:10px}.ac-tabs button{padding:8px 10px;border-radius:8px;color:var(--muted);white-space:nowrap;font-size:13px}.ac-tabs button[aria-pressed=true]{background:var(--selected);color:var(--text);font-weight:500}.ac-tabs button:hover{background:var(--hover)}
.ac-section+.ac-section{margin-top:16px}.ac-section .field{display:flex;flex-direction:column;gap:7px;margin:0 0 18px;font-size:13px}.ac-section .field:last-child{margin-bottom:0}.ac-section .field input,.ac-section .field select,.ac-section .field textarea{width:100%;min-width:0}.ac-section textarea{resize:vertical;min-height:88px;border:1px solid var(--control-border);border-radius:9px;padding:10px 12px;font-size:14px;line-height:1.65}.ac-section .field small,.ac-help{font-size:12px;line-height:1.6;color:var(--muted);font-weight:400}.ac-field-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:18px}.ac-instructions{min-height:290px!important}.ac-help{margin:12px 0 0}.ac-property{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:13px;padding:10px 0;border-bottom:1px solid var(--border)}.ac-property:last-child{border-bottom:0;padding-bottom:0}.ac-property:first-child{padding-top:0}.ac-property>span:first-child{color:var(--muted)}.ac-property strong{font-weight:500}
.ac-choices{display:grid;gap:8px}.ac-choice{display:flex;gap:10px;align-items:center;padding:12px;background:var(--surface);border-radius:10px;cursor:pointer}.ac-choice:has(input:checked){background:var(--selected)}.ac-choice-icon{display:flex;color:var(--muted)}.ac-choice-icon .icon{width:20px;height:20px}.ac-choice strong{display:block;font-size:14px;font-weight:500}.ac-choice small{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}.ac-choice input,.ac-switch input{width:16px;height:16px;accent-color:var(--text);flex-shrink:0}.ac-switch{display:flex;align-items:center;justify-content:space-between;gap:18px}.ac-switch strong{font-weight:500;font-size:14px}.ac-switch small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.ac-error{display:flex;gap:8px;align-items:center;padding:12px 14px;background:var(--feedback-error-bg);color:var(--feedback-error);border-radius:9px;font-size:13px;margin-bottom:16px}.ac-error .icon{height:18px;width:18px}
#ac-preview-host{position:sticky;top:24px;min-width:0}.ac-preview{margin:0}.ac-preview>.feature-block-header{display:flex;align-items:center;justify-content:space-between}.ac-preview-identity{display:flex;align-items:center;gap:10px;padding-bottom:18px;border-bottom:1px solid var(--border)}.ac-preview-identity>.icon{width:22px;height:22px;color:var(--muted);flex-shrink:0}.ac-preview-identity>div{min-width:0;flex:1}.ac-preview-identity strong{font-size:16px;font-weight:600;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ac-preview-identity small{font-size:12px;color:var(--muted);display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ac-preview-identity .pill{font-size:11px}.ac-preview-feed{min-height:240px;max-height:380px;overflow:auto;padding:20px 0 16px;scrollbar-width:thin}.ac-preview-greeting{font-size:14px;line-height:1.65;margin:0 0 20px}.ac-preview-prompts{display:grid;gap:8px}.ac-preview-prompts button{text-align:left;border-radius:9px;padding:10px 12px;background:var(--surface);font-size:13px;line-height:1.5}.ac-preview-prompts button:hover{background:var(--hover)}.ac-preview-message{font-size:14px;line-height:1.65;margin-bottom:18px}.ac-preview-message p{white-space:pre-wrap;margin:0;overflow-wrap:anywhere}.ac-preview-message.is-user{background:var(--selected);border-radius:12px;padding:10px 12px;margin-left:28px}.ac-preview-sources{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.ac-preview-sources>span{display:flex;gap:5px;align-items:center;font-size:12px;border:1px solid var(--border);border-radius:7px;padding:4px 7px;max-width:100%;overflow:hidden;text-overflow:ellipsis}.ac-preview-sources .icon{width:14px;height:14px;flex-shrink:0}.ac-preview-compose{display:flex;align-items:flex-end;gap:6px;padding:10px;background:var(--surface);border:1px solid var(--control-border);border-radius:12px}.ac-preview-compose:focus-within{border-color:var(--focus-ring);box-shadow:0 0 0 2px var(--selected)}.ac-preview-compose textarea{background:transparent;border:0;box-shadow:none!important;outline:none;resize:vertical;min-height:58px;max-height:160px;min-width:0;flex:1;padding:2px;font-size:14px;line-height:1.6}.ac-preview-compose button{flex-shrink:0;background:var(--selected);width:32px;height:32px}.ac-preview-compose button .icon{width:18px;height:18px}.ac-preview-note{font-size:12px;color:var(--muted);line-height:1.65;margin:12px 0 0}
.agent-tile-heading h3{flex:1}.agent-tile-heading .agent-config-entry{width:28px!important;height:28px;flex-shrink:0;color:var(--muted)}.agent-config-entry .icon{width:16px;height:16px}
@media(max-width:1100px){.ac-layout{grid-template-columns:minmax(0,1fr) 290px;gap:16px}.ac-field-grid{grid-template-columns:1fr}.ac-preview{padding:16px}.ac-tabs button{padding:8px;font-size:12px}}
@media(max-width:900px){.ac-layout{grid-template-columns:1fr}#ac-preview-host{position:static}.ac-field-grid{grid-template-columns:1fr 1fr}.ac-preview-feed{min-height:160px}.ac-toolbar{gap:10px}}
@media(max-width:550px){.ac-field-grid{grid-template-columns:1fr}.ac-toolbar>label{width:100%}.ac-toolbar select{flex:1;min-width:0}.ac-toolbar>.btn{margin-left:0}.ac-tabs{gap:2px}.ac-tabs button{font-size:13px}}
