:root { color-scheme: light; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f5f7fb; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #f8fafc 0%, #eef5ff 100%); }
.login-screen { min-height: 100vh; padding: 24px; place-content: center; background: radial-gradient(circle at 20% 10%, #e2edff, transparent 35%), linear-gradient(135deg, #f8fafc, #edf4ff); }
.login-screen:not([hidden]) { display: grid; }
.login-card { width: min(420px, 92vw); padding: 38px; border: 1px solid #dce5f0; border-radius: 20px; background: #fff; box-shadow: 0 24px 70px rgba(31,53,86,.14); }
.login-mark { display: grid; width: 50px; height: 50px; margin-bottom: 20px; place-items: center; border-radius: 14px; background: #2878eb; color: #fff; font-size: 24px; }
.login-card h1 { font-size: 27px; }
.login-card > p:not(.eyebrow) { margin: 10px 0 26px; color: #667085; line-height: 1.5; }
.login-card label { display: block; margin-bottom: 16px; }
.login-card .primary-button { width: 100%; margin-top: 6px; padding: 13px; }
#login-error { display: block; min-height: 18px; margin-top: 12px; color: #c43232; text-align: center; font-size: 12px; font-weight: 700; }
.shell { min-height: 100vh; padding: 34px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; padding-right: 56px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header .eyebrow { margin-bottom: 0; }
.eyebrow, .section-label { margin: 0 0 6px; color: #667085; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #b7ebc6; border-radius: 999px; background: #ecfdf3; color: #087a3f; font-size: 13px; font-weight: 700; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px rgba(18,183,106,.12); }
.tabs { display: flex; gap: 4px; margin-bottom: 22px; padding: 4px; width: fit-content; border: 1px solid #dfe5ed; border-radius: 12px; background: #fff; }
.tab { padding: 9px 17px; border: 0; border-radius: 8px; background: transparent; color: #667085; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tab.active { background: #2878eb; color: #fff; box-shadow: 0 3px 10px rgba(40,120,235,.22); }
.view { display: none; }
.view.active { display: block; }
.context { display: grid; grid-template-columns: minmax(230px, 1.7fr) minmax(175px, 1.15fr) minmax(150px, 1fr) minmax(115px, .75fr) minmax(130px, .85fr) minmax(155px, 1fr); overflow: hidden; margin-bottom: 22px; border: 1px solid #e1e7ef; border-radius: 14px; background: #fff; box-shadow: 0 6px 24px rgba(31,42,68,.05); }
.context div { min-width: 0; padding: 16px 20px; border-right: 1px solid #e8edf3; }
.context div:last-child { border: 0; }
.context > div > span { display: block; margin-bottom: 5px; color: #7a8699; font-size: 12px; }
.context strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.context .contact-phone-cell { padding-top: 12px; padding-bottom: 12px; }
.contact-phone-row { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 0 !important; border: 0 !important; }
.contact-phone-row strong { min-width: 0; flex: 1; }
.contact-call-button { display: inline-grid; width: 32px; height: 32px; flex: 0 0 32px; padding: 0; place-items: center; border: 1px solid #b9cff1; border-radius: 9px; background: #eef5ff; color: #175cd3; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, color .15s; }
.contact-call-button:hover:not(:disabled) { border-color: #2878eb; background: #e2edff; box-shadow: 0 3px 10px rgba(40,120,235,.14); }
.contact-call-button:disabled { cursor: not-allowed; opacity: .5; }
.contact-call-button.calling { cursor: wait; color: #0b63ce; }
.contact-call-button.error { border-color: #f0aaa5; background: #fff1f0; color: #b42318; }
.contact-call-button svg { width: 16px; height: 16px; }
.contact-call-button.calling svg { animation: contact-call-pulse .72s ease-in-out infinite alternate; }
@keyframes contact-call-pulse { to { opacity: .42; transform: scale(.88); } }
.context .deal-tags { display: flex; overflow: hidden; align-items: center; gap: 5px; padding: 0; border: 0; white-space: nowrap; }
.deal-tags span { display: inline-block; overflow: hidden; max-width: 150px; padding: 4px 7px; border-radius: 7px; background: #eef4ff; color: #175cd3; font-size: 11px; font-weight: 700; text-overflow: ellipsis; }
.deal-tags em { color: #98a2b3; font-size: 12px; font-style: normal; }
.workspace { display: grid; grid-template-columns: 260px 1fr; min-height: 520px; overflow: hidden; border: 1px solid #e1e7ef; border-radius: 16px; background: #fff; box-shadow: 0 10px 36px rgba(31,42,68,.07); }
aside { padding: 24px 18px; border-right: 1px solid #e8edf3; background: #fafbfc; }
ol { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
li { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 10px; color: #667085; font-size: 14px; font-weight: 600; }
li span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; background: #e9edf3; font-size: 12px; }
li.active { background: #eaf2ff; color: #175cd3; }
li.active span { background: #2878eb; color: #fff; }
article { padding: 48px; }
.placeholder-label { display: inline-block; padding: 7px 10px; border-radius: 8px; background: #fff3df; color: #a55b0a; font-size: 12px; font-weight: 700; }
h2 { margin: 20px 0 10px; font-size: 27px; letter-spacing: -.025em; }
article > p { max-width: 680px; margin: 0; color: #667085; font-size: 16px; line-height: 1.65; }
.empty-state { display: flex; align-items: center; gap: 16px; max-width: 680px; margin-top: 36px; padding: 24px; border: 1px dashed #b9c5d6; border-radius: 14px; background: #f8fafc; }
.empty-state > span { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 13px; background: #e9f1ff; color: #2267cc; font-size: 24px; }
.empty-state strong, .empty-state small { display: block; }
.empty-state small { margin-top: 5px; color: #7a8699; font-size: 13px; }
.restart-button { width: 100%; margin-top: 22px; padding: 10px; border: 1px solid #d4dce7; border-radius: 9px; background: #fff; color: #526067; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.script-player { display: flex; min-height: 520px; flex-direction: column; }
.player-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.script-progress { color: #7a8699; font-size: 12px; font-weight: 700; }
.script-text { max-width: 850px; margin-top: 6px; padding: 26px 28px; border-left: 4px solid #2878eb; border-radius: 0 14px 14px 0; background: #f5f8fd; color: #253047; font-size: 20px; line-height: 1.65; white-space: pre-wrap; }
.script-choices-heading { max-width: 850px; margin: 25px 0 -15px; color: #253047; font-size: 16px; line-height: 1.35; }
.script-choices-heading[hidden] { display: none; }
.script-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 850px; margin-top: 28px; }
.script-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 850px; margin-top: 20px; }
.script-field { display: block; padding: 14px; border: 1px solid #dbe3ed; border-radius: 11px; background: #fff; }
.script-field input, .script-field select { margin-top: 7px; }
.script-field .saving { border-color: #e4a83d; background: #fffaf0; }
.script-field .saved { border-color: #39a963; background: #f1fbf4; }
.task-scheduler { grid-column: 1 / -1; padding: 22px; border: 1px solid #cfdcf0; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(31,42,68,.07); }
.task-scheduler-head strong, .task-scheduler-head small { display: block; }
.task-scheduler-head strong { color: #1d2939; font-size: 17px; }
.task-scheduler-head small { margin-top: 5px; color: #667085; font-size: 12px; }
.task-quick-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 18px; }
.task-date-button { padding: 11px 12px; border: 1px solid #d6deea; border-radius: 10px; background: #fff; color: #344054; font: inherit; text-align: left; cursor: pointer; }
.task-date-button strong, .task-date-button small { display: block; }
.task-date-button strong { font-size: 13px; }
.task-date-button small { margin-top: 3px; color: #7a8699; font-size: 11px; }
.task-date-button:hover, .task-date-button.active { border-color: #2878eb; background: #eef5ff; color: #175cd3; }
.task-date-button:disabled { cursor: not-allowed; opacity: .6; }
.task-quick-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.task-time-button { min-height: 38px; padding: 8px 10px; border: 1px solid #d6deea; border-radius: 9px; background: #fff; color: #344054; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.task-time-button:hover, .task-time-button.active { border-color: #2878eb; background: #eef5ff; color: #175cd3; }
.task-time-button:disabled { cursor: not-allowed; opacity: .6; }
.task-datetime { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.task-datetime.single-field { grid-template-columns: 1fr; }
.task-quick-times[hidden], .task-datetime[hidden] { display: none; }
.task-datetime label { margin: 0; }
.task-datetime label span, .task-summary > span { display: block; margin-bottom: 7px; color: #526078; font-size: 11px; font-weight: 800; }
.task-summary { margin-top: 14px; padding: 13px 14px; border-radius: 10px; background: #f6f8fb; }
.task-summary strong, .task-summary small { display: block; }
.task-summary strong { color: #253047; font-size: 13px; }
.task-summary small { margin-top: 5px; color: #7a8699; font-size: 11px; }
.task-submit-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.task-submit:disabled { cursor: wait; opacity: .65; }
.task-status { color: #667085; font-size: 12px; font-weight: 700; }
.task-status.success { color: #087a3f; }
.task-status.error { color: #c43232; }
.task-status.limit-reached { flex: 1; padding: 12px 14px 12px 42px; border: 1px solid #f5a7a1; border-radius: 10px; background: #fff1f0; color: #b42318; font-size: 13px; line-height: 1.45; position: relative; }
.task-status.limit-reached::before { content: "!"; position: absolute; left: 14px; top: 50%; display: grid; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; place-items: center; font-size: 12px; line-height: 1; transform: translateY(-50%); }
.choice-button { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 18px; border: 1px solid #ccd7e5; border-radius: 12px; background: #fff; color: #344054; font: inherit; text-align: left; cursor: pointer; }
.choice-button:hover { border-color: #2878eb; box-shadow: 0 5px 18px rgba(40,120,235,.12); }
.choice-button span { font-size: 15px; font-weight: 800; }
.choice-button small { grid-column: 1; color: #7a8699; font-size: 12px; }
.choice-button b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #2878eb; font-size: 20px; }
.choice-button b svg { width: 20px; height: 20px; }
.custom-answer-entry { grid-column: 1 / -1; display: grid; gap: 14px; padding: 20px; border: 1px solid #b9cdf0; border-radius: 14px; background: #f7faff; box-shadow: 0 8px 24px rgba(31,42,68,.07); }
.custom-answer-entry strong, .custom-answer-entry small { display: block; }
.custom-answer-entry strong { color: #253047; font-size: 16px; }
.custom-answer-entry small { margin-top: 4px; color: #667085; font-size: 12px; }
.custom-answer-entry textarea { width: 100%; min-height: 92px; resize: vertical; }
.custom-answer-actions { display: flex; align-items: center; gap: 10px; }
.custom-answer-status { color: #667085; font-size: 12px; font-weight: 700; }
.custom-answer-status.error { color: #c43232; }
.scenario-choice-screen { padding: 38px 0 20px; }
.scenario-choice-card { width: min(560px, 100%); margin: 0 auto; padding: 26px; border: 1px solid #dfe6ef; border-radius: 14px; background: #fff; }
.scenario-choice-card h2 { margin: 5px 0 20px; font-size: 22px; }
.scenario-choice-list { display: grid; gap: 8px; }
.scenario-select-button { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 15px; border: 1px solid #d9e1eb; border-radius: 9px; background: #fff; color: #26344a; font: inherit; font-size: 14px; font-weight: 750; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.scenario-select-button:hover { border-color: #9bbcec; background: #f7faff; }
.scenario-select-button b { display: grid; color: #2878eb; place-items: center; }
.scenario-select-button svg { width: 17px; height: 17px; }
.script-finish { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid #b9e5c7; border-radius: 12px; background: #f0fbf4; color: #087a3f; }
.script-finish > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #d9f5e2; font-size: 20px; }
.script-finish > span svg { width: 20px; height: 20px; }
.script-finish strong, .script-finish small { display: block; }
.script-finish small { margin-top: 4px; color: #528368; }
.player-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 32px; }
.player-actions button:disabled { cursor: not-allowed; opacity: .45; }
.settings-card { padding: 30px; border: 1px solid #e1e7ef; border-radius: 16px; background: #fff; box-shadow: 0 10px 36px rgba(31,42,68,.07); }
.connection-card { min-height: 420px; }
.answers-card { min-height: 520px; }
.call-results-card { min-height: 650px; }
.call-results-summary { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 14px; }
.call-results-summary > div { padding: 16px 18px; border: 1px solid #dce5f0; border-radius: 12px; background: #f8faff; }
.call-results-summary span, .call-results-summary strong { display: block; }
.call-results-summary span { margin-bottom: 7px; color: #667085; font-size: 11px; font-weight: 700; }
.call-results-summary strong { color: #172033; font-size: 24px; line-height: 1; }
.call-results-tools { display: grid; grid-template-columns: minmax(300px, 1fr) 240px 190px auto; align-items: center; gap: 10px; margin: 14px 0; }
.call-results-tools select { appearance: none; padding-right: 46px; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 18px 18px; cursor: pointer; }
.call-results-tools span { color: #667085; font-size: 12px; font-weight: 700; white-space: nowrap; }
.call-results-list { display: grid; gap: 10px; }
.call-result-item { overflow: hidden; border: 1px solid #dce5f0; border-radius: 13px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.call-result-item[open] { border-color: #aac9f3; box-shadow: 0 8px 24px rgba(31,42,68,.08); }
.call-result-item > summary { position: relative; display: grid; grid-template-columns: minmax(260px, .85fr) minmax(440px, 1.5fr); align-items: center; gap: 24px; padding: 16px 66px 16px 18px; cursor: pointer; list-style: none; }
.call-result-item > summary::-webkit-details-marker { display: none; }
.call-result-chevron { position: absolute; top: 50%; right: 18px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: #667085; transform: translateY(-50%); transition: color .15s ease, background .15s ease, transform .15s ease; }
.call-result-item > summary:hover .call-result-chevron { background: #f1f5fa; color: #344054; }
.call-result-chevron svg { display: block; width: 18px; height: 18px; }
.call-result-item[open] .call-result-chevron { transform: translateY(-50%) rotate(180deg); }
.call-result-main { min-width: 0; }
.call-result-heading { display: flex; min-width: 0; align-items: center; gap: 9px; }
.call-result-heading > strong { overflow: hidden; color: #172033; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.call-result-main > span { display: block; margin-top: 5px; color: #7a8699; font-size: 11px; }
.call-result-status { display: inline-flex; flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #ecfdf3; color: #087a3f; font-size: 10px; font-weight: 800; }
.call-result-status.active { background: #eef5ff; color: #175cd3; }
.call-result-status.restarted { background: #fff4e5; color: #b54708; }
.call-result-status.switched { background: #f4f0ff; color: #6941c6; }
.call-result-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; min-width: 0; color: #526078; font-size: 11px; }
.call-result-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-result-meta a { color: #175cd3; font-weight: 700; text-decoration: none; }
.call-result-meta a:hover { text-decoration: underline; }
.call-result-meta-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.call-result-meta-item small { color: #98a2b3; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.call-result-meta-item em { color: #98a2b3; font-size: 10px; font-style: normal; font-weight: 600; }
.call-result-body { padding: 0 18px 20px; border-top: 1px solid #edf0f5; background: #fbfcfe; }
.call-result-reason { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #f0f5ff; color: #475467; font-size: 12px; }
.call-result-timeline { position: relative; margin: 0; padding: 18px 0 0; list-style: none; }
.call-result-timeline::before { position: absolute; top: 24px; bottom: 8px; left: 6px; width: 2px; background: #dce6f2; content: ''; }
.call-result-event { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; padding: 0 0 16px; }
.call-event-dot { z-index: 1; width: 10px; height: 10px; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: #7a9bc4; box-shadow: 0 0 0 2px #cbd9ea; }
.call-result-event.transition .call-event-dot { background: #2878eb; box-shadow: 0 0 0 2px #b8d4fa; }
.call-result-event.action .call-event-dot { background: #7f56d9; box-shadow: 0 0 0 2px #d9cdf5; }
.call-result-event.completed .call-event-dot { background: #12b76a; box-shadow: 0 0 0 2px #b7e8cf; }
.call-result-event strong { display: block; color: #344054; font-size: 12px; }
.call-result-event p { margin: 3px 0 0; color: #667085; font-size: 11px; }
.call-result-event time { color: #98a2b3; font-size: 10px; white-space: nowrap; }
.task-control-card { min-height: 620px; }
.task-control-tools { display: grid; grid-template-columns: minmax(260px, 1fr) 220px 220px auto; align-items: center; gap: 12px; margin: 22px 0 14px; }
.task-control-tools span { color: #667085; font-size: 12px; font-weight: 700; white-space: nowrap; }
.task-control-section-title { margin: 24px 0 10px; color: #172033; font-size: 15px; }
.task-control-section-title:first-of-type { margin-top: 12px; }
.task-control-table td:last-child { width: 96px; text-align: right; }
.task-control-table .task-usage { white-space: nowrap; }
.task-control-table .task-usage strong { display: block; color: #175cd3; }
.task-control-table .task-usage small { display: block; margin-top: 3px; color: #6941c6; font-weight: 700; }
.task-control-table .task-usage.limit-reached strong { color: #b42318; }
.task-control-table .task-usage.reset strong { color: #667085; }
.task-reset-button { padding: 8px 11px; }
.task-reset-button:disabled { opacity: .45; cursor: not-allowed; }
.task-event-type { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #edf4ff; color: #175cd3; font-size: 11px; font-weight: 800; white-space: nowrap; }
.task-event-type.reset { background: #fff4e5; color: #b54708; }
.task-event-type.scheduled { background: #f4f0ff; color: #6941c6; }
.task-events-table td:nth-child(5) { white-space: nowrap; }
.answers-tools { display: flex; align-items: center; gap: 16px; margin: 22px 0 14px; }
.answers-tools input { width: min(560px, 100%); }
.answers-tools span { color: #667085; font-size: 12px; font-weight: 700; white-space: nowrap; }
.answers-table-wrap { overflow: auto; border: 1px solid #e1e7ef; border-radius: 12px; }
.answers-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.answers-table th { padding: 12px 14px; background: #f7f9fc; color: #667085; font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.answers-table td { max-width: 360px; padding: 14px; border-top: 1px solid #e8edf3; color: #344054; vertical-align: top; }
.answers-table td:first-child { width: 145px; color: #667085; white-space: nowrap; }
.answers-table .answer-value { color: #172033; font-weight: 650; white-space: pre-wrap; }
.answers-table a { color: #175cd3; font-weight: 700; text-decoration: none; }
.answers-table a:hover { text-decoration: underline; }
.answers-table td strong, .answers-table td small { display: block; }
.answers-table td small { margin-top: 4px; color: #7a8699; }
@media (max-width: 1100px) { .call-results-summary { grid-template-columns: 1fr 1fr; } .call-results-tools, .call-result-item > summary { grid-template-columns: 1fr; } .call-result-meta { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .task-control-tools { grid-template-columns: 1fr; } }
.settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid #e8edf3; }
.settings-head h2 { margin: 0 0 8px; }
.settings-head p:last-child, .editor-title p { margin: 0; color: #667085; font-size: 14px; }
.amo-connection { display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(220px, .8fr) minmax(300px, 1.2fr); align-items: end; gap: 16px; margin-top: 22px; padding: 20px; border: 1px solid #cfe0f6; border-radius: 13px; background: #f5f9ff; }
.amo-connection h3 { margin: 0 0 5px; }
.amo-connection p:last-child { margin: 0; color: #667085; font-size: 12px; }
.amo-connection label { margin: 0; }
.subdomain-input { display: flex; align-items: center; }
.subdomain-input input { border-radius: 10px 0 0 10px; }
.subdomain-input b { padding: 12px 10px; border: 1px solid #ccd5e0; border-left: 0; border-radius: 0 10px 10px 0; background: #fff; color: #667085; font-size: 13px; white-space: nowrap; }
.connection-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
#amo-connection-status { color: #526067; font-size: 12px; font-weight: 700; }
.responsible-mapping { margin-top: 22px; padding: 22px; border: 1px solid #e1e7ef; border-radius: 13px; background: #fff; }
.mapping-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.mapping-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
#custom-mapping-status { color: #087a3f; font-size: 12px; font-weight: 700; }
.mapping-head h3 { margin: 0 0 6px; }
.mapping-head p:last-child { max-width: 760px; margin: 0; color: #667085; font-size: 12px; }
.mapping-columns, .mapping-row { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) 34px; align-items: center; gap: 12px; }
.mapping-columns { margin-top: 22px; padding: 0 2px 8px; color: #667085; font-size: 12px; font-weight: 700; }
.mapping-list { display: grid; gap: 9px; }
.mapping-row select, .mapping-row input { min-width: 0; }
.mapping-select { position: relative; min-width: 0; }
.mapping-select select { appearance: none; padding-right: 42px; cursor: pointer; }
.mapping-select svg { position: absolute; top: 50%; right: 14px; width: 17px; height: 17px; color: #667085; pointer-events: none; transform: translateY(-50%); }
.mapping-remove { width: 34px; height: 34px; }
.mapping-empty { margin: 10px 0 0; padding: 18px; border: 1px dashed #d8e0ea; border-radius: 10px; color: #98a2b3; font-size: 13px; text-align: center; }
.mapping-empty.compact { margin: 0; padding: 14px; }
.custom-mapping-list { display: grid; gap: 16px; margin-top: 22px; }
.custom-mapping-card { padding: 18px; border: 1px solid #d8e1ec; border-radius: 12px; background: #f9fbfd; }
.custom-mapping-top { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(220px, .8fr) 34px; align-items: end; gap: 12px; }
.custom-mapping-delete { align-self: end; }
.mapping-variable { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.mapping-variable input { border-radius: 0; }
.mapping-variable b { align-self: stretch; display: grid; place-items: center; padding: 0 10px; border: 1px solid #ccd5e0; background: #f2f5f8; color: #667085; font-size: 14px; }
.mapping-variable b:first-child { border-right: 0; border-radius: 10px 0 0 10px; }
.mapping-variable b:last-child { border-left: 0; border-radius: 0 10px 10px 0; }
.custom-source-label { display: block; margin-top: 16px; }
.custom-source-picker { position: relative; }
.custom-source-menu { position: absolute; z-index: 40; top: calc(100% + 5px); left: 0; width: min(560px, 100%); max-height: 330px; overflow: auto; padding: 7px; border: 1px solid #ccd6e2; border-radius: 11px; background: #fff; box-shadow: 0 14px 38px rgba(31,42,68,.2); }
.mapping-source-group > strong { display: block; padding: 8px 9px 5px; color: #98a2b3; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.mapping-source-group > button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #344054; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.mapping-source-group > button:hover { background: #eaf2ff; color: #175cd3; }
.custom-rules-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e1e7ef; }
.custom-rules-head strong, .custom-rules-head small { display: block; }
.custom-rules-head small { margin-top: 3px; color: #7a8699; font-size: 11px; }
.custom-rules-head svg { width: 15px; height: 15px; }
.custom-rules-list { display: grid; gap: 8px; margin-top: 12px; }
.custom-rule-row { display: grid; grid-template-columns: minmax(220px, 1fr) 22px minmax(220px, 1fr) 34px; align-items: center; gap: 8px; }
.custom-rule-arrow { display: grid; place-items: center; color: #98a2b3; }
.custom-rule-arrow svg { width: 16px; height: 16px; }
.custom-fallback { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(240px, 1fr); gap: 12px; max-width: 850px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e1e7ef; }
.save-status { min-height: 20px; color: #087a3f; font-size: 13px; font-weight: 700; text-align: right; }
.save-status.error { color: #c43232; }
.form-grid { display: grid; gap: 22px; max-width: 720px; padding: 28px 0; }
label > span { display: block; margin-bottom: 8px; color: #344054; font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; padding: 11px 13px; border: 1px solid #ccd5e0; border-radius: 10px; outline: 0; color: #172033; background: #fff; font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: #2878eb; box-shadow: 0 0 0 3px rgba(40,120,235,.12); }
.stages-editor { padding-top: 26px; border-top: 1px solid #e8edf3; }
.editor-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.editor-title h3 { margin: 0 0 5px; font-size: 17px; }
.stage-rows { display: grid; gap: 9px; max-width: 720px; margin-top: 20px; }
.stage-row { display: grid; grid-template-columns: 34px 1fr 38px; align-items: center; gap: 10px; }
.stage-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #eaf2ff; color: #175cd3; font-size: 12px; font-weight: 800; }
.remove-stage { width: 36px; height: 36px; border: 0; border-radius: 9px; background: #fff0f0; color: #c43232; font-size: 22px; cursor: pointer; }
.primary-button, .secondary-button { border-radius: 10px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.primary-button { padding: 11px 18px; border: 0; background: #2878eb; color: #fff; box-shadow: 0 5px 14px rgba(40,120,235,.2); }
.secondary-button { padding: 9px 13px; border: 1px solid #cad5e2; background: #fff; color: #344054; }
.secondary-button:disabled { cursor: not-allowed; opacity: .45; }
.with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.button-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.undo-button { display: grid; width: 36px; height: 34px; padding: 0; flex: 0 0 36px; place-items: center; }
.undo-button svg, .editor-expand-button svg { width: 17px; height: 17px; flex: 0 0 auto; pointer-events: none; }
.form-actions { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e8edf3; }
.scenario-section-tabs { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-bottom: 14px; border-bottom: 1px solid #e1e7ef; }
.scenario-save-actions { display: flex; min-width: 280px; align-items: center; justify-content: flex-end; gap: 12px; }
.scenario-section-switch { display: inline-flex; padding: 4px; border: 1px solid #d7e0eb; border-radius: 11px; background: #f5f8fc; }
.scenario-section-switch button { min-width: 130px; padding: 9px 18px; border: 0; border-radius: 8px; background: transparent; color: #667085; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.scenario-section-switch button.active { background: #fff; color: #175cd3; box-shadow: 0 2px 8px rgba(31,65,113,.12); }
.scenario-meta { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.5fr); align-items: end; gap: 14px; padding: 22px 0; }
.scenario-manager { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; align-items: end; gap: 14px; margin-top: 22px; padding: 18px; border: 1px solid #d8e2ef; border-radius: 13px; background: #f6f9fd; }
.scenario-manager-head { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 15px; border-bottom: 1px solid #dfe7f1; }
.scenario-manager-head strong, .scenario-manager-head small { display: block; }
.scenario-manager-head strong { color: #172033; font-size: 15px; }
.scenario-manager-head small { margin-top: 4px; color: #7a8699; font-size: 11px; }
.scenario-picker { min-width: 0; }
.scenario-manager-actions { display: flex; align-items: center; gap: 8px; }
.scenario-manager-actions .icon-danger:disabled { cursor: not-allowed; opacity: .4; }
.scenario-flag { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 10px; border: 1px solid #d4dde8; border-radius: 10px; background: #fff; cursor: pointer; white-space: nowrap; }
.scenario-flag input { width: 16px; height: 16px; margin: 0; accent-color: #2878eb; }
.scenario-flag span { margin: 0; font-size: 12px; }
.scenario-icon-button { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; }
.scenario-icon-button svg { width: 17px; height: 17px; }
.scenario-conditions { margin: 22px 0 0; min-height: 420px; padding: 26px; border: 1px solid #dfe6ef; border-radius: 13px; background: #fff; }
.condition-head, .condition-head > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.condition-head strong, .condition-head small { display: block; }
.condition-head strong { font-size: 17px; }
.condition-head small { margin-top: 5px; color: #7a8699; font-size: 12px; }
.condition-list { display: grid; gap: 9px; margin-top: 24px; }
.condition-row { display: grid; grid-template-columns: minmax(260px, 1.2fr) minmax(180px, .65fr) minmax(260px, 1fr) 38px; align-items: center; gap: 10px; }
.condition-row input, .condition-row select, .condition-no-value { min-height: 48px; border-radius: 7px; font-size: 15px; }
.condition-row .icon-danger { width: 38px; height: 38px; border: 0; background: transparent; }
.condition-row .custom-source-menu { width: max(420px, 100%); }
.stage-multiselect-trigger { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; overflow: hidden; border: 1px solid #ccd5e0; border-radius: 7px; background: #fff; color: #172033; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.stage-multiselect-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-multiselect-trigger svg { width: 17px; height: 17px; flex: 0 0 auto; color: #667085; }
.stage-multiselect-menu { width: max(460px, 100%) !important; padding: 10px; }
.stage-multiselect-menu > input { position: sticky; z-index: 2; top: 0; min-height: 42px; margin-bottom: 7px; background: #fff; }
.stage-options { display: grid; gap: 5px; }
.stage-option-group > strong { display: block; padding: 10px 9px 5px; color: #98a2b3; font-size: 10px; text-transform: uppercase; }
.stage-option { display: flex; width: 100%; min-height: 38px; align-items: center; gap: 9px; padding: 8px 9px; border: 0; border-radius: 7px; background: #fff; color: #344054; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.stage-option:hover { background: #f0f6ff; }
.stage-option input { width: 16px; min-height: 16px; height: 16px; margin: 0; accent-color: #2878eb; pointer-events: none; }
.condition-no-value { padding: 11px 13px; border: 1px dashed #d5dde7; border-radius: 10px; color: #98a2b3; font-size: 12px; }
.condition-add-button { display: grid; width: 44px; height: 44px; margin-top: 12px; padding: 0; place-items: center; border: 1px solid #ccd5e0; border-radius: 7px; background: #fff; color: #344054; cursor: pointer; }
.condition-add-button:hover { border-color: #8db5ed; color: #2878eb; }
.condition-add-button svg { width: 18px; height: 18px; }
.flow-editor { position: relative; display: grid; grid-template-columns: minmax(650px, 1fr) 420px; min-height: 650px; overflow: hidden; border: 1px solid #dfe6ef; border-radius: 14px; }
.flow-area { min-width: 0; background: #f6f8fb; }
.flow-editor:fullscreen { width: 100vw; height: 100vh; min-height: 0; border: 0; border-radius: 0; background: #fff; }
.flow-editor:fullscreen .flow-area { display: flex; min-height: 0; flex-direction: column; }
.flow-editor:fullscreen .flow-viewport { height: auto; min-height: 0; flex: 1; }
.flow-editor:fullscreen .node-inspector { height: 100vh; }
.editor-expand-button { display: grid; width: 36px; height: 34px; padding: 0; flex: 0 0 36px; place-items: center; border: 1px solid #cbd6e3; border-radius: 9px; background: #fff; color: #52667f; font-size: 16px; cursor: pointer; transition: color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.editor-expand-button:hover { border-color: #8db5ed; color: #2878eb; box-shadow: 0 7px 20px rgba(40,120,235,.2); transform: translateY(-1px); }
.editor-expand-button:focus-visible { outline: 3px solid rgba(40,120,235,.2); outline-offset: 2px; }
.flow-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; padding: 12px 16px; border-bottom: 1px solid #dfe6ef; background: #fff; }
.flow-toolbar strong, .flow-toolbar small { display: block; }
.flow-toolbar small { margin-top: 4px; color: #7a8699; font-size: 12px; }
.flow-viewport { height: 584px; overflow: auto; cursor: grab; background-color: #f7f9fc; background-image: radial-gradient(#cad4e2 1px, transparent 1px); background-size: 20px 20px; }
.flow-viewport.is-panning { cursor: grabbing; user-select: none; }
.flow-canvas { position: relative; width: 1900px; height: 760px; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.edge-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; }
.edge-path { fill: none; stroke: #9aabc0; stroke-width: 2.2; pointer-events: stroke; cursor: pointer; transition: opacity .16s, stroke .16s, stroke-width .16s; }
.edge-path.is-overview { stroke: #899bb2; stroke-width: 1.8; opacity: .72; }
.edge-path.is-muted { opacity: .42; }
.edge-path.is-focused { stroke: #6f8fb8; stroke-width: 2.6; }
.edge-path.is-active { stroke: #2878eb; stroke-width: 4; opacity: 1; filter: drop-shadow(0 2px 4px rgba(40,120,235,.28)); }
#arrow path { fill: #7187a4; }
#action-arrow path { fill: #7c3aed; }
.edge-path.is-action { stroke: #7c3aed; stroke-width: 2.6; stroke-dasharray: 9 6; opacity: .86; }
.edge-path.is-action.is-muted { opacity: .58; }
.edge-path.is-action.is-focused, .edge-path.is-action.is-active { stroke: #6d28d9; stroke-width: 3.5; opacity: 1; filter: drop-shadow(0 2px 4px rgba(109,40,217,.22)); }
.edge-label { pointer-events: all; cursor: pointer; transition: opacity .16s; }
.edge-label.is-overview { opacity: .9; }
.edge-label.is-muted { opacity: .52; }
.edge-label.is-active rect { fill: #eaf3ff; stroke: #2878eb; stroke-width: 1.5px; }
.edge-label.is-active text { fill: #175cd3; }
.edge-label rect { fill: #fff; stroke: #b8c6d8; stroke-width: 1px; filter: drop-shadow(0 2px 4px rgba(46,61,84,.12)); }
.edge-label text { fill: #344054; text-anchor: middle; font-size: 11px; font-weight: 800; }
.edge-label.is-action rect { fill: #f6f0ff; stroke: #a78bfa; }
.edge-label.is-action text { fill: #6d28d9; }
.edge-label.is-action.is-muted { opacity: .7; }
.toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.canvas-zoom-controls { display: inline-flex; height: 34px; overflow: hidden; flex: 0 0 auto; border: 1px solid #cbd6e3; border-radius: 9px; background: #fff; }
.canvas-zoom-button, .canvas-zoom-value { display: grid; height: 32px; padding: 0; place-items: center; border: 0; background: #fff; color: #52667f; cursor: pointer; transition: background .15s, color .15s; }
.canvas-zoom-button { width: 34px; }
.canvas-zoom-button svg { width: 16px; height: 16px; }
.canvas-zoom-value { min-width: 50px; padding: 0 7px; border-right: 1px solid #e1e7ef; border-left: 1px solid #e1e7ef; color: #344054; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.canvas-zoom-button:hover, .canvas-zoom-value:hover { background: #eef5ff; color: #175cd3; }
.canvas-zoom-button:disabled { background: #f7f9fc; color: #b8c2d0; cursor: default; }
.canvas-zoom-button:focus-visible, .canvas-zoom-value:focus-visible { position: relative; z-index: 1; outline: 2px solid rgba(40,120,235,.28); outline-offset: -2px; }
.edge-delete-button { display: grid; width: 36px; height: 34px; padding: 0; flex: 0 0 36px; place-items: center; border-color: #f0c7c7; background: #fff5f5; color: #c43232; }
.edge-delete-button[hidden] { display: none; }
.edge-delete-button svg { width: 17px; height: 17px; }
.edge-delete-button:hover { border-color: #dc6969; background: #ffe9e9; color: #ad2525; box-shadow: 0 7px 20px rgba(196,50,50,.16); transform: translateY(-1px); }
.edge-delete-button:focus-visible { outline: 3px solid rgba(196,50,50,.18); outline-offset: 2px; }
.fullscreen-save-button { display: none; }
.fullscreen-save-status { display: none; min-height: 0; padding: 7px 10px; border-radius: 8px; background: #eaf8ef; color: #087a3f; font-size: 11px; line-height: 1; white-space: nowrap; }
.fullscreen-save-status.error { background: #fff0f0; color: #c43232; }
.fullscreen-save-status:empty { display: none !important; }
.flow-editor:fullscreen .fullscreen-save-button { display: inline-flex; }
.flow-editor:fullscreen .fullscreen-save-status { display: inline-flex; align-items: center; }
.flow-node { position: absolute; width: 230px; height: 112px; padding: 15px 18px; border: 2px solid #cfd8e5; border-radius: 13px; background: #fff; color: #172033; box-shadow: 0 8px 22px rgba(46,61,84,.1); text-align: left; cursor: grab; touch-action: none; user-select: none; transition: opacity .16s, filter .16s, border-color .16s, box-shadow .16s; }
.flow-node.connected { border-color: #83aee9; box-shadow: 0 0 0 3px rgba(40,120,235,.08), 0 8px 22px rgba(46,61,84,.1); }
.flow-node:hover { border-color: #92b7ee; box-shadow: 0 10px 26px rgba(37,93,170,.14); }
.flow-node.selected { border-color: #2878eb; box-shadow: 0 0 0 4px rgba(40,120,235,.13), 0 10px 28px rgba(37,93,170,.16); }
.flow-node.dragging { cursor: grabbing; opacity: .92; z-index: 3; }
.flow-node .node-kind { display: inline-block; margin-bottom: 9px; padding: 3px 7px; border-radius: 6px; background: #eaf2ff; color: #175cd3; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.flow-node.type-client { border-color: #e2bd73; background: #fffdf7; }
.flow-node.type-client .node-kind { background: #fff0d8; color: #a85b00; }
.flow-node.type-manager .node-kind { background: #eaf2ff; color: #175cd3; }
.flow-node.has-task-action { border-color: #a8b8e8; box-shadow: inset 0 3px 0 #8b5cf6, 0 8px 20px rgba(37,93,170,.09); }
.node-task-badge { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 9px 5px; padding: 3px 7px; border-radius: 6px; background: #f1eafe; color: #6d28d9; font-size: 10px; font-weight: 800; text-transform: uppercase; vertical-align: top; }
.node-task-badge svg { width: 11px; height: 11px; }
.flow-node.type-task { border-color: #b9a5e8; background: #fdfbff; }
.flow-node.type-task .node-kind { background: #f1eafe; color: #6d28d9; }
.flow-node.selected { border-color: #2878eb; box-shadow: 0 0 0 5px rgba(40,120,235,.16), 0 12px 30px rgba(37,93,170,.22); opacity: 1; filter: none; }
.flow-node strong, .flow-node small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-node strong { margin-bottom: 5px; font-size: 14px; }
.flow-node small { color: #7a8699; font-size: 11px; }
.node-actions { position: absolute; z-index: 4; top: 7px; right: 7px; display: flex; gap: 4px; opacity: 0; transform: translateY(-2px); transition: opacity .15s, transform .15s; }
.flow-node:hover .node-actions, .flow-node.selected .node-actions, .flow-node:focus-within .node-actions { opacity: 1; transform: none; }
.node-action { display: grid; width: 27px; height: 27px; padding: 0; place-items: center; border: 1px solid #d7e0eb; border-radius: 7px; background: rgba(255,255,255,.96); color: #667085; box-shadow: 0 2px 7px rgba(31,42,68,.1); cursor: pointer; }
.node-action:hover { border-color: #9db9df; color: #175cd3; }
.node-action.delete:hover { border-color: #efaaaa; background: #fff5f5; color: #c43232; }
.node-action svg { width: 14px; height: 14px; pointer-events: none; }
.node-port { position: absolute; z-index: 5; left: calc(50% - 7px); bottom: -8px; width: 14px; height: 14px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #7187a4; box-shadow: 0 0 0 1px #8fa1b8; cursor: crosshair; transition: background .15s, box-shadow .15s, transform .15s; }
.node-port:hover, .flow-node.connection-source .node-port { background: #2878eb; box-shadow: 0 0 0 4px rgba(40,120,235,.2); transform: scale(1.25); }
.flow-node.connection-target { border-color: #2878eb; box-shadow: 0 0 0 6px rgba(40,120,235,.2), 0 12px 30px rgba(37,93,170,.2); }
.flow-connecting .flow-node:not(.connection-source) { cursor: crosshair; }
.connection-preview { fill: none; stroke: #2878eb; stroke-width: 3; stroke-dasharray: 8 5; opacity: .95; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(40,120,235,.25)); }
.flow-node::before { position: absolute; left: calc(50% - 6px); top: -7px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #9aabc0; box-shadow: 0 0 0 1px #a9b7c8; content: ''; }
.node-inspector { overflow: auto; padding: 22px; border: 0; border-left: 1px solid #dfe6ef; background: #fff; }
.inspector-empty { display: grid; min-height: 500px; place-content: center; color: #7a8699; text-align: center; }
.inspector-empty > span { color: #a8b6c8; font-size: 42px; }
.inspector-empty strong { margin: 10px 0 5px; color: #344054; }
.inspector-empty p { max-width: 240px; margin: 0; font-size: 13px; line-height: 1.5; }
.inspector-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid #e8edf3; }
.inspector-heading h3 { margin: 0; }
.node-inspector label { display: block; margin-bottom: 18px; }
.variable-insert { display: grid; grid-template-columns: 1fr; gap: 8px; margin: -8px 0 20px; }
.variable-insert > button { width: 100%; white-space: nowrap; }
.picker-combobox { position: relative; min-width: 0; }
.picker-combobox > input { width: 100%; }
.compact-picker-results { position: fixed; z-index: 300; width: 360px; max-height: 360px; overflow: auto; padding: 7px; border: 1px solid #ccd6e2; border-radius: 11px; background: #fff; box-shadow: 0 14px 38px rgba(31,42,68,.22); }
#field-combobox { position: fixed; z-index: 300; padding: 8px; border: 1px solid #ccd6e2; border-radius: 12px; background: #fff; box-shadow: 0 14px 38px rgba(31,42,68,.22); }
#field-combobox > input { margin-bottom: 7px; padding: 10px 12px; }
#field-combobox .compact-picker-results { position: static; width: auto !important; max-height: 330px; padding: 0; border: 0; border-radius: 8px; box-shadow: none; }
.variable-result-group > strong { display: block; padding: 8px 9px 5px; color: #98a2b3; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.variable-result-group > button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #344054; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.variable-result-group > button:hover { background: #eaf2ff; color: #175cd3; }
.variable-empty { padding: 24px 10px; color: #98a2b3; font-size: 12px; text-align: center; }
.node-fields-editor { margin: 0 0 20px; padding: 18px 0; border-top: 1px solid #e8edf3; border-bottom: 1px solid #e8edf3; }
.node-actions-editor { margin: 0 0 20px; padding: 18px 0; border-top: 1px solid #e8edf3; }
.node-actions-editor > .no-transitions { margin: -5px 0 12px; }
.node-action-card { margin-top: 10px; padding: 13px; border: 1px solid #d9e3f0; border-radius: 12px; background: #f8faff; }
.task-limit-card { margin: 10px 0 14px; padding: 13px; border: 1px solid #cddbf0; border-radius: 12px; background: #f4f8ff; }
.task-limit-card label { display: grid; grid-template-columns: 1fr 76px; align-items: center; gap: 12px; }
.task-limit-card label span { color: #344054; font-size: 12px; font-weight: 800; }
.task-limit-card input { text-align: center; }
.task-limit-card small { display: block; margin-top: 8px; color: #7a8699; font-size: 10px; line-height: 1.4; }
.task-offset-settings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: -4px 0 16px; padding: 12px; border: 1px solid #ded6f5; border-radius: 10px; background: #fbf9ff; }
.task-offset-settings[hidden] { display: none; }
.task-offset-settings > strong { grid-column: 1 / -1; color: #526078; font-size: 11px; }
.task-offset-settings label { margin: 0; }
.task-offset-settings label > span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-offset-settings input { min-width: 0; padding-right: 5px; padding-left: 7px; text-align: center; }
.task-offset-settings > small { grid-column: 1 / -1; color: #7a8699; font-size: 10px; line-height: 1.35; }
.automatic-task { border-color: #cfc2ef; background: #fdfbff; }
.node-action-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.node-action-card-head strong { color: #344054; font-size: 13px; }
.node-action-card-head .icon-danger { width: 28px; height: 28px; }
.node-action-card label { margin-bottom: 12px; }
.node-action-card label > span { display: block; margin-bottom: 6px; color: #526078; font-size: 11px; font-weight: 800; }
.node-action-card textarea { min-height: 86px; font-size: 12px; }
.action-variable-hint { display: block; margin-top: -4px; color: #7a8699; font-size: 10px; line-height: 1.45; }
.field-picker-group h3 { position: sticky; top: 0; z-index: 1; margin: 0 -7px 4px; padding: 10px 12px 7px; background: #fff; color: #667085; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.field-picker-group button { display: grid; width: 100%; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: #344054; text-align: left; cursor: pointer; }
.field-picker-group button:hover { background: #edf4ff; color: #175cd3; }
.field-picker-group button span { font-size: 13px; font-weight: 700; }
.field-picker-group button small { color: #98a2b3; font-size: 10px; }
.field-picker-group button b { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 18px; }
.field-picker-group button b svg { width: 18px; height: 18px; }
.picker-empty { padding: 45px 20px; color: #98a2b3; text-align: center; }
.node-field-row { display: grid; grid-template-columns: .8fr 1.2fr 28px; gap: 6px; margin-top: 8px; }
.node-field-row input, .node-field-row select, .field-select-button { min-width: 0; padding: 8px; font-size: 11px; }
.field-select-button { overflow: hidden; border: 1px solid #ccd5e0; border-radius: 10px; background: #fff; color: #172033; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.field-select-button:hover { border-color: #2878eb; }
.node-field-row > button:last-child { width: 27px; height: 27px; padding: 0; align-self: center; border: 0; border-radius: 7px; background: #fff0f0; color: #c43232; cursor: pointer; }
select { width: 100%; padding: 11px 13px; border: 1px solid #ccd5e0; border-radius: 10px; background: #fff; color: #172033; font: inherit; font-size: 14px; }
.icon-danger { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #fff0f0; color: #c43232; font-size: 22px; cursor: pointer; }
.icon-danger svg, .node-field-row button svg, .transition-row button svg { width: 15px; height: 15px; pointer-events: none; }
.icon-danger { display: grid; padding: 0; place-items: center; }
.transitions { padding-top: 18px; border-top: 1px solid #e8edf3; }
.inspector-subhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.inspector-subhead button { border: 0; background: transparent; color: #175cd3; font-size: 12px; font-weight: 800; cursor: pointer; }
.transition-row { display: grid; grid-template-columns: 25px minmax(95px, .85fr) 16px minmax(130px, 1.25fr) 30px 28px; align-items: center; gap: 6px; margin-bottom: 8px; padding: 7px; border: 1px solid #e1e8f0; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s ease, box-shadow .15s ease; }
.transition-row:hover { border-color: #cbd8e8; box-shadow: 0 3px 9px rgba(16, 24, 40, .07); }
.transition-row.sorting-source { display: none; }
.transition-drag-preview { position: fixed; z-index: 10010; margin: 0; border-color: #91bfff; box-shadow: 0 14px 30px rgba(16, 24, 40, .22); pointer-events: none; opacity: .97; }
.transition-sorting, .transition-sorting * { cursor: grabbing !important; user-select: none !important; }
.transition-placeholder { box-sizing: border-box; margin-bottom: 8px; border: 2px dashed #63a3f5; border-radius: 10px; background: #eef6ff; box-shadow: inset 0 0 0 1px rgba(40, 120, 235, .06); }
.transition-row input { padding: 8px; font-size: 12px; }
.transition-target-picker { position: relative; min-width: 0; }
.transition-target-button { display: flex; width: 100%; min-width: 0; height: 34px; align-items: center; justify-content: space-between; gap: 5px; padding: 7px 8px; border: 1px solid #ccd5e0; border-radius: 9px; background: #fff; color: #172033; font: inherit; font-size: 11px; cursor: pointer; }
.transition-target-button:hover, .transition-target-button[aria-expanded="true"] { border-color: #8db5ed; box-shadow: 0 0 0 2px rgba(40,120,235,.08); }
.transition-target-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transition-target-button svg { width: 15px; height: 15px; flex: 0 0 auto; color: #172033; }
.transition-target-menu { position: fixed; z-index: 10020; padding: 8px; border: 1px solid #ccd6e2; border-radius: 12px; background: #fff; box-shadow: 0 16px 42px rgba(31,42,68,.24); }
.transition-target-menu[hidden] { display: none; }
.transition-target-search { width: 100%; margin-bottom: 7px; padding: 10px 11px !important; border-radius: 8px; font-size: 12px !important; }
.transition-target-options { max-height: 320px; overflow: auto; }
.transition-target-option { display: grid; width: 100%; gap: 2px; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: #344054; font: inherit; text-align: left; cursor: pointer; }
.transition-target-option:hover { background: #edf4ff; color: #175cd3; }
.transition-target-option.is-selected { background: #e5f0ff; color: #175cd3; }
.transition-target-option small { color: #98a2b3; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.transition-target-option strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.transition-target-empty { margin: 0; padding: 24px 10px; color: #98a2b3; font-size: 12px; text-align: center; }
.action-next-picker .transition-target-button { height: 40px; padding: 9px 11px; font-size: 12px; }
.action-next-picker .transition-target-menu { min-width: 320px; }
.salesbot-picker .transition-target-button { height: 40px; padding: 9px 11px; font-size: 12px; }
.salesbot-picker .transition-target-menu { min-width: 360px; }
.transition-connector { display: grid; width: 16px; height: 28px; place-items: center; color: #667085; }
.transition-connector svg { width: 15px; height: 15px; }
.transition-open { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 1px solid #bfd2ed; border-radius: 8px; background: #eef5ff; color: #175cd3; cursor: pointer; }
.transition-open:hover, .transition-open:focus-visible { border-color: #2878eb; background: #dcecff; color: #0b56bd; outline: none; box-shadow: 0 0 0 3px rgba(40,120,235,.12); }
.transition-open svg { width: 15px; height: 15px; }
.transition-row:has(.transition-open:hover) { border-color: #8db5ed; box-shadow: 0 0 0 2px rgba(40,120,235,.08); }
.transition-row .transition-drag { display: grid; width: 25px; height: 32px; padding: 0; place-items: center; border: 1px solid #e1e8f0; border-radius: 8px; background: #f8fafc; color: #98a2b3; cursor: grab; }
.transition-row .transition-drag:hover, .transition-row .transition-drag:focus-visible { background: #eef4ff; color: #2878eb; outline: none; }
.transition-row .transition-drag:active { cursor: grabbing; }
.transition-row .transition-delete { width: 27px; height: 27px; border: 0; border-radius: 7px; background: #fff0f0; color: #c43232; cursor: pointer; }
.no-transitions { margin: 0; color: #98a2b3; font-size: 12px; }
@media (max-width: 720px) { .shell { padding: 20px; } .header { align-items: flex-start; flex-direction: column; } .context { grid-template-columns: 1fr; } .context div { border-right: 0; border-bottom: 1px solid #e8edf3; } .workspace { grid-template-columns: 1fr; } aside { display: none; } article { padding: 28px; } .script-text { font-size: 17px; } .task-quick-times { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1050px) { .scenario-meta, .scenario-manager { grid-template-columns: 1fr; } .scenario-manager-actions { flex-wrap: wrap; } .condition-head { align-items: stretch; flex-direction: column; } .condition-row { grid-template-columns: 1fr 1fr 34px; } .condition-row > :first-child { grid-column: 1 / -1; } .flow-editor { grid-template-columns: 1fr; } .node-inspector { display: block; min-height: 420px; border-left: 0; border-top: 1px solid #dfe6ef; } }
@media (max-width: 1200px) { .amo-connection { grid-template-columns: 1fr; } .connection-actions { grid-column: 1; } }
@media (max-width: 760px) { .mapping-head, .mapping-actions { align-items: stretch; flex-direction: column; } .mapping-columns { display: none; } .mapping-row { grid-template-columns: 1fr 34px; padding-top: 12px; border-top: 1px solid #e8edf3; } .mapping-select { grid-column: 1 / -1; } .custom-mapping-top, .custom-fallback { grid-template-columns: 1fr; } .custom-mapping-delete { position: absolute; right: 18px; } .custom-mapping-card { position: relative; } .custom-rule-row { grid-template-columns: 1fr 24px; } .custom-rule-row > :nth-child(3) { grid-column: 1; } .custom-rule-row > :nth-child(4) { grid-column: 2; grid-row: 2; } }
