:root {
  --bg: #080e19;
  --rail: #060c16;
  --surface: #0e192a;
  --surface2: #111f34;
  --input: #0a1423;
  --line: #23334b;
  --text: #e4edf9;
  --muted: #92a5bf;
  --blue: #62a9ff;
  --accent: #448aef;
  --green: #71d7b2;
  --amber: #eac082;
  --red: #f698a8;
  --shadow: 0 12px 35px #02060d60;
  color-scheme: dark;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -0.6px;
  line-height: 1.25;
}
h2 {
  font-size: 19px;
  font-weight: 550;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
p {
  line-height: 1.6;
}
small {
  font-size: 12px;
  color: var(--muted);
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #2b3d57;
  border-radius: 7px;
  background: var(--input);
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  transition:
    border-color 0.16s,
    box-shadow 0.16s;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
input[type='checkbox'],
input[type='radio'] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}
input[type='color'] {
  height: 44px;
  padding: 5px;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #659cf0;
  box-shadow: 0 0 0 3px #4087e418;
}
input:read-only {
  color: var(--muted);
}
select[multiple] {
  min-height: 100px;
}
input:disabled,
select:disabled {
  opacity: 0.6;
}
:focus-visible {
  outline: 2px solid #7ab8ff;
  outline-offset: 3px;
}
button {
  transition:
    background 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
}
button:active {
  transform: translateY(1px);
}
.app-shell {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-height: 100vh;
}
.app-rail {
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--rail);
  border-right: 1px solid #1d2b40;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 8px;
  z-index: 10;
}
.brand-mark {
  height: 44px;
  width: 44px;
  border: 1px solid #2c5180;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f3e66, #10213a);
  color: #91c3ff;
  font-size: 31px;
  line-height: 1;
  box-shadow: 0 0 28px #3c88f212;
}
.app-rail nav {
  width: 100%;
  display: grid;
  gap: 8px;
  margin-top: 35px;
}
.app-rail nav .btn {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 2px;
  font-size: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  min-width: 0;
}
.app-rail nav .btn.active {
  background: #13253f;
  color: #9dcaff;
  box-shadow: inset 0 0 0 1px #254266;
}
.app-rail nav svg {
  width: 21px;
  height: 21px;
}
.rail-foot {
  margin-top: auto;
  padding-top: 24px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #35527a;
  background: #1b3656;
  color: #bfdaff;
  font-size: 13px;
  vertical-align: middle;
  flex-shrink: 0;
}
.avatar.small {
  width: 26px;
  height: 26px;
  font-size: 11px;
}
.app-main {
  min-width: 0;
  position: relative;
}
.app-header {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: #0b1422;
  position: sticky;
  top: 0;
  z-index: 8;
}
.header-brand {
  letter-spacing: 2px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.header-brand span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  margin-left: 8px;
}
.header-spacer {
  flex: 1;
}
.user-switch {
  display: flex;
  gap: 10px;
  align-items: center;
}
.user-switch > span {
  font-size: 12px;
  color: var(--muted);
}
.user-switch select {
  width: auto;
  padding: 7px 10px;
  background: #101d30;
  border-color: var(--line);
}
.entity-nav {
  display: flex;
  gap: 10px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: #0b1422;
  overflow: auto;
}
.entity-nav .btn {
  background: none;
  border: 0;
  color: var(--muted);
  border-radius: 7px;
  font-size: 14px;
}
.entity-nav .btn.active {
  background: #183050;
  color: #a9ceff;
}
.entity-nav small {
  margin-left: 8px;
  color: inherit;
  opacity: 0.6;
}
.main-content {
  padding: 28px 32px 110px;
  min-width: 0;
}
.canvas-main {
  padding: 24px 28px 105px;
}
.settings-main {
  padding: 0;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.page-heading p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.eyebrow {
  font-size: 12px;
  color: #7f9bbf;
  margin-bottom: 7px;
}
.eyebrow:empty {
  display: none;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid #2c3f5b;
  border-radius: 8px;
  background: #14253d;
  color: #d5e5fb;
  padding: 9px 13px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover {
  background: #1c3455;
  border-color: #3c5b83;
}
.btn.primary {
  background: linear-gradient(135deg, #4894fa, #3278d6);
  border-color: #639ce8;
  color: #fff;
  box-shadow: 0 5px 18px #2577db28;
}
.btn.primary:hover {
  box-shadow: 0 7px 24px #2577db45;
  background: #4c97fa;
}
.btn.danger {
  color: #ffb2c0;
  border-color: #63374c;
  background: #322032;
}
.btn.danger:hover {
  background: #4a283c;
}
.btn.icon-btn {
  height: 34px;
  width: 34px;
  padding: 7px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  flex-shrink: 0;
}
.btn.icon-btn:hover {
  background: #1a2c46;
  color: #bbd7fa;
}
.btn.link {
  padding: 0;
  background: none;
  border: 0;
  color: #9fcaff;
  justify-content: flex-start;
  white-space: normal;
  text-align: left;
  line-height: 1.5;
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  padding: 5px 7px;
  font-size: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 5px;
  background: #182c46;
  color: #9cbce8;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.3;
}
.pill.green {
  color: #8ddcbe;
  background: #15352f;
}
.pill.amber {
  background: #352d20;
  color: #e7c185;
}
.pill.demo {
  border: 1px solid #314565;
  background: #13233a;
  letter-spacing: 1px;
  font-size: 11px;
}
.pill.blue {
  color: #a7c9fb;
}
.metadata,
.muted {
  color: var(--muted);
  font-size: 13px;
}
.required {
  color: #ffc58d;
  font-weight: 400;
}
.success {
  color: var(--green);
}
.warning {
  color: var(--amber);
}
.section {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-heading select {
  width: auto;
}
.divider {
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.info {
  padding: 14px 16px;
  border: 1px solid #294665;
  background: #0f233a;
  color: #a7bfdf;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.65;
  margin: 16px 0;
}
.info .link {
  display: block;
  margin-top: 8px;
}
.success-info {
  border-color: #2c554b;
  background: #102922;
}
.empty {
  text-align: center;
  padding: 35px 20px;
  color: var(--muted);
  font-size: 14px;
}
.control {
  display: block;
  margin: 0 0 19px;
  font-size: 14px;
}
.control > span {
  display: block;
  margin-bottom: 8px;
  color: #a5b6cc;
  line-height: 1.35;
}
.control > small {
  display: block;
  margin-top: 7px;
  line-height: 1.5;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin: 14px 0;
  line-height: 1.5;
}
.check span {
  overflow-wrap: anywhere;
}
.control .check {
  margin: 0;
}
.resource {
  display: grid;
  gap: 8px;
}
.floating-bar {
  position: fixed;
  bottom: 18px;
  left: calc(50% + 42px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 40px;
  border: 1px solid #42618588;
  border-radius: 14px;
  padding: 11px 14px 11px 22px;
  z-index: 20;
  background: #102139e8;
  backdrop-filter: blur(20px);
  box-shadow:
    0 10px 45px #01060ca8,
    0 0 25px #4c98f50d;
  max-width: calc(100vw - 180px);
}
.floating-bar > span {
  color: #a1b5ce;
  font-size: 12px;
  white-space: nowrap;
}
.fab-wrap {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.fab {
  border: 1px solid #7db5ff70;
  background: linear-gradient(135deg, #518eddda, #214b87ed);
  backdrop-filter: blur(18px);
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #e1efff;
  box-shadow:
    0 8px 35px #126bd644,
    0 3px 15px #0006;
  display: grid;
  place-items: center;
}
.fab svg {
  width: 25px;
  height: 25px;
}
.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 38px #2477db55;
}
.fab-menu {
  background: #14253cee;
  backdrop-filter: blur(22px);
  border: 1px solid #3c5777;
  border-radius: 12px;
  padding: 8px;
  display: grid;
  gap: 3px;
  box-shadow: var(--shadow);
  min-width: 230px;
  animation: rise 0.16s ease-out;
}
.fab-menu .btn {
  background: none;
  border: 0;
  justify-content: flex-start;
  padding: 12px;
}
.fab-menu .btn:hover {
  background: #25405e;
}
.toast {
  position: fixed;
  bottom: 94px;
  left: calc(50% + 42px);
  transform: translateX(-50%);
  max-width: min(640px, calc(100vw - 140px));
  z-index: 55;
  padding: 12px 12px 12px 16px;
  background: #1a344bf5;
  border: 1px solid #4b7392;
  border-radius: 11px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 11px;
  color: #d5e8f5;
  font-size: 14px;
  animation: rise 0.2s ease-out;
}
.toast > svg {
  color: var(--green);
}
.list-toolbar,
.pipeline-toolbar,
.bot-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.list-toolbar select,
.pipeline-toolbar select,
.bot-toolbar select {
  width: auto;
  max-width: 370px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #2b3d57;
  background: #0c1829;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  min-width: 210px;
}
.search input {
  border: 0;
  background: none;
  box-shadow: none;
  width: 250px;
  padding-left: 0;
}
.segment {
  display: flex;
  background: #0c1728;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
}
.segment .btn {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 7px 11px;
}
.segment .btn.active {
  background: #243d5d;
  color: #b4d4ff;
}
.board {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(190px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.board-column {
  background: #0d192a;
  border-radius: 9px;
  border-top: 3px solid var(--stage);
  min-height: 420px;
  padding: 14px 10px;
}
.board-column > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  padding: 0 3px;
}
.column-total {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 3px 16px;
  min-height: 18px;
}
.record-tile {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #2a3c56;
  background: #14253e;
  border-radius: 9px;
  padding: 15px 13px;
  margin-bottom: 11px;
  box-shadow: 0 4px 12px #00000012;
}
.record-tile:hover {
  background: #1a3150;
  border-color: #4476a5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #01081338;
}
.record-tile h3 {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.record-tile strong {
  font-weight: 500;
  color: #b5d4ff;
  font-size: 14px;
}
.record-tile p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 14px;
}
.tile-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #afbdd0;
}
.tile-footer small {
  margin-left: auto;
}
.btn.column-add {
  background: none;
  border: 1px dashed #2f4c70;
  color: #8eaccf;
  width: 100%;
  justify-content: flex-start;
  font-size: 13px;
}
.table-wrap {
  border: 1px solid var(--line);
  background: #0c1728;
  border-radius: 9px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}
th {
  color: #8ca3bf;
  font-size: 12px;
  letter-spacing: 0.2px;
  font-weight: 450;
  padding: 15px 17px;
  background: #102038;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 18px 17px;
  border-bottom: 1px solid #1d2d44;
}
tr:last-child td {
  border-bottom: 0;
}
td small {
  display: block;
  margin-top: 5px;
}
td .avatar {
  margin-right: 6px;
}
td .link {
  font-size: 14px;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 17px;
}
.breadcrumbs .link {
  font-size: 13px;
}
.stage-ribbon {
  display: flex;
  gap: 4px;
  margin-bottom: 27px;
  overflow: auto;
}
.stage-ribbon .btn {
  flex: 1;
  min-width: 110px;
  background: #122139;
  border: 0;
  border-bottom: 3px solid #2c4565;
  border-radius: 4px;
  padding: 10px;
  font-size: 13px;
  color: #9fabc0;
}
.stage-ribbon .btn.active {
  background: #1b3d61;
  border-color: #70b3ff;
  color: #c6e1ff;
}
.card-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(380px, 1.25fr);
  gap: 30px;
  align-items: start;
}
.record-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 23px;
}
.form-group {
  margin-bottom: 30px;
}
.form-group h3 {
  color: #d7e3f4;
  border-bottom: 1px solid #253651;
  padding-bottom: 16px;
  margin-bottom: 22px;
}
.form-group:last-child {
  margin-bottom: 10px;
}
.record-field {
  position: relative;
}
.record-field .control {
  padding-right: 28px;
}
.record-field .field-cog {
  position: absolute;
  right: -8px;
  top: 0;
  width: 28px;
  height: 28px;
  opacity: 0.6;
}
.record-field:hover .field-cog {
  opacity: 1;
}
.record-field > .link {
  font-size: 12px;
  margin: -8px 0 18px;
}
.btn.add-field {
  width: 100%;
  justify-content: flex-start;
  border-style: dashed;
  color: #9fbdde;
  background: #0f223a;
}
.create-panel {
  max-width: 620px;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
  overflow: auto;
}
.tabs .btn {
  padding: 0 0 13px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-size: 14px;
}
.tabs .btn.active {
  color: #b3d4ff;
  border-color: #6caaff;
}
.tasks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #2d4c4a;
  background: #102629;
  border-radius: 8px;
  padding: 13px;
  margin-bottom: 12px;
}
.task-row strong {
  font-size: 14px;
  font-weight: 500;
}
.task-row small {
  display: block;
  margin-top: 6px;
  color: #93b7b3;
}
.task-row.done {
  background: #122032;
  border-color: var(--line);
  opacity: 0.65;
}
.task-check {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  padding: 7px;
  border-radius: 50%;
  background: none;
  border: 1px solid #527b75;
  color: #537a72;
}
.task-check.checked {
  background: #286251;
  color: #a2e7cc;
}
.task-row:last-of-type {
  margin-bottom: 25px;
}
.event {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 26px;
}
.event-symbol {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #1b304d;
  display: grid;
  place-items: center;
  color: #98bae3;
}
.event-symbol.auto {
  background: #1b3b36;
  color: #8ad5b6;
}
.event-symbol.skip {
  background: #362e23;
  color: #d9b577;
}
.event-symbol.error {
  background: #442539;
  color: #f4a6b8;
}
.event-head {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
}
.event-head strong {
  font-size: 14px;
  font-weight: 500;
}
.event-head time {
  font-size: 12px;
  color: #849cb9;
}
.event p {
  color: #9eb1cd;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.event .metadata {
  margin-top: 5px;
}
.event .metadata .link {
  font-size: 12px;
}
details {
  margin-top: 12px;
  border: 1px solid #2b3e59;
  border-radius: 7px;
  background: #0a1626;
  overflow: hidden;
}
summary {
  font-size: 13px;
  color: #8ebcff;
  padding: 11px 13px;
  cursor: pointer;
}
.trace {
  border-top: 1px solid #253751;
  padding: 12px 15px;
  font-size: 13px;
}
.trace-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 15px;
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.trace-row > span {
  color: #839ab8;
}
.trace-row strong {
  font-weight: 400;
}
.trace-caption {
  color: var(--muted);
  margin: 14px 0 7px;
}
.condition-result {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #20334d;
  padding: 10px 0;
  font-size: 13px;
}
.condition-result small {
  display: block;
  margin-top: 4px;
}
.condition-result b {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.note-composer {
  border: 1px solid #314563;
  background: #101f34;
  border-radius: 10px;
  margin-top: 25px;
  padding: 15px;
}
.note-composer textarea {
  border: 0;
  background: none;
  min-height: 80px;
  padding: 0;
  box-shadow: none;
}
.note-composer > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.linked {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.linked .btn {
  display: block;
  width: 100%;
  justify-content: flex-start;
  margin-top: 10px;
  text-align: left;
  white-space: normal;
}
.chat-bubble {
  background: #1b3757;
  border-radius: 10px 10px 3px 10px;
  padding: 15px;
  margin: 15px 0 15px 35px;
}
.chat-bubble span {
  color: #87b7f4;
  font-size: 12px;
}
.chat-bubble p {
  font-size: 14px;
  margin: 6px 0;
}
.chat-bubble time {
  color: var(--muted);
  font-size: 11px;
}
.audit-feed {
  max-width: 950px;
}
.task-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid var(--line);
  background: #102037;
  border-radius: 10px;
  margin-bottom: 13px;
  padding: 20px;
}
.task-card > div {
  flex: 1;
}
.task-card h3 {
  font-size: 16px;
}
.task-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 7px 0;
}
.task-card .link {
  font-size: 13px;
}
.settings-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}
.settings-nav {
  background: #0b1524;
  border-right: 1px solid #22314a;
  padding: 28px 15px;
  position: sticky;
  top: 74px;
  align-self: start;
  height: calc(100vh - 74px);
  overflow: auto;
}
.settings-nav h2 {
  margin: 0 12px 24px;
  font-size: 18px;
}
.settings-nav > .btn {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  background: none;
  padding: 12px;
  margin-bottom: 3px;
  font-size: 14px;
  color: #a1b4ce;
  white-space: normal;
  line-height: 1.5;
}
.settings-nav > .btn svg {
  color: #7795b9;
}
.settings-nav > .btn.active {
  background: #172e4e;
  color: #b4d6ff;
  box-shadow: inset 3px 0 0 #6faeff;
}
.settings-nav > .btn.active svg {
  color: #88baff;
}
.settings-note {
  margin: 30px 12px 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.settings-note p {
  font-size: 12px;
  color: #7289a7;
  margin-top: 10px;
}
.settings-content {
  padding: 31px 36px 110px;
  min-width: 0;
}
.settings-form {
  max-width: 720px;
}
.settings-form section {
  padding: 0 0 27px;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line);
}
.settings-form h3 {
  margin: 0 0 23px;
}
.settings-form .control {
  max-width: 520px;
}
.theme-swatch {
  display: flex;
  gap: 14px;
  align-items: center;
  color: #d5e4f8;
  font-size: 14px;
}
.theme-swatch > span {
  width: 50px;
  height: 36px;
  border: 1px solid #4072a9;
  border-radius: 7px;
  background: linear-gradient(140deg, #060c16 50%, #1c3d67 51%);
}
.theme-swatch small {
  display: block;
  margin-top: 5px;
}
.theme-swatch > svg {
  margin-left: 20px;
  color: #87b7f4;
}
.role-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 4px 20px;
  max-width: 680px;
  margin-bottom: 20px;
}
.role-matrix + .control {
  max-width: 400px;
}
.pipeline-list {
  display: grid;
  gap: 20px;
}
.pipeline-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: #0e1e33;
  border-radius: 10px;
}
.pipeline-card p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}
.mini-stages {
  display: flex;
  gap: 5px;
  overflow: auto;
}
.mini-stages > span {
  border-top: 3px solid var(--stage);
  padding: 9px 12px;
  flex: 1;
  min-width: 95px;
  background: #152940;
  font-size: 12px;
  color: #b5c9e4;
}
.entity-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0b1727;
  width: max-content;
  max-width: 100%;
  overflow: auto;
  margin-bottom: 24px;
}
.entity-tabs .btn {
  border: 0;
  background: none;
  color: var(--muted);
}
.entity-tabs .btn.active {
  background: #1f3d60;
  color: #bfdaff;
}
.group-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.bot-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #29415f;
  border-radius: 12px;
  background: #10223a;
  padding: 24px;
  margin-bottom: 16px;
}
.bot-card > div:nth-child(2) {
  flex: 1;
}
.bot-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 7px 0;
}
.bot-badge {
  height: 55px;
  width: 55px;
  border-radius: 15px;
  background: #183956;
  border: 1px solid #376385;
  display: grid;
  place-items: center;
  color: #89bded;
}
.bot-badge svg {
  height: 28px;
  width: 28px;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 25px;
}
.integration-card {
  border: 1px solid #2c3d59;
  background: #102039;
  border-radius: 11px;
  padding: 22px;
}
.service-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #3e6693;
  background: #1c3f64;
  color: #afd8ff;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 19px;
}
.integration-card h2 {
  font-size: 18px;
}
.integration-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 17px;
}
.integration-card .btn {
  display: block;
  width: 100%;
  font-size: 13px;
  margin-top: 20px;
  white-space: normal;
}
.api-layout {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(270px, 1fr);
  gap: 30px;
}
.api-playground {
  background: #0d1c2f;
  border: 1px solid #2a405d;
  border-radius: 10px;
  padding: 22px;
}
.api-playground h3 {
  margin-bottom: 22px;
}
.api-playground pre {
  background: #081421;
  border: 1px solid #1f3450;
  border-radius: 8px;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 360px;
  overflow: auto;
  color: #90b7e4;
  font:
    12px/1.6 'SFMono-Regular',
    Consolas,
    monospace;
  margin-bottom: 0;
}
.webhook-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.webhook-row > div {
  flex: 1;
  overflow-wrap: anywhere;
}
.webhook-row strong {
  font-size: 14px;
  font-weight: 500;
}
.webhook-row small {
  display: block;
  margin-top: 6px;
}
.data-cards {
  display: grid;
  gap: 20px;
  max-width: 780px;
}
.data-cards section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #102039;
  padding: 25px;
}
.data-cards p {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 22px;
}
.data-cards form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.data-cards input {
  max-width: 400px;
}
.pipeline-canvas {
  border: 1px solid #243953;
  border-radius: 12px;
  background-color: #0a1423;
  background-image: radial-gradient(#2c446433 1px, transparent 1px);
  background-size: 18px 18px;
  overflow: auto;
}
.automation-board {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(240px, 1fr));
  min-height: 630px;
}
.automation-column {
  border-right: 1px solid #24385255;
  min-width: 0;
}
.pipeline-stage {
  padding: 13px 10px;
  border-top: 4px solid var(--stage);
  background: #102037;
  display: flex;
  gap: 7px;
  align-items: center;
  min-height: 80px;
}
.pipeline-stage > button:not(.icon-btn) {
  background: none;
  border: 0;
  text-align: left;
  flex: 1;
  padding: 3px;
  color: var(--text);
  min-width: 0;
}
.pipeline-stage strong {
  font-size: 14px;
  line-height: 1.4;
  display: block;
  overflow-wrap: anywhere;
}
.pipeline-stage small {
  display: block;
  margin-top: 6px;
}
.drag-handle {
  color: #607ea5;
  cursor: grab;
  flex-shrink: 0;
}
.drag-handle svg {
  width: 15px;
  height: 15px;
}
.stage-flow {
  padding: 23px 13px 40px;
}
.entry-label {
  text-align: center;
  font-size: 12px;
  color: #7f9cbc;
  margin: 0 0 23px;
  position: relative;
}
.entry-label:after {
  content: '';
  position: absolute;
  top: 21px;
  left: 50%;
  height: 14px;
  width: 1px;
  background: #345579;
}
.automation-block {
  position: relative;
  background: linear-gradient(150deg, #152c49, #102039);
  border: 1px solid #34577f;
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 23px;
  box-shadow: 0 5px 17px #03081038;
}
.automation-block:after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 50%;
  width: 1px;
  height: 22px;
  background: #37567c;
}
.automation-block.disabled {
  opacity: 0.5;
  border-style: dashed;
}
.automation-block:hover {
  border-color: #608abc;
  transform: translateY(-2px);
}
.block-type {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #80afd9;
}
.block-type > svg {
  width: 17px;
  height: 17px;
}
.block-type > .btn {
  margin-left: auto;
  width: 25px;
  height: 25px;
  padding: 4px;
}
.block-title {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 9px 0 11px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #d7e7fa;
  white-space: normal;
}
.block-condition {
  font-size: 12px;
  color: #a0b3cd;
  padding: 10px;
  background: #0b192dcc;
  border-radius: 6px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  min-height: 38px;
}
.block-foot {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7994b6;
  margin-top: 13px;
}
.switch {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 30px;
  height: 18px;
}
.switch > span {
  display: block;
  width: 30px;
  height: 17px;
  border-radius: 12px;
  background: #30445f;
  position: relative;
}
.switch > span:before {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  background: #90a2ba;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  transition: transform 0.16s;
}
.switch input:checked + span {
  background: #397cc6;
}
.switch input:checked + span:before {
  background: #d7ecff;
  transform: translateX(13px);
}
.switch input:focus-visible + span {
  outline: 2px solid #8cc2ff;
  outline-offset: 3px;
}
.add-block {
  border: 1px dashed #365579;
  border-radius: 10px;
  color: #86acd8;
  background: #0c1b2dc9;
  width: 100%;
  padding: 18px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.add-block:hover {
  background: #193455;
  border-color: #72a7e8;
}
.canvas-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  color: #7892b2;
  font-size: 12px;
  margin-top: 15px;
  line-height: 1.6;
}
.canvas-caption svg {
  width: 15px;
  height: 15px;
}
.condition-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(115px, 1fr) minmax(90px, 1fr) 26px;
  gap: 7px;
  margin-bottom: 12px;
}
.condition-row input,
.condition-row select {
  font-size: 12px;
  padding: 8px;
}
.condition-row .btn {
  width: 26px;
  height: 34px;
  padding: 5px;
}
.action-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}
.action-choice.btn {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  background: #152944;
  border: 1px solid #335377;
  border-radius: 11px;
  gap: 9px;
  padding: 19px;
  text-align: left;
  white-space: normal;
}
.action-choice:hover {
  background: #1b3b60;
  border-color: #6da1dd;
  transform: translateY(-2px);
}
.action-choice strong {
  font-size: 15px;
  font-weight: 500;
}
.action-choice small {
  font-size: 12px;
  line-height: 1.5;
}
.action-choice > .action-icon {
  color: #8ab9f3;
}
.action-choice > .action-icon svg {
  width: 25px;
  height: 25px;
}
.bot-toolbar {
  background: #0f2036;
  padding: 13px 16px;
  border: 1px solid #2c4565;
  border-radius: 10px;
}
.bot-toolbar .actions > span {
  color: var(--muted);
  font-size: 12px;
}
.bot-workspace {
  display: grid;
  grid-template-columns: minmax(350px, 1fr) 340px;
  border: 1px solid #2a3f5b;
  border-radius: 12px;
  overflow: hidden;
  background: #0c1726;
}
.graph-scroll {
  min-height: 730px;
  max-height: 900px;
  overflow: auto;
  background-color: #091422;
  background-image: radial-gradient(#34577c50 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}
.graph {
  position: relative;
}
.connections {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.connections text {
  fill: #b7c9df;
  font: 12px sans-serif;
  stroke: none;
}
.flow-node {
  position: absolute;
  width: 270px;
  background: #132842;
  border: 1px solid #3a5f89;
  border-radius: 11px;
  box-shadow: 0 7px 25px #0005;
  cursor: grab;
}
.flow-node.selected {
  border-color: #7bb8ff;
  box-shadow:
    0 0 0 3px #447cca33,
    0 8px 25px #0005;
}
.flow-node.executed {
  border-color: #60c2a4;
  box-shadow: 0 0 0 2px #53c59d20;
}
.flow-node.condition {
  border-color: #8a6baf;
  background: #29243e;
}
.flow-node.message {
  border-color: #527dab;
}
.flow-node.field {
  border-color: #587791;
}
.flow-node.wait {
  border-color: #8a764d;
  background: #2a2a2b;
}
.node-select {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 16px 0;
  min-height: 108px;
  color: #d5e5f9;
}
.node-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #a7cdf6;
}
.node-head strong {
  font-weight: 500;
  flex: 1;
}
.node-head .pill {
  font-size: 10px;
  padding: 3px 5px;
}
.node-select p {
  font-size: 13px;
  color: #a4b7d0;
  line-height: 1.5;
  margin-top: 14px;
  max-height: 42px;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.node-outputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 8px 12px;
}
.btn.node-port {
  font-size: 12px;
  min-width: 38px;
  padding: 4px 10px;
  border-radius: 15px;
  border: 1px solid #3b5e86;
  background: #102239;
  color: #accbf0;
}
.btn.node-port.yes {
  border-color: #507b76;
  color: #9cd7bd;
}
.btn.node-port.no {
  border-color: #976f56;
  color: #e2bd98;
}
.node-editor {
  padding: 22px;
  background: #101e31;
  border-left: 1px solid #2d4360;
  max-height: 900px;
  overflow: auto;
}
.node-editor .control {
  margin-top: 20px;
}
.node-editor .condition-row {
  grid-template-columns: 1fr 26px;
}
.node-editor .condition-row select,
.node-editor .condition-row input {
  grid-column: 1;
}
.node-editor .condition-row .btn {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}
.node-editor section {
  border-top: 1px solid #2b3e57;
  margin: 24px 0;
  padding-top: 20px;
}
.node-editor .section-heading h3 {
  font-size: 16px;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: #02070d9e;
  backdrop-filter: blur(4px);
  z-index: 40;
}
.drawer {
  position: fixed;
  right: 16px;
  top: 16px;
  bottom: 16px;
  width: 600px;
  max-width: calc(100vw - 32px);
  border: 1px solid #426086;
  border-radius: 14px;
  background: #102038;
  box-shadow: -20px 0 70px #0008;
  z-index: 45;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide 0.2s ease-out;
}
.drawer > header {
  padding: 24px 26px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer > header h2 {
  margin-top: 6px;
}
.drawer > .tabs {
  padding: 0 26px;
  margin: 0;
  gap: 23px;
  flex-shrink: 0;
}
.drawer-body {
  padding: 25px 26px;
  overflow: auto;
  flex: 1;
  min-height: 0;
}
.drawer > footer {
  padding: 16px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #334d6d;
  background: #152b47;
}
.drawer .btn.primary {
  white-space: nowrap;
}
.field-preview {
  border: 1px solid #315172;
  border-radius: 10px;
  background: #0c1b2e;
  padding: 20px;
  margin-top: 30px;
}
.field-preview > .metadata {
  display: block;
  margin-bottom: 19px;
}
.field-preview .control {
  margin: 0;
}
.field-preview input,
.field-preview select {
  background: #12233b;
}
.choice-list {
  display: grid;
  gap: 7px;
}
.option-rows > div {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 32px;
  gap: 8px;
  margin-bottom: 10px;
}
.modal {
  border: 1px solid #436283;
  border-radius: 14px;
  padding: 30px;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100vh - 50px);
  overflow: auto;
  color: var(--text);
  background: #11233b;
  box-shadow: 0 25px 85px #0009;
}
.modal.wide {
  width: min(660px, calc(100vw - 32px));
}
.modal::backdrop {
  background: #02070cc0;
  backdrop-filter: blur(5px);
}
.modal > h2 {
  padding-right: 25px;
  margin-bottom: 19px;
}
.modal .muted {
  font-size: 14px;
  line-height: 1.65;
}
.modal > form {
  margin-top: 25px;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 15px;
}
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}
.notification-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.notification-item strong {
  font-size: 14px;
  font-weight: 500;
}
.notification-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
}
.notification-item .link {
  display: block;
  margin-top: 7px;
  font-size: 13px;
}
.queue-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0;
}
.queue-row strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.queue-row small {
  display: block;
  margin-top: 7px;
}
[hidden] {
  display: none !important;
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes slide {
  from {
    opacity: 0;
    translate: 15px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1500px) {
  .settings-content {
    padding: 38px 48px 110px;
  }
  .card-layout {
    grid-template-columns: minmax(360px, 0.9fr) minmax(430px, 1.3fr);
    gap: 40px;
  }
  .main-content:not(.settings-main) {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1100px) {
  .settings-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .settings-content {
    padding: 27px 24px 110px;
  }
  .settings-nav {
    padding: 25px 10px;
  }
  .settings-nav > .btn {
    font-size: 13px;
    padding: 11px 9px;
  }
  .card-layout {
    grid-template-columns: minmax(260px, 0.9fr) minmax(330px, 1.1fr);
    gap: 20px;
  }
  .main-content {
    padding-left: 22px;
    padding-right: 22px;
  }
  .main-content.settings-main {
    padding: 0;
  }
  .bot-workspace {
    grid-template-columns: minmax(300px, 1fr) 300px;
  }
  .node-editor {
    padding: 18px;
  }
  .api-layout {
    grid-template-columns: 1fr;
  }
  .user-switch > span {
    display: none;
  }
  .pipeline-card .actions .btn {
    font-size: 12px;
  }
  .floating-bar > span {
    display: none;
  }
  .floating-bar {
    gap: 8px;
    padding: 10px 12px;
  }
}
@media (max-width: 850px) {
  .card-layout {
    grid-template-columns: 1fr;
  }
  .record-panel {
    padding: 21px;
  }
  .timeline {
    margin-top: 15px;
  }
  .app-header {
    padding: 0 20px;
    gap: 11px;
  }
  .main-content {
    padding: 24px 20px 115px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    height: auto;
    position: static;
    padding: 15px;
    display: flex;
    overflow: auto;
    gap: 7px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .settings-nav h2,
  .settings-note {
    display: none;
  }
  .settings-nav > .btn {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
    padding: 10px;
    font-size: 13px;
  }
  .settings-nav > .btn.active {
    box-shadow: none;
  }
  .settings-content {
    padding: 26px 21px 115px;
  }
  .settings-main {
    padding: 0;
  }
  .bot-workspace {
    grid-template-columns: 1fr;
  }
  .node-editor {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: none;
  }
  .graph-scroll {
    min-height: 620px;
    max-height: 730px;
  }
  .node-editor .condition-row {
    grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) minmax(100px, 1fr) 26px;
  }
  .node-editor .condition-row > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
  .bot-card {
    gap: 14px;
    flex-wrap: wrap;
  }
  .bot-card .actions {
    width: 100%;
    justify-content: flex-end;
  }
  .role-matrix {
    grid-template-columns: 1fr;
  }
  .app-rail {
    width: 76px;
  }
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .floating-bar {
    left: calc(50% + 20px);
    bottom: 18px;
  }
  .fab-wrap {
    right: 17px;
  }
  .board {
    grid-template-columns: repeat(var(--columns), 240px);
  }
  .automation-board {
    grid-template-columns: repeat(var(--columns), 265px);
  }
  .page-heading .actions {
    gap: 7px;
  }
  .group-list > div {
    flex-wrap: wrap;
  }
  .page-heading {
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-rail {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 7px 8px;
    gap: 9px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: auto;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 25px;
    flex-shrink: 0;
  }
  .app-rail nav {
    display: flex;
    gap: 3px;
    margin: 0;
    width: auto;
  }
  .app-rail nav .btn {
    padding: 5px 8px;
    font-size: 10px;
    gap: 4px;
  }
  .app-rail nav svg {
    width: 18px;
    height: 18px;
  }
  .rail-foot {
    display: none;
  }
  .app-header {
    position: static;
    height: 61px;
    padding: 0 13px;
    gap: 7px;
  }
  .header-brand {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .header-brand span {
    display: none;
  }
  .pill.demo {
    font-size: 9px;
    padding: 3px 5px;
  }
  .app-header > .avatar {
    display: none;
  }
  .user-switch select {
    max-width: 105px;
    padding: 6px;
    font-size: 12px;
  }
  .entity-nav {
    padding: 9px 12px;
    gap: 3px;
  }
  .entity-nav .btn {
    padding: 8px 9px;
    font-size: 13px;
  }
  .main-content {
    padding: 23px 15px 110px;
  }
  .settings-main {
    padding: 0;
  }
  .settings-content {
    padding: 24px 15px 110px;
  }
  .settings-nav {
    padding: 10px;
    gap: 3px;
  }
  .settings-nav .btn {
    font-size: 12px;
    padding: 9px 8px;
  }
  .settings-nav svg {
    width: 16px;
    height: 16px;
  }
  h1 {
    font-size: 23px;
  }
  .page-heading {
    margin-bottom: 24px;
    gap: 15px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading > .actions {
    width: 100%;
    justify-content: flex-start;
  }
  .page-heading > .actions .btn {
    font-size: 12px;
  }
  .btn {
    padding: 9px 11px;
    font-size: 13px;
  }
  .search {
    width: 100%;
    min-width: 0;
    flex: 1;
  }
  .search input {
    width: 100%;
    min-width: 0;
  }
  .list-toolbar > .actions {
    width: 100%;
  }
  .list-toolbar select {
    max-width: 100%;
    width: 100%;
  }
  .list-toolbar .search {
    min-width: 150px;
  }
  .board {
    grid-template-columns: repeat(var(--columns), 245px);
  }
  .record-panel {
    padding: 17px;
  }
  .record-field .control {
    padding-right: 24px;
  }
  .tabs {
    gap: 17px;
  }
  .tabs .btn {
    font-size: 13px;
  }
  .trace-row {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 10px;
  }
  .event-head {
    gap: 5px;
  }
  .event-head time {
    font-size: 11px;
  }
  .event {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 9px;
  }
  .event-symbol {
    width: 27px;
    height: 27px;
  }
  .event p {
    font-size: 13px;
  }
  .floating-bar {
    left: 15px;
    right: 88px;
    transform: none;
    max-width: none;
    justify-content: center;
    padding: 9px;
  }
  .floating-bar .actions {
    width: 100%;
    justify-content: center;
  }
  .floating-bar .btn {
    width: 100%;
  }
  .fab-wrap {
    right: 16px;
    bottom: 19px;
  }
  .fab {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .toast {
    left: 15px;
    right: 15px;
    transform: none;
    max-width: none;
    font-size: 13px;
    bottom: 90px;
  }
  .drawer {
    inset: 8px;
    width: auto;
    max-width: none;
  }
  .drawer > header {
    padding: 20px;
  }
  .drawer > .tabs {
    padding: 0 20px;
    gap: 17px;
  }
  .drawer-body {
    padding: 21px 20px;
  }
  .drawer > footer {
    padding: 13px;
    gap: 7px;
  }
  .drawer > footer > .btn:not(.icon-btn) {
    font-size: 12px;
  }
  .drawer .condition-row {
    grid-template-columns: 1fr 26px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .drawer .condition-row > * {
    grid-column: 1;
  }
  .drawer .condition-row .btn {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
  }
  .option-rows > div {
    grid-template-columns: minmax(0, 1fr) 32px;
  }
  .option-rows input:nth-child(2) {
    grid-row: 2;
    grid-column: 1;
  }
  .option-rows .btn {
    grid-row: 1 / span 2;
    grid-column: 2;
    align-self: center;
  }
  .modal {
    padding: 26px 20px;
    width: calc(100vw - 24px);
  }
  .action-picker {
    grid-template-columns: 1fr;
  }
  .action-choice.btn {
    padding: 15px;
  }
  .theme-swatch > svg {
    margin-left: auto;
  }
  .pipeline-card {
    padding: 18px;
  }
  .pipeline-card h2 {
    font-size: 17px;
  }
  .mini-stages > span {
    min-width: 100px;
  }
  .pipeline-card .section-heading .actions {
    width: 100%;
    justify-content: flex-start;
  }
  .condition-result {
    flex-wrap: wrap;
  }
  .bot-toolbar select {
    max-width: 100%;
    width: 100%;
  }
  .bot-toolbar > .actions:first-child {
    width: 100%;
  }
  .graph-scroll {
    min-height: 550px;
  }
  .node-editor .condition-row {
    grid-template-columns: 1fr 26px;
  }
  .node-editor .condition-row select,
  .node-editor .condition-row input {
    grid-column: 1 !important;
  }
  .node-editor .condition-row .btn {
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
  }
  .data-cards section {
    padding: 20px;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .task-card {
    padding: 16px;
    gap: 11px;
    flex-wrap: wrap;
  }
  .task-card .pill {
    margin-left: 40px;
  }
  .webhook-row {
    flex-wrap: wrap;
  }
  .webhook-row > div {
    min-width: 100%;
  }
  .bot-card .bot-badge {
    width: 42px;
    height: 42px;
  }
  .bot-card h2 {
    font-size: 17px;
  }
  .bot-card .actions {
    justify-content: flex-start;
  }
  .pipeline-toolbar select {
    width: 100%;
    max-width: 100%;
  }
  .pipeline-toolbar > .actions {
    width: 100%;
  }
  .bot-workspace {
    border-radius: 9px;
  }
  .canvas-caption {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
/* Commerce, role workspaces, and digital pipeline */
.cabinet-switch {
  margin-left: 24px;
}
.cabinet-switch .btn {
  font-size: 12px;
  padding: 8px 13px;
}
.deal-total {
  font-size: 18px;
  color: #a9d1ff;
  border: 1px solid #325575;
  background: #122539;
  padding: 10px 17px;
}
.deal-tabs {
  margin: 20px 0;
}
.readonly-value {
  padding: 12px;
  background: #101c2a;
  border: 1px solid #263749;
  border-radius: 8px;
  color: #b6c7db;
}
.deal-products {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  padding-bottom: 110px;
}
.quote-main,
.quote-catalog,
.manager-home-grid > section,
.cabinet-cards > article {
  background: #101923;
  border: 1px solid #263443;
  border-radius: 14px;
  padding: 22px;
}
.quote-table {
  width: 100%;
  border-collapse: collapse;
}
.quote-table th {
  font-size: 11px;
  text-transform: uppercase;
  color: #8297ad;
  padding: 16px 10px;
  text-align: left;
}
.quote-table td {
  padding: 20px 10px;
  border-top: 1px solid #263443;
}
.quote-table small {
  display: block;
  color: #8297ad;
  font-size: 11px;
  margin-top: 7px;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity-control output {
  min-width: 20px;
  text-align: center;
}
.quote-bottom {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-top: 28px;
}
.quote-policy {
  font-size: 12px;
  color: #8ea3ba;
  max-width: 260px;
  line-height: 1.7;
}
.quote-policy svg {
  width: 16px;
  vertical-align: middle;
}
.quote-summary {
  min-width: 290px;
}
.quote-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.quote-summary > small {
  color: #8196ae;
}
.quote-summary .quote-grand-total {
  margin-top: 16px;
  border-top: 1px solid #314359;
  font-size: 18px;
  color: #b4d5ff;
}
.quote-catalog {
  align-self: start;
  position: sticky;
  top: 20px;
}
.catalog-items article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid #243443;
}
.catalog-items article > div:nth-child(2) {
  flex: 1;
}
.catalog-items h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.catalog-items small {
  display: block;
  color: #8b9db1;
  font-size: 11px;
}
.catalog-items strong {
  display: block;
  margin-top: 7px;
  font-size: 13px;
  color: #9ec4f5;
}
.catalog-icon {
  background: #1d3046;
  color: #81b7fd;
  padding: 10px;
  border-radius: 10px;
}
.catalog-icon svg {
  width: 20px;
}
.floating-bar {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-40%);
  display: flex;
  gap: 30px;
  align-items: center;
  background: #192a3ded;
  border: 1px solid #3c5773;
  border-radius: 15px;
  padding: 13px 18px;
  box-shadow: 0 12px 40px #0009;
  z-index: 20;
  backdrop-filter: blur(20px);
}
.floating-bar > span {
  font-size: 12px;
  color: #9ab0c9;
}
.manager-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.manager-stats > button {
  text-align: left;
  border: 1px solid #2d4055;
  border-radius: 15px;
  background: linear-gradient(130deg, #15283c, #101925);
  padding: 25px;
  color: #e4edfa;
  cursor: pointer;
}
.manager-stats strong {
  display: block;
  font-size: 38px;
  margin: 16px 0;
}
.manager-stats small {
  color: #8ea9c5;
}
.manager-home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.manager-deal {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-top: 1px solid #243649;
  background: none;
  color: #d3e0f3;
  padding: 19px 0;
  cursor: pointer;
  text-align: left;
}
.manager-deal small {
  display: block;
  color: #8198b0;
  margin-top: 7px;
}
.cabinet-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
.cabinet-cards p,
.cabinet-cards li {
  color: #96a9bf;
  line-height: 1.8;
}
.cabinet-symbol svg {
  width: 32px;
  color: #85b7fa;
}
.permission-summary > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  color: #a5b8d0;
}
.permission-summary svg {
  width: 19px;
  color: #75b4ff;
}
.settings-nav {
  background: #0b141f;
  border-right: 1px solid #263749;
}
.settings-nav h2 {
  font-size: 23px;
  padding-bottom: 18px;
  border-bottom: 1px solid #243345;
}
.settings-nav .btn {
  border-radius: 7px;
  margin: 3px 0;
}
.settings-nav .btn.active {
  background: #182f48;
  color: #a9ceff;
  box-shadow: inset 3px 0 #74afff;
}
.pipeline-sheet {
  overflow: auto;
  border: 1px solid #2d4052;
  border-radius: 10px;
  background: #0b141e;
  max-height: calc(100vh - 305px);
}
.sheet-grid {
  display: grid;
  grid-template-columns: 42px repeat(var(--columns), minmax(250px, 1fr));
  min-width: max-content;
}
.sheet-corner,
.sheet-row-number {
  background: #111f2c;
  color: #688099;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-right: 1px solid #2a3a4a;
  border-bottom: 1px solid #2a3a4a;
  font-size: 12px;
}
.sheet-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #14202e;
  border-right: 1px solid #304154;
  border-bottom: 3px solid var(--stage);
  padding: 0 15px 15px;
}
.sheet-header > small {
  display: block;
  text-align: center;
  border-bottom: 1px solid #2b3b4e;
  padding: 5px;
  color: #647e9c;
}
.sheet-header > div {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.sheet-header > span {
  font-size: 11px;
  color: #8fa6be;
  padding-left: 28px;
}
.sheet-header .stage-name {
  border: 0;
  background: transparent;
  padding: 8px;
  font-weight: 600;
}
.sheet-cell {
  padding: 12px;
  min-height: 190px;
  border-right: 1px solid #263749;
  border-bottom: 1px solid #263749;
}
.sheet-cell:hover {
  background: #122134;
}
.sheet-cell .automation-block {
  margin: 0;
  min-height: 162px;
  background: #172638;
  box-shadow: 0 4px 10px #0003;
  border: 1px solid #344d67;
  border-radius: 9px;
}
.empty-cell {
  height: 100%;
  min-height: 162px;
  width: 100%;
  border: 1px dashed #2a4159;
  background: transparent;
  color: #6b88a8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}
.empty-cell:hover {
  background: #192e46;
  color: #a9d0ff;
  border-color: #6087b4;
}
.flow-node .node-outputs {
  position: absolute;
  right: -13px;
  top: 53px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: none;
  border: 0;
  padding: 0;
}
.flow-node .node-port {
  border: 1px solid #54759a;
  background: #172c44;
  border-radius: 20px;
  font-size: 10px;
  padding: 4px 7px;
}
.flow-node.question {
  border-color: #8e79c6;
}
.test-chat {
  min-height: 180px;
  max-height: 65vh;
  overflow: auto;
  padding: 10px;
}
.chat-bubble {
  max-width: 85%;
  background: #1b314b;
  border: 1px solid #2c4d70;
  padding: 16px;
  border-radius: 14px 14px 14px 2px;
  margin: 16px 0;
}
.chat-bubble > span,
.chat-bubble time {
  font-size: 10px;
  color: #8eadd1;
}
.chat-bubble p {
  white-space: pre-wrap;
  margin: 8px 0;
}
.chat-bubble.from-client {
  margin-left: auto;
  background: #233349;
  border-radius: 14px 14px 2px 14px;
}
.bot-reply {
  padding: 16px;
  background: #121e2e;
  border: 1px solid #32445b;
  border-radius: 12px;
}
.answer-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.bot-reply input {
  margin: 10px 0;
}
.quote-tax-actions .btn {
  font-size: 12px;
}
@media (max-width: 1150px) {
  .deal-products {
    grid-template-columns: 1fr;
  }
  .quote-catalog {
    position: static;
  }
  .catalog-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .quote-bottom {
    flex-wrap: wrap;
  }
  .user-switch > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .manager-home-grid,
  .cabinet-cards {
    grid-template-columns: 1fr;
  }
  .manager-stats {
    gap: 8px;
  }
  .manager-stats > button {
    padding: 14px;
  }
  .manager-stats strong {
    font-size: 26px;
  }
  .cabinet-switch {
    margin-left: 5px;
  }
  .floating-bar {
    left: 90px;
    right: 14px;
    transform: none;
    justify-content: flex-end;
  }
  .floating-bar > span {
    display: none;
  }
  .catalog-items {
    grid-template-columns: 1fr;
  }
  .quote-summary {
    min-width: 100%;
  }
  .deal-products {
    gap: 14px;
  }
  .quote-main {
    padding: 12px;
  }
}
