/* Impeccable refinement: preserve the CRM and the complete Busin Pro editor. */
:root{--ink:#21283b;--muted:#59657a;--brand:#5659cd;--line:#e2e6ee;--bg:#f7f8fb}
body{font-size:14px;line-height:1.45}input,textarea,select{font-variant-numeric:tabular-nums}input::placeholder,textarea::placeholder{color:#59657a;opacity:1}button,a,input,textarea,select{touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #9a9ce9;outline-offset:3px}button:disabled{filter:none;opacity:.48}
.primary,.secondary{font-size:13px;min-height:40px;border-radius:8px}.primary{background:var(--brand)}.primary:hover{background:#494cbc}.secondary{border-color:#dce1eb}.text-button{font-size:12px}.icon-button:hover{background:#efeffc}.sidebar nav button{font-size:14px;padding-block:13px}.sidebar nav button.active{background:#eeeffb;color:#4f52c1}.company-label{font-size:12px;color:#59657a;line-height:1.55}.brand-small{font-size:11px}.sidebar-bottom p{font-size:11px;color:#59657a}.breadcrumb{font-size:12px;color:#59657a}.manager-name{font-size:12px}.manager-name small{font-size:10px;color:#59657a}.demo-pill{font-size:11px;background:#fff8e9;color:#82672b;border-color:#eee2c7}.page-heading{margin-bottom:26px}.page-heading h1{font-size:30px;line-height:1.25;letter-spacing:-.03em}.page-heading p{font-size:13px;line-height:1.65;color:#59657a}.search input{min-height:40px;font-size:13px;background:#fafbfe;border-color:#e2e6ee}.search svg{color:#7c8698}
.inbox{border-radius:12px;border-color:#e1e5ed;box-shadow:0 6px 20px #29344f04}.list-head{padding:20px 17px 17px}.filter-row{font-size:11px}.filter-row select{font-size:12px}.list-footer{font-size:11px;color:#59657a}.dialog-row{padding-block:20px}.row-title strong{font-size:14px;line-height:1.3}.row-top time{font-size:10px;color:#59657a}.channel{font-size:10px}.dialog-row p{font-size:12px;line-height:1.55;height:38px;color:#59657a}.row-foot{font-size:10px;color:#59657a}.dialog-row.selected{background:#f0f0fc}.chat-header{height:auto;min-height:81px;flex-wrap:wrap;gap:10px}.chat-header strong{font-size:15px}.chat-header small{font-size:11px}.chat-header .channel{font-size:11px}.chat-header small>span{color:#59657a}.chat-tools .text-button{font-size:11px}.chat-notice{font-size:11px;line-height:1.5;background:#f6f6fe;color:#686180}.date-separator{font-size:10px;color:#59657a}.message{font-size:14px;line-height:1.6;padding:14px 16px;border-radius:12px;border-color:#e1e5ee;box-shadow:0 4px 10px #29344f03}.message.outbound{background:#eeedfc;border-color:#e3e2f7}.message footer{font-size:10px;color:#59657a;line-height:1.5}.reply textarea{font-size:14px;min-height:65px;line-height:1.6}.reply span{font-size:10px;color:#59657a}.reply .primary{font-size:12px;min-height:38px}.simulate-inbound{font-size:10px;color:#59657a}.context-head{font-size:12px}.context-head .text-button{font-size:11px}.client-name h2{font-size:15px}.detail-line{font-size:12px;color:#59657a}.detail-label{font-size:11px;color:#59657a;margin-top:19px}.source-tag{font-size:11px;line-height:1.55}.identity{font-size:12px;color:#59657a}.client-context h3{font-size:13px}.deal-amount{font-size:24px}.client-context select{font-size:12px;min-height:39px}.context-task strong{font-size:12px;line-height:1.5}.context-task small{font-size:11px;color:#59657a}.context-task>svg{width:16px;height:16px;color:#827db1}.note{font-size:12px;line-height:1.75;color:#59657a}
.table-toolbar>span{font-size:12px;color:#59657a}.catalog-summary{font-size:13px;gap:30px}.catalog-summary span:last-child{font-size:11px}.catalog-summary b{font-size:15px;font-weight:650}th{font-size:11px;color:#59657a;font-weight:550;background:#fafbfe}td{font-size:13px;padding-block:20px}.product-cell strong{font-size:14px}.product-cell small{font-size:12px;color:#59657a}.product-cell code{font-size:10px;color:#59657a}.device-thumbnail{width:43px;height:58px;background:#f1f3f8;color:#747f94}.markup,.stock{font-size:11px}.stock.available{background:#eaf5ef;color:#3a765a}td small{font-size:10px}.table-wrap{border-radius:12px}.footnote{font-size:11px;color:#59657a;line-height:1.65}.task-list,.people-list,.client-detail,.connections{border-radius:12px}.task-row .text-button{font-size:14px;font-weight:500}.task-row small{font-size:12px}.task-row time{font-size:12px}.task-row.done>div{color:#59657a}.task-row time.overdue{color:#946134}.person-row strong{font-size:14px}.person-row small{font-size:12px}.person-row>span:last-of-type{font-size:11px}.client-detail>p{font-size:13px}.client-detail dl dt{font-size:11px}.client-detail dd{font-size:12px}.client-detail .note{font-size:13px}.timeline strong{font-size:12px;line-height:1.5}.timeline small{font-size:11px}.kanban-column>header{font-size:12px;line-height:1.45}.kanban-column>header>span{max-width:calc(100% - 25px)}.kanban-column>header small{font-size:11px;color:#59657a}.kanban-column>header b{font-size:11px}.kanban-column{background:#f0f2f7}.deal-card{border-radius:10px;border-color:#dfe4ed;padding:18px}.deal-title{font-size:14px;line-height:1.5}.deal-card>strong{font-size:18px;font-variant-numeric:tabular-nums}.deal-card p{font-size:12px;line-height:1.6}.deal-card footer{font-size:11px}.deal-card select{font-size:11px;min-height:36px}.column-empty{font-size:12px;color:#59657a}.connections article strong{font-size:14px}.connections article p{font-size:13px;line-height:1.65}.connection-header{font-size:11px;color:#59657a}.unconnected{font-size:11px;color:#886c35}.settings-section h2{font-size:18px}.settings-section p{font-size:13px;line-height:1.75}.settings-section h3{font-size:14px}.form-grid label{font-size:12px}.form-grid input,.form-grid select,.form-grid textarea{font-size:14px;line-height:1.5}.form-error{font-size:12px}.login-note{color:#59657a;font-size:11px}.login-box>p{font-size:14px}.login-box label{font-size:13px}.login-box input{font-size:14px}.empty h3{font-size:16px}.empty p{font-size:13px}.inline-check{font-size:12px!important}
/* Shared typography/spacing for the original studio; no blocks or controls removed. */
.businScenario{font-family:inherit!important;--ink:#21283b;--muted:#59657a}.businScenario .scenarioIdentity>input{font-size:18px;font-weight:650}.businScenario .scenarioLibraryButton{font-size:12px}.businScenario .scenarioTopbar{background:#fcfcff}.businScenario .scenarioStudio{border:1px solid #dfe4ed;box-shadow:0 6px 24px #29344f06}.businScenario .scenarioTopActions .darkButton,.businScenario .darkButton{background:#5659cd;color:#fff;border-color:#4c50bf;box-shadow:none}.businScenario .outlineButton,.businScenario .scenarioReviewActions button,.businScenario .scenarioTopActions .outlineButton{background:#fff;color:#4f52bc;border-color:#d7daf0;border-radius:8px;font-size:12px}.businScenario .scenarioReviewActions{background:#fafaff;gap:9px;padding:12px}.businScenario .scenarioSafetyNote{font-size:12px;color:#59657a;background:#f3f6fc;border-color:#e0e6f0}.businScenario .scenarioCanvas{background-color:#f8faff;background-image:linear-gradient(#e8edf6 1px,transparent 1px),linear-gradient(90deg,#e8edf6 1px,transparent 1px);background-size:24px 24px}.businScenario .nodeLibrary,.businScenario .scenarioInspector{background:#fff;border-color:#e1e6ef}.businScenario .nodeLibrary h2{font-size:19px;line-height:1.3;letter-spacing:-.02em}.businScenario .nodeLibrary>div>p{font-size:12px;color:#59657a;line-height:1.6}.businScenario .libraryHint b{font-size:12px}.businScenario .libraryHint span{font-size:11px;color:#59657a}.businScenario .nodeLibraryList strong{font-size:13px}.businScenario .nodeLibraryList small,.businScenario .phoneGiftTemplate small{font-size:11px;line-height:1.5;color:#59657a}.businScenario .nodeLibraryList>button{border-radius:10px;border-color:#dfe5ef;box-shadow:0 3px 10px #29344f03}.businScenario .phoneGiftTemplate{background:#f4f5ff;border-color:#d7daf0;border-radius:10px;box-shadow:none}.businScenario .phoneGiftTemplate strong{font-size:14px}.businScenario .canvasNode{box-shadow:0 8px 20px #29416b12;border-radius:12px}.businScenario .canvasNode>strong{font-size:15px;line-height:1.3}.businScenario .canvasNode>p{font-size:12px;line-height:1.4;color:#59657a}.businScenario .canvasStartNode>p{color:#cad6e9}.businScenario .nodeKind>span{font-size:9px;letter-spacing:.06em}.businScenario .nodeOutputRow{font-size:12px}.businScenario .canvasStatus span{font-size:11px;color:#59657a}.businScenario .canvasHelp{font-size:10px;color:#59657a}.businScenario .canvasControls span{font-size:12px}.businScenario .inspectorContent>header h2{font-size:21px;font-weight:650}.businScenario .inspectorContent label{font-size:12px;color:#59657a;font-weight:550}.businScenario .inspectorContent input,.businScenario .inspectorContent select,.businScenario .inspectorContent textarea{font-size:13px;border-color:#dbe2ec;border-radius:8px}.businScenario .messageEditorContent{font-size:15px;line-height:1.65;min-height:185px;font-weight:400}.businScenario .messageFormatToolbar{background:#f0f2fd;border-color:#d4dcf0}.businScenario .messageRichEditor button{font-size:13px;border-color:#cbd4e8;color:#4856a2;background:#fff}.businScenario .messageRichEditor>small{font-size:11px;color:#59657a}.businScenario .scenarioMediaTitle span{font-size:12px;font-weight:550}.businScenario .scenarioMediaTitle small{font-size:10px;color:#59657a;line-height:1.5}.businScenario .scenarioMediaPreview{border-radius:10px;background:#f9faff}.businScenario .scenarioMediaPreview b{font-size:11px}.businScenario .scenarioMediaPreview small{font-size:10px;color:#59657a}.businScenario .scenarioMediaPreview button{font-size:11px}.businScenario .scenarioMediaDrop{border-radius:10px;background:#f5f7fe}.businScenario .scenarioMediaDrop b{font-size:12px}.businScenario .scenarioMediaDrop small,.businScenario .fieldHint{font-size:11px;color:#59657a}.businScenario .scenarioInspector footer{gap:8px;flex-wrap:wrap}.businScenario .scenarioInspector footer button{font-size:12px}.businScenario .scenarioOverviewPage .eyebrow{display:none}.businScenario .scenarioOverviewPage .pageHeader h1{color:#21283b;font-size:30px;line-height:1.25;letter-spacing:-.03em}.businScenario .scenarioOverviewPage .pageHeader p{color:#59657a;font-size:13px;line-height:1.65}.businScenario .scenarioOverviewHead{font-size:12px;background:#f6f7fd;color:#59657a}.businScenario .scenarioOverviewRow>div:first-child strong{font-size:14px;color:#28334a}.businScenario .scenarioOverviewRow>div:first-child small,.businScenario .scenarioOverviewRow time{font-size:11px;color:#59657a}.businScenario .scenarioOverviewRow select{font-size:12px}.businScenario .scenarioStatus{font-size:11px}.businScenario .scenarioToast{font-size:12px;color:#77652e;background:#fff8e4}.businScenario .scenarioStudio[aria-busy=true]{cursor:wait}.businScenario .scenarioStudio[aria-busy=true] .scenarioTopbar{background:#f6f6fc}.businScenario .studioPreviewPanel{box-shadow:0 24px 90px #22334c30}.businScenario .studioPreviewBubble{font-size:14px;line-height:1.65}.businScenario .inspectorEmpty p{font-size:13px;line-height:1.65;color:#59657a}
@media(max-width:900px){.page-heading{align-items:flex-start}.page-heading h1{font-size:27px}.catalog-summary{gap:18px}.chat-tools{gap:10px}.scenario-page{padding:16px!important}}
@media(max-width:650px){.sidebar nav button{font-size:12px;padding:12px 13px}.sidebar nav button>span{font-size:12px}.page-heading h1{font-size:27px}.page-heading p{font-size:12px}.content{padding:22px 16px}.inbox{border-radius:12px}.row-title strong{font-size:13px}.dialog-row p{font-size:11px;height:35px}.row-foot{font-size:9px}.channel{font-size:10px}.chat-header strong{font-size:15px}.message{font-size:14px}.reply .primary{font-size:12px}.reply span{font-size:10px;max-width:130px}.chat-notice{font-size:10px}.client-context{padding:23px 20px}.context-head{font-size:13px}.catalog-summary{font-size:12px;gap:16px}.catalog-summary b{font-size:14px}.table-toolbar .search{width:100%}.person-row>div{min-width:0}.person-row strong{font-size:14px}.task-row>div{min-width:0;flex:1 1 calc(100% - 32px)}.task-row time{font-size:12px}.scenario-page{padding:12px!important}.businScenario .scenarioIdentity>input{font-size:16px}.businScenario .scenarioReviewActions button{font-size:11px;white-space:normal;padding:10px;min-height:42px}.businScenario .scenarioSafetyNote{font-size:11px;line-height:1.6}.businScenario .scenarioTopActions button{font-size:12px;min-height:40px}.businScenario .scenarioInspector.open{border-radius:12px}.businScenario .scenarioInspector footer button{min-height:40px}.businScenario .inspectorContent{padding:20px}.businScenario .messageEditorContent{font-size:16px}.businScenario .scenarioMediaPreview b{font-size:12px}}
@media(prefers-reduced-motion:no-preference){.content.screen-enter{animation:screen-arrive 160ms cubic-bezier(.22,1,.36,1) both}@keyframes screen-arrive{from{opacity:.82;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.primary:active,.secondary:active{transform:translateY(1px)}}
@media(prefers-reduced-motion:reduce){.content.screen-enter{animation:none}.primary:active,.secondary:active{transform:none}}
/* Connection settings extend the existing CRM workspace. */
.channel.vk{color:#245caf;background:#edf3ff}.channel-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.channel-tabs button{display:flex;align-items:center;gap:10px;padding:11px 14px;background:#fff;border:1px solid #e2e6ee;border-radius:8px;color:#21283b;min-height:44px}.channel-tabs button[aria-selected=true]{background:#f0f0fc;border-color:#5659cd}.channel-tabs small{color:#59657a;font-variant-numeric:tabular-nums}.channel-tabs .channel{font-size:11px}.connection-workspace{display:grid;grid-template-columns:280px minmax(0,1fr);border:1px solid #e2e6ee;border-radius:12px;background:#fff;overflow:hidden}.connection-list{padding:22px;border-right:1px solid #e2e6ee;background:#fafbfe}.connection-list-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.connection-list h2,.connection-detail h2{font-size:20px;margin:0}.connection-list>p{color:#59657a;line-height:1.6;margin:14px 0 24px}.connection-account{display:flex;flex-direction:column;gap:7px;align-items:flex-start;width:100%;text-align:left;padding:15px 12px;border:1px solid transparent;background:transparent;border-radius:8px;color:#21283b;margin-top:8px}.connection-account.selected{background:#f0f0fc;border-color:#d5d4f6}.connection-account:hover{background:#f0f0fc}.connection-account span{font-size:12px;color:#59657a;overflow-wrap:anywhere}.connection-status{font-size:12px;line-height:1.4;color:#59657a}.connection-status.active{color:#246b4f}.connection-status.paused{color:#80601f}.connection-empty{padding:18px 0}.connection-empty h3{font-size:15px}.connection-empty p{color:#59657a;line-height:1.6}.connection-detail{padding:28px;min-width:0}.connection-detail>header{display:flex;justify-content:space-between;gap:20px}.connection-detail header p{max-width:70ch;line-height:1.65;color:#59657a;margin:12px 0 22px}.connection-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.connection-fields label:first-child{grid-column:1/-1}.connection-detail label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#21283b}.connection-detail input{width:100%;padding:11px 12px;border:1px solid #d6dce7;border-radius:7px;min-width:0;background:#fff;color:#21283b}.connection-detail input::placeholder{color:#59657a}.connection-detail input[readonly]{background:#f7f8fb;font-size:12px}.connection-detail .muted{font-size:12px;line-height:1.65;margin:15px 0}.connection-control{border-top:1px solid #e2e6ee;margin-top:26px;padding-top:22px}.connection-control h3{margin:0 0 10px;font-size:16px}.connection-control>p{color:#59657a;line-height:1.65;max-width:70ch}.connection-action-row{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.connection-detail .takeover-consent{flex-direction:row;align-items:flex-start;line-height:1.6;max-width:70ch}.takeover-consent input{width:17px;height:17px;margin-top:2px;flex-shrink:0}.connection-error{color:#a33232!important;background:#fff4f4;padding:12px;border-radius:7px}.connection-evidence{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.connection-evidence dt{font-size:12px;color:#59657a;margin-bottom:7px}.connection-evidence dd{margin:0;font-size:13px;overflow-wrap:anywhere}.connection-help{display:inline-block;margin-top:22px;color:#494cbc;text-underline-offset:4px}.connection-detail button:disabled{opacity:.55;cursor:not-allowed}.connection-detail button:focus-visible,.channel-tabs button:focus-visible,.connection-account:focus-visible,.connection-detail input:focus-visible{outline:2px solid #5659cd;outline-offset:3px}.connection-detail input{caret-color:#5659cd}.connection-detail ::selection{background:#deddf9;color:#21283b}@media(max-width:900px){.connection-workspace{grid-template-columns:1fr}.connection-list{border-right:0;border-bottom:1px solid #e2e6ee}.connection-account{display:inline-flex;width:auto;min-width:210px;max-width:100%;margin-right:8px}.connection-detail{padding:22px}.connection-evidence{grid-template-columns:1fr}}@media(max-width:520px){.channel-tabs button{padding:10px;gap:6px}.channel-tabs .channel{display:none}.connection-fields{grid-template-columns:1fr}.connection-detail>header{flex-direction:column;gap:0}.connection-action-row button{width:100%}.connection-detail{padding:18px}.connection-account{width:100%}.connection-list{padding:18px}}

/* Each inbox column owns its scroll area; content must not expand the grid row. */
.inbox{min-height:0;height:max(360px,calc(100dvh - 224px))}
.dialog-list,.chat,.client-context{min-height:0}
.list-head,.list-footer,.chat-header,.chat-notice,.reply,.simulate-inbound{flex-shrink:0}
.conversation-rows,.messages{min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
.message{flex-shrink:0}
@media(min-width:651px) and (max-width:900px){.inbox{height:max(360px,calc(100dvh - 203px))}}
@media(max-width:650px){.inbox{height:auto}.chat{min-height:0}.messages{flex:0 0 auto;height:clamp(220px,45dvh,450px);min-height:0}.conversation-rows{flex:0 0 auto;overflow-x:auto;overflow-y:hidden}}

.avatar{position:relative;overflow:hidden}.avatar-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.chat-identity{display:flex;align-items:center;gap:10px;min-width:0}

.workspace-context{display:inline-block;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;color:var(--ink);font-weight:600;padding:4px 0;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:4px}.breadcrumb{min-width:0}.connection-reminder{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:11px;line-height:1.5}.connection-reminder span{min-width:0;overflow-wrap:anywhere}.connection-reminder button{flex-shrink:0}@media(max-width:650px){.workspace-context{max-width:130px}}

/* Supplier catalogue follows the current CRM theme. */
.supplier-panel{margin:0 0 24px;padding:22px;border:1px solid var(--line,rgba(180,170,210,.35));border-radius:16px;background:var(--surface,rgba(255,255,255,.05))}.supplier-panel h2{margin:0 0 6px;font-size:20px}.supplier-panel p{margin:8px 0;max-width:80ch}.supplier-status,.supplier-controls,.supplier-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.supplier-controls{justify-content:flex-start;margin-top:18px}.supplier-pagination{justify-content:flex-end;margin:20px 0}.supplier-catalog{min-width:1100px;font-variant-numeric:tabular-nums}.supplier-catalog td:first-child{min-width:260px}.supplier-catalog td:nth-child(3){min-width:190px;max-width:250px;white-space:normal}.supplier-catalog .product-cell small{white-space:normal}.supplier-catalog .product-cell{max-width:360px}.supplier-error{color:var(--ink);font-weight:600}.supplier-rule-preview{padding:18px;border:1px solid var(--line,rgba(180,170,210,.35));border-radius:12px}.supplier-rule-preview p{margin:8px 0}.table-toolbar label{display:flex;align-items:center;gap:10px}.table-toolbar select{max-width:230px}.supplier-panel .footnote{font-size:13px;line-height:1.6}@media(max-width:700px){.supplier-panel{padding:16px}.supplier-controls{align-items:stretch}.supplier-controls>button{flex:1}.table-toolbar{flex-wrap:wrap}.table-toolbar label{width:100%}.supplier-pagination{justify-content:space-between}.supplier-status{align-items:flex-start}.supplier-panel p{line-height:1.6}}

.supplier-catalog td:last-child{white-space:nowrap}.supplier-catalog td:last-child button+button{margin-left:10px}.supplier-catalog .product-cell small{color:inherit;opacity:.85}.supplier-catalog .product-cell code{color:inherit;opacity:.9}.supplier-catalog small.muted{color:inherit;opacity:.85}.table-wrap:focus-visible{outline:2px solid var(--brand,#a590dc);outline-offset:3px}
