@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400;font-display:swap;src:url('/static/fonts/ibm-plex-sans-400.ttf') format('truetype')}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:500;font-display:swap;src:url('/static/fonts/ibm-plex-sans-500.ttf') format('truetype')}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url('/static/fonts/ibm-plex-sans-600.ttf') format('truetype')}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:700;font-display:swap;src:url('/static/fonts/ibm-plex-sans-700.ttf') format('truetype')}
:root{--vica-font:"IBM Plex Sans",Arial,sans-serif}
html,body,body *,#auth-page *,input,select,textarea,button{font-family:var(--vica-font)!important;font-synthesis:none}
body{font-size:15px;line-height:1.55}button,input,select,textarea{font-size:15px;line-height:1.45;letter-spacing:normal;text-transform:none}
h1,h2,h3,h4{font-weight:600!important;line-height:1.3;letter-spacing:normal!important}
button,a.btn,.btn{vertical-align:middle}button:not(.icon-button):not(.auth-close){line-height:1.45}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{box-sizing:border-box;border:1px solid #cddbd2;border-radius:8px;background-color:#fff;color:#203b2f;padding:10px 12px;min-height:42px;max-width:100%}
select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23576960' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:20px;background-position:right 10px center}
select:disabled{background-color:#f4f6f4;color:#718178}select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #397c5e;outline-offset:2px}
label{line-height:1.5}label.check{display:flex;align-items:flex-start;gap:10px}label.check input{flex:0 0 auto;margin-top:4px}
.text-btn{display:inline-flex;align-items:center;justify-content:flex-start;gap:6px;vertical-align:middle;min-height:32px;padding:5px 4px;line-height:1.45}

/* Shared controls. Keep these definitions last; screen modules own layout only. */
:root{--control-height:44px;--control-radius:9px;--focus-ring:#80b69a;--component-border:#cddbd2;--component-muted:#66796e}
#app,dialog,input,button,textarea,select{font-family:'IBM Plex Sans',Arial,sans-serif;font-synthesis:none;letter-spacing:normal}
#app #content h2,dialog h2{font-size:22px;line-height:1.3;letter-spacing:normal}
#app #content h3,dialog h3{font-size:17px;line-height:1.4;letter-spacing:normal}
#app p,dialog p{line-height:1.6}#app .hint,dialog .hint{font-size:14px;line-height:1.5;color:var(--component-muted)}
#app .btn,.platform-dialog .btn{min-height:var(--control-height);border-radius:var(--control-radius);font-size:14px;line-height:1.4;padding:10px 16px;gap:8px;white-space:normal;text-align:center}
#app .btn.small,.platform-dialog .btn.small{min-height:36px;font-size:14px;padding:7px 12px}
#app .text-btn,.platform-dialog .text-btn{font-size:14px;line-height:1.4;text-decoration:none}#app .text-btn:hover,.platform-dialog .text-btn:hover{text-decoration:underline}
#app :where(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea),.platform-dialog :where(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){border:1px solid var(--component-border);border-radius:var(--control-radius);min-height:var(--control-height);font-size:15px;line-height:1.45;padding:10px 12px;max-width:100%;background:#fff;color:#203b2f}
#app .search-field input[type=search]{padding-inline-start:44px;padding-inline-end:14px}
#app button:focus-visible,#app a:focus-visible,dialog button:focus-visible,dialog a:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}
#app input:focus-visible,#app select:focus-visible,#app textarea:focus-visible,dialog input:focus-visible,dialog select:focus-visible,dialog textarea:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
#app label,.platform-dialog label{font-size:14px;line-height:1.45}#app .control-toolbar label{min-width:0}#app .control-toolbar select{width:100%}
#app .section-row{align-items:center;gap:14px}#app .card{border-radius:14px}#app .page-intro h2{margin:0 0 8px}#app .page-intro p{margin:0;color:var(--component-muted)}
.vica-status{display:inline-flex;align-items:center;width:max-content;max-width:100%;padding:5px 9px;border-radius:7px;background:#eef2ef;color:#4c6256;font-size:14px;font-weight:500;line-height:1.4;white-space:normal}
.vica-status[data-tone=success]{background:#e5f3e9;color:#24613e}.vica-status[data-tone=warning]{background:#fff3db;color:#825f14}.vica-status[data-tone=danger]{background:#fbeae7;color:#9a4036}
.vica-connection-state{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:16px 0}.vica-connection-state>span:not(.vica-status){font-size:14px}.vica-connection-state small,.vica-connection-state p{flex-basis:100%;font-size:14px;margin:0;color:var(--component-muted)}
.vica-capabilities{margin-top:auto!important}.vica-capabilities strong{font-size:14px;font-weight:500}.vica-capabilities small{display:block;font-size:14px;line-height:1.5;margin-top:6px}
.vica-catalog-ready{margin:0;min-width:200px}.vica-catalog-ready select{margin-top:5px}.catalog-heading{flex-wrap:wrap}.catalog-heading h2{margin-right:auto}.catalog-heading .search-field{align-self:flex-end}
.vica-empty{padding:28px 14px;text-align:center}.vica-empty h3{margin:0 0 8px}.vica-empty p{color:var(--component-muted);margin:0 0 15px}
.vica-signal,.vica-source-line{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #e4ebe6}.vica-signal p{margin:4px 0}.vica-signal small,.vica-source-line small{display:block;font-size:14px;color:var(--component-muted)}.vica-signal:last-child,.vica-source-line:last-child{border-bottom:0}.vica-ok{color:#276548}.vica-signals h2{margin:0}
.vica-secondary summary,details.card>summary{font-size:16px;font-weight:500;cursor:pointer}.vica-secondary>.stat-grid{margin-top:18px}.vica-dialog-runtime{display:flex;justify-content:space-between;align-items:center;gap:18px}.vica-dialog-runtime strong{font-size:17px}.vica-dialog-runtime p{margin:5px 0;font-size:14px}.vica-dialog-runtime small{font-size:14px;color:var(--component-muted)}
#app .experience-messages{max-height:520px;overflow-y:auto;overscroll-behavior:contain}.vica-customer-business{border-top:1px solid #dde6df;padding:18px 0}.vica-customer details{padding:14px 0}.vica-customer details summary{cursor:pointer}.vica-customer .vica-source-line{flex-wrap:wrap}.vica-customer .vica-source-line>span:first-child{flex:1;min-width:160px}.platform-dialog:has(.vica-customer){width:min(900px,94vw)}
@media(max-width:700px){#app .page-intro,#app .vica-dialog-runtime{align-items:flex-start;flex-direction:column}.vica-signal{align-items:flex-start;flex-direction:column}.vica-catalog-ready,.catalog-heading .search-field{width:100%;max-width:none;flex-basis:100%}.vica-source-line{flex-wrap:wrap}#app .vica-dialog-runtime .actions{width:100%}#app #content h2{font-size:20px}}

#app .search-field .ui-icon{width:18px;height:18px;left:14px;pointer-events:none}

#app select,.platform-dialog select{padding-inline-end:38px}

.connection-card:has(.connection-inline-settings){grid-column:1/-1}
.connection-inline-settings{border-top:1px solid #dfe8e1;padding-top:16px;margin-top:16px;max-width:760px}
#app .connection-inline-settings h3{margin:0}.connection-inline-settings .section-row{margin-bottom:14px}
#app .connection-inline-settings form{margin:0;border:0;padding:0;max-width:none}
.connection-inline-settings form>label:not(.check){display:block;max-width:440px}.connection-inline-settings select{width:100%;margin-top:6px}
.connection-inline-settings .check{margin:12px 0}.connection-inline-settings .check input{margin-top:4px}
.connection-inline-settings .actions{margin-top:14px}.connection-inline-extra{margin-top:18px;padding-top:12px;border-top:1px solid #e7ede8}
.connection-inline-extra summary{font-size:14px;cursor:pointer;color:#526e5e}.connection-inline-extra .hint{margin:12px 0}

/* Message workspace: quiet controls and a readable, compact conversation list. */
.messaging-inbox [hidden],.conversation-card [hidden]{display:none!important}
.messaging-inbox{max-width:1080px;margin:0 auto}
.messages-tools{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.messages-search{position:relative;display:block;flex:1;min-width:240px;margin:0!important}
#app .messages-search input{width:100%;margin:0;padding-left:42px;font-size:14px;min-height:42px;background:#fff}
.messages-search>svg{position:absolute;left:14px;top:13px;width:17px;height:17px;fill:none;stroke:#7c8d83;stroke-width:1.7;pointer-events:none}
.messages-sort{display:block;flex:0 0 auto;margin:0!important}#app .messages-sort select{font-size:14px;min-height:42px;margin:0;min-width:174px}
.messages-filters{position:relative;flex:0 0 auto;z-index:2}.messages-filters>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;min-height:42px;padding:9px 13px;border:1px solid #d5e0d9;border-radius:9px;background:#fff;box-sizing:border-box;font-size:14px;font-weight:500}
.messages-filters summary::-webkit-details-marker{display:none}.messages-filters>summary svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.messages-filters[open]>summary{background:#edf4ef;border-color:#82a592}
.messages-filters>summary:focus-visible{outline:2px solid #80b69a;outline-offset:3px}
#messages-filter-count{display:inline-flex;align-items:center;justify-content:center;background:#236b50;color:#fff;min-width:18px;height:18px;border-radius:6px;font-size:14px}
.messages-filter-fields{position:absolute;right:0;top:50px;width:min(580px,calc(100vw - 72px));padding:18px;border:1px solid #d8e2dc;border-radius:12px;background:#fff;box-shadow:0 12px 32px #173a2720;display:grid;grid-template-columns:1fr 1fr;gap:14px;box-sizing:border-box}
#app .messages-filter-fields label{display:flex;flex-direction:column;gap:6px;font-size:14px;margin:0;min-width:0}#app .messages-filter-fields select{width:100%;min-height:40px;margin:0;font-size:14px}
.messages-quick-filters{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 18px}
.messages-quick-filters>button:not(.text-btn){border:1px solid transparent;border-radius:8px;min-height:34px;padding:6px 12px;font-size:14px;background:transparent;color:#607469;font-weight:500;cursor:pointer}
.messages-quick-filters>button:not(.text-btn):hover{background:#edf2ee}.messages-quick-filters>button[aria-pressed=true]{background:#e0eee5;border-color:#c8ded1;color:#1c6043}
#app #messages-reset{margin-left:auto;min-height:32px;font-size:14px;color:#73867a}
.messages-list-panel{border:1px solid #dce5df;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 3px 12px #1a382606}
.messages-list-caption{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 20px;border-bottom:1px solid #e7ede8;color:#7c8b82;font-size:14px}
.messages-list-caption b{font-weight:500;color:#425d4f;margin-left:4px}#app .messages-list-caption .text-btn{font-size:14px;min-height:26px;padding:0}
#app .messages-list-panel .client-thread-list{display:block;margin:0;padding:0}
#app .message-row{display:flex;align-items:flex-start;gap:14px;border:0;border-bottom:1px solid #e8eee9;border-radius:0;padding:16px 20px;margin:0;background:#fff;color:#244133;text-decoration:none;transition:background .12s ease;min-width:0}
#app .message-row:last-child{border-bottom:0}#app .message-row:hover{background:#f3f8f4}#app .message-row:focus-visible{position:relative;outline:2px solid #62947b;outline-offset:-3px;border-radius:0}
#app .message-row .client-thread-main{display:block;flex:1;min-width:0}.message-row-heading{display:flex;align-items:baseline;justify-content:space-between;gap:20px}
#app .message-row-heading strong{font-size:15px;font-weight:600;color:#203d2f;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.message-row-heading time{font-size:14px;color:#809086;white-space:nowrap;flex:0 0 auto;font-variant-numeric:tabular-nums}
#app .message-row .client-thread-preview{display:block;max-width:none;margin:4px 0 7px;font-size:14px;line-height:1.45;color:#536b5e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.message-own-prefix{color:#8b9a90}.message-row-bottom{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:20px}
.message-source{font-size:14px;line-height:1.4;color:#829187;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-row-flags{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto}
.message-row-flags .vica-status{padding:2px 7px;font-size:14px;border-radius:5px;line-height:1.5;background:#f0f3f1;color:#77877d;font-weight:400}.message-row-flags .vica-status[data-tone=success]{background:#e6f3ea;color:#2f7652}.message-row-flags .vica-status[data-tone=warning]{background:#fff2d9;color:#936c25}
.messages-workflow{font-size:14px;color:#5a7968;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.messages-workflow[data-state=reply_needed]{color:#a66c1b}.messages-workflow[data-state=closed]{color:#8a9a90}
.messages-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e5ece7;padding:12px 20px;font-size:14px;color:#74877a}.messages-pagination>div{display:flex;gap:8px}
.messages-feedback{font-size:14px;color:#7c8b82;min-height:18px;margin:10px 0}.messages-empty{text-align:center;padding:50px 20px;color:#7b8d81}.messages-empty h3{margin:0 0 8px}.messages-empty p{font-size:14px;margin:0 0 12px}.messages-loading{padding:26px;color:#7b8d81;font-size:14px}
.conversation-source-logo{background:transparent;flex:0 0 42px;width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;overflow:hidden}
.conversation-source-logo .service-logo{margin:0!important;width:42px;height:42px;min-width:42px;border-radius:12px;padding:7px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1;font-weight:600}
.conversation-source-logo .service-logo svg,.conversation-source-logo .service-logo img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.service-logo.service-avito{background:transparent}.message-row .conversation-source-logo{margin-top:3px;background:#f5f7f5;border:1px solid #edf1ed;border-radius:13px}
/* Conversation: measured line length, grouped dates, a stationary composer. */
#app .conversation-navigation{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1080px;margin:0 auto 10px}
#app .conversation-navigation .back-link{display:inline-flex;align-items:center;min-height:34px;margin:0;padding:5px 0;font-size:14px;line-height:1.4;color:#6d8375}
#app .conversation-navigation .btn{min-height:32px;flex:0 0 auto;margin:0;padding:6px 11px;font-size:14px;background:transparent;border-color:#dce5df;color:#6a8072}
#app .conversation-card{max-width:1080px;margin:0 auto;padding:0;overflow:hidden;border:1px solid #dbe5de;border-radius:14px;background:#fff}
.conversation-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #e2eae4;margin:0;background:#fff}
.conversation-identity{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1}.conversation-identity>div{min-width:0}
#app .conversation-identity h2{font-size:18px;margin:0 0 3px!important;overflow-wrap:anywhere}.conversation-identity .hint{font-size:14px!important;color:#7d8e82!important;margin:0!important}
.conversation-context{margin-top:4px;color:#839287;font-size:14px}.conversation-context summary{cursor:pointer;width:max-content;max-width:100%;font-size:14px}.conversation-context p{max-width:500px;margin:6px 0 0!important;font-size:14px;line-height:1.4!important}
#conversation-header-actions{flex:0 1 auto;max-width:48%;min-width:0}
#app .conversation-status-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:100%;margin:0}
#app .conversation-status-controls select{min-height:34px;width:auto;max-width:210px;margin:0;font-size:14px;padding-block:6px;padding-inline-start:10px;cursor:pointer;color:#60796a;background-color:#fbfcfb}
#app .conversation-status-controls .btn{min-height:34px;padding:6px 11px;font-size:14px;margin:0;font-weight:500}
.conversation-status-reset{font-size:14px!important;min-height:22px;flex-basis:100%;justify-content:flex-end!important;padding:0!important;color:#91a095!important}
.conversation-status-feedback{flex-basis:100%;text-align:right;max-width:300px;margin:0}.conversation-status-feedback:empty{display:none}.conversation-status-feedback.error{color:#a13c30!important}
#app .conversation-card .experience-messages{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:240px;height:min(55dvh,570px);max-height:none;padding:10px 24px 20px;scrollbar-gutter:stable;margin:0;overflow-y:auto;overscroll-behavior:contain;background:#f3f6f3;grid-auto-rows:unset;scrollbar-width:thin;scrollbar-color:#c2d0c6 transparent}
.conversation-day{width:100%;display:flex;align-items:center;justify-content:center;flex:0 0 auto;padding:9px 0;margin:0;text-align:center}.conversation-day span{padding:3px 10px;border-radius:7px;color:#8b9a8f;background:#e9eeea;font-size:14px;font-weight:500;line-height:1.5}
#app .conversation-card .experience-message{flex:0 0 auto;width:fit-content;max-width:min(76%,650px);margin:0;padding:9px 12px 7px;border:1px solid #e3eae4;border-radius:13px 13px 13px 4px;box-sizing:border-box;font-size:14px;background:#fff;box-shadow:0 1px 2px #1a382605}
#app .conversation-card .experience-message.outgoing{align-self:flex-end;margin-left:0;border-color:#d4e7d8;background:#e1efe3;border-radius:13px 13px 4px 13px}
#app .conversation-card .experience-message.consecutive{margin-top:-4px}#app .conversation-card .experience-message p{margin:0 0 3px;line-height:1.5}
.conversation-card .experience-message time{display:block;text-align:right;font-size:14px;line-height:1.4;color:#93a196;font-variant-numeric:tabular-nums}.conversation-card .experience-message.outgoing time{color:#7d9784}.message-attachment{font-style:normal;color:#728578}
#app .conversation-card>[data-native-earlier]{display:block;margin:10px auto;background:#fff;min-height:30px;font-size:14px;padding:4px 10px}
#app .conversation-composer{border-top:1px solid #e2eae4;margin:0;padding:14px 18px;background:#fff}
#app .conversation-composer form{margin:0;display:block}.conversation-composer label.sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#app .conversation-composer textarea{display:block;width:100%;height:64px;min-height:64px;max-height:160px;resize:vertical;margin:0;padding:11px 13px;font-size:14px;border-color:#d9e3dc;background:#fcfdfc}
.conversation-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}
.conversation-send-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-left:auto}
#app .conversation-send-actions>.btn{min-height:36px;padding:7px 18px;margin:0;flex:0 0 auto;font-size:14px}
#app .conversation-omni-button[aria-pressed=true]{background:#e7f1e8;border-color:#79a98c;color:#205d42}
#app .conversation-omni-button[data-pending=true]{background:#fff6e1;border-color:#d6bd7b;color:#735815}
#app .conversation-omni-button:focus-visible{outline:2px solid #256a52;outline-offset:3px}
.conversation-omni-feedback{margin:8px 0 0;font-size:14px;line-height:1.45;color:#426451}
.conversation-omni-feedback:empty{display:none}

/* One calm workspace system, shared by client accounts and the control panel. */
:root{--workspace-surface:#fff;--workspace-canvas:#f7f9f7;--workspace-line:#e0e7e2;--workspace-ink:#243d32;--workspace-muted:#687b70;--workspace-radius:12px}
#app .workspace{background:var(--workspace-canvas);min-width:0}
#app .topbar{background:var(--workspace-surface);border-bottom:1px solid var(--workspace-line);min-height:88px}
#app #content{box-sizing:border-box;width:100%;max-width:1440px;margin-inline:auto;min-width:0}
#app #app-nav button{font-size:14px;line-height:1.4;min-height:42px;border-radius:9px}
#app #app-nav button.active{background:#e9f1eb;color:#255f47}
#app #top-eyebrow,#app .workspace-label{font-size:14px;letter-spacing:.08em}
#app .card:not(.conversation-card),#app .metric,#app .service-card,#app .connection-card,#app .control-health article,#app .product-admin-list article{background:var(--workspace-surface);border:1px solid var(--workspace-line);border-radius:var(--workspace-radius);box-shadow:none}
#app .card:not(.conversation-card){padding:22px}
#app #content .card:not(.conversation-card) h2{font-size:18px;line-height:1.4;margin-bottom:16px}
#app #content .card:not(.conversation-card) h3{font-size:16px;line-height:1.4}
#app .section-row h2,#app .section-row h3{margin:0!important}
#app .page-intro{margin-bottom:22px;gap:16px}
#app .page-intro p{font-size:14px;max-width:760px}
#app .metric-grid,#app .dashboard-grid,#app .stat-grid{gap:16px}
#app .metric{padding:20px;min-height:118px}
#app .metric-label{font-size:14px;color:var(--workspace-muted);line-height:1.4}
#app .metric>strong{font-size:28px;line-height:1.2;letter-spacing:-.4px;margin:12px 0 7px}
#app .metric>p{font-size:14px;line-height:1.5;color:var(--workspace-muted)}
#app .stat-grid article{border:1px solid var(--workspace-line);border-radius:10px;padding:18px;background:#fff}
#app .stat-grid article>small{font-size:14px;line-height:1.4;color:var(--workspace-muted)}
#app .stat-grid article>strong{font-size:26px;line-height:1.25}
#app .stat-grid article>p{font-size:14px;color:var(--workspace-muted);line-height:1.5}
#app .table-scroll{border:1px solid var(--workspace-line);border-radius:10px;overflow:auto}
#app table{border-collapse:collapse;width:100%}
#app table th{background:#f6f8f6;color:#61766a;font-size:14px;font-weight:500;text-align:left;padding:12px 14px;border-bottom:1px solid var(--workspace-line);line-height:1.45}
#app table td{font-size:14px;line-height:1.5;padding:14px;border-bottom:1px solid #edf1ee;color:var(--workspace-ink);vertical-align:middle;overflow-wrap:anywhere}
#app table tbody tr:last-child td{border-bottom:0}
#app table tbody tr:hover{background:#fafcfb}
#app table td small{font-size:14px;color:var(--workspace-muted);line-height:1.5}
#app .table-avatar{width:36px;height:36px;border-radius:10px;font-size:14px;flex:0 0 36px}
#app .readiness-line{font-size:14px;padding:13px 0;border-color:var(--workspace-line)}
#app .readiness-line strong{font-size:14px}
#app .control-health article{padding:20px}
#app .control-health article.attention{background:#fff9ef;border-color:#ead9b7}
#app .control-toolbar{gap:12px;margin:18px 0}
#app .control-toolbar label,#app .form-grid label,#app .forms-section label{font-size:14px;font-weight:500}
#app .control-toolbar input,#app .control-toolbar select{font-size:14px;min-height:42px}
#app .btn.outline:not(.conversation-omni-button):not(.active){border-color:#d6e1d9;background:#fff;color:#2d5743}
#app .btn.outline:not(.conversation-omni-button):not(.active):hover{background:#f3f7f4;border-color:#9cb8a6}
#app .text-btn:not(.product-delete):not(.danger){color:#397458}
#app .attention-row{padding:14px 0;border-color:var(--workspace-line);gap:12px}
#app .attention-row strong{font-size:14px;font-weight:500}
#app .attention-row small{font-size:14px;line-height:1.5;margin-top:4px}
#app .attention-row b{font-size:20px;font-weight:500}
#app .service-card,#app .connection-card{padding:20px}
#app .service-card p,#app .connection-card p{font-size:14px;line-height:1.55}
#app .empty-state{padding:28px 20px}
#app .empty-state h3{font-size:16px}
#app .empty-state p{font-size:14px;max-width:440px}
#app .control-pager,#app .context-strip{font-size:14px}
:is(#app,#public-account-menu) .account-profile h3{font-size:18px}
:is(#app,#public-account-menu) .account-profile p{font-size:14px}
#app .settings-guidance{font-size:14px;line-height:1.8;padding-left:20px}
@media(max-width:760px){#app #app-nav button{font-size:14px;min-height:40px}#app .card:not(.conversation-card){padding:18px}#app .metric-grid,#app .dashboard-grid,#app .stat-grid{gap:12px}#app .metric{padding:17px;min-height:108px}#app .page-intro p{font-size:14px}#app table th,#app table td{padding:12px}#app .service-card,#app .connection-card{padding:18px}}

/* Fast account actions. Numbers remain live without rebuilding the open panel. */
#app #product-account-menu{width:min(344px,calc(100vw - 28px));padding:16px;border:1px solid var(--workspace-line);border-radius:16px;box-shadow:0 12px 36px #233c3020;max-height:calc(100dvh - 112px)}
:is(#app,#public-account-menu) .account-menu-identity{padding:1px 2px 13px;border-bottom:1px solid var(--workspace-line)}
:is(#product-account-menu,#public-account-menu) .account-menu-identity h3{font-size:15px;margin:0 0 3px;font-weight:600}
:is(#product-account-menu,#public-account-menu) .account-menu-identity p{font-size:14px;color:var(--workspace-muted);line-height:1.45;margin:0;overflow-wrap:anywhere}
:is(#app,#public-account-menu) .account-business-context{display:grid;gap:3px;padding:12px 2px;font-size:14px}
:is(#app,#public-account-menu) .account-business-context>span,:is(#app,#public-account-menu) .account-business-picker summary>span{font-size:14px;color:var(--workspace-muted)}
:is(#app,#public-account-menu) .account-business-context>strong,:is(#app,#public-account-menu) .account-business-picker summary>strong{font-size:14px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
:is(#app,#public-account-menu) .account-business-picker summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;cursor:pointer;list-style:none}
:is(#app,#public-account-menu) .account-business-picker summary::-webkit-details-marker{display:none}
:is(#app,#public-account-menu) .account-business-picker summary>span{grid-column:1/-1}
:is(#app,#public-account-menu) .account-business-picker summary>small{font-size:14px;color:#397458;align-self:center}
:is(#product-account-menu,#public-account-menu) .account-business-picker select{font-size:14px;margin:10px 0 0;min-height:38px}
:is(#app,#public-account-menu) .account-quick-stats{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:2px 0 9px}
:is(#product-account-menu,#public-account-menu) .account-stat{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;text-align:left;min-width:0;min-height:98px;border:0;border-radius:12px;padding:12px;background:#f2f5f2;color:#243d32;gap:0;margin:0;width:100%}
:is(#product-account-menu,#public-account-menu) button.account-stat:hover{background:#eaf1ec}
:is(#app,#public-account-menu) .account-stat>span,:is(#app,#public-account-menu) .account-stat-heading>span:first-child{font-size:14px;line-height:1.4;color:#65786c}
:is(#app,#public-account-menu) .account-stat>strong{font-size:24px;line-height:1.25;font-weight:600;margin:4px 0 3px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
:is(#app,#public-account-menu) .account-stat>small{font-size:14px;line-height:1.35;color:#65786c}
:is(#app,#public-account-menu) .account-stat-heading{display:flex;align-items:center;gap:7px;width:100%;min-height:17px}
:is(#app,#public-account-menu) .account-status-dot{width:7px;height:7px;border-radius:50%;background:#9ba89f;flex:0 0 7px;margin-left:auto}
:is(#app,#public-account-menu) .account-status-dot[data-state=active]{background:#279454;box-shadow:0 0 0 3px #27945414}
:is(#app,#public-account-menu) .account-status-dot[data-state=paused]{background:#d14f4f;box-shadow:0 0 0 3px #d14f4f12}
:is(#app,#public-account-menu) .account-omni-details{margin:0 1px 12px}
:is(#app,#public-account-menu) .account-omni-details summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font-size:14px;color:#687b70;min-height:26px;list-style:none}
:is(#app,#public-account-menu) .account-omni-details summary::-webkit-details-marker{display:none}
:is(#app,#public-account-menu) .account-omni-details summary strong{font-size:14px;font-weight:500;color:#426651}
:is(#product-account-menu,#public-account-menu) .account-omni-details p{font-size:14px;margin:8px 0;line-height:1.5}
:is(#product-account-menu,#public-account-menu) .account-omni-details .account-metric-definition{color:#718176;font-size:14px}
:is(#product-account-menu,#public-account-menu) .account-omni-details .text-btn{font-size:14px;min-height:30px;padding:4px 0}
:is(#product-account-menu,#public-account-menu) .account-subscription{display:grid;gap:3px;width:100%;border:1px solid #e2e9e4;background:#fafcfb;border-radius:10px;padding:10px 12px;margin:0 0 12px;text-align:left;color:#426651}
:is(#app,#public-account-menu) .account-subscription>span{display:flex;justify-content:space-between;gap:12px;font-size:14px;line-height:1.4}
:is(#app,#public-account-menu) .account-subscription strong{font-size:14px;font-weight:500;color:#287248}
:is(#app,#public-account-menu) .account-subscription>small{font-size:14px;color:#6c7f73;line-height:1.5}
:is(#app,#public-account-menu) .account-subscription[data-state=expired] strong{color:#b15047}
:is(#app,#public-account-menu) .account-subscription[data-state=off] strong{color:#6c7f73}
:is(#app,#public-account-menu) .account-menu-actions{display:grid;gap:2px;border-top:1px solid var(--workspace-line);padding-top:7px}
:is(#app,#public-account-menu) .account-menu-actions>button,:is(#app,#public-account-menu) .account-menu-footer>button{display:flex;align-items:center;width:100%;border:0;background:transparent;border-radius:7px;color:#345c47;min-height:36px;padding:8px;text-align:left;font-size:14px;line-height:1.4}
:is(#app,#public-account-menu) .account-menu-actions>button:hover,:is(#app,#public-account-menu) .account-menu-footer>button:hover{background:#f0f5f1}
:is(#app,#public-account-menu) .account-menu-footer{border-top:1px solid var(--workspace-line);padding-top:7px;margin-top:7px}
@media(prefers-reduced-motion:reduce){#app *{scroll-behavior:auto!important}}
.conversation-runtime{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}.conversation-runtime .vica-status{padding:3px 7px;font-size:14px;font-weight:400;background:#f0f4f1;color:#71877a}.conversation-runtime .text-btn{font-size:14px!important;padding:3px 0;min-height:26px}
#app .conversation-composer p{font-size:14px;margin:8px 0 0}.conversation-drafts{margin:0;padding:12px 20px;border-top:1px solid #e1e9e3;background:#f9fbf9}.conversation-drafts summary{cursor:pointer;font-size:14px;font-weight:500}
.conversation-draft{border:1px solid #e0e8e2;border-radius:10px;padding:12px;margin-top:10px;background:#fff}.conversation-draft>div{display:flex;justify-content:space-between;gap:12px;font-size:14px}.conversation-draft small{color:#809084}.conversation-draft p{font-size:14px;margin:8px 0}.conversation-draft .btn{margin:0}
@media(max-width:800px){.conversation-header{flex-wrap:wrap;gap:12px}#conversation-header-actions{max-width:100%;flex-basis:100%}#app .conversation-status-controls{justify-content:flex-start}.conversation-status-reset{flex-basis:auto;justify-content:flex-start!important}.conversation-status-feedback{text-align:left}.messages-filter-fields{width:min(520px,calc(100vw - 48px))}}
@media(max-width:550px){.messages-tools{gap:8px}.messages-search{flex-basis:100%;min-width:0}.messages-sort{flex:1}#app .messages-sort select{width:100%;min-width:0}.messages-filter-fields{width:calc(100vw - 48px);grid-template-columns:1fr;gap:10px}.messages-quick-filters{gap:3px;margin-bottom:12px}.messages-quick-filters>button:not(.text-btn){font-size:14px;padding:6px 9px}#app .message-row{padding:13px 12px;gap:10px}.message-row-heading strong{font-size:14px!important}.message-row-heading time{font-size:14px}.message-row-bottom{gap:5px;flex-wrap:wrap}.message-source{max-width:100%}.message-row-flags{gap:6px}.message-row-flags .vica-status,.messages-workflow{font-size:14px}.conversation-source-logo,.conversation-source-logo .service-logo{width:36px;height:36px;min-width:36px;flex-basis:36px}.messages-list-caption{padding:10px 12px}.conversation-header{padding:14px}.conversation-context p{max-width:none}#app .conversation-card .experience-messages{height:49dvh;min-height:200px;padding:8px 12px 16px}#app .conversation-card .experience-message{max-width:90%!important}#app .conversation-composer{padding:12px}.conversation-composer-actions{align-items:flex-end}.conversation-runtime{gap:4px 10px}#app .conversation-identity h2{font-size:17px}}

/* Connections owns its typography and spacing; legacy catalogue sizes stay outside. */
#app #connections-page{max-width:1200px;margin:0 auto;font-size:14px;line-height:1.5;color:#243d32}
#app #connections-page h2{font-size:20px;font-weight:600;line-height:1.35;margin:0;letter-spacing:normal}
#app #connections-page h3{font-size:16px;font-weight:600;line-height:1.4;margin:0;letter-spacing:normal}
#app #connections-page p{font-size:14px;line-height:1.55;margin:0}
#app #connections-page .connections-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
#app #connections-page .connections-section-heading p{color:#687b70;margin-top:6px}
#app #connections-page .connections-count{font-size:14px;color:#687b70;white-space:nowrap}
#app #connections-page .connected-section{margin:0 0 36px}
#app #connections-page .connection-service-group{margin:0 0 22px}
#app #connections-page .connection-group-heading{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}
#app #connections-page .connection-group-heading span{font-size:14px;color:#687b70}
#app #connections-page .connection-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#app #connections-page .connection-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;padding:20px;border:1px solid #e0e7e2;border-radius:12px;background:#fff;box-shadow:none;min-width:0}
#app #connections-page .connection-card-head{display:flex;align-items:center;gap:12px;grid-column:1;grid-row:1;margin:0;min-width:0}
#app #connections-page .connection-card-head>div{min-width:0}
#app #connections-page .connection-card-head h3{overflow-wrap:anywhere}
#app #connections-page .connection-card-head p{font-size:14px;color:#687b70;margin-top:3px}
#app #connections-page .service-logo{width:40px;height:40px;flex:0 0 40px;border-radius:10px}
#app #connections-page .vica-connection-state{grid-column:1;grid-row:2;display:block;margin:0}
#app #connections-page .connection-state-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:14px}
#app #connections-page .connection-state-line small{font-size:14px;line-height:1.5;color:#687b70;white-space:normal}
#app #connections-page .vica-status{font-size:14px;line-height:1.4;padding:3px 8px;font-weight:400;max-width:100%}
#app #connections-page .vica-connection-state p{margin-top:8px;color:#687b70;max-width:680px}
#app #connections-page .connection-card-actions{grid-column:2;grid-row:1 / span 2;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;align-self:center}
#app #connections-page .btn,#app #connections-page .catalog-tabs button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:8px;padding:9px 14px;margin:0;font-size:14px;font-weight:500;line-height:1.4;gap:6px;text-decoration:none;box-sizing:border-box;white-space:normal}
#app #connections-page .btn.outline{border:1px solid #d6e1d9;background:#fff;color:#315d46}
#app #connections-page .btn.primary{border:1px solid #256a52;background:#256a52;color:#fff}
#app #connections-page .btn:hover{filter:brightness(.98)}
#app #connections-page .connection-more{position:relative}
#app #connections-page .connection-more>summary{list-style:none;cursor:pointer;user-select:none}
#app #connections-page .connection-more>summary::-webkit-details-marker{display:none}
#app #connections-page .connection-more[open]>summary{background:#f1f6f2;border-color:#9db8a7}
#app #connections-page .connection-more-actions{position:absolute;right:0;top:calc(100% + 6px);z-index:40;display:grid;min-width:200px;padding:5px;border:1px solid #dce6df;border-radius:10px;background:#fff;box-shadow:0 10px 28px #243d321a}
#app #connections-page .connection-menu-action{display:block;width:100%;border:0;border-radius:6px;background:transparent;font-size:14px;font-weight:400;line-height:1.4;text-align:left;padding:10px 12px;min-height:38px;color:#315d46;white-space:normal;margin:0}
#app #connections-page .connection-menu-action:hover{background:#f2f6f3}
#app #connections-page .connection-menu-action.danger{color:#a5433f}
#app #connections-page .connection-inline-settings{grid-column:1/-1;padding:20px 0 0;margin-top:4px;border-top:1px solid #e0e7e2}
#app #connections-page .connection-inline-settings label,#app #connections-page .connection-inline-settings .hint{font-size:14px;line-height:1.5}
#app #connections-page .connections-catalog-tools{display:flex;align-items:center;gap:12px;margin-bottom:16px}
#app #connections-page .search-field{flex:1;max-width:none;min-width:0;margin:0}
#app #connections-page .search-field input{width:100%;padding:10px 12px 10px 42px;margin:0;font-size:14px;min-height:42px;border-radius:8px;line-height:1.4;background:#fff;border:1px solid #d6e1d9}
#app #connections-page .search-field .ui-icon{width:18px;height:18px;left:14px}
#app #connections-page .vica-catalog-ready{flex:0 1 245px;max-width:245px;width:245px;margin:0}
#app #connections-page select{font-size:14px;line-height:1.4;min-height:42px;width:100%;padding:10px 34px 10px 12px;border:1px solid #d6e1d9;border-radius:8px;margin:0}
#app #connections-page .catalog-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
#app #connections-page .catalog-tabs button{border:1px solid #e0e7e2;background:#fff;color:#64796c;font-weight:400}
#app #connections-page .catalog-tabs button.active{background:#eaf2ec;border-color:#c6dccd;color:#285d42;font-weight:500}
#app #connections-page .service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
#app #connections-page .service-card{display:flex;flex-direction:column;min-width:0;padding:20px;border:1px solid #e0e7e2;border-radius:12px;background:#fff;box-shadow:none;gap:0}
#app #connections-page .service-card-top{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin-bottom:14px}
#app #connections-page .service-card>.vica-status{align-self:flex-start;margin-bottom:12px}
#app #connections-page .service-description{color:#405b4c;margin:0 0 12px}
#app #connections-page .service-features{color:#405b4c;margin:0 0 8px;font-weight:400}
#app #connections-page .service-requirement{color:#687b70;margin:0 0 20px}
#app #connections-page .service-card-bottom{display:flex;margin-top:auto;padding-top:16px;border-top:1px solid #e8ede9;gap:0;justify-content:flex-start}
#app #connections-page .catalog-footer{font-size:14px;color:#687b70;line-height:1.5;margin-top:20px}
#app #connections-page .vica-empty{grid-column:1/-1}
:is(#product-account-menu,#public-account-menu) .account-menu-footer{display:block;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #e0e7e2;gap:0;font-size:inherit}
:is(#product-account-menu,#public-account-menu) .account-menu-footer>button,:is(#product-account-menu,#public-account-menu) .account-menu-actions>button{margin:0;padding:8px;min-height:36px;line-height:1.4;text-align:left;justify-content:flex-start;font-size:14px;letter-spacing:normal}
:is(#product-account-menu,#public-account-menu) .account-stat-omni{cursor:pointer}
:is(#product-account-menu,#public-account-menu) .account-stat-omni:hover{background:#eaf1ec}
#app #logout[hidden]{display:none!important}
#app .side-bottom:has(.sidebar-quote){margin-top:auto;padding:18px 12px 0;border-top:1px solid #e0e7e2;display:block}
#app .sidebar-quote{margin:0;padding:0;border:0;text-align:left}
#app .sidebar-quote p{margin:0;font-size:14px;line-height:1.6;font-weight:400;color:#64796c}
#app .sidebar-quote cite{display:block;margin-top:8px;font-size:14px;font-style:normal;line-height:1.4;color:#8a998f}
@media(max-width:1100px){#app #connections-page .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){#app #connections-page .connection-card{grid-template-columns:minmax(0,1fr);gap:14px;padding:18px}#app #connections-page .connection-card-actions{grid-column:1;grid-row:3;justify-content:flex-start}#app #connections-page .connections-section-heading{align-items:flex-start;gap:10px}#app #connections-page .connections-section-heading p{max-width:36em}#app #connections-page .connection-more-actions{left:0;right:auto}#app .side-bottom:has(.sidebar-quote){display:none!important}}
@media(max-width:620px){#app #connections-page .service-grid{grid-template-columns:minmax(0,1fr)}#app #connections-page .connections-catalog-tools{flex-direction:column;align-items:stretch;gap:10px}#app #connections-page .vica-catalog-ready{flex:1;max-width:none;width:100%}#app #connections-page .catalog-tabs{gap:6px}#app #connections-page .catalog-tabs button{padding:8px 10px}#app #connections-page .connections-count{display:none}#app #connections-page .service-card{padding:18px}}


/* Ordinary workspace sections follow the message and connection workspaces. */
#app #content.workspace-page{font-size:14px;line-height:1.5;--control-height:42px;--control-radius:8px}
#app #content.workspace-page .page-intro{align-items:center;gap:16px;margin:0 0 20px}
#app #content.workspace-page .page-intro h2{font-size:20px;line-height:1.35;margin:0 0 6px}
#app #content.workspace-page .page-intro p{font-size:14px;line-height:1.5;max-width:720px;margin:0;color:var(--workspace-muted)}
#app #content.workspace-page .card,#app #content.workspace-page .control-health article,#app #content.workspace-page .product-admin-list article{padding:20px;border:1px solid var(--workspace-line);border-radius:12px;background:#fff;min-width:0;box-shadow:none}
#app #content.workspace-page>.card,#app #content.workspace-page>.grid2,#app #content.workspace-page>.dashboard-grid,#app #content.workspace-page>.product-admin-list{margin-bottom:16px}
#app #content.workspace-page .card h2,#app #content.workspace-page .card h3,#app #content.workspace-page .control-health h3,#app #content.workspace-page .product-admin-list h3{font-size:16px;font-weight:600;line-height:1.4;margin:0 0 12px}
#app #content.workspace-page .section-row h2,#app #content.workspace-page .section-row h3{margin:0!important}
#app #content.workspace-page .section-row{gap:12px;margin-bottom:16px;align-items:center;flex-wrap:wrap}
#app #content.workspace-page p{font-size:14px;line-height:1.55}
#app #content.workspace-page :is(.hint,.card-subtitle,.business-report-note,.control-hint,.receipt-note,.document-status,.security-event,.report-legend){font-size:14px;line-height:1.5;color:var(--workspace-muted)}
#app #content.workspace-page .card>p{margin:0 0 14px}
#app #content.workspace-page .card>p:last-child{margin-bottom:0}
#app #content.workspace-page .btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:42px;font-size:14px;font-weight:500;line-height:1.4;gap:8px;padding:10px 14px;border-radius:8px;margin:0;white-space:normal;text-decoration:none;transform:none}
#app #content.workspace-page .btn:hover:not(:disabled){transform:none}
#app #content.workspace-page .text-btn,#app #content.workspace-page .back-link,#app #content.workspace-page .business-link{display:inline-flex;align-items:center;min-height:36px;box-sizing:border-box;font-size:14px;font-weight:500;line-height:1.4;padding:6px 0;margin:0;text-align:left;gap:6px}
#app #content.workspace-page .actions,#app #content.workspace-page .detail-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0 0}
#app #content.workspace-page .page-intro>.actions,#app #content.workspace-page .section-row>.actions{margin:0}
#app #content.workspace-page :is(.form-grid,.product-speed-grid){gap:16px}
#app #content.workspace-page label:not(.check):not(.product-notice-switch):not(.upload-zone){display:block;font-size:14px;font-weight:500;line-height:1.45;margin:0 0 14px}
#app #content.workspace-page .form-grid>label,#app #content.workspace-page .control-toolbar>label,#app #content.workspace-page .product-speed-grid>label{margin:0!important}
#app #content.workspace-page input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),#app #content.workspace-page select,#app #content.workspace-page textarea{min-height:42px;box-sizing:border-box;font-size:14px;font-weight:400;line-height:1.5;border-radius:8px;margin:6px 0 0;padding:10px 12px}
#app #content.workspace-page label>input:not([type=checkbox]):not([type=radio]),#app #content.workspace-page label>select,#app #content.workspace-page label>textarea{width:100%}
#app #content.workspace-page .search-field input{padding-left:42px}
#app #content.workspace-page .check{gap:10px;font-size:14px;font-weight:400;line-height:1.5;margin:12px 0}
#app #content.workspace-page .check input{margin-top:4px}
#app #content.workspace-page form>.btn{margin-top:4px}
#app #content.workspace-page form>.form-grid{margin-bottom:16px}
#app #content.workspace-page .form-grid label>.hint{display:block;margin-top:6px;font-weight:400}
#app #content.workspace-page .control-toolbar,#app #content.workspace-page .directory-toolbar,#app #content.workspace-page .platform-toolbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:0 0 16px}
#app #content.workspace-page .control-toolbar>label{min-width:180px}
#app #content.workspace-page .control-toolbar>.btn{flex:0 0 auto}
#app #content.workspace-page .platform-toolbar>input,#app #content.workspace-page .platform-toolbar>select{margin:0;flex:1;min-width:180px}
#app #content.workspace-page .directory-toolbar .search-field{margin:0}
#app #content.workspace-page .directory-toolbar .search-field input{margin:0}
#app #content.workspace-page :is(.experience-subnav,.control-subnav,.crm-tabs){display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0 0 12px;margin:0 0 18px;border:0;border-bottom:1px solid var(--workspace-line);background:transparent}
#app #content.workspace-page :is(.experience-subnav,.control-subnav,.crm-tabs)>button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;font-size:14px;font-weight:500;line-height:1.4;min-height:38px;padding:8px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#61766b;box-shadow:none;margin:0;transform:none}
#app #content.workspace-page :is(.experience-subnav,.control-subnav,.crm-tabs)>button:hover{background:#edf3ee}
#app #content.workspace-page :is(.experience-subnav,.control-subnav,.crm-tabs)>button.active{background:#e5f0e8;border-color:#d1e2d7;color:#255e43}
#app #content.workspace-page table th{font-size:14px;font-weight:500;line-height:1.45;padding:12px 14px}
#app #content.workspace-page table td{font-size:14px;line-height:1.5;padding:14px;vertical-align:top}
#app #content.workspace-page table td small{display:block;font-size:14px;line-height:1.45;margin-top:4px;color:var(--workspace-muted)}
#app #content.workspace-page table .text-btn{min-height:32px;padding:4px 0}
#app #content.workspace-page table .actions{margin:0;gap:6px;align-items:flex-start}
#app #content.workspace-page table .actions>.text-btn{padding:7px 0}
#app #content.workspace-page .control-label,#app #content.workspace-page .vica-status,#app #content.workspace-page .mode-chip{font-size:14px;line-height:1.4;padding:4px 8px;border-radius:6px}
#app #content.workspace-page :is(.metric-grid,.dashboard-grid,.stat-grid,.grid2,.control-health,.product-admin-list){gap:16px}
#app #content.workspace-page .metric,#app #content.workspace-page .stat-grid article{padding:18px;border-radius:12px;min-height:0}
#app #content.workspace-page .metric-label,#app #content.workspace-page .stat-grid article>small{font-size:14px;line-height:1.5}
#app #content.workspace-page .metric>strong,#app #content.workspace-page .stat-grid article>strong{display:block;font-size:28px;line-height:1.2;font-weight:600;margin:10px 0 6px}
#app #content.workspace-page .metric>p,#app #content.workspace-page .stat-grid article>p{font-size:14px;line-height:1.5;margin:0;color:var(--workspace-muted)}
#app #content.workspace-page .attention-row{font-size:14px;min-height:64px;margin:0;padding:12px 0}
#app #content.workspace-page .attention-row strong{font-size:14px}
#app #content.workspace-page .attention-row small{font-size:14px;line-height:1.4}
#app #content.workspace-page .attention-row b{font-size:22px}
#app #content.workspace-page .recent-list>button{font-size:14px;gap:12px;padding:14px 0;min-height:64px}
#app #content.workspace-page .recent-list strong{font-size:14px;line-height:1.4}
#app #content.workspace-page .recent-list small{font-size:14px;line-height:1.4;margin-top:4px}
#app #content.workspace-page .recent-list>button>span:last-child:not(.table-avatar){display:none}
#app #content.workspace-page .readiness-line{font-size:14px;gap:14px;padding:12px 0;flex-wrap:wrap}
#app #content.workspace-page .readiness-line strong{font-size:14px}
#app #content.workspace-page .control-health p{font-size:14px;line-height:1.5}
#app #content.workspace-page .control-health .control-label{margin-bottom:12px}
#app #content.workspace-page .control-health article.attention{background:#fffaf0;border-color:#e9dcc1}
#app #content.workspace-page .product-admin-list .section-row{margin-bottom:8px}
#app #content.workspace-page .product-admin-list h3{margin:0}
#app #content.workspace-page .product-admin-list p{margin:0 0 14px}
#app #content.workspace-page .pipeline{gap:12px;margin-bottom:16px;padding-bottom:12px}
#app #content.workspace-page .pipeline-column{padding:14px;border:1px solid var(--workspace-line);border-radius:10px;background:#f0f4f1}
#app #content.workspace-page .pipeline-column h3{font-size:14px;line-height:1.4;margin:0 0 8px}
#app #content.workspace-page .pipeline-empty{font-size:14px;color:var(--workspace-muted);margin:16px 0;padding:0}
#app #content.workspace-page .deal-card{font-size:14px;padding:14px;border:1px solid var(--workspace-line);border-radius:9px;box-shadow:none}
#app #content.workspace-page .deal-card small{font-size:14px;line-height:1.4;margin:6px 0}
#app #content.workspace-page .deal-card b{font-size:16px;font-weight:600}
#app #content.workspace-page .upload-zone{font-size:14px;border-radius:10px;background:#f8faf8;padding:20px;margin:16px 0}
#app #content.workspace-page .upload-zone input{display:block;font-size:14px;margin:12px auto;max-width:100%}
#app #content.workspace-page .upload-zone .hint{display:block;margin-top:8px}
#app #content.workspace-page .knowledge-mode-note{background:#f5f8f5;padding:14px;border-radius:8px;font-size:14px}
#app #content.workspace-page .knowledge-mode-note p{font-size:14px;margin:6px 0}
#app #content.workspace-page .settings-guidance{font-size:14px;line-height:1.55;padding-left:20px;margin:0 0 16px}
#app #content.workspace-page .settings-guidance li{font-size:14px;line-height:1.55;margin:8px 0}
#app #content.workspace-page details.card>summary{font-size:16px;line-height:1.4;font-weight:500;cursor:pointer;min-height:24px}
#app #content.workspace-page details.card[open]>summary{margin-bottom:16px}
#app #content.workspace-page .experience-link-list{display:flex;flex-direction:column;gap:4px}
#app #content.workspace-page .experience-link-list>a{font-size:14px;line-height:1.4;padding:8px 0;min-height:36px;box-sizing:border-box}
#app #content.workspace-page .legal-links{display:grid;gap:0}
#app #content.workspace-page .legal-link{font-size:14px;line-height:1.5;min-height:48px;padding:12px 0;display:flex;align-items:center;border:0;border-radius:0;border-bottom:1px solid var(--workspace-line);background:transparent;box-shadow:none}
#app #content.workspace-page .legal-link:last-child{border-bottom:0}
#app #content.workspace-page .product-notice-binding{margin-top:16px;border-top:1px solid var(--workspace-line);padding-top:14px}
#app #content.workspace-page .product-notice-binding summary{font-size:14px;line-height:1.5;cursor:pointer}
#app #content.workspace-page .product-notice-binding[open] .product-notice-actions{margin-top:14px}
#app #content.workspace-page p:empty{display:none}
#app #content.workspace-page .product-notice-pref-status{min-height:0}
#app #content.workspace-page .product-notice-switch{font-size:14px;line-height:1.5}
#app #content.workspace-page .product-notice-switch input{flex:0 0 auto}
#platform-dialog.platform-dialog{--control-height:42px;--control-radius:8px;border-radius:14px;padding:22px;box-sizing:border-box}
#platform-dialog.platform-dialog .dialog-header{align-items:center;gap:16px;margin-bottom:18px}
#platform-dialog.platform-dialog .dialog-header h2{font-size:20px;line-height:1.35;margin:0}
#platform-dialog.platform-dialog :is(p,label){font-size:14px;line-height:1.5}
#platform-dialog.platform-dialog .hint{font-size:14px;line-height:1.5}
#platform-dialog.platform-dialog .form-grid{gap:16px}
#platform-dialog.platform-dialog form>label:not(.check){display:block;margin-bottom:14px}
#platform-dialog.platform-dialog label>input:not([type=checkbox]):not([type=radio]),#platform-dialog.platform-dialog label>select,#platform-dialog.platform-dialog label>textarea{width:100%;margin-top:6px;font-size:14px;min-height:42px;border-radius:8px}
#platform-dialog.platform-dialog .btn,#platform-dialog.platform-dialog .btn.small{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;font-size:14px;line-height:1.4;min-height:42px;padding:10px 14px;border-radius:8px;gap:8px;transform:none}
#platform-dialog.platform-dialog .actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
#app #content.workspace-page select,#platform-dialog.platform-dialog select{padding-inline-end:38px}
#app #content.workspace-page .icon-button{font-size:14px;min-width:36px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:8px}

/* Knowledge: one focused editor with attachments beside the text. */
#app #content.workspace-page .knowledge-workspace,#app #content.workspace-page #dialog-ai-settings,#app #content.workspace-page .knowledge-context{max-width:1080px;margin-inline:auto;box-sizing:border-box}
#app #content.workspace-page .knowledge-workspace{padding:22px}
#app #content.workspace-page .knowledge-editor>label,#app #content.workspace-page .knowledge-style-editor>label{margin:0 0 8px;font-weight:500}
#app #content.workspace-page .knowledge-editor>textarea,#app #content.workspace-page .knowledge-style-editor>textarea{display:block;width:100%;margin:0;padding:14px 16px;background:#fbfcfb;border:1px solid #d6e1d9;border-radius:10px;font-size:14px;line-height:1.65;resize:vertical;max-height:70vh;box-sizing:border-box}
#app #content.workspace-page .knowledge-editor>textarea{height:224px;min-height:160px}
#app #content.workspace-page .knowledge-style-editor{margin-top:22px}
#app #content.workspace-page .knowledge-style-editor>textarea{height:112px;min-height:96px}
#app #content.workspace-page .knowledge-editor>textarea:focus,#app #content.workspace-page .knowledge-style-editor>textarea:focus{background:#fff;border-color:#79a28b}
#app #content.workspace-page .knowledge-attachments{padding:12px 0 0;margin:0;border:0;background:transparent}
#app #content.workspace-page .knowledge-attachment-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
#app #content.workspace-page .knowledge-attach{background:#fff;gap:8px;white-space:nowrap}
#app #content.workspace-page .knowledge-attach svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#app #content.workspace-page .knowledge-file-hint{font-size:14px;line-height:1.5;color:var(--workspace-muted)}
#app #content.workspace-page #knowledge-list:empty{display:none}
#app #content.workspace-page .knowledge-file-list{list-style:none;padding:0;margin:12px 0 0;border:1px solid var(--workspace-line);border-radius:9px;overflow:hidden}
#app #content.workspace-page .knowledge-file-list>li{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#fafcfb;border-bottom:1px solid var(--workspace-line);min-width:0}
#app #content.workspace-page .knowledge-file-list>li:last-child{border-bottom:0}
#app #content.workspace-page .knowledge-file-icon{width:24px;height:28px;flex:0 0 24px;fill:none;stroke:#6b8b78;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#app #content.workspace-page .knowledge-file-name{flex:1;min-width:0}
#app #content.workspace-page .knowledge-file-name strong{display:block;font-size:14px;line-height:1.45;font-weight:500;overflow-wrap:anywhere}
#app #content.workspace-page .knowledge-file-name small{display:block;font-size:14px;line-height:1.4;color:var(--workspace-muted);margin-top:2px}
#app #content.workspace-page .knowledge-file-list .text-btn{flex:0 0 auto;min-height:36px;padding:6px}
#app #content.workspace-page .knowledge-advanced{margin-top:22px;padding-top:16px;border-top:1px solid var(--workspace-line)}
#app #content.workspace-page .knowledge-advanced>summary{cursor:pointer;font-size:14px;font-weight:500;line-height:1.5}
#app #content.workspace-page .knowledge-advanced[open]>.form-grid{margin-top:16px}
#app #content.workspace-page .knowledge-context{margin-bottom:12px}
#app #content.workspace-page .business-name-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px;min-width:0}
#app #content.workspace-page .business-name-heading h3{margin:0;overflow-wrap:anywhere;min-width:0}
#app #content.workspace-page .business-name-edit{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;padding:7px;border:1px solid transparent;border-radius:7px;background:transparent;color:#6b8475;cursor:pointer}
#app #content.workspace-page .business-name-edit:hover{background:#edf4ef;border-color:#d8e4dc;color:#275c41}
#app #content.workspace-page .business-name-edit svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:650px){#app #content.workspace-page .knowledge-workspace{padding:16px}#app #content.workspace-page .knowledge-file-hint{flex-basis:100%}#app #content.workspace-page .knowledge-editor>textarea{height:208px;padding:12px}#app #content.workspace-page .knowledge-style-editor>textarea{padding:12px}}
@media(max-width:980px){#app #content.workspace-page .dashboard-grid{grid-template-columns:1fr}#app #content.workspace-page .control-health{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#app #content.workspace-page .page-intro{align-items:flex-start;flex-wrap:wrap}#app #content.workspace-page .card,#app #content.workspace-page .control-health article,#app #content.workspace-page .product-admin-list article{padding:16px}#app #content.workspace-page .control-health,#app #content.workspace-page .grid2{grid-template-columns:1fr}#app #content.workspace-page .control-toolbar>label{min-width:0;flex:1 1 100%}#app #content.workspace-page .control-toolbar>.btn{width:100%}#app #content.workspace-page .metric-grid,#app #content.workspace-page .stat-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}#app #content.workspace-page .metric>strong,#app #content.workspace-page .stat-grid article>strong{font-size:24px}#app #content.workspace-page .metric,#app #content.workspace-page .stat-grid article{padding:14px}#platform-dialog.platform-dialog{padding:18px}}


/* Save follows the editable content, with no introductory toolbar. */
#app #content.workspace-page .knowledge-editor>label,#app #content.workspace-page .knowledge-style-editor>label{font-size:16px;font-weight:600;line-height:1.4;margin:0 0 10px}
#app #content.workspace-page .knowledge-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--workspace-line)}
@media(max-width:650px){#app #content.workspace-page .knowledge-form-actions>.btn{width:100%}}

/* Knowledge workspace: facts, voice and automation have separate visual roles. */
#app #content.workspace-page #knowledge-page-shell{max-width:1180px;margin:0 auto;color:#243e32}
#app #content.workspace-page #knowledge-page-shell .knowledge-intro{display:flex;align-items:flex-start;gap:16px;padding:20px 22px;margin-bottom:20px;border:1px solid #d3e2d7;border-left:4px solid #3b7c58;border-radius:12px;background:#edf5ef}
#app #content.workspace-page #knowledge-page-shell .knowledge-intro h2{font-size:20px;line-height:1.35;margin:0 0 7px;font-weight:600}
#app #content.workspace-page #knowledge-page-shell .knowledge-intro p{font-size:14px;line-height:1.55;margin:0;max-width:850px;color:#496454}
#app #content.workspace-page #knowledge-page-shell .knowledge-intro-icon{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#dbeadf;color:#2b6846}
#app #content.workspace-page #knowledge-page-shell svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#app #content.workspace-page #knowledge-page-shell .knowledge-intro-icon svg{width:23px;height:23px}
#app #content.workspace-page #knowledge-page-shell .knowledge-workspace{max-width:none;min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
#app #content.workspace-page #knowledge-page-shell .knowledge-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:20px}
#app #content.workspace-page #knowledge-page-shell .knowledge-editors{display:grid;gap:16px;min-width:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-editor,#app #content.workspace-page #knowledge-page-shell .knowledge-style-editor{background:#fff;border:1px solid #dce5df;border-radius:12px;padding:20px;margin:0;min-width:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-editor-heading{display:flex;align-items:center;gap:10px;margin:0 0 14px}
#app #content.workspace-page #knowledge-page-shell .knowledge-editor-heading label{font-size:16px;font-weight:600;line-height:1.4;margin:0;color:#244031}
#app #content.workspace-page #knowledge-page-shell .knowledge-section-icon{display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:#e7f2ea;color:#377a51}
#app #content.workspace-page #knowledge-page-shell .knowledge-section-icon svg{width:19px;height:19px}
#app #content.workspace-page #knowledge-page-shell .knowledge-style-editor .knowledge-section-icon{color:#536da0;background:#edf1fa}
#app #content.workspace-page #knowledge-page-shell .knowledge-style-editor{border-top:3px solid #a9bddd;padding-top:18px}
#app #content.workspace-page #knowledge-page-shell .knowledge-editor{border-top:3px solid #7dac8b;padding-top:18px}
#app #content.workspace-page #knowledge-page-shell .knowledge-editor>textarea,#app #content.workspace-page #knowledge-page-shell .knowledge-style-editor>textarea{background:#fff;border-color:#cbd9d0;border-radius:9px;line-height:1.65;font-size:14px;padding:14px;margin:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-style-editor>textarea{background:#fcfdff;border-color:#d5ddeb}
#app #content.workspace-page #knowledge-page-shell textarea::placeholder{color:#7a8b81;opacity:1}
#app #content.workspace-page #knowledge-page-shell textarea:focus{border-color:#588d6b;outline-color:#90b89c}
#app #content.workspace-page #knowledge-page-shell .knowledge-field-note{margin:10px 0 0;font-size:14px;line-height:1.5;color:#61786b}
#app #content.workspace-page #knowledge-page-shell .knowledge-attachments{margin-top:12px;padding:12px 0 0;border-top:1px solid #e8eeea}
#app #content.workspace-page #knowledge-page-shell .knowledge-file-hint{font-size:14px;color:#687f70}
#app #content.workspace-page #knowledge-page-shell .knowledge-guidance{display:grid;gap:14px;min-width:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-guide-card{background:#f0f5f1;border:1px solid #dce6de;border-radius:12px;padding:20px}
#app #content.workspace-page #knowledge-page-shell .knowledge-guide-kicker{display:block;font-size:14px;font-weight:500;line-height:1.4;letter-spacing:.06em;color:#6f8876;margin-bottom:8px}
#app #content.workspace-page #knowledge-page-shell .knowledge-guide-card h3{font-size:16px;line-height:1.4;margin:0 0 18px}
#app #content.workspace-page #knowledge-page-shell .knowledge-guide-card ul{padding:0;margin:0;list-style:none;display:grid;gap:18px}
#app #content.workspace-page #knowledge-page-shell .knowledge-guide-card li{padding-left:15px;position:relative}
#app #content.workspace-page #knowledge-page-shell .knowledge-guide-card li::before{content:'';position:absolute;left:0;top:7px;width:5px;height:5px;border-radius:50%;background:#7da488}
#app #content.workspace-page #knowledge-page-shell .knowledge-guide-card li strong{display:block;font-size:14px;font-weight:500;line-height:1.4;margin-bottom:4px}
#app #content.workspace-page #knowledge-page-shell .knowledge-guide-card li span{display:block;font-size:14px;line-height:1.5;color:#61786b}
#app #content.workspace-page #knowledge-page-shell .knowledge-writing-tip{padding:18px 20px;background:#faf7ee;border:1px solid #e9e1ce;border-radius:12px;color:#645c42}
#app #content.workspace-page #knowledge-page-shell .knowledge-writing-tip h3{font-size:14px;line-height:1.4;font-weight:600;margin:0 0 8px}
#app #content.workspace-page #knowledge-page-shell .knowledge-writing-tip p{font-size:14px;line-height:1.55;margin:0;color:#756c50}
#app #content.workspace-page #knowledge-page-shell .knowledge-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:16px 0 0;padding:14px 0 0;border-top:1px solid #e8eeea}
#app #content.workspace-page #knowledge-page-shell .knowledge-form-actions>.btn{min-width:126px}
#app #content.workspace-page #knowledge-page-shell .knowledge-advanced{background:#fff;padding:16px 20px;border:1px solid #dce5df;border-radius:12px;margin-top:16px}
#app #content.workspace-page #knowledge-page-shell #dialog-ai-settings{max-width:none;width:100%;align-self:start;margin:0;padding:16px 20px;border-color:#dce5df;background:#fff}
#app #content.workspace-page #knowledge-page-shell .knowledge-automation-header{display:flex;align-items:center;gap:10px}
#app #content.workspace-page #knowledge-page-shell .knowledge-automation-icon{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;background:#f0edf8;color:#7a65a1;border-radius:10px}
#app #content.workspace-page #knowledge-page-shell .knowledge-automation-icon svg{width:22px;height:22px}
#app #content.workspace-page #knowledge-page-shell .knowledge-automation-copy{flex:1;min-width:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-automation-copy h3{font-size:16px;line-height:1.4;margin:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-automation-description{font-size:14px;line-height:1.55;margin:12px 0 0;color:#61786b}
#app #content.workspace-page #knowledge-page-shell .knowledge-automation-header>.product-notice-switch{flex:0 0 auto;padding:0;margin:0!important;border:0;background:transparent;min-width:0;gap:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-automation-details{padding:0;margin:10px 0 0}
#app #content.workspace-page #knowledge-page-shell .knowledge-automation-details summary{font-size:14px;line-height:1.5;color:#61786b;cursor:pointer;width:max-content;max-width:100%}
#app #content.workspace-page #knowledge-page-shell .knowledge-automation-details p{font-size:14px;line-height:1.5;color:#61786b;max-width:800px;margin:10px 0 0}
#app #content.workspace-page #knowledge-page-shell #dialog-ai-settings>[role=status]{margin:0;padding:0;border:0}
@media(max-width:1050px){#app #content.workspace-page #knowledge-page-shell .knowledge-layout{grid-template-columns:minmax(0,1fr) 260px;gap:16px}#app #content.workspace-page #knowledge-page-shell .knowledge-guide-card,#app #content.workspace-page #knowledge-page-shell .knowledge-writing-tip{padding:16px}}
@media(max-width:900px){#app #content.workspace-page #knowledge-page-shell .knowledge-layout{grid-template-columns:1fr}#app #content.workspace-page #knowledge-page-shell .knowledge-guidance{grid-template-columns:1fr 1fr;align-items:start}#app #content.workspace-page #knowledge-page-shell #dialog-ai-settings{grid-column:1/-1}#app #content.workspace-page #knowledge-page-shell .knowledge-guide-card ul{gap:12px}}
@media(max-width:600px){#app #content.workspace-page #knowledge-page-shell .knowledge-intro{padding:16px;gap:12px}#app #content.workspace-page #knowledge-page-shell .knowledge-intro-icon{width:34px;height:34px;flex-basis:34px;border-radius:9px}#app #content.workspace-page #knowledge-page-shell .knowledge-intro h2{font-size:18px}#app #content.workspace-page #knowledge-page-shell .knowledge-editor,#app #content.workspace-page #knowledge-page-shell .knowledge-style-editor{padding:16px}#app #content.workspace-page #knowledge-page-shell .knowledge-guidance{grid-template-columns:1fr}#app #content.workspace-page #knowledge-page-shell .knowledge-form-actions>.btn{width:100%}#app #content.workspace-page #knowledge-page-shell .knowledge-automation-header{gap:10px}#app #content.workspace-page #knowledge-page-shell .knowledge-automation-details{padding-left:0}#app #content.workspace-page #knowledge-page-shell #dialog-ai-settings{padding:16px}}


#app #content.workspace-page #knowledge-page-shell .knowledge-save-feedback{margin-right:auto;font-size:14px;line-height:1.5;color:#487055;min-width:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-save-feedback:empty{display:none}
#app #content.workspace-page #knowledge-page-shell .knowledge-save-feedback.is-error{color:#a33e38}
#app #content.workspace-page #knowledge-page-shell .knowledge-advanced>form{margin:14px 0 0}

/* Save actions share the attachment and style-hint rows. */
#app #content.workspace-page #knowledge-page-shell .knowledge-attachments{margin-top:12px;padding:0;border:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-attachment-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
#app #content.workspace-page #knowledge-page-shell .knowledge-attachment-options{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-file-hint{flex:1 1 170px}
#app #content.workspace-page #knowledge-page-shell .knowledge-inline-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;min-width:0;margin:0;padding:0;border:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-inline-actions>.btn{flex:0 0 auto;min-width:112px;width:auto}
#app #content.workspace-page #knowledge-page-shell .knowledge-inline-actions .knowledge-save-feedback{max-width:20ch;overflow-wrap:anywhere;margin:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-style-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin-top:12px}
#app #content.workspace-page #knowledge-page-shell .knowledge-style-controls>.knowledge-field-note{flex:1 1 220px;margin:0}
#app #content.workspace-page #knowledge-page-shell .knowledge-style-controls>.knowledge-inline-actions{margin-left:auto}
@media(max-width:480px){#app #content.workspace-page #knowledge-page-shell .knowledge-attachment-toolbar{display:flex;flex-wrap:wrap}#app #content.workspace-page #knowledge-page-shell .knowledge-attachment-options{flex:1 1 100%}#app #content.workspace-page #knowledge-page-shell .knowledge-attachment-toolbar>.knowledge-inline-actions{margin-left:auto}}

/* Compact workspace actions: share rows with relevant notes and fields. */
#app #content.workspace-page .workspace-description{margin-bottom:16px;min-height:0}
#app #content.workspace-page .workspace-description>div{min-width:0}
#app #content.workspace-page .workspace-inline-controls,#platform-dialog.platform-dialog .workspace-inline-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 16px;margin:0;padding:0;border:0}
#app #content.workspace-page .workspace-inline-controls>p,#platform-dialog.platform-dialog .workspace-inline-controls>p{flex:1 1 220px;margin:0;font-size:14px;line-height:1.5}
#app #content.workspace-page .workspace-inline-controls>label,#platform-dialog.platform-dialog .workspace-inline-controls>label{flex:1 1 220px;min-width:0;margin:0}
#app #content.workspace-page .workspace-inline-controls>.btn,#platform-dialog.platform-dialog .workspace-inline-controls>.btn{flex:0 0 auto;width:auto;margin:0 0 0 auto;min-height:42px;max-width:100%}
#app #content.workspace-page .workspace-field-action,#platform-dialog.platform-dialog .workspace-field-action{align-items:flex-end}
#app #content.workspace-page .workspace-inline-controls>.check{align-self:center;flex-basis:200px;gap:10px}
#app #content.workspace-page .workspace-inline-controls>.bordered{margin:0;padding:0;border:0}
#app #content.workspace-page .dashboard-grid.equal,#app #content.workspace-page .grid2{align-items:start}
#app #content.workspace-page .metric-grid,#app #content.workspace-page .stat-grid,#app #content.workspace-page .dashboard-grid,#app #content.workspace-page .grid2{margin-bottom:16px}
#app #content.workspace-page .detail-actions{margin:0 0 16px}
#app #content.workspace-page .actions.bordered{margin:12px 0 0;padding:0;border:0}
#app #content.workspace-page .card.bordered{margin-top:0}
#app #content.workspace-page .card>h3.bordered{margin-top:16px;padding-top:0;border:0}
#app #content.workspace-page .card>details.bordered{margin-top:12px;padding-top:0;border:0}
#app #content.workspace-page form>h3.bordered{margin-top:20px;padding-top:0;border:0}
#app #content.workspace-page .control-health article>p{margin:0 0 12px}
#app #content.workspace-page .control-health article>p:last-child,#app #content.workspace-page .product-admin-list article>p:last-child{margin-bottom:0}
#app #content.workspace-page .control-health article>.actions,#app #content.workspace-page .product-admin-list article>.actions{margin:12px 0 0}
#app #content.workspace-page .control-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-top:12px;padding:0;border:0}
#app #content.workspace-page .control-pager>.actions{margin:0}
#app #content.workspace-page .product-notice-pref-status{margin:8px 0 0;min-height:0}
#app #content.workspace-page .product-notice-pref-status:empty,#app #content.workspace-page [role=status]:empty{display:none}
#app #content.workspace-page .product-notice-switch{margin:0 0 14px!important;padding:0}
#app #content.workspace-page .product-notice-frequency,#app #content.workspace-page .product-notice-schedule{margin:0 0 12px}
#app #content.workspace-page .product-notice-schedule>label{margin-bottom:0}
#app #content.workspace-page .product-notice-actions{margin:12px 0 0;gap:10px}
#app #content.workspace-page .product-notice-binding{margin-top:14px;padding-top:12px}
@media(max-width:600px){#app #content.workspace-page .workspace-inline-controls,#platform-dialog.platform-dialog .workspace-inline-controls{gap:10px}#app #content.workspace-page .workspace-inline-controls>p,#platform-dialog.platform-dialog .workspace-inline-controls>p,#app #content.workspace-page .workspace-inline-controls>label,#platform-dialog.platform-dialog .workspace-inline-controls>label{flex-basis:100%}#app #content.workspace-page .workspace-inline-controls>.btn,#platform-dialog.platform-dialog .workspace-inline-controls>.btn{margin-left:auto}}

/* Billing notes need space after the detail rows and renewal button. */
#app #content.workspace-page .billing-card>.hint{margin:12px 0 0}

/* Workspace-only business accents. Never recolour provider logos, images, warning/error or health states. */
html[data-business-theme] :is(#app,.platform-dialog,#integration-dialog,#setup-guide-dialog,.setup-tip,#unsaved-choice,#inbox-bulk-bar,.vica-select-menu){
 --business-accent:var(--business-primary);--green:var(--business-primary);--mint:var(--business-soft);--focus-ring:var(--business-focus);
 --vica-soft:var(--business-tint);--vica-accent:var(--business-soft);--vica-accent-ink:var(--business-primary);--vica-hero:var(--business-deep);
}
html[data-business-theme] :is(#app,.platform-dialog,#integration-dialog,#setup-guide-dialog,.setup-tip,#unsaved-choice,#inbox-bulk-bar,.vica-select-menu) :is(input[type=checkbox],input[type=radio],progress){accent-color:var(--business-primary)}
html[data-business-theme] :is(#app,.platform-dialog,#integration-dialog,#setup-guide-dialog,.setup-tip,#unsaved-choice,#inbox-bulk-bar,.vica-select-menu) :is(button,a,input,select,textarea,summary):focus-visible{outline-color:var(--business-focus)!important}
html[data-business-theme] :is(#app,.platform-dialog,#integration-dialog,#setup-guide-dialog,#unsaved-choice,#inbox-bulk-bar) .btn.primary{background:var(--business-primary)!important;border-color:var(--business-primary)!important;color:#fff!important}
html[data-business-theme] :is(#app,.platform-dialog,#integration-dialog,#setup-guide-dialog,#unsaved-choice,#inbox-bulk-bar) .btn.primary:hover{background:var(--business-hover)!important;border-color:var(--business-hover)!important}
html[data-business-theme] :is(#app,.platform-dialog,#integration-dialog,#setup-guide-dialog,.setup-tip,#unsaved-choice,#inbox-bulk-bar,.vica-select-menu) .text-btn:not(.danger):not(.product-delete){color:var(--business-primary)!important}
html[data-business-theme] :is(#app,.platform-dialog,#integration-dialog,#setup-guide-dialog,#unsaved-choice,#inbox-bulk-bar) .btn.outline:not(.danger):not(.conversation-omni-button):not(.inbox-delete){border-color:var(--business-line)!important;color:var(--business-primary)!important}
html[data-business-theme] :is(#app,.platform-dialog,#integration-dialog,#setup-guide-dialog,#unsaved-choice,#inbox-bulk-bar) .btn.outline:not(.danger):not(.conversation-omni-button):not(.inbox-delete):hover{background:var(--business-tint)!important}
html[data-business-theme] #app #app-nav button:hover{background:var(--business-tint);color:var(--business-primary)}
html[data-business-theme] #app #app-nav button.active{background:var(--business-soft);color:var(--business-primary)}
html[data-business-theme] #app :is(.nav-count,.product-badge,#messages-filter-count){background:var(--business-primary);color:#fff}
html[data-business-theme] #app :is(.catalog-tabs button.active,.catalog-tabs button[aria-selected=true],.messages-quick-filters>button[aria-pressed=true],.chat-item.active,.tab-button.active){background:var(--business-soft)!important;color:var(--business-primary)!important;border-color:var(--business-line)!important}
html[data-business-theme] #app #content.workspace-page :is(.experience-subnav,.control-subnav,.crm-tabs)>button.active{background:var(--business-soft);border-color:var(--business-line);color:var(--business-primary)}
html[data-business-theme] #app #content.workspace-page :is(.experience-subnav,.control-subnav,.crm-tabs)>button:hover{background:var(--business-tint)}
html[data-business-theme] #app .service-add{color:var(--business-primary)}
html[data-business-theme] #app :is(.catalog-tabs button:hover,.messages-quick-filters>button:not(.text-btn):hover,.message-row:hover,.recent-list>button:hover){background:var(--business-tint)!important}
html[data-business-theme] #app :is(.messages-filters[open]>summary,.connection-more[open]>summary){background:var(--business-soft)!important;border-color:var(--business-focus)!important}
html[data-business-theme] #app :is(.product-account-button[aria-expanded=true],.product-account-control:focus-within){background:var(--business-tint);border-color:var(--business-focus)}
html[data-business-theme] #app :is(.account-stat,.account-menu-actions>button:hover,.account-menu-footer>button:hover){background:var(--business-tint)}
html[data-business-theme] #app :is(.account-menu-actions>button,.account-menu-footer>button){color:var(--business-primary)}
html[data-business-theme] #app #product-account-menu .account-subscription{background:var(--business-tint);border-color:var(--business-line)}
html[data-business-theme] #app :is(.workspace-mark,.table-avatar,.empty-symbol,.metric-icon,.stat-icon){background:var(--business-soft);color:var(--business-primary)}
html[data-business-theme] #app :is(.dashboard-hero,.welcome){background:var(--business-deep)}
html[data-business-theme] #app .welcome{background:var(--business-soft)}
html[data-business-theme] #app :is(.next-step,.integration-help,.integration-help-icon,.integration-guide,.connection-path,.setup-guide-card,.setup-inline-tip){background:var(--business-tint);border-color:var(--business-line)}
html[data-business-theme] #integration-dialog :is(.integration-help,.integration-guide,.integration-help-icon,.setup-inline-tip){background:var(--business-tint);border-color:var(--business-line)}
html[data-business-theme] #app .conversation-card .experience-message.outgoing{background:var(--business-soft);border-color:var(--business-line)}
html[data-business-theme] #app .conversation-card .experience-message.outgoing time{color:var(--business-primary)}
html[data-business-theme] #app .conversation-card .experience-messages{scrollbar-color:var(--business-line) transparent}
html[data-business-theme] #app .conversation-omni-button[aria-pressed=true]:not([data-pending=true]){background:var(--business-soft);border-color:var(--business-focus);color:var(--business-primary)}
html[data-business-theme] #app .product-notice-switch input[role=switch]:checked{background:var(--business-primary);border-color:var(--business-primary)!important}
html[data-business-theme] #app .trend-chart .chart-inbound{stroke:var(--business-primary)}
html[data-business-theme] #app .trend-chart .chart-outbound{stroke:var(--business-mid)}
html[data-business-theme] #app .chart-legend i.inbound{background:var(--business-primary)}
html[data-business-theme] #app .chart-legend i.outbound{background:var(--business-mid)}
html[data-business-theme] #app .notice-target-message{outline-color:var(--business-primary);box-shadow:0 0 0 5px var(--business-soft)!important}
html[data-business-theme] #app #content.workspace-page #knowledge-page-shell .knowledge-intro{background:var(--business-soft);border-color:var(--business-line);border-left-color:var(--business-primary)}
html[data-business-theme] #app #content.workspace-page #knowledge-page-shell :is(.knowledge-intro-icon,.knowledge-editor .knowledge-section-icon){background:var(--business-soft);color:var(--business-primary)}
html[data-business-theme] #app #content.workspace-page #knowledge-page-shell .knowledge-editor{border-top-color:var(--business-focus)}
html[data-business-theme] #app #content.workspace-page #knowledge-page-shell .knowledge-guide-card{background:var(--business-tint);border-color:var(--business-line)}
html[data-business-theme] #app #content.workspace-page #knowledge-page-shell .knowledge-guide-card li::before{background:var(--business-primary)}
html[data-business-theme] #app #content.workspace-page #knowledge-page-shell textarea:focus{border-color:var(--business-focus);outline-color:var(--business-focus)}
html[data-business-theme] #app #content.workspace-page #knowledge-page-shell .knowledge-save-feedback:not(.is-error){color:var(--business-primary)}
html[data-business-theme] #app #content.workspace-page .knowledge-file-icon{stroke:var(--business-primary)}
html[data-business-theme] #app .period-controls .setup-guide-launch{background:var(--business-soft);border-color:var(--business-line);color:var(--business-primary)}
html[data-business-theme] #app .period-controls .setup-guide-launch span{border-color:var(--business-focus);color:var(--business-primary)}
html[data-business-theme] #app .period-controls .setup-guide-launch:hover{background:var(--business-soft);border-color:var(--business-primary)}
html[data-business-theme] :is(#setup-guide-dialog,.setup-tip){border-color:var(--business-line)}
html[data-business-theme] #setup-guide-dialog .is-done>.setup-step-mark{background:var(--business-soft);border-color:var(--business-line);color:var(--business-primary)}
html[data-business-theme] #setup-guide-dialog .setup-guide-progress progress{accent-color:var(--business-primary)}

/* A compact native modal keeps the overview, selected period and scroll position intact. */
#setup-guide-dialog{width:min(720px,calc(100vw - 32px));max-width:720px;max-height:calc(100dvh - 48px);padding:0;border:1px solid #dbe5df;border-radius:14px;background:#fff;color:#243d32;overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 70px #10262126}
#setup-guide-dialog::backdrop{background:#10262166;backdrop-filter:blur(3px)}
#setup-guide-dialog .setup-guide-page{padding:24px;margin:0;max-width:none}
#setup-guide-dialog .section-row{display:flex;align-items:flex-start;gap:16px;margin:0}
#setup-guide-dialog .section-row>div{flex:1;min-width:0}
#setup-guide-dialog h2{font-size:22px;line-height:1.3;margin:0 0 8px}
#setup-guide-dialog .hint{font-size:14px;line-height:1.5;margin:8px 0;color:#687b70}
#setup-guide-dialog .setup-steps{margin:8px 0 0}
#setup-guide-dialog .setup-steps>li{padding:16px 0}
#setup-guide-dialog .setup-steps>li:last-child{border:0;padding-bottom:8px}
#setup-guide-dialog .setup-steps h3{font-size:16px;line-height:1.4}
#setup-guide-dialog .setup-steps p{font-size:14px;line-height:1.5}
#setup-guide-dialog .text-btn{font-size:14px;min-height:32px}
#setup-guide-dialog .setup-progress-refresh{margin-top:8px;font-size:14px}
@media(max-width:600px){#setup-guide-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}#setup-guide-dialog .setup-guide-page{padding:18px!important}#setup-guide-dialog .setup-guide-progress{margin-top:18px}#setup-guide-dialog .setup-steps>li{gap:12px}}

/* Complete accents, including legacy overview decoration and the account/support surfaces. */
html[data-business-theme] #app .experience-leaves i{background:linear-gradient(135deg,var(--business-mid),var(--business-primary))}
html[data-business-theme] #app .btn.light{background:var(--business-soft)!important;color:var(--business-primary)!important;border-color:var(--business-line)!important}
html[data-business-theme] #app .attention-card>.section-row>.ui-icon{color:var(--business-primary)}
html[data-business-theme] #app #product-account-menu .account-stat{background:var(--business-tint)}
html[data-business-theme] #app #product-account-menu button.account-stat:hover{background:var(--business-soft)}
html[data-business-theme] #app #product-account-menu :is(.account-stat>span,.account-stat-heading>span:first-child,.account-stat>small){color:#6c7272}
html[data-business-theme] #app .chart-card .quiet-tag{background:var(--business-soft);border-color:var(--business-line);color:var(--business-primary)}
#app .chart-card .quiet-tag{display:inline-flex;align-items:center;justify-content:center;font-size:14px;line-height:1.4;padding:6px 10px;min-height:30px;white-space:nowrap}
html[data-business-theme] #app #content.workspace-page .experience-link-list>a{color:var(--business-primary)}
html[data-business-theme] #app .profile-avatar{background:var(--business-soft);color:var(--business-primary)}
:is(#app,#public-account-menu) .account-business-home{display:block;width:fit-content;max-width:100%;padding:5px 8px;margin:0 -6px;border-radius:7px;font-size:14px;font-weight:500;line-height:1.4;overflow-wrap:anywhere;background:var(--business-soft,#e7f4eb);color:var(--business-primary,#26734d)}
:is(#app,#public-account-menu) .account-business-home:hover{text-decoration:underline;background:var(--business-tint,#f4f9f5)}
:is(#app,#public-account-menu) .account-business-picker summary{display:block;margin-top:6px;min-height:28px;padding:5px 0}
:is(#app,#public-account-menu) .account-business-picker summary>small{font-size:14px;line-height:1.4;color:var(--business-primary,#26734d)}
.public-nav [hidden]{display:none!important}
.public-nav nav #public-account-profile{display:inline-flex;align-items:center;gap:10px;padding:6px 10px 6px 6px;max-width:260px;border:1px solid var(--business-background,#e7f4eb);border-radius:12px;background:#fff;color:#263a33;line-height:1.4;text-decoration:none}
.public-nav nav #public-account-profile:hover{border-color:var(--business-accent,#26734d);background:var(--business-background,#e7f4eb)}
#public-account-profile .public-account-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:var(--business-background,#e7f4eb);color:var(--business-accent,#26734d)}
#public-account-profile>span:last-child{display:grid;gap:2px;min-width:0}
#public-account-profile strong{font-size:14px;font-weight:600;color:#263a33}
#public-account-profile small{font-size:14px;font-weight:400;color:var(--business-accent,#26734d)}
#public-account-profile :is(strong,small){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:650px){.public-nav nav #public-account-profile{max-width:210px;padding:5px 8px 5px 5px;gap:8px}#public-account-profile strong{font-size:14px}#public-account-profile small{font-size:14px}}

/* The approved welcome banner belongs to the final overview, on reload and navigation alike. */
#app #content.workspace-page .dashboard-hero.vica-overview-title{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:155px;margin:0 0 20px;padding:26px 28px;border-radius:13px;background:var(--business-deep,#214f3b);color:#fff}
#app #content.workspace-page .dashboard-hero.vica-overview-title h2{font-size:26px;line-height:1.3;color:#fff;margin:10px 0 8px}
#app #content.workspace-page .dashboard-hero.vica-overview-title .eyebrow{font-size:14px;line-height:1.4;letter-spacing:.08em;text-transform:uppercase;color:var(--business-soft,#e7f4eb)}
#app #content.workspace-page .dashboard-hero.vica-overview-title p{font-size:14px;line-height:1.5;margin:0;color:var(--business-soft,#e7f4eb)}
#app #content.workspace-page .dashboard-hero.vica-overview-title>.btn{flex-shrink:0}
html[data-business-theme] #app #content .metric-symbol{background:var(--business-soft);color:var(--business-primary)}
html[data-business-theme] #app .product-notice-binding>summary{color:var(--business-primary)}
#app .period-controls .setup-guide-launch>span{width:20px;height:20px;flex:0 0 20px;border:0;border-radius:0;background:transparent}
#app .period-controls .setup-guide-launch>span>svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:650px){#app #content.workspace-page .dashboard-hero.vica-overview-title{align-items:flex-start;flex-direction:column;min-height:0;padding:22px;gap:18px}#app #content.workspace-page .dashboard-hero.vica-overview-title h2{font-size:22px}.dashboard-hero.vica-overview-title .experience-leaves{right:-140px}}

/* The public site exposes the same account actions without opening the hidden workspace. */
#public-account-control{position:relative;flex:0 0 auto}
#public-account-menu{font-size:14px;line-height:1.5;text-align:left;color:#243d32;letter-spacing:normal;z-index:140}
#public-account-menu .account-business-home{border:0;background:var(--business-soft);color:var(--business-primary);cursor:pointer;text-align:left}
#public-account-menu .account-stat{background:var(--business-tint)}
#public-account-menu button.account-stat:hover{background:var(--business-soft)}
#public-account-menu .account-stat>span,#public-account-menu .account-stat-heading>span:first-child,#public-account-menu .account-stat>small{color:#6c7272}
#public-account-menu .account-subscription{background:var(--business-tint);border-color:var(--business-line)}
#public-account-menu .account-menu-actions>button,#public-account-menu .account-menu-footer>button{color:var(--business-primary)}
#public-account-menu .account-menu-actions>button:hover,#public-account-menu .account-menu-footer>button:hover{background:var(--business-tint)}
#public-account-menu .public-omni-detail{font-size:14px;line-height:1.5;margin:8px 0 12px;color:#687b70}
#public-account-menu .public-account-error{font-size:14px;line-height:1.5;margin:10px 0 0;color:#a9433d}
#public-account-menu button:focus-visible{outline:2px solid var(--business-focus);outline-offset:2px}
#public-account-profile[aria-expanded=true]{border-color:var(--business-accent);background:var(--business-background)}
html[data-business-theme] #toast:not(.error){background:var(--business-deep);color:#fff}

/* Workflow colours describe an action, independent of a business accent. */
#app :where(.messages-workflow,#dialog-status-select,#control-message-status){--workflow-ink:#56616d;--workflow-bg:#f1f3f5;--workflow-line:#d9dfe5}
#app [data-state="reply_needed"]{--workflow-ink:#a52e3a;--workflow-bg:#fff0f1;--workflow-line:#f0c6cb}
#app [data-state="work_pending"]{--workflow-ink:#245ca6;--workflow-bg:#edf4ff;--workflow-line:#c7daf5}
#app [data-state="waiting_customer"]{--workflow-ink:#85560c;--workflow-bg:#fff5df;--workflow-line:#ebd6a4}
#app [data-state="deferred"]{--workflow-ink:#7046a5;--workflow-bg:#f5efff;--workflow-line:#dbcaee}
#app [data-state="closed"]{--workflow-ink:#236b4b;--workflow-bg:#eaf6ee;--workflow-line:#c4dfcf}
#app [data-state="errors"]{--workflow-ink:#a22729;--workflow-bg:#ffe8e8;--workflow-line:#efb6b8}
#app .messages-workflow{display:inline-flex;align-items:center;max-width:190px;min-height:24px;padding:3px 8px;border:1px solid var(--workflow-line);border-radius:6px;font-size:14px;line-height:1.3;font-weight:500;color:var(--workflow-ink);background:var(--workflow-bg)}
#app :is(#dialog-status-select,#control-message-status[data-state]:not([data-state=""])){color:var(--workflow-ink);background-color:var(--workflow-bg);border-color:var(--workflow-line);font-weight:500}
#app #dialog-status-select option,#app #control-message-status option{color:#253c36;background:#fff;font-weight:400}
#app [data-message-quick="waiting"][aria-pressed="true"]{color:#a52e3a;background:#fff0f1;border-color:#f0c6cb}
#platform-dialog .product-danger{background:#ae303b;color:#fff;border-color:#ae303b}
#platform-dialog .product-danger:hover{background:#902532;border-color:#902532}
#platform-dialog .product-danger:focus-visible{outline:3px solid #eebbc1;outline-offset:3px}
@media(max-width:550px){#app .messages-workflow{font-size:14px;min-height:22px;padding:3px 6px}}

/* Compact shared statistics period button and two-month calendar. */
#app .period-controls{flex-wrap:wrap;gap:10px}
#app .vica-period{display:inline-flex;align-items:center;max-width:100%;min-width:0}
#app select.vica-period-native{display:none!important}
#app .vica-period-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:16px;min-width:146px;max-width:100%;min-height:42px;padding:9px 14px;border:2px solid #d0d2d0;border-radius:15px;background:#fff;color:#202724;font:500 14px/1.4 'IBM Plex Sans',Arial,sans-serif;letter-spacing:normal;cursor:pointer;margin:0;box-sizing:border-box}
#app .vica-period-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#app .vica-period-trigger>svg,#vica-period-panel svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#app .vica-period-trigger:hover,#app .vica-period-trigger[aria-expanded=true]{border-color:#a9ada9;background:#fcfdfc}
#app .vica-period-trigger:focus-visible,#vica-period-panel :is(button,input):focus-visible{outline:2px solid var(--business-primary,#28674f);outline-offset:3px}
#vica-period-panel{position:fixed;z-index:4500;box-sizing:border-box;width:min(552px,calc(100vw - 24px));padding:24px;background:#fff;border:1px solid #e8ebe9;border-radius:24px;box-shadow:0 14px 50px #14231a21,0 2px 8px #14231a08;color:#202724;font:400 14px/1.45 'IBM Plex Sans',Arial,sans-serif;overflow-y:auto;overscroll-behavior:contain}
#vica-period-panel *{box-sizing:border-box}
#vica-period-panel button{font:500 14px/1.4 'IBM Plex Sans',Arial,sans-serif;color:inherit;cursor:pointer;letter-spacing:normal;text-transform:none;box-shadow:none;margin:0;touch-action:manipulation}
#vica-period-panel button:disabled{cursor:default;color:#b4b7b5;opacity:1}
#vica-period-panel .vica-period-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:4px;border-radius:13px;background:#f1f2f1;margin:0 0 18px}
#vica-period-panel .vica-period-presets>button{min-width:0;min-height:34px;padding:6px 5px;border:0;border-radius:9px;background:transparent;white-space:nowrap}
#vica-period-panel .vica-period-presets>button[aria-pressed=true]{background:#fff;box-shadow:0 2px 7px #15251b14}
#vica-period-panel .vica-period-calendars{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
#vica-period-panel .vica-period-month{min-width:0}
#vica-period-panel .vica-period-month>header{height:38px;display:flex;align-items:center;justify-content:center;padding:0 18px;margin:0 0 5px}
#vica-period-panel .vica-period-month strong{font-size:16px;font-weight:600;white-space:nowrap;text-transform:capitalize}
#vica-period-panel .vica-period-month strong>span{color:#838985;font-weight:500}
#vica-period-panel .vica-period-month-nav{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;pointer-events:none}
#vica-period-panel .vica-period-month-nav button{display:flex;align-items:center;justify-content:center;width:30px;height:38px;min-height:38px;padding:0;border:0;border-radius:8px;background:transparent;pointer-events:auto}
#vica-period-panel .vica-period-month-nav button:hover:not(:disabled){background:#f1f3f1}
#vica-period-panel .vica-period-week,#vica-period-panel .vica-period-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px 0}
#vica-period-panel .vica-period-week{margin:0 0 10px;color:#818783;text-align:center;font-size:14px;line-height:24px}
#vica-period-panel .vica-period-days>button{display:flex;align-items:center;justify-content:center;width:100%;height:34px;min-height:34px;padding:0;border:0;border-radius:9px;background:transparent;font-size:14px;line-height:1}
#vica-period-panel .vica-period-days>button.is-in-range{background:#ecedeb;border-radius:0}
#vica-period-panel .vica-period-days>button:nth-child(7n+1),#vica-period-panel .vica-period-days>button.is-range-start{border-radius:10px 0 0 10px}
#vica-period-panel .vica-period-days>button:nth-child(7n),#vica-period-panel .vica-period-days>button.is-range-end{border-radius:0 10px 10px 0}
#vica-period-panel .vica-period-days>button.is-endpoint{color:#fff;background:#242a26;border-radius:10px;font-weight:600}
#vica-period-panel .vica-period-days>button:hover:not(:disabled):not(.is-endpoint){background:#dce1dc;border-radius:9px}
#vica-period-panel .vica-period-days>button.is-today:not(.is-endpoint){box-shadow:inset 0 0 0 1px #c9cfc9}
#vica-period-panel .vica-period-selection{font-size:14px;line-height:1.5;color:#727b74;margin:16px 0 0}
#vica-period-panel .vica-period-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end;padding:0;margin:0 0 18px;border:0;background:transparent}
#vica-period-panel .vica-period-inputs>label{min-width:0;margin:0;color:#69736c;font:400 14px/1.5 'IBM Plex Sans',Arial,sans-serif}
#vica-period-panel .vica-period-inputs input{display:block;width:100%;min-width:0;min-height:38px;margin:5px 0 0;padding:7px 9px;border:1px solid #d8dfda;border-radius:9px;background:#fff;color:#202724;font:400 14px/1.4 'IBM Plex Sans',Arial,sans-serif}
#vica-period-panel .vica-period-inputs>button{min-height:38px;padding:8px 11px;border:1px solid #d8dfda;border-radius:9px;background:#f4f6f4}
#vica-period-panel .vica-period-error{margin:12px 0 0;color:#a03434;font-size:14px;line-height:1.5}
#vica-period-panel [hidden]{display:none!important}
@media(max-width:560px){#vica-period-panel{padding:18px;border-radius:20px}#vica-period-panel .vica-period-calendars{grid-template-columns:1fr;gap:0}#vica-period-panel .vica-period-days>button{height:38px;min-height:38px;font-size:15px}#vica-period-panel .vica-period-presets>button{font-size:14px}#vica-period-panel .vica-period-inputs{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#vica-period-panel .vica-period-inputs>button{grid-column:1/-1}#vica-period-panel .vica-period-inputs input{font-size:16px}#app .vica-period-trigger{gap:10px}#app .owner-period .vica-period{margin-left:auto}}

/* Only the period button signals a background statistics update. */
#app .vica-period-trigger{position:relative}
#app .vica-period-trigger[aria-busy=true]>svg{visibility:hidden}
#app .vica-period-trigger[aria-busy=true]::after{content:'';position:absolute;right:14px;top:50%;width:14px;height:14px;margin-top:-7px;box-sizing:border-box;border:1.5px solid #d7ddd8;border-top-color:var(--business-primary,#28674f);border-radius:50%;animation:vica-period-spin .8s linear infinite}
@keyframes vica-period-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#app .vica-period-trigger[aria-busy=true]::after{animation:none}}

button.vica-status[data-connection-diagnostics]{border:0;font-family:inherit;cursor:pointer;text-align:left}
button.vica-status[data-connection-diagnostics]:hover{text-decoration:underline;text-underline-offset:3px}
#platform-dialog:has(#connection-diagnostic-view,.connection-problems-view){width:min(820px,calc(100vw - 32px))}
#platform-dialog:has(#connection-keys-form){width:min(620px,calc(100vw - 32px))}
#platform-dialog #connection-diagnostic-view .connection-diagnostic-identity h3,#platform-dialog .connection-problems-view h3{font-size:18px;line-height:1.4;margin:0 0 6px}
#platform-dialog .connection-diagnostic-identity>span{font-size:14px;color:#6c7d72;line-height:1.6}
#platform-dialog .connection-diagnostic-reason{padding:16px;margin:18px 0;border-radius:12px;background:var(--business-soft,#f3f6f3);color:var(--business-primary,#254334)}
#platform-dialog .connection-diagnostic-reason[data-tone=warning]{background:#fff6e5;color:#755820}
#platform-dialog .connection-diagnostic-reason[data-tone=danger]{background:#fbefed;color:#8b3d34}
#platform-dialog .connection-diagnostic-reason>strong{font-size:16px;line-height:1.4}
#platform-dialog .connection-diagnostic-reason p,#platform-dialog .connection-diagnostic-reason ul{font-size:14px;line-height:1.65;margin:8px 0 0}
#platform-dialog .connection-diagnostic-reason ul{padding-left:20px}
#platform-dialog .connection-diagnostic-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:0 0 18px;padding:0}
#platform-dialog .connection-diagnostic-facts>div{min-width:0}
#platform-dialog .connection-diagnostic-facts dt{font-size:14px;color:#6b7d71;margin:0 0 5px}
#platform-dialog .connection-diagnostic-facts dd{font-size:14px;font-weight:500;line-height:1.5;margin:0;overflow-wrap:anywhere}
#platform-dialog .connection-diagnostic-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin:0}
#platform-dialog .connection-diagnostic-actions .btn{min-height:42px;font-size:14px;margin:0}
#platform-dialog .connection-diagnostic-actions .text-btn{font-size:14px;min-height:34px;margin:0}
#platform-dialog :is(.connection-diagnostic-note,.connection-diagnostic-feedback){font-size:14px;line-height:1.6;margin:12px 0 0;color:#6b7d71}
#platform-dialog .connection-diagnostic-feedback[role=alert]{color:#9a4036}
#platform-dialog .connection-diagnostic-feedback:empty{display:none}
#platform-dialog .connection-diagnostic-history{margin:18px 0 0;padding:16px 0 0;border-top:1px solid #dfe7e2}
#platform-dialog .connection-diagnostic-history summary{font-size:14px;line-height:1.5;cursor:pointer;font-weight:500}
#platform-dialog .connection-diagnostic-history table{font-size:14px;line-height:1.5;min-width:550px;width:100%;border-collapse:collapse;margin-top:12px}
#platform-dialog .connection-diagnostic-history :is(th,td){font-size:14px;line-height:1.5;padding:11px 9px;text-align:left;letter-spacing:normal;text-transform:none;vertical-align:top}
#platform-dialog .connection-diagnostic-history [data-result=no_response],#platform-dialog .connection-diagnostic-history [data-result=http],#platform-dialog .connection-diagnostic-history [data-result=api],#platform-dialog .connection-diagnostic-history [data-result=invalid_response]{color:#9a5733}
.connection-problem-list{display:grid;gap:10px}
.connection-problem-list .connection-problem-item{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;padding:16px;border:1px solid #e2e8e3;border-radius:12px;background:#fff;color:#254334;text-align:left;font:400 14px/1.5 'IBM Plex Sans',Arial,sans-serif;cursor:pointer}
.connection-problem-list .connection-problem-item:hover{background:var(--business-soft,#f6f9f6);border-color:var(--business-line,#b6cbbd)}
.connection-problem-list .connection-problem-item strong{font-size:15px;font-weight:600}
.connection-problem-list .connection-problem-item small{font-size:14px;line-height:1.6;color:#6b7d71}
#platform-dialog .connection-problems-view>.hint{margin:0 0 16px}
#platform-dialog .connection-problems-view>.connection-diagnostic-actions{margin-top:16px}
#platform-dialog #connection-keys-form{display:grid;gap:16px;padding:0;border:0;margin:0}
#platform-dialog #connection-keys-form :is(p,label){margin:0;font-size:14px;line-height:1.6}
#platform-dialog #connection-keys-form input{min-height:42px;margin:6px 0 0;font-size:14px}
#app .owner-inline-metrics .connection-errors-link{display:block;text-align:left;border:0;background:transparent;padding:0;color:inherit;font:inherit;cursor:pointer}
#app .owner-inline-metrics .connection-errors-link>span{display:block;font-size:14px;color:#63766b;margin-bottom:6px}
#app .owner-inline-metrics .connection-errors-link>strong{font-size:24px;font-weight:600;color:inherit;text-decoration:none}
#app .owner-inline-metrics .connection-errors-link[data-has-issues="true"]>strong{color:var(--red);text-decoration:underline;text-underline-offset:5px}
@media(max-width:600px){#platform-dialog .connection-diagnostic-facts{grid-template-columns:1fr;gap:12px}#platform-dialog .connection-diagnostic-actions{gap:8px 12px}#platform-dialog #connection-keys-form input{font-size:16px}.connection-problem-list .connection-problem-item{padding:14px}}

/* Consistent quiet page footer, outside interactive cards. */
.workspace-copyright,.legal-copyright{font:400 14px/1.6 "IBM Plex Sans",sans-serif;color:var(--muted);padding:12px 24px 20px;text-align:center;background:transparent;border:0}.workspace-copyright{margin-top:8px}.legal-copyright{max-width:1000px;margin:0 auto}

/* Selection stays within the inbox width; the contents make room for the checkbox. */
#app .inbox-row{position:relative;display:grid;padding:0;border:0;border-radius:0;grid-template-columns:auto minmax(0,1fr);border-bottom:1px solid var(--line);background:var(--vica-surface,#fff);min-width:0}
#app .inbox-row:last-child{border-bottom:0}
#app .inbox-row .message-row{grid-column:2;border-bottom:0;background:transparent;width:100%;min-width:0}

#app .inbox-row:hover,#app .inbox-row.is-selected{background:var(--business-soft,#edf5ef)}
#app .inbox-row .message-row-bottom{padding-right:235px}
#app .inbox-row-actions{position:absolute;right:20px;bottom:15px;max-width:calc(100% - 76px)}
#app .inbox-row-actions button{font-family:inherit;cursor:pointer;min-height:28px;border:1px solid transparent}
#app .inbox-row-actions button:hover:not(:disabled){border-color:var(--business-accent,#4b7964)}
#app .inbox-row-actions button:disabled{cursor:default;opacity:.8}
#app .inbox-row-select{grid-column:1;grid-row:1;display:flex;align-items:flex-start;justify-content:center;width:42px;padding-top:29px;margin:0}
#app .inbox-row.is-selecting .message-row{padding-left:4px}
.inbox-management{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 18px}
.inbox-management-main{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:14px}
.inbox-select-all{margin:0 0 14px!important;display:flex!important;align-items:center;gap:10px;font-size:14px!important}
#inbox-bulk-bar{position:fixed;z-index:160;bottom:20px;left:calc(50% + 115px);transform:translateX(-50%);width:max-content;max-width:calc(100vw - 270px);display:flex;align-items:center;gap:24px;padding:14px 18px;border:1px solid var(--line);border-radius:16px;background:var(--vica-surface,#fff);color:var(--ink);box-shadow:0 12px 45px #173c3326}
.inbox-selected-count{font-size:14px;white-space:nowrap}
.inbox-bulk-actions{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.inbox-delete{color:var(--red)!important}
body:has(#inbox-bulk-bar) #content{padding-bottom:125px}
.inbox-confirm{display:grid;gap:16px}.inbox-confirm p{margin:0;line-height:1.6}.inbox-confirm .actions{margin-top:8px}
.inbox-new-settings>p{font-size:14px;line-height:1.6;margin:0 0 18px}
.inbox-profile-options{display:grid;gap:10px;margin-bottom:20px}
.inbox-profile-option{display:flex!important;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--vica-surface,#fff);margin:0!important}
.inbox-profile-option input{margin-top:3px!important}.inbox-profile-option strong{display:block;font-size:15px;line-height:1.5}.inbox-profile-option small{display:block;font-size:14px;line-height:1.6;color:var(--muted)}.inbox-profile-option .inbox-profile-reason{margin-top:5px;color:var(--red)}
@media(max-width:760px){#inbox-bulk-bar{left:50%;bottom:12px;max-width:calc(100vw - 24px);width:calc(100vw - 24px);gap:10px;flex-direction:column;padding:12px}.inbox-bulk-actions{width:100%}.inbox-bulk-actions .btn{flex:1;min-width:125px}body:has(#inbox-bulk-bar) #content{padding-bottom:190px}}
@media(max-width:550px){#app .inbox-row .message-row-bottom{padding-right:0}#app .inbox-row .message-row{padding-bottom:45px}#app .inbox-row-actions{right:14px;bottom:11px}#app .inbox-row-select{width:36px;padding-top:26px}.inbox-management{gap:10px}.inbox-management-main{gap:10px}}

#client-avito-read-form>label:first-child{display:grid;gap:9px}#client-avito-read-form>label:first-child select{margin-top:0}.connection-mode-explanation .text-btn{display:inline-flex;margin-left:4px}

.connection-omni-summary{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:9px;font-size:14px;line-height:1.6}.connection-omni-summary strong{font-size:14px;font-weight:500;color:var(--ink)}.connection-omni-summary[data-scope=new] strong,.connection-omni-summary[data-scope=selected] strong{color:var(--business-accent,var(--green))}.connection-omni-summary small{font-size:14px;color:var(--muted)}


/* Shared select popovers keep native form values and the saved workspace accent. */
.vica-select{position:relative;display:block;width:100%;min-width:0;font-weight:400}
:root select.vica-select-native{position:absolute!important;inset:0 auto auto 0!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;max-height:1px!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%)}
.vica-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:42px;margin:0;padding:10px 13px;border:1px solid var(--line);border-radius:9px;background:var(--vica-surface,#fff);color:var(--ink);text-align:left;font:400 15px/1.5 'IBM Plex Sans',Arial,sans-serif;cursor:pointer}
.vica-select-trigger>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
.vica-select-trigger::after{content:'';flex:0 0 6px;width:6px;height:6px;margin:0 3px 4px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);opacity:.65}
.vica-select-trigger:hover:not(:disabled){border-color:var(--green)}
.vica-select-trigger:is(:focus-visible,[aria-expanded=true]){outline:2px solid var(--focus-ring,#83c4a3);outline-offset:2px}
.vica-select-trigger[aria-invalid=true]{border-color:var(--red)}
.vica-select-trigger:disabled{cursor:not-allowed;opacity:.5}
label>.vica-select{margin-top:8px}.messages-sort>.vica-select,.theme-control>.vica-select,#client-avito-read-form>label:first-child>.vica-select{margin-top:0}
.theme-control>.vica-select{width:auto;min-width:112px}.theme-control .vica-select-trigger{font-size:14px}
.vica-select-menu{position:fixed;z-index:10050;margin:0;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--vica-surface,#fff);color:var(--ink);box-shadow:0 12px 40px #10262126;overflow-y:auto;overscroll-behavior:contain;font:400 15px/1.5 'IBM Plex Sans',Arial,sans-serif;scrollbar-width:thin}
.vica-select-menu [role=option]{position:relative;padding:9px 34px 9px 12px;min-height:40px;border-radius:7px;cursor:pointer;overflow-wrap:anywhere}
.vica-select-menu [role=option]:is(:hover,.is-active):not([aria-disabled=true]){background:var(--vica-soft,#f0f5f1)}
.vica-select-menu [aria-selected=true]{background:var(--vica-accent,#e6efdf);color:var(--green);font-weight:500}
.vica-select-menu [aria-selected=true]::after{content:'';position:absolute;right:15px;top:15px;width:5px;height:9px;border:solid currentColor;border-width:0 1.7px 1.7px 0;transform:rotate(45deg)}
.vica-select-menu [aria-disabled=true]{opacity:.45;cursor:not-allowed}
.vica-select-group{padding:8px 12px 4px;color:var(--muted);font-size:14px;font-weight:600}
:root input[type=number]{appearance:textfield;-moz-appearance:textfield}
:root input[type=number]::-webkit-inner-spin-button,:root input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#platform-dialog.platform-dialog:has(.inbox-confirm){width:min(460px,calc(100vw - 32px));max-width:460px}
#platform-dialog.platform-dialog:has(.inbox-new-settings){width:min(560px,calc(100vw - 32px));max-width:560px}
#platform-dialog .inbox-confirm{gap:18px}#platform-dialog .inbox-confirm label{margin:0}
#platform-dialog .inbox-confirm .actions{display:flex;gap:10px;margin:4px 0 0}
#platform-dialog .inbox-confirm .actions .btn{width:auto;flex:1;min-height:42px;margin:0}
@media(max-width:600px){.vica-select-trigger{font-size:16px}.vica-select-menu{font-size:16px}}

/* Filters stay left, actions stay right on the same row. */
.messages-filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin:14px 0 18px}
.messages-filter-row .messages-quick-filters{margin:0;flex-shrink:0}
#inbox-actions-host{margin-left:auto;min-width:0}
.messages-filter-row .inbox-management{margin:0;gap:8px;flex-wrap:nowrap}
.messages-filter-row .inbox-management-main{gap:8px;flex-wrap:nowrap}
.messages-filter-row .inbox-management .btn{white-space:nowrap;font:400 14px/1.45 var(--vica-font);min-height:34px;padding:7px 11px;gap:8px}
#inbox-selection-host:empty{display:none}
#app .inbox-row[data-unread=true] .message-row-heading strong::after{content:'';display:inline-block;width:7px;height:7px;margin-left:8px;vertical-align:middle;border-radius:50%;background:var(--green)}
#platform-dialog.platform-dialog:has(.is-healthy-summary){width:min(460px,calc(100vw - 32px));max-width:460px}
#platform-dialog .is-healthy-summary .connection-diagnostic-reason{margin-bottom:0}
#app .vica-outcomes>h2{font-size:16px;margin:0 0 18px}
#app .vica-outcomes .stat-grid{margin-bottom:0}
@media(max-width:700px){.messages-filter-row{gap:12px}.messages-filter-row #inbox-actions-host{flex:1 0 100%}.messages-filter-row .inbox-management{justify-content:flex-end}.messages-filter-row .inbox-management-main{gap:6px}.messages-filter-row .inbox-management .btn{font-size:14px;padding:7px 9px}}

/* Compact security columns, preserving the existing forms and event handlers. */
#app #content.workspace-page .security-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px;max-width:none}
#app #content.workspace-page .security-side{display:grid;gap:16px;min-width:0}
#app #content.workspace-page .security-layout .card{margin:0}
#app #content.workspace-page .security-side .workspace-inline-controls{display:block}
#app #content.workspace-page .security-side .workspace-inline-controls>.btn{margin:12px 0 0;width:auto}
#app #content.workspace-page .product-notice-topics .product-notice-switch{max-width:none;width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0!important;padding:17px 0;border-bottom:1px solid var(--line)}
.product-notice-topics .product-notice-switch strong{display:block;font-size:15px;font-weight:500}
.product-notice-topics .product-notice-switch small{display:block;font-size:14px;font-weight:400;color:var(--muted);margin-top:3px}
.product-notice-topics .product-notice-schedule{padding:0 0 16px;margin:0;border-bottom:1px solid var(--line)}
.product-notice-topics .product-notice-schedule[hidden]{display:none!important}
@media(max-width:900px){#app #content.workspace-page .security-layout{grid-template-columns:1fr}.security-layout #password-form{max-width:none}}

#platform-dialog.platform-dialog:has(.account-omni-info){width:min(480px,calc(100vw - 32px));max-width:480px}
#platform-dialog .account-omni-info>p{margin:0 0 14px}
#platform-dialog .account-omni-info .account-omni-setup{font-size:14px;line-height:1.65;padding:14px;border-radius:10px;background:var(--vica-soft)}
#platform-dialog .account-omni-info .actions{gap:10px;margin-top:18px}
#platform-dialog .account-omni-info .actions .btn{width:auto;flex:1;margin:0}

.account-profile .profile-avatar .product-business-icon{width:32px;height:32px}
.connection-inline-settings .vica-select-trigger{font-size:14px}
@media(max-width:650px){.connection-inline-settings .vica-select-trigger{font-size:16px}}

html[data-business-theme] #inbox-bulk-bar .btn.inbox-delete{color:var(--red)!important}
#platform-dialog .inbox-confirm>div>label{display:block;margin-top:14px}

/* Current unread counters share one summary; selected rows have one continuous surface. */
html[data-business-theme] #app .inbox-row .message-row:is(:hover,:focus-visible){background:transparent!important}
#app .inbox-row:focus-within{background:var(--business-tint,#f1f6f2)}
#app .inbox-row.is-selected,#app .inbox-row.is-selected:hover{background:var(--business-soft,#e8f1eb)}
#app #content [data-inbox-archived][aria-pressed=true],html[data-business-theme] #app #content [data-inbox-archived][aria-pressed=true]:hover{background:var(--business-soft,#e0eee5)!important;border-color:var(--business-line,#c8ded1)!important;color:var(--business-primary,#26734d)!important;font-weight:400}
#app .nav-count[hidden],#app .product-badge[hidden]{display:none!important}
#app .account-profile .profile-omni-logo{width:80px;height:80px;background:transparent!important;border-radius:0;box-shadow:none}
.profile-omni-logo img{display:block;width:80px;height:80px;object-fit:contain}
/* Notification changes save in place; the single divider belongs to connection settings. */
#app #content.workspace-page .product-notice-card{max-width:680px}
#app #content.workspace-page .product-notice-topics{max-width:none}
#app #content.workspace-page .product-notice-topics>.product-notice-switch{padding:20px 0}
#app #content.workspace-page .product-notice-topics>.product-notice-switch:last-of-type{border-bottom:0}
#app #content.workspace-page .product-notice-topics:has(.product-notice-schedule:not([hidden]))>.product-notice-switch:first-child{border-bottom:0;padding-bottom:10px}
#app #content.workspace-page .product-notice-topics .product-notice-schedule{display:block;padding:4px 0 22px;margin:0;border-bottom:1px solid var(--line)}
#app #content.workspace-page .product-notice-topics .product-notice-schedule>label{display:grid;gap:8px;max-width:190px;margin:0!important}
#app .product-notice-topics .product-notice-schedule input{margin:0;width:100%;font-family:'IBM Plex Sans',Arial,sans-serif;font-size:var(--vica-type-body)}
#app .product-notice-topics input[role=switch]:focus-visible{outline:3px solid var(--business-focus,#a3cdb5);outline-offset:3px}
#app .product-notice-binding{margin-top:0;padding-top:16px;border-top:1px solid var(--line)}
#app .product-notice-binding>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--vica-surface,#fff);color:var(--ink);font:400 var(--vica-type-meta)/1.5 'IBM Plex Sans',Arial,sans-serif!important;list-style:none;cursor:pointer}
#app .product-notice-binding>summary::-webkit-details-marker{display:none}
#app .product-notice-binding>summary::marker{content:''}
#app .product-notice-binding>summary::after{content:'';width:6px;height:6px;flex:0 0 6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 3px 4px}
#app .product-notice-binding[open]>summary::after{transform:rotate(225deg);margin-top:6px}
#app .product-notice-binding>summary:hover{background:var(--business-tint,#f4f8f5);border-color:var(--business-line,var(--line))}
#app .product-notice-binding>summary:focus-visible{outline:2px solid var(--business-focus,#a3cdb5);outline-offset:2px}
#toast{z-index:20000}
/* One aligned account settings area, with email and devices stacked on the right. */
#app #content.workspace-page .account-security-page{width:100%;max-width:1040px;margin:0 auto}
#app #content.workspace-page .account-security-page>.card{margin:0 0 20px}
#app #content.workspace-page .account-security-page .card{padding:24px}
#app #content.workspace-page .account-business-settings{display:flex;align-items:center;justify-content:space-between;gap:16px 24px;flex-wrap:wrap}
#app #content.workspace-page .account-business-settings h3{margin:0 0 5px}
#app #content.workspace-page .account-business-settings p{margin:0}
#app #content.workspace-page .account-business-settings .actions{margin:0;gap:10px}
#app #content.workspace-page .security-layout{margin-bottom:20px}
#app #content.workspace-page .security-layout h3{font-size:16px;margin:0 0 18px}
#app #content.workspace-page .security-layout label:not(.check){display:grid;gap:8px;margin:0 0 18px}
#app #content.workspace-page .security-layout input{margin:0;min-height:44px}
#app #content.workspace-page .security-layout .workspace-inline-controls{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin-top:4px}
#app #content.workspace-page .security-layout .workspace-inline-controls>.hint{margin:0;max-width:none}
#app #content.workspace-page .security-layout form>.btn,#app #content.workspace-page .security-layout form .workspace-inline-controls>.btn{width:100%;margin:0;min-height:42px}
#app #content.workspace-page .security-side>section .btn{margin-top:5px}
@media(max-width:900px){#app #content.workspace-page .security-layout{grid-template-columns:1fr}#app #content.workspace-page .account-security-page .card{padding:20px}}

/* Copyright stays at the page bottom on short screens, after content on long ones. */
#app .workspace{display:flex;flex-direction:column;min-height:100dvh}
#app .workspace>.topbar{flex:0 0 auto}
#app .workspace>#content{flex:1 0 auto;width:100%;box-sizing:border-box}
#app .workspace>.workspace-copyright{flex:0 0 auto;position:static;margin-top:auto;padding:22px 40px 26px;font-size:var(--vica-type-meta);line-height:1.5}
@media(max-width:760px){#app .workspace>.workspace-copyright{padding:20px 16px}}

#app #content.workspace-page .security-layout .workspace-inline-controls{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;justify-content:normal;gap:14px}
#app #content.workspace-page .security-layout .workspace-inline-controls>*{flex:none;min-width:0}
#app #content.workspace-page .security-layout .workspace-inline-controls>label{margin:0}

html[data-business-theme] :is(#app,.platform-dialog,#setup-guide-dialog,#unsaved-choice,#inbox-bulk-bar) :is(input,select,textarea):focus{outline-color:var(--business-focus)!important}

/* Compact chart text remains readable alongside the rest of the interface. */
#app .chart-label,#app .chart-legend,#app .chart-legend span{font-size:14px;line-height:1.5}
#app .product-notice-card #product-notice-check-status:empty{display:none}
#inbox-bulk-bar{box-sizing:border-box}
#inbox-bulk-bar .inbox-bulk-actions{flex-wrap:wrap;justify-content:center}

#app .dashboard-tools{justify-content:flex-end}

/* Axis labels are HTML text, so shrinking an SVG cannot shrink their type. */
#app .readable-trend{padding:12px 0 0;min-height:0}
#app .readable-trend .chart-plot{position:relative;height:200px;margin:18px 8px 0 48px}
#app .readable-trend .chart-plot svg{display:block;width:100%;height:100%!important;overflow:visible}
#app .chart-y-labels{position:absolute;top:0;bottom:0;right:calc(100% + 12px);width:44px;color:var(--muted);font-size:14px}
#app .chart-y-labels>span{position:absolute;right:0;transform:translateY(-50%);line-height:21px;white-space:nowrap}
#app .chart-x-labels{display:flex;justify-content:space-between;gap:12px;margin:18px 8px 0 48px;color:var(--muted);font-size:14px;line-height:21px}
#app.owner-workspace #content.owner-panel-page .owner-message-summary .readable-trend{padding:0}
#app.owner-workspace .owner-message-summary .chart-plot{height:175px}
@media(max-width:650px){#app .readable-trend .chart-plot{height:165px;margin-left:44px}#app .chart-x-labels{margin-left:44px}}

/* A divider belongs to one side of adjacent sections. */
#app.owner-workspace #product-account-menu .owner-account-service{border-bottom:0;margin-bottom:4px}
#app #content.workspace-page .product-notice-topics>.product-notice-schedule:last-child{border-bottom:0}
#app #content.workspace-page .product-notice-binding{margin-top:0;padding-top:16px}

#app .chart-y-labels>span:nth-child(1){top:100%}
#app .chart-y-labels>span:nth-child(2){top:75%}
#app .chart-y-labels>span:nth-child(3){top:50%}
#app .chart-y-labels>span:nth-child(4){top:25%}
#app .chart-y-labels>span:nth-child(5){top:0}

/* Independent columns keep useful history directly below the password form. */
#app #content.workspace-page .security-main{display:grid;gap:16px;min-width:0}
#app #content.workspace-page .security-history .readiness-line{flex-wrap:wrap;gap:4px 12px;padding:12px 0}
#app #content.workspace-page .security-history .readiness-line>span:last-child{white-space:nowrap;color:var(--muted)}
@media(max-width:900px){#app #content.workspace-page .security-main{display:contents}#app .security-main>#password-form{order:1}#app .security-layout>.security-side{order:2}#app .security-main>.security-history{order:3}}

/* Phone layouts: keep controls and their popovers within the available column. */
@media(max-width:760px){
 #app .topbar{flex-wrap:nowrap;align-items:center;gap:10px}
 #app .topbar>div:first-of-type{min-width:0;flex:1 1 auto}
 #app .topbar .top-status{flex:0 0 auto;width:auto;gap:6px}
 #app .mobile-menu-toggle{width:44px;min-width:44px;min-height:44px;padding:8px;flex:0 0 44px;font-size:0!important}
 #app .mobile-menu-toggle::before{content:'☰';font-size:21px;line-height:1}
 #app .btn,#platform-dialog .btn,#integration-dialog .btn,#setup-guide-dialog .btn,#inbox-bulk-bar .btn{min-height:44px}
 :is(#app,#platform-dialog,#integration-dialog,#setup-guide-dialog) .vica-select-trigger{min-height:44px;height:auto;line-height:1.4}
 :is(#app,#platform-dialog,#integration-dialog,#setup-guide-dialog) .vica-select-trigger>span{min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
 :is(#platform-dialog,#integration-dialog,#setup-guide-dialog) :is(.dialog-close,.dialog-header>.icon-button){width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px}
 #app #connections-page .connection-card-actions{position:relative}
 #app #connections-page .connection-more{position:static}
 #app #connections-page .connection-more-actions{left:0;right:0;top:calc(100% + 6px);min-width:0;width:auto;max-width:100%}
 #app #connections-page .connection-menu-action{min-height:44px;white-space:normal;overflow-wrap:anywhere}
 #app .messages-tools{position:relative}
 #app .messages-filters{position:static}
 #app .messages-filter-fields{left:0;right:0;top:calc(100% + 8px);width:100%;max-width:100%;grid-template-columns:minmax(0,1fr)}
 #app .messages-filter-row{min-width:0;align-items:stretch;flex-direction:column}
 #app .messages-quick-filters{min-width:0;width:100%;max-width:100%;flex:1 1 auto;flex-wrap:wrap}
 #app .messages-quick-filters>button{min-height:40px}
 #app #inbox-actions-host{min-width:0;width:100%}
 #app .inbox-management{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;width:100%}
 #app .inbox-management-main{display:contents}
 #app .inbox-management [data-inbox-new]{grid-column:1/-1}
 #app .inbox-management .btn{width:100%;min-width:0;white-space:normal}
 #inbox-bulk-bar{left:12px;right:12px;transform:none;width:auto;max-width:none;padding-bottom:max(12px,env(safe-area-inset-bottom));bottom:12px}
 #inbox-bulk-bar .inbox-bulk-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0}
 #inbox-bulk-bar .inbox-bulk-actions .btn{width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
}

@media(max-width:760px){
 #app .inbox-management .btn{min-height:44px}
 #app .messages-filters>summary{min-height:44px}
 #app .connection-card-actions>.btn,#app .connection-more>summary{min-height:44px}
}

@media(max-width:760px){#vica-period-panel{left:12px!important;right:12px!important;width:auto!important;max-width:none;box-sizing:border-box}}

@media(max-width:760px){
 #setup-guide-dialog{width:calc(100% - 24px);max-width:calc(100% - 24px)}
 #setup-guide-dialog .setup-close,#integration-dialog.owner-integration-dialog .dialog-close{width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px}
}

@media(min-width:761px) and (max-width:1000px){
 #app .topbar>div:first-of-type{min-width:0}
 #app .product-account-copy{display:none}
 #app .topbar .product-account-control{flex-shrink:0}
}

.owner-inbox-business{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 20px;padding:22px 24px}
.owner-inbox-business h2{margin:0;font-size:18px}
.owner-inbox-business label{width:min(100%,440px);margin:0;display:block;font-size:14px}
.owner-inbox-business select{display:block;width:100%;min-width:0;min-height:44px;font:inherit}
.owner-inbox-prompt{padding:32px 24px;text-align:center;color:var(--muted)}
.owner-inbox-prompt p{margin:0}
.owner-hot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.owner-workspace .account-quick-stats>.account-stat-omni{grid-column:1/-1}
@media(max-width:650px){.owner-inbox-business{display:block;padding:20px}.owner-inbox-business label{margin-top:16px;width:100%}.owner-hot-grid{grid-template-columns:1fr}}
