@font-face {
  font-family:Inter;
  src:local("Inter");
  font-display:swap
}

:root {
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#242436;
  background:#f7f8fb;
  font-synthesis:none;
  --purple:#7356dc;
  --muted:#858597;
  --border:#e9e9f0;
  --green:#279c71;
  --red:#d45668;
  --sidebar:230px
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  font-size:14px
}

button,input,select,textarea {
  font:inherit
}

button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

a {
  color:var(--purple);
  text-decoration:none
}

button:disabled {
  cursor:not-allowed;
  opacity:.55
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #b9a5ff;
  outline-offset:3px
}

svg {
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}

h1,h2,h3,p {
  margin-top:0
}

h1 {
  font-size:28px;
  font-weight:650;
  letter-spacing:-1px;
  margin-bottom:9px
}

h2 {
  font-size:19px;
  letter-spacing:-.35px;
  font-weight:600;
  margin-bottom:7px
}

h3 {
  font-size:15px;
  font-weight:600
}

.muted {
  color:var(--muted)
}

.small {
  font-size:12px
}

.mono {
  font-family:ui-monospace,SFMono-Regular,monospace;
  font-size:11px
}

.loading {
  min-height:100vh;
  display:grid;
  place-content:center;
  text-align:center;
  gap:20px
}

.loading .brand-icon {
  margin:auto
}

.brand-icon {
  display:inline-grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--purple);
  color:#fff;
  font-size:27px;
  font-weight:500
}

.shell {
  display:grid;
  grid-template-columns:var(--sidebar) 1fr;
  min-height:100vh
}

.sidebar {
  border-right:1px solid var(--border);
  background:#fff;
  display:flex;
  flex-direction:column;
  padding:28px 19px;
  position:fixed;
  width:var(--sidebar);
  height:100dvh
}

.brand {
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 7px;
  margin-bottom:47px
}

.brand strong {
  font-size:16px;
  letter-spacing:-.5px;
  display:block
}

.brand small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:4px;
  letter-spacing:.25px
}

.nav-label {
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:1.5px;
  color:#a4a4b4;
  padding:0 13px;
  margin-bottom:13px
}

.nav {
  display:grid;
  gap:5px
}

.nav button {
  border:0;
  background:none;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px;
  border-radius:9px;
  color:#767687;
  font-size:13px;
  text-align:left
}

.nav button.active {
  color:var(--purple);
  background:#f0ecfc;
  font-weight:600
}

.nav button:hover:not(.active) {
  background:#f7f7fa;
  color:#3c3c52
}

.nav .count {
  margin-left:auto;
  font-size:10px;
  background:#e7defb;
  color:var(--purple);
  border-radius:5px;
  padding:3px 6px
}

.sidebar-bottom {
  margin-top:auto
}

.free-badge {
  margin:25px 7px;
  border:1px solid #ede9f6;
  border-radius:10px;
  padding:14px;
  background:#fcfbff
}

.free-badge strong {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  font-weight:600
}

.free-badge svg {
  color:var(--purple);
  width:16px;
  height:16px
}

.free-badge p {
  font-size:11px;
  color:var(--muted);
  line-height:1.7;
  margin:7px 0 0
}

.main {
  grid-column:2;
  min-width:0
}

.avatar {
  display:grid;
  place-items:center;
  background:#f1edfa;
  border:1px solid #e6dff5;
  color:var(--purple);
  width:30px;
  height:30px;
  border-radius:50%;
  font-size:11px;
  font-weight:600;
  margin-left:8px
}

.content {
  max-width:1410px;
  padding:34px 38px 45px;
  margin:auto
}

.page-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:27px
}

.page-header p {
  margin:0;
  font-size:13px;
  color:var(--muted);
  line-height:1.7
}

.button {
  border:1px solid #e2e2eb;
  background:#fff;
  color:#5a5a70;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 15px;
  border-radius:8px;
  font-weight:500;
  font-size:12px;
  white-space:nowrap;
  line-height:1.5
}

.button:hover {
  border-color:#c9bdec;
  background:#faf8ff
}

.button svg {
  width:16px;
  height:16px
}

.button.primary {
  background:var(--purple);
  color:#fff;
  border-color:var(--purple);
  box-shadow:0 3px 5px #7356dc14
}

.button.primary:hover {
  background:#6346cd
}

.button.danger {
  color:var(--red);
  border-color:#f0d9de
}

.button.text {
  border:0;
  background:none;
  color:var(--purple);
  padding-left:0
}

.icon-button {
  border:0;
  background:none;
  color:#9090a1;
  display:inline-grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:6px
}

.icon-button:hover {
  color:var(--purple);
  background:#f2eefc
}

.icon-button svg {
  width:17px;
  height:17px
}

.intro-card {
  background:linear-gradient(110deg,#f1edff 0%,#f7f4ff 72%,#f5f2fb 100%);
  border:1px solid #e9e2fc;
  border-radius:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px 26px;
  gap:25px;
  margin-bottom:24px;
  overflow:hidden
}

.intro-copy {
  max-width:470px
}

.eyebrow {
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:1.7px;
  color:var(--purple);
  font-weight:650;
  margin-bottom:9px;
  display:block
}

.intro-copy h2 {
  font-size:19px;
  color:#413063;
  margin-bottom:8px
}

.intro-copy p {
  color:#877c9b;
  line-height:1.7;
  font-size:12px;
  margin:0
}

.flow {
  display:flex;
  align-items:center;
  gap:13px;
  margin-right:12px;
  flex-shrink:0
}

.flow-node {
  height:59px;
  width:65px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid #e6dcfa;
  border-radius:14px;
  box-shadow:0 4px 15px #6f53bd07
}

.flow-node.b24 {
  font-size:19px;
  font-weight:700;
  color:#36abe0;
  letter-spacing:-1px
}

.flow-node.bell {
  background:#8665df;
  color:#fff;
  box-shadow:0 6px 18px #7356dc30;
  border-color:#8665df
}

.flow-node.bell svg {
  width:25px;
  height:25px
}

.flow-node.max {
  background:linear-gradient(130deg,#48a5f1,#7446e5 80%);
  border:4px solid #fff;
  color:white;
  font-size:13px;
  letter-spacing:.5px;
  font-weight:700
}

.flow-arrow {
  color:#c2b6dd;
  display:flex;
  align-items:center
}

.flow-arrow svg {
  width:23px;
  height:14px
}

.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:30px
}

.stat {
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  padding:17px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center
}

.stat-label {
  font-size:11px;
  color:var(--muted);
  margin-bottom:9px
}

.stat-number {
  font-size:25px;
  letter-spacing:-.6px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:9px
}

.stat-icon {
  background:#f5f2fd;
  color:#987bda;
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  border-radius:10px
}

.stat-icon.green {
  color:#69b59b;
  background:#f0f9f5
}

.section-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:16px
}

.section-header h2 {
  font-size:16px;
  margin:0
}

.section-header .muted {
  font-size:11px;
  margin-left:8px;
  font-weight:400
}

.toolbar {
  display:flex;
  align-items:center;
  gap:9px
}

.search {
  position:relative
}

.search input {
  width:205px;
  padding:9px 12px 9px 34px;
  font-size:11px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:7px;
  color:#5d5d72
}

.search svg {
  position:absolute;
  left:11px;
  top:10px;
  width:14px;
  height:14px;
  color:#a4a4b2
}

.rule-list {
  display:grid;
  gap:12px
}

.rule-card {
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  display:flex;
  align-items:center;
  gap:17px;
  padding:21px 22px;
  transition:border-color .2s
}

.rule-card:hover {
  border-color:#d8cef1
}

.section-icon {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#f0eafa;
  color:#9670cf;
  flex-shrink:0
}

.section-icon.tasks {
  color:#658aca;
  background:#edf3fd
}

.section-icon.calendar {
  color:#d19b62;
  background:#fbf3e9
}

.section-icon.disk {
  color:#5aaf9d;
  background:#eaf7f3
}

.section-icon.users {
  color:#d47c8c;
  background:#fbeff3
}

.rule-copy {
  flex:1;
  min-width:0
}

.rule-title {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px
}

.rule-title h3 {
  margin:0;
  font-size:13px
}

.pill {
  display:inline-flex;
  gap:5px;
  align-items:center;
  font-size:9px;
  padding:4px 7px;
  border-radius:5px;
  background:#f6f4fb;
  color:#998baa;
  font-weight:500;
  white-space:nowrap
}

.pill.green {
  background:#edf8f2;
  color:#67a184
}

.pill.orange {
  background:#fff6e9;
  color:#b18d52
}

.pill.red {
  background:#fff0f1;
  color:#c56b7b
}

.pill.grey {
  background:#f1f2f5;
  color:#9494a4
}

.pill.purple {
  background:#f0eafa;
  color:#9272c4
}

.rule-meta {
  display:flex;
  align-items:center;
  gap:15px;
  flex-wrap:wrap;
  color:#9797a6;
  font-size:11px
}

.rule-meta>span {
  display:flex;
  align-items:center;
  gap:5px
}

.rule-meta svg {
  width:12px;
  height:12px
}

.rule-destination {
  font-size:11px;
  color:#77778a;
  display:grid;
  gap:7px;
  min-width:190px
}

.rule-destination span {
  display:flex;
  align-items:center;
  gap:6px
}

.rule-destination svg {
  width:13px;
  height:13px;
  color:#b1a2d2
}

.rule-actions {
  display:flex;
  gap:9px;
  align-items:center
}

.switch {
  border:0;
  background:#dcdde6;
  width:32px;
  height:18px;
  padding:2px;
  border-radius:10px;
  transition:background .2s;
  position:relative
}

.switch:after {
  content:"";
  display:block;
  width:14px;
  height:14px;
  border-radius:50%;
  background:white;
  box-shadow:0 1px 3px #0001;
  transition:transform .2s
}

.switch[aria-checked=true] {
  background:#997de0
}

.switch[aria-checked=true]:after {
  transform:translateX(14px)
}

.below-grid {
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:20px;
  margin-top:27px
}

.panel {
  border:1px solid var(--border);
  background:#fff;
  border-radius:11px;
  padding:21px 23px
}

.panel-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px
}

.panel-title h2 {
  font-size:14px;
  margin:0
}

.panel-title .button {
  font-size:10px;
  padding:0;
  border:0
}

.connector-summary {
  display:flex;
  align-items:center;
  gap:13px
}

.max-logo {
  display:grid;
  place-items:center;
  color:white;
  background:linear-gradient(130deg,#48a5f1,#7446e5 80%);
  border-radius:12px;
  width:40px;
  height:40px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.5px;
  flex-shrink:0
}

.connector-summary h3 {
  font-size:12px;
  margin-bottom:5px
}

.connector-summary p {
  font-size:10px;
  color:#9292a3;
  margin:0
}

.connector-summary .pill {
  margin-left:auto
}

.panel-footer {
  margin-top:19px;
  border-top:1px solid #f0f0f5;
  padding-top:14px;
  display:flex;
  justify-content:space-between;
  color:#a0a0af;
  font-size:10px
}

.panel-footer span {
  display:flex;
  align-items:center;
  gap:5px
}

.panel-footer svg {
  width:12px;
  height:12px
}

.timeline {
  display:grid;
  gap:13px
}

.timeline-row {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px
}

.timeline-row .circle {
  height:23px;
  width:23px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#edf9f2;
  color:#74b194;
  flex-shrink:0
}

.timeline-row .circle svg {
  width:12px;
  height:12px
}

.timeline-row span:nth-child(2) {
  flex:1;
  color:#747487
}

.timeline-row time {
  color:#aaaaB8;
  font-size:10px
}

.footer-note {
  display:flex;
  gap:6px;
  justify-content:center;
  color:#b3b3c0;
  font-size:10px;
  margin-top:28px
}

.footer-note svg {
  width:12px;
  height:12px
}

.demo-banner {
  background:#fff9e9;
  border:1px solid #f2e6c4;
  color:#a68b54;
  padding:10px 14px;
  border-radius:8px;
  font-size:11px;
  margin-bottom:20px;
  display:flex;
  align-items:center;
  gap:8px
}

.demo-banner svg {
  width:14px;
  height:14px
}

.empty {
  border:1px dashed #ded9ee;
  border-radius:11px;
  padding:35px 20px;
  text-align:center;
  color:var(--muted);
  background:#fff
}

.empty svg {
  width:30px;
  height:30px;
  color:#b4a3d7;
  margin-bottom:10px
}

.empty h3 {
  color:#77738a
}

.empty p {
  font-size:12px;
  line-height:1.7;
  margin-bottom:17px
}

.connector-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px
}

.connector-card .connector-summary {
  margin-bottom:24px
}

.connector-card .connector-summary h3 {
  font-size:14px
}

.connector-detail {
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-bottom:14px;
  font-size:12px;
  color:#858597
}

.connector-card .connector-actions {
  display:flex;
  gap:8px;
  border-top:1px solid var(--border);
  padding-top:19px;
  margin-top:20px;
  flex-wrap:wrap
}

.help-note {
  display:flex;
  align-items:flex-start;
  gap:12px;
  background:#f1edfc;
  border:1px solid #e8e2f6;
  border-radius:9px;
  padding:18px 20px;
  font-size:12px;
  color:#887e9c;
  line-height:1.8;
  margin-top:22px
}

.help-note svg {
  color:#a18ac8;
  flex-shrink:0
}

.help-note strong {
  color:#5e5077
}

.table-wrap {
  overflow-x:auto;
  border:1px solid var(--border);
  border-radius:11px;
  background:white
}

.table {
  border-collapse:collapse;
  width:100%;
  font-size:12px
}

.table th {
  text-align:left;
  font-weight:500;
  color:#a0a0b0;
  padding:15px 20px;
  font-size:10px;
  background:#fcfcfe;
  white-space:nowrap
}

.table td {
  padding:17px 20px;
  border-top:1px solid #f0f0f5;
  color:#737387;
  vertical-align:middle
}

.table .person {
  display:flex;
  align-items:center;
  gap:10px
}

.person .avatar {
  margin:0;
  width:32px;
  height:32px
}

.table .person strong {
  font-size:12px;
  display:block;
  color:#54546c
}

.table .person small {
  font-size:10px;
  color:#a1a1b0;
  margin-top:4px;
  display:block
}

.table button {
  font-size:10px
}

.help-steps {
  display:grid;
  gap:14px
}

.help-step {
  display:flex;
  align-items:flex-start;
  gap:15px;
  border:1px solid var(--border);
  padding:22px;
  border-radius:10px;
  background:white
}

.step-num {
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  background:#f0eafa;
  color:var(--purple);
  font-size:12px;
  border-radius:9px;
  flex-shrink:0
}

.help-step h3 {
  font-size:14px;
  margin-bottom:7px
}

.help-step p {
  color:var(--muted);
  font-size:12px;
  line-height:1.9;
  margin:0
}

.help-step code {
  color:#80699f;
  background:#f4f0fc;
  border-radius:4px;
  padding:2px 5px;
  font-size:11px
}

.events-info {
  margin-top:16px;
  color:var(--muted);
  font-size:12px;
  line-height:1.8
}

.error-box {
  padding:14px 18px;
  border:1px solid #f2d5d9;
  border-radius:8px;
  color:#b46b77;
  background:#fff7f8;
  font-size:12px;
  margin-bottom:20px
}

.error-box p {
  margin:0
}

.error-box .button {
  margin-top:10px
}

.notice {
  font-size:11px;
  color:#9b8bad;
  line-height:1.8;
  background:#f7f4fc;
  border-radius:7px;
  padding:11px 13px
}

dialog {
  border:1px solid #e8e4f0;
  border-radius:15px;
  padding:0;
  width:min(900px,calc(100vw - 40px));
  max-height:calc(100dvh - 48px);
  box-shadow:0 25px 80px #342b6425;
  color:#343348;
  overflow:auto
}

dialog::backdrop {
  background:#20203555;
  backdrop-filter:blur(2px)
}

dialog.narrow {
  width:min(520px,calc(100vw - 32px))
}

.dialog-head {
  padding:22px 26px;
  border-bottom:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center
}

.dialog-head h2 {
  margin:0;
  font-size:18px
}

.dialog-head p {
  font-size:11px;
  color:var(--muted);
  margin:6px 0 0
}

.dialog-body {
  padding:23px 26px
}

.dialog-foot {
  display:flex;
  justify-content:flex-end;
  gap:9px;
  padding:17px 26px;
  border-top:1px solid var(--border);
  background:#fcfcfe;
  position:sticky;
  bottom:0
}

.dialog-columns {
  display:grid;
  grid-template-columns:1fr 270px;
  gap:26px
}

.field {
  display:grid;
  gap:8px;
  margin-bottom:19px
}

.field>label,.field>legend {
  font-size:11px;
  color:#646477;
  font-weight:550
}

.chat-picker-controls {
  display:flex;
  gap:8px;
  align-items:center
}

.chat-picker-controls select {
  min-width:0;
  flex:1
}

.manual-chat:not([hidden]) {
  display:grid;
  gap:8px
}

.manual-chat>label {
  font-size:11px;
  color:#646477;
  font-weight:550
}

.field input,.field select,.field textarea {
  border:1px solid #e4e1eb;
  border-radius:7px;
  padding:10px 12px;
  background:#fff;
  color:#5b566c;
  width:100%;
  font-size:12px
}

.field textarea {
  resize:vertical;
  min-height:100px;
  line-height:1.8
}

.field .hint {
  font-size:10px;
  color:#aaa1b8;
  line-height:1.7
}

.field .hint a {
  text-decoration:underline
}

.field input::placeholder {
  color:#b1aabb
}

.field .search input {
  font-size:11px
}

.step-label {
  display:flex;
  align-items:center;
  gap:8px;
  margin:6px 0 16px;
  font-size:12px;
  font-weight:600;
  color:#686075
}

.step-label span {
  display:grid;
  place-items:center;
  background:#f1eafa;
  border-radius:5px;
  color:#a18bca;
  width:19px;
  height:19px;
  font-size:10px
}

.event-picker {
  max-height:208px;
  overflow:auto;
  border:1px solid #e8e5ef;
  border-radius:7px;
  margin-top:7px
}

.event-option {
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-bottom:1px solid #f4f1f8;
  font-size:11px;
  color:#81788f;
  cursor:pointer
}

.event-option:last-child {
  border-bottom:0
}

.event-option:hover {
  background:#fcf9ff
}

.event-option input {
  accent-color:var(--purple);
  width:13px;
  height:13px;
  margin:0
}

.event-option small {
  color:#b4a9c0;
  margin-left:auto;
  font-family:ui-monospace,monospace;
  font-size:8px;
  max-width:180px;
  overflow:hidden;
  text-overflow:ellipsis
}

.radio-cards {
  display:grid;
  gap:7px
}

.radio-card {
  border:1px solid #e6e2ed;
  border-radius:8px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:12px;
  cursor:pointer;
  font-size:11px;
  color:#756a84
}

.radio-card:has(input:checked) {
  border-color:#b8a6df;
  background:#faf7ff
}

.radio-card input {
  accent-color:var(--purple);
  margin:0;
  width:13px;
  height:13px
}

.radio-card svg {
  width:15px;
  height:15px;
  color:#ae9ac8
}

.preview {
  background:#f3f0f9;
  border-radius:10px;
  padding:17px;
  position:sticky;
  top:10px;
  align-self:start
}

.preview>h3 {
  font-size:11px;
  margin-bottom:16px;
  color:#aa9bbb;
  font-weight:500
}

.preview-chat {
  background:#e9e4f2;
  border-radius:9px;
  min-height:225px;
  padding:15px 11px;
  position:relative
}

.preview-chat-head {
  display:flex;
  align-items:center;
  gap:8px;
  border-bottom:1px solid #dcd5e7;
  padding-bottom:11px;
  margin-bottom:17px
}

.preview-chat-head .max-logo {
  width:27px;
  height:27px;
  font-size:7px;
  border-radius:8px
}

.preview-chat-head strong {
  font-size:9px;
  display:block;
  color:#8c7c9b
}

.preview-chat-head small {
  font-size:8px;
  color:#b09cc2;
  display:block;
  margin-top:3px
}

.chat-bubble {
  background:#fff;
  border-radius:9px 9px 9px 1px;
  padding:13px 12px;
  box-shadow:0 2px 3px #00000003;
  line-height:1.8;
  color:#797083;
  white-space:pre-wrap;
  font-size:10px;
  word-break:break-word
}

.chat-time {
  display:block;
  color:#c1b4cd;
  text-align:right;
  font-size:8px;
  line-height:1;
  margin-top:6px
}

.preview>p {
  font-size:10px;
  line-height:1.8;
  color:#b2a3bf;
  margin:15px 0 0
}

.variable-buttons {
  display:flex;
  gap:4px;
  flex-wrap:wrap;
  margin-top:1px
}

.variable-buttons button {
  background:#f5f1fc;
  border:1px solid #eee6f6;
  color:#ae95c5;
  border-radius:4px;
  font-size:9px;
  padding:3px 5px
}

.condition-row {
  display:grid;
  grid-template-columns:1fr 95px 1fr 25px;
  gap:6px;
  margin:8px 0
}

.condition-row input,.condition-row select {
  border:1px solid #e5e0ec;
  border-radius:6px;
  font-size:10px;
  min-width:0;
  padding:9px 7px
}

.form-error {
  color:#ba6e7c;
  font-size:11px;
  line-height:1.8;
  background:#fff4f6;
  border:1px solid #f3dce1;
  padding:9px 12px;
  border-radius:6px;
  margin:12px 0
}

.token-wrap {
  display:flex;
  gap:5px
}

.token-wrap input {
  flex:1;
  min-width:0
}

.toast {
  position:fixed;
  bottom:28px;
  left:calc(50% + var(--sidebar)/2);
  transform:translateX(-50%);
  padding:13px 20px;
  border-radius:9px;
  color:#fff;
  background:#4f4169;
  box-shadow:0 8px 25px #30244925;
  z-index:50;
  font-size:12px;
  max-width:90vw
}

.toast.error {
  background:#b46270
}

.connect-page {
  display:grid;
  place-items:center;
  min-height:100vh;
  padding:25px
}

.connect-card {
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:40px;
  max-width:480px;
  width:100%;
  text-align:center
}

.connect-card .brand-icon {
  margin-bottom:24px
}

.connect-card h1 {
  font-size:25px
}

.connect-card p {
  font-size:13px;
  line-height:1.9;
  color:var(--muted);
  margin:17px 0 25px
}

.log-detail {
  white-space:pre-wrap;
  line-height:1.8;
  background:#f8f6fc;
  border:1px solid #eee8f6;
  border-radius:8px;
  padding:20px;
  font-size:12px;
  word-break:break-word
}

.load-more {
  margin:20px auto;
  display:flex
}

.chips {
  display:flex;
  gap:6px;
  flex-wrap:wrap
}

.chip {
  border:1px solid #e5dfef;
  background:#fff;
  color:#a493b7;
  padding:5px 8px;
  border-radius:5px;
  font-size:10px
}

.chip.active {
  background:#f1eafa;
  color:#9272c4;
  border-color:#d9cce9
}

.selected-people {
  max-height:170px;
  overflow:auto
}

@media(min-width:1550px) {
  .content {
    padding-top:42px
  }
  .rule-card {
    padding-top:24px;
    padding-bottom:24px
  }
  .intro-card {
    padding:29px
  }
  .stat {
    padding:22px
  }
}

@media(max-width:1150px) {
  :root {
    --sidebar:195px
  }
  .sidebar {
    padding:25px 13px
  }
  .brand {
    gap:8px
  }
  .brand strong {
    font-size:14px
  }
.content {
    padding:29px 25px
  }
  .rule-destination {
    min-width:145px
  }
  .intro-copy {
    max-width:380px
  }
  .flow {
    gap:7px;
    margin:0
  }
  .flow-node {
    width:52px;
    height:52px
  }
  .flow-arrow svg {
    width:17px
  }
  .stats {
    gap:10px
  }
  .stat {
    padding:15px
  }
  .below-grid {
    gap:14px
  }
  .rule-card {
    gap:13px;
    padding:19px 17px
  }
}

@media(max-width:900px) {
  :root {
    --sidebar:72px
  }
  .sidebar {
    padding:24px 10px
  }
  .brand {
    padding:0;
    justify-content:center;
    margin-bottom:36px
  }
  .brand>div:last-child,.nav-label,.nav button>span,.sidebar-bottom,.nav .count {
    display:none
  }
  .nav button {
    justify-content:center;
    padding:13px
  }
  .nav button svg {
    width:21px;
    height:21px
  }
  .flow {
    display:none
  }
  .rule-destination {
    display:none
  }
  .stats {
    grid-template-columns:repeat(2,1fr)
  }
  .stat {
    padding:15px 18px
  }
  .below-grid {
    grid-template-columns:1fr
  }
  .connector-grid {
    grid-template-columns:1fr
  }
.intro-copy {
    max-width:100%
  }
  .dialog-columns {
    grid-template-columns:1fr 220px
  }
  .preview {
    padding:12px
  }
  .condition-row {
    grid-template-columns:1fr 80px 1fr 22px
  }
  .content {
    padding:25px
  }
  .page-header {
    align-items:flex-start
  }
  .page-header .button {
    margin-top:5px
  }
  .page-header h1 {
    font-size:25px
  }
.dialog-body,.dialog-head {
    padding:20px
  }
}

@media(max-width:620px) {
  :root {
    --sidebar:0px
  }
  .shell {
    display:block
  }
  .sidebar {
    position:sticky;
    top:0;
    height:auto;
    width:100%;
    flex-direction:row;
    padding:10px 15px;
    z-index:10;
    border-bottom:1px solid var(--border);
    border-right:0;
    align-items:center
  }
  .brand {
    margin:0 15px 0 0
  }
  .brand-icon {
    width:31px;
    height:31px;
    font-size:23px;
    border-radius:10px
  }
  .nav {
    display:flex;
    justify-content:space-between;
    flex:1;
    gap:2px
  }
  .nav button {
    padding:8px 11px;
    border-radius:7px
  }
  .nav button svg {
    width:18px;
    height:18px
  }
.breadcrumb {
    font-size:10px
  }
.content {
    padding:25px 18px
  }
  .page-header {
    margin-bottom:20px;
    gap:12px
  }
  .page-header h1 {
    font-size:22px
  }
  .page-header p {
    font-size:11px;
    max-width:210px
  }
  .page-header .button {
    font-size:10px;
    padding:9px 10px;
    gap:5px
  }
  .intro-card {
    padding:20px
  }
  .intro-copy h2 {
    font-size:17px
  }
  .intro-copy p {
    font-size:11px
  }
  .stats {
    gap:8px;
    margin-bottom:23px
  }
  .stat {
    padding:14px
  }
  .stat-icon {
    width:29px;
    height:29px
  }
  .stat-icon svg {
    width:16px;
    height:16px
  }
  .stat-label {
    font-size:9px
  }
  .stat-number {
    font-size:22px
  }
  .section-header {
    flex-wrap:wrap;
    margin-bottom:13px
  }
  .toolbar {
    width:100%
  }
  .search {
    flex:1
  }
  .search input {
    width:100%
  }
  .rule-card {
    padding:16px 13px;
    gap:10px
  }
  .section-icon {
    width:34px;
    height:34px;
    border-radius:9px
  }
  .section-icon svg {
    width:18px;
    height:18px
  }
  .rule-title {
    gap:7px;
    flex-wrap:wrap;
    margin-bottom:7px
  }
  .rule-title h3 {
    font-size:12px
  }
  .rule-meta {
    font-size:9px;
    gap:8px
  }
  .rule-actions {
    gap:4px
  }
  .icon-button {
    width:25px;
    height:28px
  }
  .rule-actions .delete-rule {
    display:none
  }
  .rule-title .pill {
    font-size:8px
  }
  .panel {
    padding:19px
  }
  .footer-note {
    font-size:8px
  }
  .dialog-columns {
    display:block
  }
  .preview {
    position:static;
    margin-top:22px
  }
  .preview-chat {
    min-height:160px
  }
  .dialog-body {
    padding:18px
  }
  .dialog-head {
    padding:17px 18px
  }
  .dialog-foot {
    padding:14px 18px
  }
  dialog {
    width:calc(100vw - 20px);
    max-height:calc(100dvh - 20px)
  }
  .field>label {
    font-size:11px
  }
  .condition-row {
    grid-template-columns:1fr 80px 1fr 22px
  }
  .table th,.table td {
    padding:14px;
    font-size:10px
  }
  .connect-card {
    padding:30px 23px
  }
  .toast {
    left:50%;
    bottom:18px
  }
  .demo-banner {
    font-size:10px
  }
  .help-step {
    padding:17px
  }
  .help-step p {
    font-size:11px
  }
  .connector-card .connector-actions .button {
    font-size:10px
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important
  }
}

.dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#6caf90;
  border-radius:50%;
  flex-shrink:0
}

dialog[open] {
  display:flex;
  flex-direction:column;
  overflow:hidden
}

dialog>form {
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:inherit
}

.dialog-body {
  overflow-y:auto;
  min-height:0
}

.dialog-head,.dialog-foot {
  flex-shrink:0
}

.dialog-foot {
  position:static
}

.field .search input {
  padding-left:34px
}
