:root { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f3f5f8; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 30% 20%, #e8f0ff, transparent 35%), #f5f7fa; }
.login-card { width: min(400px, 100%); padding: 34px; display: grid; gap: 20px; background: #fff; border: 1px solid #e4e9f0; border-radius: 18px; box-shadow: 0 18px 55px rgba(30, 45, 75, .1); }
.logo { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: #276ef1; border-radius: 14px; font-size: 24px; font-weight: 800; }
.logo.small { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
h1, h2, p { margin: 0; }
h1 { font-size: 24px; }
h2 { font-size: 22px; }
h3 { margin: 0; font-size: 20px; }
p { margin-top: 6px; color: #778196; }
label { display: grid; gap: 7px; color: #4e596d; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #ccd4df; border-radius: 9px; color: #172033; background: #fff; outline: none; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: #276ef1; box-shadow: 0 0 0 3px rgba(39, 110, 241, .12); }
.primary, .secondary { min-height: 40px; padding: 9px 15px; border: 0; border-radius: 9px; }
.primary { color: #fff; background: #276ef1; }
.secondary { color: #245fca; background: #eaf1ff; }
button:disabled { opacity: .6; cursor: default; }
.form-error { padding: 10px; color: #9a2e2e; background: #fff0f0; border-radius: 8px; font-size: 13px; }
.admin { display: grid; grid-template-columns: 230px 1fr; height: 100vh; min-height: 600px; }
.navigation { display: flex; flex-direction: column; padding: 18px 12px; color: #dbe5f7; background: #162238; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 26px; color: #fff; }
nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; color: #aebbd0; background: transparent; text-align: left; }
.nav-item:hover, .nav-item.active { color: #fff; background: #263650; }
.nav-item span { width: 20px; text-align: center; font-size: 18px; }
.profile { margin-top: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 12px 7px 0; border-top: 1px solid #30405a; }
.profile strong, .profile span { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile strong { color: #fff; font-size: 13px; }
.profile span { margin-top: 2px; color: #8fa0b9; font-size: 11px; }
.profile button { border: 0; color: #aebbd0; background: transparent; font-size: 18px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; color: #1d58b9; background: #dce9ff; border-radius: 50%; font-weight: 700; }
.page { min-width: 0; min-height: 0; }
.workspace iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.accounts { overflow: auto; padding: 30px; }
.triggers { display: flex; flex-direction: column; overflow: hidden; padding: 28px 30px 30px; }
.triggers-header { flex: none; margin-bottom: 18px; }
.trigger-workbench { min-height: 0; flex: 1; display: grid; grid-template-columns: 286px minmax(520px, 1fr); overflow: hidden; background: #fff; border: 1px solid #dfe5ed; border-radius: 15px; box-shadow: 0 8px 30px rgba(24, 39, 68, .05); }
.trigger-sidebar { min-height: 0; display: flex; flex-direction: column; padding: 18px 12px 12px; border-right: 1px solid #e5e9ef; background: #fafbfc; }
.trigger-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 13px; }
.trigger-sidebar-head strong { font-size: 14px; }
.trigger-sidebar-head > span { min-width: 24px; padding: 3px 7px; color: #647084; background: #e9edf3; border-radius: 20px; text-align: center; font-size: 11px; font-weight: 700; }
.trigger-search { position: relative; display: block; margin: 0 3px 12px; }
.trigger-search > span { position: absolute; top: 9px; left: 11px; color: #8c96a6; font-size: 18px; font-weight: 400; }
.trigger-search input { min-height: 38px; padding-left: 34px; background: #fff; }
.trigger-list { display: grid; gap: 7px; overflow: auto; padding: 0 3px; }
.trigger-card { width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 10px; color: #263145; background: transparent; text-align: left; }
.trigger-card:hover { background: #f0f4fa; }
.trigger-card.active { border-color: #bfd1f4; background: #edf3ff; box-shadow: inset 3px 0 #276ef1; }
.trigger-card-top, .trigger-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trigger-card-top strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.trigger-card-meta { margin-top: 9px; color: #828c9c; font-size: 11px; }
.trigger-card-meta em { padding: 3px 7px; color: #59677d; background: #e8ecf2; border-radius: 5px; font-style: normal; }
.mini-toggle { width: 27px; height: 16px; flex: none; padding: 2px; background: #c9d0db; border-radius: 12px; }
.mini-toggle::after { content: ""; display: block; width: 12px; height: 12px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.mini-toggle.on { background: #34aa70; }
.mini-toggle.on::after { margin-left: 11px; }
.subflow-library { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: auto; padding: 12px 9px; border: 1px solid #e1e6ee; border-radius: 10px; color: #3e4a5d; background: #fff; text-align: left; }
.subflow-library:hover { border-color: #b9c8df; }
.subflow-library strong, .subflow-library small { display: block; }
.subflow-library strong { font-size: 12px; }
.subflow-library small { margin-top: 3px; color: #8993a3; font-size: 10px; }
.subflow-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #6c47bc; background: #eee8fb; border-radius: 8px; font-weight: 800; }
.trigger-editor { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #fff; }
.editor-toolbar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid #e7ebf0; }
.editor-toolbar p { margin-top: 5px; font-size: 12px; }
.editor-title-row { display: flex; align-items: center; gap: 9px; }
.draft-badge { padding: 3px 7px; color: #7a6216; background: #fff4c7; border-radius: 5px; font-size: 10px; font-weight: 700; }
.draft-badge.published { color: #16734a; background: #e4f6ed; }
.primary.publish { background: #172f57; }
.editor-actions { display: flex; align-items: center; gap: 8px; }
.switch-label { display: flex; grid: none; flex-direction: row; align-items: center; gap: 8px; margin-right: 5px; }
.switch-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-label i { width: 34px; height: 20px; padding: 3px; background: #cbd2dc; border-radius: 14px; }
.switch-label i::after { content: ""; display: block; width: 14px; height: 14px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: margin .15s; }
.switch-label input:checked + i { background: #2cac70; }
.switch-label input:checked + i::after { margin-left: 14px; }
.flow-area { min-height: 0; flex: 1; overflow: auto; padding: 14px 24px 34px; background-color: #f7f9fc; background-image: radial-gradient(#d8dee8 1px, transparent 1px); background-size: 18px 18px; }
.flow-meta { display: flex; align-items: center; justify-content: space-between; max-width: 590px; margin: 0 auto 16px; padding: 0 4px; color: #7c8798; font-size: 10px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 3px; background: #2cac70; border-radius: 50%; }
.status-dot.off { background: #a9b2c0; }
.flow { width: min(590px, 100%); margin: 0 auto; }
.flow-block { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; padding: 16px; border: 1px solid #dce2eb; border-left-width: 4px; border-radius: 12px; background: #fff; box-shadow: 0 4px 15px rgba(30, 46, 75, .06); }
.flow-block.start { border-left-color: #276ef1; }
.flow-block.wait { border-left-color: #3aa0c8; }
.flow-block.condition { border-left-color: #e0a82e; }
.flow-block.action { border-left-color: #2cac70; }
.flow-block.transition { border-left-color: #8056c7; background: #fcfaff; }
.flow-block.request { border-left-color: #d06d35; }
.flow-block.finish { border-left-color: #647084; }
.flow-block-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #276ef1; background: #eaf1ff; border-radius: 10px; font-size: 18px; font-weight: 800; }
.wait .flow-block-icon { color: #2785a8; background: #e4f4fa; }
.condition .flow-block-icon { color: #a87508; background: #fff2d2; }
.action .flow-block-icon { color: #208556; background: #e3f6ed; }
.transition .flow-block-icon { color: #6940ad; background: #eee7fa; }
.request .flow-block-icon { color: #a84f20; background: #faece4; }
.finish .flow-block-icon { color: #526075; background: #e9edf3; }
.flow-block-content { min-width: 0; }
.flow-eyebrow { display: block; margin-bottom: 4px; color: #8a94a4; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.flow-block-content > strong { display: block; font-size: 14px; }
.flow-block-content > p { margin-top: 5px; color: #737f91; font-size: 11px; line-height: 1.45; }
.block-menu { align-self: start; padding: 3px 5px; border: 0; color: #929baa; background: transparent; letter-spacing: 1px; }
.parameter-tags, .condition-branches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.parameter-tags span { padding: 4px 7px; color: #476184; background: #f0f3f7; border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.condition-branches span { padding: 5px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.condition-branches span:first-child { color: #19734b; background: #e5f6ed; }
.condition-branches span:last-child { color: #7e5760; background: #f5e9ec; }
.message-button { display: inline-block; margin-top: 11px; padding: 6px 9px; color: #2361c4; background: #eaf1ff; border-radius: 6px; font-size: 10px; font-weight: 700; }
.flow-connector { position: relative; height: 29px; display: grid; place-items: center; color: #929cab; }
.flow-connector::before { content: ""; position: absolute; width: 1px; height: 29px; background: #c6ceda; }
.flow-connector span { position: relative; padding: 1px 5px; background: #f7f9fc; font-size: 12px; z-index: 1; }
.add-flow-block { display: flex; align-items: center; justify-content: center; gap: 7px; width: min(590px, 100%); min-height: 44px; margin: 15px auto 0; border: 1px dashed #9fb0c7; border-radius: 11px; color: #5c6f89; background: rgba(255,255,255,.75); }
.add-flow-block:hover { color: #276ef1; border-color: #276ef1; background: #fff; }
.add-flow-block span { font-size: 18px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-header p { font-size: 14px; }
.create-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr auto; align-items: end; gap: 12px; padding: 18px; margin-bottom: 20px; background: #fff; border: 1px solid #e1e6ee; border-radius: 12px; }
.form-actions { display: flex; gap: 8px; }
.accounts-list { display: grid; gap: 10px; }
.account { display: grid; grid-template-columns: minmax(180px, 1fr) 160px 150px 160px auto; align-items: center; gap: 15px; padding: 16px 18px; background: #fff; border: 1px solid #e1e6ee; border-radius: 12px; }
.account-name strong, .account-name span { display: block; }
.account-name span, .account-meta { margin-top: 4px; color: #7b8698; font-size: 12px; }
.account .save-button { min-height: 38px; }
.account-notifications { grid-column: 1 / -1; justify-self: start; }
.notification-nav { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; color: #aebbd0; background: transparent; text-align: left; }
.notification-nav:hover { color: #fff; background: #263650; }
.notification-nav span { width: 20px; text-align: center; font-size: 18px; }
.notification-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 26px; border: 1px solid #e1e6ee; border-radius: 18px; color: #18263b; background: #f7f9fc; overflow: auto; }
.notification-dialog::backdrop { background: #101e34a8; }
.notification-dialog header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.notification-dialog h2 { margin: 0 0 6px; }
.notification-dialog header p { margin: 0; color: #64748b; }
.notification-help { color: #64748b; line-height: 1.6; margin: 20px 0; }
.notification-channels { display: grid; gap: 12px; }
.notification-channel { padding: 18px; background: white; border: 1px solid #dce3ee; border-radius: 12px; }
.notification-channel-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.notification-channel-heading span { font-size: 13px; color: #64748b; }
.notification-channel-heading .notification-connected { color: #087851; }
.notification-settings { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.notification-settings label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.notification-settings input[type=checkbox] { width: 18px; height: 18px; }
.notification-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notification-code p { font-size: 14px; line-height: 1.5; }
.notification-code input { width: 100%; font-family: monospace; margin-bottom: 10px; }
.notification-feedback { min-height: 22px; margin-bottom: 0; color: #2059b3; }
@media (max-width: 720px) { .notification-nav { font-size: 0; justify-content: center; } .notification-dialog { padding: 18px; } }
.toast { position: fixed; right: 18px; bottom: 18px; max-width: 360px; padding: 11px 14px; color: #fff; background: #202938; border-radius: 9px; box-shadow: 0 8px 30px rgba(20, 30, 50, .22); z-index: 5; }
.trigger-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 15px; color: #172033; box-shadow: 0 24px 80px rgba(13, 25, 47, .28); }
.trigger-dialog::backdrop { background: rgba(14, 25, 43, .48); backdrop-filter: blur(2px); }
.trigger-dialog-card { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.trigger-dialog-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px 16px; border-bottom: 1px solid #e5e9ef; }
.trigger-dialog-card > header p { font-size: 12px; }
.dialog-close { width: 32px; height: 32px; border: 0; border-radius: 8px; color: #738095; background: #f0f3f7; font-size: 22px; line-height: 1; }
.trigger-dialog-body { display: grid; gap: 15px; overflow: auto; padding: 20px 22px; }
.trigger-dialog-card > footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px 18px; border-top: 1px solid #e5e9ef; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.block-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.block-type-option { position: relative; display: flex; min-height: 96px; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid #dce2eb; border-radius: 11px; background: #fafbfc; text-align: center; cursor: pointer; }
.block-type-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.block-type-option span { font-size: 22px; }
.block-type-option strong { font-size: 12px; }
.block-type-option:has(input:checked) { color: #245fca; border-color: #7da6ef; background: #edf3ff; box-shadow: 0 0 0 2px rgba(39,110,241,.1); }
.danger-button { min-height: 40px; padding: 9px 14px; border: 1px solid #f0c4c4; border-radius: 9px; color: #a73535; background: #fff5f5; }
.runs-list { display: grid; gap: 8px; }
.runs-list article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; padding: 12px; border: 1px solid #e2e7ee; border-radius: 10px; }
.runs-list article strong { font-size: 13px; }
.runs-list article small { grid-column: 2; color: #7d8798; }
.run-status { grid-row: 1 / 3; padding: 4px 7px; color: #586579; background: #edf0f4; border-radius: 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.run-status.completed { color: #18744b; background: #e5f6ed; }
.run-status.failed { color: #9e3333; background: #fbe7e7; }
.run-status.waiting { color: #8a6813; background: #fff2cf; }
.empty-dialog { padding: 28px; color: #7c8798; background: #f6f8fa; border-radius: 10px; text-align: center; }

/* Визуальный прототип редактора контента */
.content-studio { display: flex; flex-direction: column; overflow: hidden; background: #f5f7fb; }
.content-header { min-height: 88px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 26px 16px; background: #fff; border-bottom: 1px solid #e6eaf0; }
.content-title-line { display: flex; align-items: center; gap: 10px; }
.content-title-line h2 { font-size: 23px; letter-spacing: -.02em; }
.prototype-badge { padding: 4px 8px; color: #7656b5; background: #f0eafb; border-radius: 6px; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.content-header p { margin-top: 5px; font-size: 12px; }
.content-global-search { position: relative; display: block; width: min(360px, 38vw); }
.content-global-search > span { position: absolute; top: 8px; left: 12px; color: #8791a1; font-size: 20px; font-weight: 400; }
.content-global-search input { min-height: 42px; padding: 8px 54px 8px 39px; border-color: #dfe4eb; background: #f8fafc; }
.content-global-search kbd { position: absolute; top: 9px; right: 10px; padding: 4px 7px; color: #8791a1; background: #fff; border: 1px solid #dfe4ea; border-radius: 5px; box-shadow: 0 1px 2px rgba(20, 35, 60, .06); font: 10px Inter, sans-serif; }
.content-tabs { min-height: 51px; flex: none; display: flex; align-items: end; gap: 4px; padding: 0 26px; background: #fff; border-bottom: 1px solid #e1e6ed; }
.content-tab { position: relative; display: flex; align-items: center; gap: 7px; min-height: 50px; padding: 0 16px; border: 0; color: #7b8595; background: transparent; font-size: 12px; font-weight: 650; }
.content-tab span { font-size: 15px; }
.content-tab:hover { color: #3e4c62; }
.content-tab.active { color: #276ef1; }
.content-tab.active::after { content: ""; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 3px; background: #276ef1; border-radius: 4px 4px 0 0; }
.content-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: 220px minmax(520px, 1fr) 340px; overflow: hidden; }
.content-layout.catalog-collapsed { grid-template-columns: 48px minmax(520px, 1fr) 340px; }
.content-layout.inspector-collapsed { grid-template-columns: 220px minmax(520px, 1fr) 0; }
.content-layout.catalog-collapsed.inspector-collapsed { grid-template-columns: 48px minmax(520px, 1fr) 0; }
.content-catalog { min-height: 0; display: flex; flex-direction: column; padding: 16px 11px 12px; overflow: hidden; background: #fff; border-right: 1px solid #e0e5ec; }
.catalog-collapsed .content-catalog { padding-inline: 10px; }
.catalog-collapsed .catalog-heading { justify-content: center; padding-inline: 0; }
.catalog-collapsed .catalog-heading > span,
.catalog-collapsed .catalog-summary,
.catalog-collapsed .catalog-list,
.catalog-collapsed .catalog-legend { display: none; }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 11px; color: #7e899a; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.catalog-heading button { width: 26px; height: 26px; border: 0; border-radius: 7px; color: #7c8798; background: #f1f4f8; font-size: 20px; }
.catalog-summary { margin: 0 3px 13px; padding: 12px; background: linear-gradient(145deg, #f1f6ff, #f8faff); border: 1px solid #dfe9fa; border-radius: 11px; }
.catalog-summary strong, .catalog-summary span { display: block; }
.catalog-summary strong { color: #245fc9; font-size: 21px; }
.catalog-summary span { margin-top: 1px; color: #64728a; font-size: 10px; }
.catalog-summary > i { display: block; height: 4px; margin: 9px 0 6px; overflow: hidden; background: #dce5f4; border-radius: 5px; }
.catalog-summary > i b { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, #276ef1, #6a93eb); border-radius: inherit; }
.catalog-summary small { color: #8993a3; font-size: 9px; }
.catalog-list { display: grid; gap: 3px; overflow: auto; padding: 0 3px 8px; }
.catalog-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 8px 9px; border: 0; border-radius: 9px; color: #536075; background: transparent; text-align: left; }
.catalog-item:hover { background: #f5f7fa; }
.catalog-item.active { color: #235bbf; background: #edf3ff; box-shadow: inset 3px 0 #276ef1; }
.catalog-item > i { width: 28px; height: 28px; display: grid; place-items: center; background: #f0f3f7; border-radius: 8px; font-style: normal; font-size: 13px; }
.catalog-item.active > i { background: #dce9ff; }
.catalog-item strong, .catalog-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-item strong { font-size: 11px; }
.catalog-item small { margin-top: 2px; color: #919aaa; font-size: 9px; font-weight: 500; }
.catalog-item > span:last-child { color: #9aa3b1; font-size: 9px; }
.catalog-legend { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px 12px; padding: 10px 9px 2px; color: #8993a3; border-top: 1px solid #edf0f4; font-size: 8px; }
.catalog-legend span { display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 6px; height: 6px; background: #36ad76; border-radius: 50%; }
.legend-dot.draft { background: #e0ab3d; }
.content-canvas { min-width: 0; min-height: 0; overflow: auto; background-color: #f6f8fb; background-image: radial-gradient(#dbe1ea .8px, transparent .8px); background-size: 18px 18px; }
.content-mode { min-width: 760px; min-height: 100%; padding: 20px 22px 34px; }
.canvas-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.canvas-eyebrow { display: block; margin-bottom: 5px; color: #7c899c; font-size: 8px; font-weight: 850; letter-spacing: .11em; }
.canvas-toolbar h3 { font-size: 18px; letter-spacing: -.02em; }
.canvas-toolbar p { margin-top: 4px; font-size: 10px; }
.canvas-actions, .content-filters { display: flex; align-items: center; gap: 5px; }
.canvas-action { min-height: 33px; padding: 7px 10px; border: 1px solid #dfe4eb; border-radius: 8px; color: #758196; background: rgba(255,255,255,.88); font-size: 9px; font-weight: 700; box-shadow: 0 2px 8px rgba(27, 43, 70, .03); }
.canvas-action.active { color: #2c63c2; border-color: #c7d8f6; background: #edf3ff; }
.canvas-label { display: inline-flex; align-items: center; cursor: default; }
.canvas-action.icon-only { width: 32px; padding: 0; font-size: 16px; }
.canvas-action:disabled { cursor: default; opacity: .45; }
.canvas-zoom { min-width: 35px; color: #8490a2; text-align: center; font-size: 9px; }
.journey-map { padding: 9px 0 20px; }
.journey-entry { display: flex; align-items: center; justify-content: center; }
.journey-node { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; min-width: 165px; padding: 12px; border: 1px solid #dfe4eb; border-radius: 12px; color: #354158; background: #fff; text-align: left; box-shadow: 0 7px 22px rgba(35, 50, 78, .06); transition: transform .15s, border .15s, box-shadow .15s; }
.journey-node:hover { transform: translateY(-2px); border-color: #b8cbeb; box-shadow: 0 10px 28px rgba(35, 50, 78, .1); }
.journey-node.selected { border-color: #8eb0eb; box-shadow: 0 0 0 3px rgba(39,110,241,.09), 0 9px 25px rgba(35, 70, 130, .09); }
.journey-node small, .journey-node strong, .journey-node em { display: block; }
.journey-node small { color: #9aa3b1; font-size: 7px; font-weight: 850; letter-spacing: .08em; }
.journey-node strong { margin-top: 3px; font-size: 12px; }
.journey-node em { margin-top: 3px; color: #8792a3; font-size: 8px; font-style: normal; }
.node-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 16px; font-weight: 800; }
.node-icon.violet { color: #714db4; background: #eee8fa; }
.node-icon.blue { color: #2869d5; background: #e6efff; }
.node-icon.green { color: #228259; background: #e4f5ed; }
.journey-arrow { padding: 0 9px; color: #aab3c0; font-size: 17px; }
.journey-trunk { position: relative; height: 47px; }
.journey-trunk::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 31px; background: #bcc7d6; }
.journey-trunk i { position: absolute; right: 7%; bottom: 0; left: 7%; height: 16px; border-top: 1px solid #bcc7d6; border-right: 1px solid #bcc7d6; border-left: 1px solid #bcc7d6; border-radius: 9px 9px 0 0; }
.journey-sections { display: grid; grid-template-columns: repeat(4, minmax(145px, 1fr)); gap: 27px 12px; }
.section-flow-card { position: relative; display: flex; flex-direction: column; min-height: 165px; padding: 13px; border: 1px solid #e0e5ec; border-radius: 13px; color: #364257; background: rgba(255,255,255,.96); text-align: left; box-shadow: 0 6px 20px rgba(29, 45, 72, .05); transition: transform .15s, border .15s, box-shadow .15s; }
.section-flow-card::before { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: #c0cad7; }
.section-flow-card:hover { transform: translateY(-3px); border-color: #aec5e9; box-shadow: 0 11px 28px rgba(29, 53, 94, .1); }
.section-flow-card.active { border-color: #7ca3e8; box-shadow: 0 0 0 3px rgba(39,110,241,.08), 0 9px 25px rgba(30, 65, 125, .09); }
.section-card-head { display: flex; align-items: center; gap: 8px; }
.section-card-icon { width: 30px; height: 30px; display: grid; place-items: center; background: #f0f3f8; border-radius: 8px; font-size: 14px; }
.section-card-head strong { flex: 1; font-size: 10px; }
.section-card-head i { width: 7px; height: 7px; background: #35ae75; border-radius: 50%; }
.section-card-head i.draft { background: #dea83b; }
.screen-chips { display: grid; gap: 4px; margin-top: 10px; }
.screen-chips span { padding: 5px 7px; overflow: hidden; color: #68758a; background: #f5f7fa; border-radius: 6px; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.section-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 9px; color: #9099a8; border-top: 1px solid #edf0f4; font-size: 8px; }
.section-card-footer b { color: #45658f; font-size: 8px; }
.section-content-panel { margin-top: 22px; padding: 17px; border: 1px solid #dde4ed; border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 8px 25px rgba(27,43,70,.055); }
.section-content-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.section-content-panel > header h3 { font-size: 15px; }
.section-content-panel > header > span { padding: 5px 8px; color: #64738a; background: #edf1f6; border-radius: 6px; font-size: 8px; font-weight: 700; }
.section-content-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 8px; }
.section-content-item, .service-content-item { display: flex; flex-direction: column; min-height: 128px; padding: 11px; border: 1px solid #e2e7ee; border-radius: 10px; color: #445066; background: #fff; text-align: left; }
.section-content-item:hover, .section-content-item.selected, .service-content-item:hover, .service-content-item.selected { border-color: #9db9e8; background: #f8faff; box-shadow: 0 0 0 2px rgba(39,110,241,.06); }
.content-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.content-item-top small { color: #9aa3b1; font-size: 7px; }
.section-content-item > strong, .service-content-item > strong { display: block; margin-top: 8px; font-size: 9px; }
.section-content-item > p, .service-content-item > p { margin: 5px 0 9px; color: #788396; font-size: 8px; line-height: 1.4; }
.section-content-item > code, .service-content-item > code { display: block; margin-top: auto; overflow: hidden; color: #929baa; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.content-empty { grid-column: 1 / -1; padding: 28px 18px; color: #8792a3; background: #f7f9fb; border: 1px dashed #d7dee8; border-radius: 10px; text-align: center; font-size: 9px; }
.content-inspector { min-height: 0; display: flex; flex-direction: column; background: #fff; border-left: 1px solid #dfe4eb; box-shadow: -6px 0 22px rgba(30, 45, 70, .035); }
.inspector-collapsed .content-inspector { display: none; }
.inspector-header { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 18px 14px; border-bottom: 1px solid #e8ebf0; }
.inspector-type { display: block; margin-bottom: 4px; color: #2b72da; font-size: 7px; font-weight: 850; letter-spacing: .11em; }
.inspector-header h3 { max-width: 250px; font-size: 15px; }
.inspector-header code { display: block; margin-top: 5px; color: #8993a3; font-size: 8px; }
.inspector-header > button { width: 28px; height: 28px; border: 0; color: #8993a3; background: #f2f4f7; border-radius: 8px; font-size: 18px; }
.inspector-scroll { flex: 1; overflow: auto; padding: 15px 17px; }
.screen-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: #8b95a5; font-size: 8px; }
.screen-context strong { color: #536077; font-size: 9px; }
.phone-preview { overflow: hidden; margin-bottom: 16px; border: 1px solid #dfe4eb; border-radius: 15px; background: #edf2f8; box-shadow: 0 10px 25px rgba(27, 43, 70, .08); }
.phone-preview > header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #e5e9ef; }
.phone-avatar { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: #276ef1; border-radius: 50%; font-size: 11px; font-weight: 850; }
.phone-preview header strong, .phone-preview header small { display: block; }
.phone-preview header strong { font-size: 9px; }
.phone-preview header small { margin-top: 1px; color: #46a678; font-size: 7px; }
.phone-preview header i { margin-left: auto; color: #8a95a5; font-style: normal; font-size: 10px; letter-spacing: 1px; }
.chat-preview { min-height: 205px; padding: 14px 12px 10px; background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.85), transparent 35%), #e8eef5; }
.preview-message { max-width: 92%; padding: 10px 11px; color: #344056; background: #fff; border-radius: 4px 12px 12px 12px; box-shadow: 0 2px 7px rgba(30,45,70,.07); font-size: 9px; line-height: 1.45; }
.preview-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 92%; margin-top: 5px; }
.preview-buttons span { padding: 6px 5px; overflow: hidden; color: #2865bf; background: rgba(255,255,255,.88); border-radius: 6px; text-align: center; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.chat-preview time { display: block; margin-top: 5px; color: #7e8999; text-align: right; font-size: 7px; }
.content-editor-label { color: #4e5a6e; font-size: 9px; }
.content-editor-label textarea { min-height: 125px; margin-top: 6px; padding: 10px; font-size: 10px; }
.editor-helper { margin-top: 11px; }
.editor-helper > span { display: block; margin-bottom: 6px; color: #7e899a; font-size: 8px; font-weight: 700; }
.editor-helper > div { display: flex; flex-wrap: wrap; gap: 5px; }
.editor-helper button { padding: 5px 7px; border: 0; color: #5a4a91; background: #f0ebfa; border-radius: 6px; font: 8px ui-monospace, Consolas, monospace; }
.no-variables { color: #969fad; font-size: 8px; }
.content-note { display: grid; grid-template-columns: 22px 1fr; gap: 8px; margin-top: 13px; padding: 10px; color: #756338; background: #fff8e7; border: 1px solid #f1e2ba; border-radius: 9px; }
.content-note > span { width: 20px; height: 20px; display: grid; place-items: center; color: #8c6c21; background: #f8e8ba; border-radius: 50%; font: 700 10px Georgia, serif; }
.content-note p { margin: 0; color: inherit; font-size: 8px; line-height: 1.45; }
.content-note strong { display: block; margin-bottom: 2px; font-size: 9px; }
.inspector-footer { flex: none; display: flex; justify-content: flex-end; gap: 7px; padding: 12px 17px; border-top: 1px solid #e5e9ef; }
.inspector-footer button { min-height: 36px; font-size: 9px; }
.content-history { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e8ecf1; }
.content-history > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.content-history > header strong { color: #566277; font-size: 9px; }
.content-history > header button { padding: 3px 0; border: 0; color: #2767c8; background: transparent; font-size: 8px; }
#content-history-list { display: grid; gap: 5px; }
#content-history-list article { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; background: #f6f8fa; border-radius: 7px; }
#content-history-list article strong, #content-history-list article small { display: block; }
#content-history-list article strong { color: #596579; font-size: 8px; }
#content-history-list article small { margin-top: 2px; color: #929baa; font-size: 7px; }
#content-history-list article button { padding: 4px 6px; border: 0; color: #2763c2; background: #e7effd; border-radius: 5px; font-size: 7px; }
.history-empty { display: block; padding: 9px; color: #929baa; background: #f7f9fb; border-radius: 7px; text-align: center; font-size: 8px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.service-card { min-height: 118px; padding: 13px; border: 1px solid #e0e5ec; border-radius: 12px; color: #3c485d; background: #fff; text-align: left; box-shadow: 0 5px 18px rgba(30,45,70,.045); }
.service-card:hover, .service-card.active { border-color: #9db9e8; box-shadow: 0 0 0 3px rgba(39,110,241,.07), 0 8px 22px rgba(30,55,100,.08); }
.service-card header { display: flex; align-items: center; gap: 9px; }
.service-logo { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: #506179; border-radius: 9px; font-size: 12px; font-weight: 850; }
.mindbox-logo { color: #111; background: #ffd92d; }
.service-card header strong, .service-card header small { display: block; }
.service-card header strong { font-size: 10px; }
.service-card header small { margin-top: 2px; color: #8a95a5; font-size: 8px; }
.service-card p { min-height: 30px; margin: 11px 0 9px; color: #707c8f; font-size: 8px; line-height: 1.4; }
.service-stats { display: flex; gap: 5px; }
.service-stats span { padding: 4px 6px; color: #607087; background: #f0f3f7; border-radius: 5px; font-size: 7px; }
.service-stats .service-errors { color: #a65050; background: #fbecec; }
.service-flow { margin-top: 16px; padding: 15px; border: 1px solid #e0e5ec; border-radius: 13px; background: rgba(255,255,255,.94); }
.service-flow > header { display: flex; align-items: center; justify-content: space-between; }
.service-flow > header > div { display: flex; align-items: center; gap: 9px; }
.service-flow header strong, .service-flow header small { display: block; }
.service-flow header strong { font-size: 11px; }
.service-flow header small { margin-top: 2px; color: #8b96a6; font-size: 8px; }
.healthy-badge, .draft-status { padding: 4px 7px; color: #237653; background: #e7f5ed; border-radius: 6px; font-size: 7px; font-weight: 750; }
.draft-status { color: #816519; background: #fff3cf; }
.service-content-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 15px; }
.service-content-item { min-height: 125px; }
.service-response-line { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 17px; }
.service-response-line > i { color: #a7b0bd; font-style: normal; }
.service-response-line button { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #e3e7ed; border-radius: 9px; color: #48546a; background: #fafbfc; text-align: left; }
.service-response-line button strong, .service-response-line button small { display: block; }
.service-response-line button strong { font-size: 8px; }
.service-response-line button small { margin-top: 2px; color: #929baa; font: 7px ui-monospace, Consolas, monospace; }
.response-icon { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; font-style: normal; font-size: 10px; font-weight: 800; }
.response-icon.success { color: #247b55; background: #e5f5ec; }
.response-icon.warning { color: #8d6b17; background: #fff2cd; }
.response-icon.danger { color: #a74545; background: #fbe9e9; }
.trigger-content-list { display: grid; gap: 11px; }
.trigger-content-card { padding: 15px; border: 1px solid #e0e5ec; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(30,45,70,.04); }
.trigger-content-card.selected { border-color: #a8c0e9; box-shadow: 0 0 0 3px rgba(39,110,241,.06), 0 8px 22px rgba(30,55,100,.07); }
.trigger-content-card.muted { opacity: .72; }
.trigger-content-card header { display: flex; align-items: center; gap: 10px; }
.trigger-content-icon { width: 34px; height: 34px; display: grid; place-items: center; background: #f1f4f8; border-radius: 9px; font-size: 15px; }
.trigger-content-card header div { flex: 1; }
.trigger-content-card header strong, .trigger-content-card header small { display: block; }
.trigger-content-card header strong { font-size: 10px; }
.trigger-content-card header small { margin-top: 3px; color: #8b95a5; font-size: 8px; }
.mini-trigger-flow { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding: 11px; overflow: auto; background: #f7f9fc; border-radius: 9px; white-space: nowrap; }
.mini-trigger-flow span, .mini-trigger-flow b, .mini-trigger-flow button { padding: 6px 8px; color: #69768a; background: #fff; border: 1px solid #e1e6ed; border-radius: 6px; font-size: 7px; font-weight: 650; }
.mini-trigger-flow b, .mini-trigger-flow button { color: #2765ca; border-color: #bdd0f0; background: #edf3ff; }
.mini-trigger-flow button:hover { border-color: #759fe6; background: #e4edff; }
.mini-trigger-flow i { color: #a5afbc; font-style: normal; }
.content-table { overflow: hidden; border: 1px solid #e0e5ec; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(30,45,70,.04); }
.content-table-row { display: grid; grid-template-columns: 2fr 1fr .8fr .9fr; align-items: center; gap: 15px; width: 100%; min-height: 56px; padding: 10px 15px; border: 0; border-bottom: 1px solid #edf0f4; color: #536075; background: #fff; text-align: left; font-size: 8px; }
button.content-table-row:hover, .content-table-row.selected { background: #f6f9ff; }
.content-table-head { min-height: 35px; color: #929baa; background: #f7f9fb; font-size: 7px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.content-table-row:last-child { border-bottom: 0; }
.content-table-row strong, .content-table-row small { display: block; }
.content-table-row strong { color: #3e4a5f; font-size: 9px; }
.content-table-row small { margin-top: 3px; color: #929baa; font: 7px ui-monospace, Consolas, monospace; }
.type-pill { display: inline-block; padding: 4px 6px; border-radius: 5px; font-style: normal; font-size: 7px; font-weight: 700; }
.type-pill.message { color: #2865c4; background: #eaf1ff; }
.type-pill.button { color: #6d4ca5; background: #f0eafa; }
.type-pill.error { color: #a24a4a; background: #faeaea; }

@media (max-width: 1100px) { .trigger-workbench { grid-template-columns: 240px minmax(480px, 1fr); } .editor-toolbar { align-items: flex-start; } .editor-actions { flex-wrap: wrap; justify-content: flex-end; } .create-form { grid-template-columns: 1fr 1fr; } .account { grid-template-columns: 1fr 130px 130px; } .account .password-reset { grid-column: 1 / 3; } }
@media (max-width: 1380px) { .content-layout { grid-template-columns: 195px minmax(520px, 1fr) 310px; } .content-layout.catalog-collapsed { grid-template-columns: 48px minmax(520px, 1fr) 310px; } .content-layout.inspector-collapsed { grid-template-columns: 195px minmax(520px, 1fr) 0; } .content-layout.catalog-collapsed.inspector-collapsed { grid-template-columns: 48px minmax(520px, 1fr) 0; } .journey-sections { grid-template-columns: repeat(3, minmax(145px, 1fr)); } .journey-sections .section-flow-card:nth-child(n+4)::before { display: none; } }
@media (max-width: 1080px) { .content-layout { grid-template-columns: 185px minmax(620px, 1fr); } .content-inspector { position: absolute; top: 139px; right: 0; bottom: 0; width: 330px; z-index: 3; box-shadow: -14px 0 36px rgba(20,35,60,.13); } }
@media (max-width: 820px) { .triggers { overflow: auto; padding: 18px; } .trigger-workbench { min-height: 800px; grid-template-columns: 1fr; overflow: visible; } .trigger-sidebar { min-height: 280px; border-right: 0; border-bottom: 1px solid #e5e9ef; } .trigger-list { grid-template-columns: 1fr 1fr; } .subflow-library { margin-top: 12px; } .trigger-editor { min-height: 600px; } }
@media (max-width: 720px) { .admin { grid-template-columns: 64px 1fr; } .navigation { padding: 12px 7px; } .brand strong, .nav-item:not(.active)::after, .nav-item { font-size: 0; } .brand { justify-content: center; padding: 0 0 20px; } .nav-item { justify-content: center; } .nav-item span { font-size: 20px; } .profile { grid-template-columns: 1fr; justify-items: center; } .profile div:nth-child(2), .profile button { display: none; } .accounts { padding: 18px; } .page-header, .editor-toolbar { align-items: flex-start; } .editor-toolbar { display: grid; } .editor-actions { justify-content: flex-start; } .trigger-list { grid-template-columns: 1fr; } .flow-area { padding-inline: 12px; } .flow-block { grid-template-columns: 34px 1fr auto; padding: 13px; } .flow-block-icon { width: 32px; height: 32px; } .create-form, .account { grid-template-columns: 1fr; } .account .password-reset { grid-column: auto; } }
@media (max-width: 560px) { .block-type-grid { grid-template-columns: 1fr 1fr; } .dialog-grid { grid-template-columns: 1fr; } }
