@import url('./bot-validation-focus.css');
@import url('./bot-automations.css');
@import url('./bot-message-editor.css');
@import url('./bot-editor.css');
@import url('./bot-phone-preview.css');
.bots-page{min-width:0}.bot-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;min-height:38px}.bot-toolbar .input-wrap{max-width:300px;min-width:180px}.bot-toolbar>.btn:last-child{margin-left:auto}.bot-segment{display:flex;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--canvas)}.bot-segment .btn{border:0;min-height:28px;font-size:11px;padding:5px 12px;background:transparent}.bot-segment .btn[aria-pressed=true]{background:var(--surface);color:var(--accent);box-shadow:0 1px 4px #0000000a}.bot-flow-list{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.bot-flow-row+.bot-flow-row,.bot-person-row+.bot-person-row{border-top:1px solid var(--line)}.bot-flow-link{display:flex;align-items:center;gap:18px;padding:20px 22px;transition:background .2s var(--ease)}.bot-flow-link:hover{background:var(--soft)}.bot-flow-link>span:nth-child(2){flex:1;min-width:0}.bot-flow-link strong,.bot-person-row strong{display:block;font-size:14px;overflow-wrap:anywhere}.bot-flow-link small,.bot-person-row small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.bot-flow-link>.icon{color:var(--muted);width:17px}.bot-flow-symbol{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;background:var(--soft);color:var(--accent)}.bot-flow-symbol .icon{width:21px;height:21px}.bot-status{display:inline-flex;align-items:center;font-size:10px;line-height:1.4;padding:5px 9px;border-radius:6px;background:var(--canvas);color:var(--muted);white-space:nowrap}.bot-status.published{background:var(--positive-soft);color:var(--positive)}.bot-empty{min-height:420px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px 20px;gap:17px}.bot-empty-symbol{display:grid;place-items:center;width:66px;height:66px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--accent);box-shadow:0 6px 20px #00000004}.bot-empty-symbol .icon{width:27px;height:27px;stroke-width:1.35}.bot-empty h2{font-size:20px;letter-spacing:-.5px}.bot-empty p{font-size:12px;line-height:1.7;color:var(--muted);max-width:310px;margin:0}.bot-empty>div{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.bot-overflow{position:relative}.bot-overflow summary{list-style:none;display:grid;place-items:center;width:34px;height:34px;cursor:pointer;border-radius:8px}.bot-overflow summary:hover{background:var(--soft)}.bot-overflow summary::-webkit-details-marker{display:none}.bot-overflow>div{position:absolute;right:0;top:40px;width:190px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 40px #0002;z-index:9;display:grid;gap:3px}.bot-overflow .btn{border:0;background:transparent;justify-content:flex-start}.bot-overflow .btn:hover{background:var(--soft)}.bot-test-panel{position:absolute;inset:0 0 0 auto;width:365px;z-index:5;background:var(--surface);border-left:1px solid var(--line);box-shadow:-12px 0 35px #0000000b;display:flex;flex-direction:column;min-height:0;animation:bot-panel-in .2s var(--ease)}@keyframes bot-panel-in{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}.bot-test-note{font-size:10px;line-height:1.6;color:var(--muted);margin:0;padding:12px 18px;border-bottom:1px solid var(--line)}.bot-transcript{flex:1;overflow:auto;padding:18px;min-height:100px;background:var(--canvas);display:flex;flex-direction:column;gap:12px}.bot-bubble{width:90%;padding:12px;border:1px solid var(--line);background:var(--surface);border-radius:12px 12px 12px 3px}.bot-bubble.incoming{margin-left:auto;background:var(--soft);border-radius:12px 12px 3px 12px}.bot-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.6;margin:0 0 7px}.bot-bubble>small{display:block;color:var(--muted);font-size:9px;margin-top:6px}.bot-bubble>.btn{width:100%;margin-top:5px;font-size:11px;white-space:normal}.bot-test-answer{display:flex;gap:7px;padding:12px;border-top:1px solid var(--line)}.bot-test-answer input{flex:1;min-width:0;border:1px solid var(--line);border-radius:8px;padding:9px;background:var(--canvas);color:var(--ink);font:12px Plex}.bot-test-panel>.btn{margin:8px 15px;min-height:30px}.bot-test-log{border-top:1px solid var(--line);padding:12px 16px;max-height:180px;overflow:auto;font-size:11px}.bot-test-log summary{cursor:pointer;color:var(--muted)}.bot-test-log button{display:block;text-align:left;width:100%;border:0;background:transparent;color:var(--ink);padding:10px 0;font-size:11px}.bot-test-log small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.bot-history{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px}.bot-history h2{font-size:14px;margin-bottom:18px}.bot-history-row{display:flex;gap:12px;align-items:center;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line);padding:15px 0;color:var(--ink);font-size:12px;text-align:left}.bot-history-row>span:first-child{flex:1}.bot-history-row strong{display:block;font-weight:500}.bot-history-row small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.bot-history-row .icon{width:15px;color:var(--muted)}.bot-person-row{display:flex;align-items:center;gap:15px;text-align:left;width:100%;padding:18px 20px;background:transparent;border:0;color:var(--ink);cursor:pointer;transition:background .2s}.bot-person-row:hover{background:var(--soft)}.bot-person-avatar{display:grid;place-items:center;width:34px;height:34px;background:var(--soft);border-radius:50%;font-size:12px;color:var(--accent);flex-shrink:0}.bot-person-row>span:nth-child(2){flex:1}.bot-person-tags{display:flex;gap:4px}.bot-person-tags i{font-size:10px;padding:4px 7px;background:var(--soft);border-radius:5px;font-style:normal;color:var(--muted)}.bot-inline-check{font-size:12px;color:var(--muted);display:flex;gap:7px;align-items:center}.bot-connection-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}.bot-connection-list:has(.bot-empty){display:block}.bot-connection>header{display:flex;align-items:center;gap:13px;margin-bottom:22px}.bot-connection>header>div{flex:1}.bot-connection strong{font-size:13px}.bot-connection small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.bot-connection-note{font-size:12px;color:var(--muted)}.bot-local-note{font-size:11px;line-height:1.7;color:var(--muted);margin:20px 0 0}.bot-field-list{display:grid;gap:12px;margin-bottom:20px}.bot-field-list>div{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:10px;font-size:12px;gap:12px}.bot-field-list small{color:var(--muted)}.bot-person-runs{display:grid;gap:8px;font-size:11px;margin-top:20px}.bot-person-runs a{color:var(--accent)}
@media(max-width:850px){.bot-history{grid-template-columns:1fr}}
@media(max-width:700px){.bot-toolbar{gap:8px}.bot-toolbar .input-wrap{max-width:none;min-width:120px;flex:1}.bot-toolbar>.btn:last-child{margin-left:0}.bot-flow-link{gap:11px;padding:17px 14px}.bot-flow-symbol{width:35px;height:35px;border-radius:9px}.bot-flow-link strong{font-size:12px}.bot-flow-link .bot-status{font-size:9px;padding:4px 6px}.bot-flow-link>.icon{display:none}.bot-segment .btn{padding:5px 8px;font-size:10px}.bot-person-row{padding:15px 12px;gap:9px}.bot-person-tags{display:none}.bot-person-row strong{font-size:12px}.bot-empty{min-height:350px}.bot-empty h2{font-size:18px}.bot-connection-list{grid-template-columns:1fr}}

/* Bot workspace follows the same neutral working surface as CRM. */
body[data-workspace=true] .bots-page {padding:0;min-width:0}
body[data-workspace=true] .bot-flow-list,body[data-workspace=true] .bot-settings-list {background:transparent;border:0;border-radius:0;overflow:visible}
body[data-workspace=true] .bot-flow-link,body[data-workspace=true] .bot-person-row {padding:16px 12px;gap:14px;border-radius:10px;min-height:76px}
body[data-workspace=true] .bot-flow-row+.bot-flow-row,body[data-workspace=true] .bot-person-row+.bot-person-row {border-color:var(--line)}
body[data-workspace=true] .bot-flow-link:hover,body[data-workspace=true] .bot-person-row:hover,.bot-setting-row:is(button):hover {background:var(--hover)}
body[data-workspace=true] .bot-flow-symbol {width:36px;height:36px;border-radius:10px;background:var(--surface);border:1px solid var(--line);color:var(--muted)}
body[data-workspace=true] .bot-flow-symbol .icon {width:18px;height:18px}
body[data-workspace=true] .bot-flow-link strong,body[data-workspace=true] .bot-person-row strong {font-size:14px;font-weight:500}
body[data-workspace=true] .bot-flow-link small,body[data-workspace=true] .bot-person-row small {font-size:12px;line-height:1.5;margin-top:4px}
body[data-workspace=true] .bot-status {font-size:12px;padding:4px 8px;background:var(--surface);border:1px solid var(--line);border-radius:7px}
body[data-workspace=true] .bot-status.published {background:var(--positive-soft);border-color:transparent}
body[data-workspace=true] .bot-empty {gap:14px;min-height:400px}
body[data-workspace=true] .bot-empty-symbol {color:var(--muted);border-radius:16px;box-shadow:none}
body[data-workspace=true] .bot-empty h2 {font-size:20px;font-weight:500;letter-spacing:-.4px}
body[data-workspace=true] .bot-empty p {font-size:14px;max-width:390px;line-height:1.6}
body[data-workspace=true] .bot-segment {padding:3px;background:var(--canvas);border:1px solid var(--line);border-radius:8px}
body[data-workspace=true] .bot-segment .btn {font-size:13px;min-height:30px;padding:5px 12px;color:var(--muted);border-radius:5px}
body[data-workspace=true] .bot-segment .btn:is([aria-current=page],[aria-pressed=true]) {background:var(--surface);color:var(--ink);box-shadow:0 1px 3px #0000000a}
.bot-toolbar-spacer {flex:1}
.bot-context-note {font-size:13px;line-height:1.6;color:var(--muted);margin:0 12px 16px;max-width:820px}
.bot-context-note a {margin-left:12px;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.bot-setting-row {display:flex;align-items:center;gap:14px;padding:16px 12px;min-height:74px;width:100%;border:0;border-bottom:1px solid var(--line);color:var(--ink);background:transparent;text-align:left;font:inherit;transition:background .16s var(--ease)}
button.bot-setting-row {cursor:pointer;border-radius:10px}
.bot-setting-row>div,.bot-setting-row>span:first-child:not(.bot-flow-symbol) {flex:1;min-width:0}
.bot-setting-row strong {display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}
.bot-setting-row small {display:block;font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.bot-setting-row>.icon {width:16px;color:var(--muted)}
.bot-entry {padding:18px 0;border-bottom:1px solid var(--line)}
.bot-entry strong {font-weight:500;display:block;margin-bottom:12px}
.bot-entry .account-field input {font-size:13px}
.bot-entry-list+.account-field,.bot-entry-list+form {margin-top:20px}
.bot-order-list .bot-setting-row {min-height:60px;padding:10px 0}
.bot-order-list .btn {padding:6px;min-width:32px}
.bot-pagination {display:flex;gap:16px;align-items:center;justify-content:center;padding:20px;font-size:13px;color:var(--muted)}
body[data-workspace=true] .bot-history .panel {background:transparent;border:0;padding:16px 12px;box-shadow:none}
body[data-workspace=true] .bot-bubble p {font-size:14px}
body[data-workspace=true] .bot-test-answer input {font:14px var(--font-ui)}
body[data-workspace=true] .bot-person-tags i {font-size:12px}
.bot-settings-list :is(button,a):focus-visible,.bot-flow-link:focus-visible {outline:2px solid var(--ink);outline-offset:2px}
[data-navigation-kind=bots] .crm-pipeline-heading .crm-nav-add {width:26px;min-width:26px;height:26px;border-radius:6px;padding:4px;color:var(--nav-icon)}
[data-navigation-kind=bots] .crm-pipeline-heading .crm-nav-add:hover {background:var(--nav-hover);color:var(--nav-ink)}
@media(max-width:700px){body[data-workspace=true] .bot-flow-link,body[data-workspace=true] .bot-person-row {padding:14px 4px;gap:10px}body[data-workspace=true] .bot-flow-link strong {font-size:14px}body[data-workspace=true] .bot-flow-link .bot-status {font-size:11px}body[data-workspace=true] .bot-segment .btn {font-size:12px;padding:5px 10px}.bot-context-note {margin-left:4px;margin-right:4px}.bot-setting-row {gap:10px;padding:14px 4px;flex-wrap:wrap}.bot-setting-row>div {min-width:150px}.bot-setting-row>.btn {font-size:12px}.bot-toolbar-spacer {display:none}}
@media(prefers-reduced-motion:reduce){.bots-page * {animation:none!important;transition:none!important;scroll-behavior:auto!important}}
body[data-workspace=true] .bot-toolbar .account-field {margin:0;max-width:180px}
body[data-workspace=true] .bot-toolbar .account-field>span {display:none}
@media(max-width:700px){body[data-workspace=true] .bot-toolbar .account-field {flex:1;min-width:110px}}
