/*!****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/styles.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************/
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: #26323f;
  background: #eef2f5;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

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

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-panel {
  width: min(440px, 100%);
  border: 1px solid #b8c5cf;
  background: #ffffff;
  padding: 28px;
}

.login-panel h1,
.work-surface h1 {
  margin: 4px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.eyebrow {
  margin: 0;
  color: #516272;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-form {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  margin-top: 22px;
}

.login-form label,
.grid-form label {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  color: #3e4c59;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #aebbc7;
  background: #ffffff;
  color: #1f2933;
  padding: 7px 9px;
}

textarea {
  resize: vertical;
}

button {
  min-height: 32px;
  border: 1px solid #1d6f96;
  background: #2386b8;
  color: #ffffff;
  padding: 6px 12px;
  font-weight: 700;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-error {
  margin: 0;
  color: #b42318;
  font-size: 14px;
}

.admin-layout {
  height: 100vh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.admin-topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 66px;
  background: #302d2d;
  color: #ffffff;
  padding: 8px 34px 8px;
  box-shadow: 0 1px 8px rgba(28, 25, 25, 0.18);
}

.admin-topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, #24a9e0 0 11%, #7fc241 11% 82%, #f1d629 82% 100%);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
}

.brand-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 30px;
  flex: 0 0 42px;
}

.brand-ring {
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
}

.ring-a {
  top: 1px;
  left: 0;
  width: 11px;
  height: 11px;
  color: #f1d629;
}

.ring-b {
  top: -5px;
  right: 0;
  width: 20px;
  height: 20px;
  color: #24a9e0;
}

.ring-c {
  top: 7px;
  left: 16px;
  width: 9px;
  height: 9px;
  color: #ef4e35;
}

.topbar-brand {
  flex: 0 0 auto;
  min-width: 220px;
}

.topbar-brand strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

.brand-block small {
  display: block;
  margin-top: 2px;
  color: #cfc8c2;
  font-size: 11px;
}

.topbar-nav {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  height: 40px;
  overflow-x: auto;
}

.topbar-nav a {
  position: relative;
  display: inline-grid;
  align-items: center;
  min-height: 31px;
  border-color: transparent;
  background: transparent;
  color: #ffffff;
  padding: 9px 14px 5px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.topbar-nav a::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 14px;
  right: 14px;
  height: 3px;
  background: #7fc241;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.topbar-nav a.active::before {
  opacity: 1;
  transform: translateY(0);
}

.topbar-nav a.active,
.topbar-nav a:hover {
  color: #ffffff;
}

.topbar-nav a:hover::before {
  opacity: 0.55;
  transform: translateY(0);
}

.topbar-nav a:focus-visible {
  outline: 0;
}

.topbar-nav a:focus-visible::before {
  background: #f1d629;
  opacity: 1;
  transform: translateY(0);
}

.topbar-logout {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid #695f5a;
  background: #423c3a;
  color: #ffffff;
  padding: 5px 12px;
}

.topbar-logout:hover {
  border-color: #7fc241;
  background: #514946;
}

.admin-content {
  min-width: 0;
  min-height: 0;
  padding: 14px 18px 18px;
  overflow: auto;
}

.admin-content-constructor {
  overflow: hidden;
}

.settings-surface {
  align-content: start;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #c7d2dc;
  padding-bottom: 12px;
}

.settings-tabs button {
  min-height: 34px;
  border: 1px solid #c7d2dc;
  background: #ffffff;
  color: #30404d;
  padding: 7px 12px;
}

.settings-tabs button.active,
.settings-tabs button:hover {
  border-color: #2386b8;
  background: #e7f3f8;
  color: #173344;
}

.settings-page {
  display: grid;
  grid-template-columns: 210px minmax(0, 690px);
  justify-content: center;
  grid-gap: 22px;
  gap: 22px;
  min-height: calc(100vh - 102px);
  padding: 16px 0 38px;
  background:
    linear-gradient(135deg, rgba(210, 220, 228, 0.36) 25%, transparent 25%) 0 0 / 12px 12px,
    #f4f7f9;
}

.settings-menu {
  align-self: start;
  display: grid;
  grid-gap: 0;
  gap: 0;
  border: 1px solid #d7dde2;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(43, 52, 60, 0.08);
}

.settings-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid #e3e7ea;
  background: #ffffff;
  color: #172331;
  padding: 8px 11px;
  text-align: left;
  text-decoration: none;
  font-weight: 500;
}

.settings-menu button.active {
  color: #0b668e;
  font-weight: 700;
  background: #f3f8fb;
}

.amo-settings-area {
  min-width: 0;
  display: grid;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  grid-gap: 16px;
  gap: 16px;
}

.settings-breadcrumb {
  align-self: start;
  border: 1px solid #d7dde2;
  background: #ffffff;
  color: #8b98a3;
  padding: 7px 12px;
  box-shadow: 0 1px 3px rgba(43, 52, 60, 0.06);
}

.amo-card {
  align-self: start;
  border: 1px solid #cfd6dc;
  background: #ffffff;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(43, 52, 60, 0.06);
}

.amo-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.amo-card-header h1 {
  margin: 0 0 8px;
  color: #202b35;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}

.amo-card-header a,
.amo-actions a {
  color: #111820;
  text-decoration: underline;
}

.amo-logo {
  flex: 0 0 auto;
  color: #c8c8c8;
  font-size: 20px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.amo-logo span {
  color: #14aeea;
}

.amo-accordion {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.amo-section {
  border: 1px solid #d5d9dd;
  background: #ffffff;
}

.amo-section-title {
  width: 100%;
  min-height: 31px;
  border: 0;
  background: #eeeeee;
  color: #3b4752;
  padding: 7px 12px;
  text-align: left;
  font-weight: 500;
}

.amo-section.open .amo-section-title {
  border-bottom: 1px solid #d5d9dd;
}

.amo-section-body {
  padding: 14px 12px 17px;
}

.amo-section-body input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin-top: 2px;
}

.amo-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 8px 20px;
  gap: 8px 20px;
  font-size: 13px;
}

.amo-status {
  display: inline-block;
  background: #2f9e44;
  color: #ffffff;
  padding: 2px 5px;
  font-size: 12px;
}

.amo-form-stack {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.amo-form-stack h2 {
  margin: 8px 0 0;
  font-size: 19px;
  font-weight: 400;
}

.amo-form-stack label,
.amo-advanced-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.amo-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  grid-gap: 18px 28px;
  gap: 18px 28px;
  margin-bottom: 18px;
}

.amo-template-grid label {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: #172331;
  font-weight: 700;
}

.amo-template-grid span {
  color: #30404d;
  font-size: 12px;
  font-weight: 400;
}

.amo-template-grid input,
.amo-field-row input,
.amo-field-row select {
  min-height: 26px;
  border: 1px solid #c4cbd1;
  background: #ffffff;
  padding: 4px 8px;
  font-weight: 400;
}

.amo-fields-table {
  border-bottom: 1px solid #d7dde2;
  padding: 14px 0;
}

.amo-fields-table h3,
.amo-variable-list h3,
.amo-webhooks h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.amo-field-row {
  display: grid;
  grid-template-columns: 90px minmax(120px, 1fr) minmax(130px, 1fr) 100px;
  grid-gap: 7px;
  gap: 7px;
  align-items: center;
  margin-bottom: 6px;
}

.amo-field-row.header {
  color: #314351;
  font-size: 12px;
}

.amo-fields-table button,
.amo-actions button {
  min-height: 30px;
  border-color: #0060aa;
  background: #0f78d0;
  padding: 5px 10px;
}

.amo-variable-list {
  padding: 14px 0 15px;
  font-size: 13px;
}

.amo-variable-list.primary {
  border-top: 1px solid #d7dde2;
  border-bottom: 1px solid #d7dde2;
  margin-bottom: 14px;
}

.amo-variable-list p {
  margin: 0 0 5px;
  line-height: 1.25;
}

.amo-variable-list code {
  color: #172331;
  background: transparent;
  font-size: 12px;
}

.amo-note {
  margin: 0 0 14px;
  border: 1px solid #b9dae9;
  background: #d9eef7;
  color: #2b6f8c;
  padding: 8px 12px;
}

.amo-users-table {
  display: grid;
  border: 1px solid #b7c6d2;
}

.amo-user-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid #c8d3dc;
  background: #e6edf4;
  padding: 7px 10px;
}

.amo-user-row small {
  display: block;
  margin-top: 3px;
}

.amo-webhooks {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.amo-webhooks p {
  margin: 0;
  color: #51616e;
  font-size: 12px;
  word-break: break-all;
}

.amo-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  grid-gap: 12px 28px;
  gap: 12px 28px;
}

.amo-actions {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  grid-gap: 14px;
  gap: 14px;
  margin-top: 18px;
}

.amo-actions .danger-button {
  justify-self: end;
  border-color: #c04444;
  background: #dc5757;
}

.calls-page {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.calls-header {
  border: 1px solid #cbd5de;
  background: #ffffff;
  padding: 12px 14px;
}

.calls-filters {
  display: inline-flex;
  gap: 4px;
  border: 1px solid #cbd5de;
  background: #f4f7f9;
  padding: 3px;
}

.calls-filters button {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #40505c;
  padding: 4px 10px;
  font-weight: 600;
}

.calls-filters button.active,
.calls-filters button:hover {
  background: #ffffff;
  color: #172331;
  box-shadow: 0 1px 2px rgba(43, 52, 60, 0.08);
}

.calls-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.8fr);
  grid-gap: 14px;
  gap: 14px;
}

.calls-card {
  border: 1px solid #cbd5de;
  background: #ffffff;
}

.calls-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d9e1e8;
  padding: 12px 14px;
}

.calls-card-header h2 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.calls-card-header input {
  width: min(320px, 100%);
  min-height: 30px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border: 1px solid #ccd6de;
  background: #f4f7f9;
  color: #526170;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill.idle {
  border-color: #d8dfe5;
  background: #f7f9fb;
}

.current-call-empty {
  display: grid;
  place-items: center;
  min-height: 142px;
  padding: 18px;
  color: #5d6d7b;
  text-align: center;
}

.current-call-empty strong {
  color: #172331;
  font-size: 18px;
}

.current-call-empty span {
  margin-top: 5px;
}

.call-actions-row {
  display: flex;
  gap: 8px;
  border-top: 1px solid #d9e1e8;
  padding: 10px 14px;
}

.call-actions-row button {
  min-width: 92px;
}

.call-stat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.call-stat-list div {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  border-right: 1px solid #d9e1e8;
  padding: 16px 14px;
}

.call-stat-list div:last-child {
  border-right: 0;
}

.call-stat-list strong {
  color: #172331;
  font-size: 26px;
  line-height: 1;
}

.call-stat-list span {
  color: #5d6d7b;
  font-size: 12px;
  text-transform: uppercase;
}

.calls-table {
  display: grid;
}

.calls-table-row {
  display: grid;
  grid-template-columns: 110px 130px minmax(160px, 1fr) minmax(160px, 1fr) 140px;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid #d9e1e8;
  padding: 0 14px;
}

.calls-table-row.header {
  background: #f4f7f9;
  color: #526170;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.calls-table-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: #60717f;
}

.work-surface {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.surface-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #c7d2dc;
  padding-bottom: 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 140px auto;
  grid-gap: 8px;
  gap: 8px;
}

.two-column {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-gap: 14px;
  gap: 14px;
}

.list-panel,
.table-panel {
  border: 1px solid #c7d2dc;
  background: #ffffff;
  padding: 12px;
}

.list-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
}

.row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d6dee5;
  background: #f8fafb;
  padding: 10px;
  margin-bottom: 7px;
}

.row-card.selected {
  border-color: #2386b8;
  background: #e7f3f8;
}

.row-card span,
.node-row small,
.empty-state {
  color: #60717f;
  font-size: 13px;
}

.node-list {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.node-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  border: 1px solid #d6dee5;
  background: #f8fafb;
  padding: 10px;
}

.node-row > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #dfeaf0;
  font-weight: 700;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  grid-gap: 10px;
  gap: 10px;
  border: 1px solid #c7d2dc;
  background: #ffffff;
  padding: 14px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
}

.checkbox-line input {
  width: auto;
  min-height: 0;
}

.user-row code {
  max-width: 360px;
  overflow: hidden;
  color: #314351;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheme-editor {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.scheme-rail {
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid #31404b;
  background: #17212a;
  overflow: auto;
}

.scheme-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.rail-section {
  border-bottom: 1px solid #d8e0e7;
  padding: 12px;
}

.rail-section:last-child {
  border-bottom: 0;
}

.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: #22303a;
  font-weight: 700;
}

.rail-title small,
.catalog-list small,
.rail-item span,
.hint-text {
  color: #647483;
  font-size: 12px;
  font-weight: 400;
}

.rail-list,
.catalog-list,
.settings-stack {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.rail-panel {
  border: 1px solid #344550;
  border-radius: 7px;
  background: #1e2932;
  color: #eef5fa;
  overflow: hidden;
}

.rail-panel + .rail-panel {
  margin-top: 0;
}

.rail-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 34px;
  padding: 0 8px;
  background: #141e26;
  cursor: pointer;
  list-style: none;
}

.rail-panel summary::-webkit-details-marker {
  display: none;
}

.rail-panel-title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.rail-panel-title strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-chevron {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #ffffff;
  transform: rotate(0deg);
  transition: transform 0.12s ease;
}

.rail-panel[open] .rail-chevron {
  transform: rotate(90deg);
}

.rail-panel-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rail-panel-meta small {
  color: #95a5b3;
  font-size: 11px;
}

.rail-panel-meta button {
  min-height: 22px;
  border: 1px solid #6db5dc;
  border-radius: 3px;
  background: #2f94c2;
  color: #ffffff;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.rail-panel-body {
  display: grid;
  grid-gap: 0;
  gap: 0;
  padding: 0;
}

.scheme-group-next {
  display: grid;
  grid-gap: 0;
  gap: 0;
}

.scheme-group-next > span {
  color: #60717f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.new-scheme-form {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 8px;
}

.rail-item,
.catalog-list button {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d6dee5;
  background: #f8fafb;
  color: #273542;
  text-align: left;
}

.modal-catalog-list {
  gap: 10px;
}

.modal-catalog-list button {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
  min-height: 52px;
  border-radius: 8px;
  background: #ffffff;
}

.catalog-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #60717f;
  font-size: 13px;
}

.catalog-modal-head strong {
  color: #26323f;
}

.catalog-tabs-next {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.catalog-tabs-next button {
  min-height: 38px;
  border-color: transparent;
  background: #f3f5f7;
  color: #687786;
  font-weight: 400;
}

.catalog-tabs-next button.active {
  color: #26323f;
  border-bottom-color: #5b4bff;
}

.catalog-tabs-next .tone-red.active {
  background: #fff0f0;
}

.catalog-tabs-next .tone-yellow.active {
  background: #fff6d9;
}

.catalog-tabs-next .tone-blue.active {
  background: #e9edff;
}

.catalog-tabs-next .tone-green.active {
  background: #e8f6eb;
}

.catalog-tabs-next .tone-purple.active {
  background: #f3e8f7;
}

.catalog-node-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.catalog-node-icon.tone-red {
  color: #e05c48;
}

.catalog-node-icon.tone-yellow {
  color: #d8a600;
}

.catalog-node-icon.tone-blue {
  color: #5b4bff;
}

.catalog-node-icon.tone-green {
  color: #43a657;
}

.catalog-node-icon.tone-purple {
  color: #9b58c4;
}

.catalog-node-main {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.catalog-node-main small {
  color: #687786;
  font-size: 12px;
}

.catalog-status {
  color: #66717d;
  font-size: 13px;
  font-weight: 700;
}

.catalog-status.implemented {
  color: #555d66;
  font-size: 24px;
  line-height: 1;
}

.catalog-status.upcoming {
  border: 1px solid #d6dee5;
  background: #f4f7f9;
  padding: 4px 8px;
  font-size: 11px;
}

.rail-item strong,
.rail-item span,
.catalog-list span,
.catalog-list small {
  display: block;
}

.scheme-group-next .rail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 32px;
  border: 0;
  border-bottom: 1px solid #303d46;
  border-radius: 0;
  background: #202a32;
  color: #ffffff;
  padding: 6px 10px 6px 14px;
}

.scheme-group-next .rail-item::after {
  content: none;
}

.scheme-group-next .rail-item strong,
.scheme-group-next .rail-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scheme-group-next .rail-item span {
  color: #8da0af;
}

.scheme-group-next .rail-item strong {
  font-size: 10px;
}

.scheme-group-next .rail-item span {
  font-size: 9px;
}

.rail-item.active {
  border-color: #303d46;
  background: #e5edf4;
  color: #111820;
}

.rail-item.active span {
  color: #40505c;
}

.rail-empty {
  margin: 0;
  color: #a8b4bd;
  font-size: 12px;
  padding: 8px;
}

.validation-list {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  margin: 0;
  padding: 8px 8px 8px 24px;
  color: #ffd4bd;
  font-size: 12px;
}

.user-group-next {
  display: grid;
}

.rail-user {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  grid-gap: 7px;
  gap: 7px;
  align-items: start;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid #303d46;
  border-radius: 0;
  background: #202a32;
  color: #ffffff;
  padding: 8px 9px 8px 14px;
  text-align: left;
}

.rail-user:hover {
  background: #26333d;
}

.rail-user strong,
.rail-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-user strong {
  font-size: 11px;
  line-height: 1.2;
}

.rail-user small {
  margin-top: 4px;
  color: #bac6cf;
  font-size: 10px;
  line-height: 1.25;
}

.user-dot {
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border-radius: 999px;
  background: #667580;
}

.user-dot.active {
  background: #1fc4a6;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.plain-field {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  color: #33414f;
  font-size: 13px;
}

.plain-field code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid #b8c6d0;
  background: #f8fafb;
  padding: 9px 10px;
  color: #172330;
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.devices-box {
  display: grid;
  border: 1px solid #c3ced8;
  background: #ffffff;
}

.devices-box h3 {
  margin: 0;
  border-bottom: 1px solid #c3ced8;
  background: #e8edf2;
  padding: 8px 10px;
  color: #26323f;
  font-size: 14px;
}

.device-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  grid-gap: 8px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #d8e0e7;
  padding: 8px 10px;
}

.device-row:last-child {
  border-bottom: 0;
}

.device-row strong,
.device-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-row strong {
  color: #26323f;
  font-size: 14px;
}

.device-row small {
  margin-top: 2px;
  color: #60717f;
  font-size: 12px;
}

.device-radio {
  width: 13px;
  height: 13px;
  margin: 0;
  border: 1px solid #98a7b4;
  border-radius: 999px;
  accent-color: #b951d0;
}

.device-row.active .device-radio {
  border-color: #a844c4;
}

.device-icon-button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #56636f;
  padding: 0;
  font-size: 20px;
}

.device-icon-button:hover:not(:disabled) {
  color: #2386b8;
}

.device-icon-button:disabled {
  opacity: 0.45;
}

.password-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-gap: 8px;
  gap: 8px;
}

.compact-button {
  min-height: 34px;
  padding: 6px 10px;
}

.sip-info-box {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  border: 1px solid #d3dde5;
  background: #f8fafb;
  padding: 10px 12px;
  color: #33414f;
  font-size: 13px;
}

.sip-device-note {
  margin: 0;
  border: 1px solid #c9dce7;
  background: #eaf6fb;
  padding: 10px;
  color: #40505c;
  font-size: 13px;
}

.scheme-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #cbd5de;
  background: #f9fbfc;
}

.scheme-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d6dee5;
  background: #ffffff;
  padding: 10px 14px;
}

.scheme-toolbar h1,
.settings-header h2 {
  margin: 3px 0 0;
  font-size: 19px;
  line-height: 1.2;
}

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

.save-flow-button {
  min-width: 92px;
  font-weight: 700;
}

.save-flow-button.saved {
  border-color: #287a51;
  background: #2f9d63;
  color: #ffffff;
}

.save-flow-button.saving,
.save-flow-button.dirty {
  border-color: #1d6f96;
  background: #2386b8;
  color: #ffffff;
}

.canvas-shell-next {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.canvas-area-next {
  position: absolute;
  inset: 0;
  min-height: 0;
  overflow: hidden;
  cursor: -webkit-grab;
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: none;
  background:
    linear-gradient(#edf2f5 1px, transparent 1px),
    linear-gradient(90deg, #edf2f5 1px, transparent 1px),
    #fcfefe;
  background-size: 28px 28px;
  padding: 24px;
}

.canvas-area-next.panning {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.canvas-zoom-controls {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 20;
  display: inline-flex;
  gap: 4px;
  border: 1px solid #c4d0d9;
  background: rgba(255, 255, 255, 0.94);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(43, 52, 60, 0.12);
}

.canvas-zoom-controls button {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  min-height: 28px;
  border: 0;
  background: #eef4f8;
  color: #26323f;
  padding: 0 8px;
  font-size: 13px;
}

.canvas-zoom-controls button:hover {
  background: #dfeaf1;
}

.flow-tree {
  position: absolute;
  top: calc(24px + var(--canvas-pan-y, 0px));
  left: calc(50% + var(--canvas-pan-x, 0px));
  display: flex;
  justify-content: center;
  min-width: max-content;
  transform: translateX(-50%);
  transform-origin: top center;
  zoom: var(--canvas-zoom, 1);
}

.flow-chain-next {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 176px;
}

.flow-chain-next.drag-moving-next {
  position: relative;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(21, 29, 36, 0.22));
}

.flow-chain-next.drag-descendant-next .flow-node-next {
  opacity: 0.92;
}

.flow-node-next {
  display: grid;
  justify-items: center;
  grid-gap: 4px;
  gap: 4px;
  width: 176px;
  border: 0;
  background: transparent;
  --node-color: #2386b8;
  --node-bg: #eef8fc;
  --node-glow: #d9f0f8;
  color: #172331;
  padding: 0;
  text-align: center;
  overflow: visible;
  cursor: -webkit-grab;
  cursor: grab;
}

.flow-node-next.selected {
  outline: 0;
}

.flow-node-next.selected .node-badge {
  outline: 3px solid rgba(35, 134, 184, 0.2);
  outline-offset: 3px;
}

.flow-node-next.selected .node-body {
  border-color: var(--node-color);
}

.node-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 3px solid color-mix(in srgb, var(--node-color) 62%, white);
  border-radius: 999px;
  background: var(--node-bg);
  box-shadow: inset 0 0 0 3px var(--node-glow);
  color: var(--node-color);
}

.node-badge svg {
  display: block;
  width: 38px;
  height: 38px;
}

.node-body {
  display: grid;
  grid-gap: 1px;
  gap: 1px;
  justify-items: center;
  width: 146px;
  min-height: 22px;
  border: 1px solid #bfcbd5;
  border-radius: 3px;
  background: #eef2f6;
  padding: 4px 7px;
  text-align: center;
}

.node-body strong {
  overflow: hidden;
  max-width: 100%;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.node-body small {
  display: block;
  max-width: 100%;
  color: #1f2c38;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tone-condition {
  --node-color: #e05c48;
  --node-bg: #fff0ef;
  --node-glow: #ffd8d4;
}

.tone-message {
  --node-color: #d6aa00;
  --node-bg: #fff7d2;
  --node-glow: #ffe89a;
}

.tone-call {
  --node-color: #2089b5;
  --node-bg: #eaf8fc;
  --node-glow: #d6f0f8;
}

.tone-start {
  --node-color: #2386b8;
  --node-bg: #eef8fc;
  --node-glow: #d9f0f8;
}

.tone-generic {
  --node-color: #6bbd45;
  --node-bg: #f0faec;
  --node-glow: #d7f2ca;
}

.connector-next {
  position: relative;
  display: grid;
  justify-items: center;
  grid-gap: 2px;
  gap: 2px;
  min-height: 40px;
  padding-top: 9px;
}

.connector-next::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 21px;
  background: #82b8d1;
  z-index: 0;
}

.connector-next.has-child::before {
  height: 100%;
}

.connector-next.has-child::after {
  content: none;
}

.connector-next.has-label.has-child::after {
  content: none;
}

.connector-next span {
  position: relative;
  z-index: 1;
  border: 1px solid #bfcbd5;
  background: #ffffff;
  color: #26323f;
  padding: 2px 7px;
  font-size: 11px;
  white-space: nowrap;
}

.connector-next button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  min-height: 22px;
  border: 2px solid #9ad0e0;
  border-radius: 50%;
  background: #2d97bd;
  padding: 0;
  line-height: 1;
}

.connector-next.active button {
  border-color: #f0b429;
  background: #f0b429;
  color: #172331;
}

.connector-next.drop-target-next {
  border-radius: 8px;
  outline: 3px solid rgba(240, 180, 41, 0.35);
  outline-offset: 6px;
}

.connector-next.drop-target-next button {
  border-color: #f0b429;
  background: #f0b429;
  color: #172331;
}

.linear-output {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.branch-output-next {
  display: grid;
  grid-gap: 42px;
  gap: 42px;
  align-items: start;
  position: relative;
  padding-top: 62px;
}

.branch-output-next::before {
  content: none;
  position: absolute;
  top: 10px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: #cfe0e9;
}

.branch-paths-next {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 92px;
  overflow: visible;
  pointer-events: none;
}

.branch-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-path-work {
  stroke: #4aa52c;
}

.branch-path-after {
  stroke: #ed4f3b;
}

.branch-lane {
  display: flex;
  align-items: center;
  flex-direction: column;
  min-width: 188px;
  position: relative;
  z-index: 1;
}

.branch-lane.work .connector-next::before,
.branch-lane.work .connector-next button {
  background: #4aa52c;
}

.branch-lane.after .connector-next::before,
.branch-lane.after .connector-next button {
  background: #ed4f3b;
}

.branch-lane .connector-next.has-label::before {
  content: "";
  top: 31px;
  height: calc(100% - 31px);
}

.branch-lane > .flow-chain-next {
  position: relative;
  margin-top: 8px;
}

.branch-lane > .flow-chain-next::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 2;
  width: 2px;
  height: 8px;
  transform: translateX(-50%);
  background: #82b8d1;
}

.branch-lane.work > .flow-chain-next::before {
  background: #4aa52c;
}

.branch-lane.after > .flow-chain-next::before {
  background: #ed4f3b;
}

.cycle-node {
  border: 1px dashed #aebbc7;
  background: #ffffff;
  color: #60717f;
  padding: 7px 9px;
  font-size: 11px;
}

.editor-status {
  margin: 0;
  border-top: 1px solid #d6dee5;
  background: #ffffff;
  color: #516272;
  padding: 8px 12px;
  font-size: 12px;
}

.settings-panel {
  padding: 14px;
}

.scheme-settings-box {
  border-bottom: 1px solid #d8e0e7;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #d8e0e7;
  padding-bottom: 12px;
}

.settings-header.slim {
  padding-bottom: 8px;
}

.settings-stack label {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #3e4c59;
  font-size: 13px;
}

.settings-grid {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.settings-grid.two {
  grid-template-columns: 1fr 1fr;
}

.weekday-picker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-gap: 5px;
  gap: 5px;
}

.weekday-picker label {
  display: grid;
  place-items: center;
  border: 1px solid #d6dee5;
  background: #f8fafb;
  padding: 7px 0;
}

.weekday-picker input {
  width: auto;
  min-height: 0;
}

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

.selected-users button,
.secondary-button {
  min-height: 30px;
  border-color: #b9c6d1;
  background: #eef4f8;
  color: #26323f;
  font-weight: 400;
}

.primary-button {
  min-height: 34px;
  border-color: #1f78a7;
  background: #2386b8;
  color: #ffffff;
  font-weight: 700;
}

.selected-users span,
.info-box {
  color: #60717f;
  font-size: 13px;
}

.number-list-editor {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.settings-subtitle {
  color: #22303a;
  font-size: 13px;
  font-weight: 700;
}

.number-row {
  display: grid;
  grid-template-columns: 1fr 1fr 34px;
  grid-gap: 6px;
  gap: 6px;
}

.number-row button {
  min-height: 34px;
  padding: 0;
}

.danger-button {
  border-color: #9f1f16;
  background: #c0352b;
}

.info-box {
  border: 1px solid #c9dce7;
  background: #eaf6fb;
  padding: 10px;
}

.editor-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 31, 0.42);
  padding: 24px;
}

.editor-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  border: 1px solid #9fb0bd;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(17, 24, 31, 0.24);
}

.editor-modal-header,
.editor-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d6dee5;
  background: #f4f7f9;
  padding: 12px 16px;
}

.editor-modal-footer {
  justify-content: flex-end;
  border-top: 1px solid #d6dee5;
  border-bottom: 0;
}

.editor-modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.editor-modal-body {
  overflow: auto;
  padding: 16px;
}

.icon-close-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-color: #b9c6d1;
  background: #ffffff;
  color: #26323f;
  padding: 0;
}

.lines-manager {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-gap: 14px;
  gap: 14px;
  min-height: calc(100vh - 48px);
}

.lines-list-panel,
.line-editor-panel {
  border: 1px solid #c7d2dc;
  background: #ffffff;
}

.surface-header.compact {
  align-items: center;
  padding: 14px;
}

.line-group {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border-top: 1px solid #d8e0e7;
  padding: 12px;
}

.line-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tiny-action {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
}

.line-card {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  width: 100%;
  min-height: 54px;
  border: 1px solid #d6dee5;
  background: #f8fafb;
  color: #26323f;
  text-align: left;
}

.line-card.active {
  border-color: #2386b8;
  background: #e7f3f8;
}

.line-card span {
  color: #60717f;
  font-size: 12px;
  font-weight: 400;
}

.line-editor-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  min-width: 0;
}

.line-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #d8e0e7;
  padding: 14px;
}

.line-editor-header h2 {
  margin: 3px 0 0;
  font-size: 22px;
}

.line-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  grid-gap: 12px 16px;
  gap: 12px 16px;
  align-content: start;
  padding: 16px;
}

.line-form-grid label,
.check-row-next {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  color: #3e4c59;
  font-size: 13px;
}

.check-row-next {
  grid-template-columns: auto 1fr;
  align-items: center;
  align-content: center;
}

.check-row-next input {
  width: auto;
  min-height: 0;
}

.notice-panel {
  margin: 0 16px 16px;
  border: 1px solid #c9dce7;
  background: #eaf6fb;
  color: #314351;
  padding: 12px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .two-column,
  .scheme-editor,
  .lines-manager,
  .line-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 16px;
    min-height: 0;
    padding: 12px 16px 11px;
  }

  .topbar-brand {
    min-width: 0;
    flex: 1 1 220px;
  }

  .topbar-nav {
    order: 3;
    flex-basis: 100%;
    height: auto;
  }

  .topbar-nav a {
    padding-inline: 10px;
  }

  .topbar-nav a::before {
    left: 10px;
    right: 10px;
  }

  .admin-content {
    padding-inline: 14px;
  }

  .surface-header,
  .inline-form,
  .grid-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .settings-page {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 10px 0 28px;
  }

  .settings-menu {
    display: flex;
    overflow-x: auto;
  }

  .settings-menu button {
    width: auto;
    min-width: 120px;
    border-bottom: 0;
    border-right: 1px solid #e3e7ea;
  }

  .amo-settings-area {
    gap: 12px;
  }

  .amo-card {
    padding: 12px;
  }

  .amo-card-header {
    gap: 12px;
    margin-bottom: 18px;
  }

  .amo-card-header h1 {
    font-size: 22px;
  }

  .amo-logo {
    font-size: 18px;
  }

  .amo-auth-grid,
  .amo-template-grid,
  .amo-advanced-grid,
  .amo-field-row,
  .amo-user-row,
  .amo-actions {
    grid-template-columns: 1fr;
  }

  .amo-field-row.header {
    display: none;
  }

  .amo-actions {
    justify-items: start;
    gap: 10px;
  }

  .amo-actions .danger-button {
    justify-self: start;
  }
}

