.bot-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:18px}.bot-profile-card{border:1px solid var(--vh-border,#dfe4e8);border-radius:16px;padding:22px;background:var(--vh-surface,#fff);display:flex;flex-direction:column;gap:12px}.bot-profile-avatar{border-radius:50%;object-fit:cover;align-self:center}.bot-profile-card h3{text-align:center;margin:0 0 8px}.bot-profile-card label,.bot-settings-form label{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.bot-profile-card input[type=text],.bot-profile-card input[type=number],.bot-profile-card select{width:100%;padding:9px;border:1px solid var(--theme-border,#bcc8d1);border-radius:8px;font:inherit}.bot-profile-card .fine,.bot-notification-settings .fine{font-size:.9rem;line-height:1.5;color:var(--theme-muted,#526172)}.bot-profile-card button{margin-top:auto}.bot-notification-settings{margin-top:24px;padding:20px;border:1px solid var(--theme-border,#dfe4e8);border-radius:14px}.bot-settings-form{display:flex;flex-direction:column;gap:13px}.bot-settings-form fieldset{max-height:260px;overflow:auto;border:1px solid var(--theme-border,#bcc8d1);border-radius:9px;padding:12px}.bot-settings-form fieldset label{margin:8px 0}.bot-settings-form button{align-self:flex-start}.bot-profile-card [hidden]{display:none}.room-item.bot-contact .avatar{overflow:hidden}.room-item.bot-contact img{width:100%;height:100%;object-fit:cover}.room-item.bot-contact small{color:#617287}

.bot-profile-card label:has(input[type=checkbox]),.bot-notification-settings label:has(input[type=checkbox]){flex-wrap:nowrap}.bot-profile-card input[type=checkbox],.bot-notification-settings input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;accent-color:var(--vh-blue,#07577b)}

.bot-answer-sources{margin-top:.7rem;font-size:.78em;line-height:1.45;color:var(--theme-muted,var(--muted,#69747c));white-space:normal;overflow-wrap:anywhere}.bot-answer-sources a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.bot-answer-sources a:hover,.bot-answer-sources a:focus-visible{color:var(--theme-link,#015f8f)}

.bot-notice-links{margin-top:.75rem;white-space:normal}.bot-notice-button{display:inline-flex;align-items:center;min-height:36px;padding:.4rem .85rem;border:1px solid var(--theme-border,#bdcbd4);border-radius:9px;background:var(--theme-surface,#fff);color:var(--theme-link,#015f8f);font-size:.9em;font-weight:600;text-decoration:none}.bot-notice-button:hover,.bot-notice-button:focus-visible{background:var(--theme-soft,#edf4f7);outline-offset:3px}

.bot-answer-sources[data-kind=knowledge]{color:#657d92}html[data-theme=dark] .bot-answer-sources[data-kind=knowledge]{color:#a3b6c7}

.bot-conditional-settings{display:flex;flex-direction:column;gap:12px;border:1px solid var(--vh-border,#bcc8d1);border-radius:10px;padding:14px;min-width:0}.bot-conditional-settings legend{font-size:.85em;color:var(--vh-muted,#526172);padding:0 6px}.bot-conditional-settings.is-disabled{background:var(--vh-soft,#f3f5f7);opacity:1}.bot-conditional-settings:disabled input,.bot-conditional-settings:disabled select,.bot-conditional-settings:disabled button{cursor:not-allowed}.bot-setting-state{font-size:.85rem;color:var(--vh-muted,#526172);margin:0}

.bot-page-actions{position:sticky;bottom:0;padding:16px 0;background:var(--vh-surface,#fff);z-index:2}.bot-page-actions button{min-height:44px}.bot-profile-card .bot-conditional-settings{flex:1}

.bot-profile-card input:not([type=checkbox]),.bot-profile-card select,.bot-settings-form input:not([type=checkbox]),.bot-settings-form select{background:var(--theme-surface,#fff);color:var(--theme-text,#17384a)}
.bot-conditional-settings.is-disabled{color:var(--theme-muted,#526172)}
.bot-conditional-settings:disabled input:not([type=checkbox]),.bot-conditional-settings:disabled select{background:var(--theme-soft,#edf2f5);color:var(--theme-muted,#526172);-webkit-text-fill-color:var(--theme-muted,#526172);opacity:1}

.bot-profile-card input[type=text],.bot-profile-card input[type=number],.bot-profile-card select,.bot-settings-form input[type=number],.bot-settings-form select{box-sizing:border-box;min-height:44px}
.bot-profile-card select,.bot-settings-form select{height:44px;appearance:none;-webkit-appearance:none;padding-right:32px;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 12px) 50%;background-size:6px 6px;background-repeat:no-repeat}
