/* Shared section titles and the reference table layouts, in AriaBot colors. */
body:not([data-flow-editor=true]) .page-header{height:auto;min-height:85px;padding:16px 18px;border-bottom:0;gap:20px;flex-wrap:wrap}
.section-title{gap:12px;min-width:190px;flex:1}
.section-title-icon{display:grid;place-items:center;color:var(--text);flex:0 0 22px}
.section-title-icon>.icon{width:21px;height:21px;stroke-width:1.65}
.section-title h1{font-size:21px!important;line-height:1.3;font-weight:700;letter-spacing:-.4px;white-space:nowrap!important}
.section-title p{font-size:13px;line-height:1.45;color:#b9c2d7;margin-top:5px}
.section-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.section-header-actions .btn{height:38px;font-size:12px;border-radius:8px;padding:9px 14px}
.section-header-actions .primary{background:var(--primary);box-shadow:none;border-color:var(--primary)}
.section-header-actions .secondary{background:var(--panel);border-color:var(--line);color:var(--text)}
.contacts-header-actions .btn{font-size:13px;height:42px}
.contacts{padding:9px 15px 15px;display:flex;flex-direction:column;gap:12px;min-height:calc(100svh - 85px)}
.contacts-filters{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.contacts-filters>.search-field{width:38%;min-width:260px;min-height:42px;border-radius:6px;background:var(--panel)}
.contacts-filters>div{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
.contacts-filters .select{min-width:168px;font-size:13px;border-radius:9px}
.contacts-data{flex:1;min-height:calc(100svh - 156px);background:var(--panel);border:1px solid var(--line);border-radius:6px;overflow-x:auto}
.contacts-table{min-width:730px}
.contacts-table thead{background:var(--bg)}
.contacts-table th{font-size:11px;color:#acbdd5;letter-spacing:.6px;font-weight:500;height:44px;padding:11px 16px;border-bottom:1px solid var(--line)}
.contacts-table th button{background:none;color:inherit;padding:0;text-align:left;letter-spacing:inherit;font-size:12px}
.contacts-table th button span{color:#999aa6}
.contacts-table td{padding:14px 16px;font-size:14px;color:#c7c8d2;vertical-align:middle;border-bottom:1px solid #ffffff05}
.contacts-table th:nth-child(2){width:43%}
.contacts-table th:nth-child(3){width:27%}
.contacts-table th:last-child{width:135px}
.contacts-table .contact-select{width:54px}
.contacts-table input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:var(--primary)}
.contact-person{display:flex;align-items:center;gap:13px;min-width:0}
.contact-avatar{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#03966e;color:#fff;font-weight:700;font-size:14px}
.contact-person strong{display:block;font-size:14px;color:var(--text);font-weight:700}
.contact-person small{display:block;font-size:12px;color:#9ca7bb;line-height:1.5}
.contact-labels{display:flex;gap:5px;flex-wrap:wrap}
.contact-labels>span{background:#307eec18;border:1px solid #307eec40;border-radius:5px;color:#abc7f8;font-size:11px;padding:3px 7px}
.contact-labels>.contact-no-label{background:none;border:0;color:#9297a4;padding:0}
.contact-row-actions{display:flex;gap:12px;align-items:center}
.contact-row-actions>.icon-btn{background:none;border:0;width:27px;height:28px;color:#a8acb7}
.contact-row-actions>.icon-btn:first-child{color:#6198fb}
.contact-row-actions>.icon-btn:last-child{color:#f04460}
.contacts-table td.contacts-empty{height:135px;text-align:center;color:var(--muted);font-size:13px}
.contact-extra-filters{display:flex;align-items:flex-end;gap:14px;padding:13px;background:var(--panel);border:1px solid var(--line);border-radius:8px}
.contact-extra-filters>label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted);min-width:200px}
.contacts-selection{display:flex;align-items:center;gap:8px;font-size:12px}
.contacts-selection .btn{font-size:11px;padding:6px 10px;min-height:30px}
.workspace-form{padding:22px}
.workspace-form-row{display:flex;gap:14px;margin-top:14px;margin-bottom:14px}
.workspace-form-row>.form-field{flex:1;margin:0}
.workspace-form .modal-actions{padding:18px 0 0}
.workspace-share{padding:24px;text-align:center}
.workspace-share>span{display:grid;place-items:center;color:#63a8ff;margin:0 auto 14px;width:45px;height:45px;background:#307eec20;border-radius:12px}
.workspace-share h3{font-size:17px;margin-bottom:10px}
.workspace-share p{font-size:13px;color:var(--muted);line-height:1.7;max-width:390px;margin:auto}
.flow-library,.trigger-library{padding:0 8px 9px;min-height:calc(100svh - 85px)}
.flow-library .flow-library-layout{grid-template-columns:240px minmax(0,1fr);min-height:calc(100svh - 183px);background:var(--panel);border-color:var(--line)}
.flow-library-search{min-height:38px;border-radius:6px}
.flow-status-filters{margin:10px 0 16px}
.flow-status-filters>button{border-radius:7px;font-size:11px;padding:7px 12px;min-height:31px}
.flow-library-content>h2{height:40px;font-size:14px;padding:10px 26px;background:var(--panel)}
.flow-library-table th:first-child{width:55%}
.flow-updated-cell{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:175px}
.flow-row-menu{flex:0 0 29px;text-align:left}
.flow-row-menu>summary{list-style:none;display:grid;place-items:center;width:28px;height:29px;border-radius:8px;cursor:pointer;color:#c7c4d0;opacity:0;transition:opacity .12s;background:var(--soft)}
.flow-row-menu>summary::-webkit-details-marker{display:none}
tr:hover .flow-row-menu>summary,tr:focus-within .flow-row-menu>summary,.flow-row-menu[open]>summary{opacity:1}
.flow-row-menu>div{position:fixed;left:var(--row-menu-left,0px);top:var(--row-menu-top,0px);z-index:100;display:flex;flex-direction:column;min-width:218px;background:#111113;border:1px solid #39373e;border-radius:12px;box-shadow:0 13px 35px #0006;padding:7px 4px;color:var(--text)}
.flow-row-menu>div>button{display:flex;align-items:center;justify-content:flex-start;gap:11px;text-align:left;width:100%;padding:11px 12px;min-height:41px;background:none;border:0;color:#d0cbd8;font-size:14px;line-height:1.3;font-weight:400;border-radius:7px;white-space:nowrap}
.flow-row-menu>div>button:hover,.flow-row-menu>div>button:focus-visible{background:#2a282f}
.flow-row-menu>div>button.danger-text{color:#f34257;border-top:1px solid #353039;margin-top:4px;padding-top:13px;border-radius:0 0 7px 7px}
.flow-row-menu .icon{width:19px;height:19px;stroke-width:1.6}
.flow-library-table .flow-library-empty{height:130px}
.trigger-library-table th:first-child{width:31%}
.trigger-library-table th:nth-child(2){width:22%}
.trigger-library-table th:nth-child(3){width:26%}
.trigger-library-table th:last-child{width:80px}
.trigger-connection-name{display:block;color:var(--muted);font-size:11px;margin:5px 0 0 18px}
.trigger-library-table .phrase-badge{display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.trigger-row-menu>summary{margin-left:auto}
.light .section-title p{color:#63738d}
.light .contacts-table td{color:#536074}
.light .contact-person small{color:#68768e}
@media(max-width:1200px){.contacts-header-actions{flex-basis:100%;justify-content:flex-start;padding-left:33px}.contacts{min-height:calc(100svh - 135px)}.contacts-data{min-height:calc(100svh - 205px)}.flow-library .flow-library-layout{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:760px){body:not([data-flow-editor=true]) .page-header{padding:16px 14px;min-height:90px;gap:14px}.section-title h1{font-size:20px!important}.section-title p{font-size:12px}.section-title-icon{display:none}.section-header-actions{padding:0;justify-content:flex-start;gap:6px}.section-header-actions .btn{font-size:11px;padding:8px 10px;height:35px;min-height:35px}.contacts-header-actions{flex-basis:100%}.contacts-filters>.search-field{width:100%;min-width:0}.contacts-filters>div{width:100%;gap:7px}.contacts-filters>div>*{flex:1;min-width:0}.contacts-filters .select{min-width:0}.contacts-data{min-height:58svh}.contacts-table{min-width:660px}.flow-row-menu>summary{opacity:1}.flow-library .flow-library-layout{display:flex;flex-direction:column;min-height:65svh}.flow-folders{border-right:0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:5px;overflow:auto;padding:8px}.flow-folders h2{display:none}.flow-folders button{flex-shrink:0;width:auto;min-width:110px}.workspace-form-row{flex-direction:column}.workspace-form-row>.form-field{margin:0}.contact-extra-filters{align-items:stretch;flex-direction:column}}
@media(hover:none){.flow-row-menu>summary{opacity:1}}
/* Flow header, tools drawer and local simulation. */
.flow-editor .flow-viewport{inset:59px 0 0;background-color:#1a1a1a;background-image:radial-gradient(circle,#332d57 1.2px,transparent 1.5px)}
.flow-topbar{position:absolute;inset:0 0 auto;z-index:4;height:59px;background:var(--bg);border:1px solid var(--line);border-radius:6px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 12px}
.flow-topbar .flow-editor-heading{position:static;max-width:55%;border:0;background:none;border-radius:0;padding:0;gap:10px;flex:1;min-width:0}
.flow-topbar .flow-editor-heading label{flex:1;max-width:410px}
.flow-topbar .flow-editor-heading input{font-size:18px;font-weight:700;width:100%;padding:7px 2px}
.flow-topbar .flow-back{width:34px;height:34px}
.flow-rename-button{width:26px;height:32px;display:grid;place-items:center;background:none;color:#97939f;cursor:pointer;flex-shrink:0}
.flow-rename-button .icon{width:15px;height:15px}
.flow-topbar-actions{display:flex;align-items:center;gap:8px}
.flow-topbar-actions>.btn{font-size:12px;border-radius:7px;background:var(--panel);border-color:var(--line);padding:7px 12px;min-height:32px}
.flow-topbar-actions>.btn .icon{width:15px;height:15px}
.flow-ariabot-brand{display:grid;place-items:center;min-width:106px;min-height:33px;background:var(--soft);border:1px solid var(--line);border-radius:18px;padding:7px 11px}
.flow-ariabot-brand img{display:block;width:79px;height:auto;max-height:24px;object-fit:contain}
.flow-tools-bar{position:absolute;z-index:3;left:10px;right:12px;top:70px;display:flex;align-items:center;justify-content:space-between;gap:12px;pointer-events:none}
.flow-tools-bar>div{pointer-events:auto}
.flow-tools-left{display:flex;align-items:center;gap:7px;flex-shrink:0}
.flow-tools-bar .flow-add-button{position:static;display:flex;align-items:center;gap:7px;width:auto;height:38px;padding:9px 13px;border-radius:8px;background:var(--primary);box-shadow:none;font-size:14px;font-weight:650;color:#fff}
.flow-tools-bar .flow-add-button .icon{width:17px;height:17px}
.flow-simulate-button{display:flex;align-items:center;gap:7px;background:var(--bg);border:1px solid var(--line);color:#c5c7d4;border-radius:8px;padding:9px 13px;height:38px;font-size:14px;font-weight:600;cursor:pointer}
.flow-simulate-button .icon{width:16px;height:16px;fill:currentColor;stroke:none}
.flow-tools-bar .flow-save-state{position:static;transform:none;background:transparent;box-shadow:none;color:#97beae;font-size:11px;font-weight:500;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:270px}
.flow-tools-bar .flow-save-state.is-dirty{color:#c2b7fb}
.flow-tools-bar .flow-editor-actions{position:static;display:flex;gap:7px}
.flow-tools-bar .flow-editor-actions button{font-size:12px;padding:8px 13px;min-height:38px;border-radius:8px;gap:7px}
.flow-tools-bar .flow-editor-actions .icon{width:17px;height:17px}
.flow-tools-bar .flow-context-button{background:var(--panel);color:#cfc7e7;border:1px solid var(--line);box-shadow:none}
.flow-tools-bar .flow-save-button{background:var(--primary);color:#fff;box-shadow:none}
.flow-editor .flow-node-palette{left:11px;top:116px;width:272px;max-width:calc(100% - 22px);max-height:calc(100% - 140px);background:#17161c;border:1px solid #44404e;border-radius:9px;overflow:hidden;padding:8px;z-index:5}
.flow-node-palette .flow-block-search{background:#242129;border-color:#37323f;min-height:38px;border-radius:8px;color:#9496ab;padding:0 9px;margin-bottom:8px}
.flow-block-search input{font-size:13px}
.flow-node-palette>.flow-node-catalog{display:flex;flex-direction:column;gap:0;max-height:calc(100svh - 220px);padding:0 4px 0 0;overflow:auto;scrollbar-width:thin;scrollbar-color:#4a4c58 #272b36}
.flow-node-catalog>button{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:12px 11px;min-height:44px;gap:14px;border:0;border-radius:7px;color:#e5e2ec}
.flow-node-catalog>button>span{width:21px;height:22px;background:none;border-radius:0;box-shadow:none;color:var(--node-color);flex-shrink:0}
.flow-node-catalog>button .icon{width:21px;height:21px;stroke-width:1.8}
.flow-node-catalog>button>strong{font-size:14px;font-weight:600;text-align:left}
.flow-node-catalog>button:hover{background:#2c2934}
.flow-block-empty{color:#9993a6;text-align:center;font-size:12px;padding:20px 8px}
#modal[data-kind=flow-simulation]{width:830px}
.flow-simulation{padding:22px}
.flow-simulation-note{font-size:12px;color:#a09caa;line-height:1.6;margin-bottom:18px}
.flow-simulation-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px}
.flow-simulation-layout>ol{margin:0;padding:0 0 0 23px;color:#8f8a9c;font-size:12px;border-right:1px solid #35303d;max-height:460px;overflow:auto}
.flow-simulation-layout>ol>li{padding:9px 12px 9px 3px}
.flow-simulation-layout>ol>li.current{color:#b9d6ff;font-weight:700}
.flow-simulation-layout>section>h3{font-size:17px;color:#fff;margin-bottom:16px}
.flow-simulation-preview{min-height:170px;padding:18px;background:#0c191f;border-radius:10px;display:flex;flex-direction:column;gap:12px;color:#ccdae3;font-size:14px}
.flow-simulation-preview .fe-preview-empty{min-height:160px}
.flow-simulation-preview blockquote{margin:0;padding:13px;border-left:3px solid #10b981;background:#15362f;color:#c8e5db;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.flow-simulation-preview small{color:#929fb1;font-size:12px}
.flow-simulation-next{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:17px}
.flow-simulation-next button{display:flex;align-items:center;gap:8px;padding:10px 13px;border:1px solid #3d536d;border-radius:8px;background:#234266;color:#d2e9ff;font-size:12px;cursor:pointer}
.flow-simulation-next button:disabled{opacity:.45;cursor:not-allowed}
.flow-simulation-next p{font-size:12px;color:#9d95a8;margin-top:9px}
.flow-simulation-replies{display:flex;flex-direction:column;gap:3px}
.flow-simulation-replies span{padding:8px 14px;border:1px solid #325953;text-align:center;border-radius:5px;font-size:13px;color:#8dcfc1}
@media(max-width:1100px){.flow-tools-bar .flow-save-state{display:none}.flow-topbar .flow-editor-heading{max-width:50%}.flow-topbar .flow-editor-heading input{font-size:16px}}
@media(max-width:760px){.flow-topbar{padding:7px;gap:7px}.flow-topbar .flow-editor-heading{max-width:none;gap:3px}.flow-topbar .flow-editor-heading input{font-size:14px;min-width:0}.flow-topbar .flow-back{width:26px}.flow-rename-button{width:19px}.flow-topbar-actions{gap:5px}.flow-ariabot-brand{min-width:65px;padding:5px 8px}.flow-ariabot-brand img{width:56px}.flow-topbar-actions>.btn{font-size:0;padding:8px;min-width:31px}.flow-topbar-actions>.btn .icon{width:14px;height:14px}.flow-tools-bar{gap:8px;left:8px;right:8px}.flow-tools-bar .flow-add-button,.flow-simulate-button{font-size:11px;padding:8px 10px;gap:5px;height:36px}.flow-tools-bar .flow-editor-actions button{font-size:11px;min-height:36px;padding:8px 11px}.flow-tools-bar .flow-context-button{font-size:0!important;width:34px;padding:8px!important;min-height:36px}.flow-tools-bar .flow-context-button .icon{width:16px;height:16px}.flow-tools-bar .flow-save-button{font-size:0!important;width:34px;padding:8px!important}.flow-simulation-layout{grid-template-columns:1fr}.flow-simulation-layout>ol{max-height:130px;border-right:0;border-bottom:1px solid #35303d}.flow-simulation{padding:16px}.flow-node-palette>.flow-node-catalog{max-height:calc(100svh - 215px)}}
