.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 1021px;
  padding: 32px 16px;
  background: var(--color-surface);
  border-radius: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  width: 100%;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6de1d2 0%, #6ca9ff 52%, #8654ff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.brand-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -1.5px;
}

.nav-group {
  margin-bottom: 24px;
  width: 100%;
}

.nav-group-title {
  margin: 0;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.nav-list {
  display: grid;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 4px 10px 4px 16px;
  border-radius: 10px;
  color: var(--color-text);
  font-size: 16px;
  letter-spacing: -0.3px;
}

.nav-link.is-active,
.nav-link:hover {
  color: var(--color-text);
}

.nav-icon,
.material-symbols-rounded {
  font-size: 24px;
  line-height: 1;
}

.sidebar-account {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--color-muted);
  width: 100%;
}

.account-user,
.account-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
}

.account-user {
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -1px;
}

.account-icon {
  font-size: 36px;
}

.account-logout {
  color: var(--color-text);
  font-size: 16px;
  letter-spacing: -0.3px;
}

.panel {
  background: var(--color-surface-panel);
  border-radius: 16px;
  box-shadow: none;
}

.panel-body {
  padding: 22px 24px;
}

.panel-body-tight {
  padding: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  height: 40px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}

.button-primary {
  border: 0;
  background: var(--color-primary);
  color: #fff;
  box-shadow: none;
}

.button-secondary {
  background: var(--color-surface-muted);
  color: var(--color-text);
}

.button-primary:hover {
  background: #7dc8ff;
}

.button-secondary:hover {
  background: #f1f1f1;
}

.button-primary:active {
  background: #4fa9f6;
  box-shadow: none;
}

.modal-button-secondary {
  border: 0;
  background: var(--color-surface-muted);
  color: var(--color-text);
}

.modal-button-secondary:hover {
  background: #f1f1f1;
}

.modal-button-secondary:active {
  background: #dcdcdc;
  box-shadow: none;
}

.button-icon {
  font-size: 20px;
}

.table-wrap {
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  height: 779px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0 8px;
  text-align: left;
  white-space: nowrap;
  height: 36px;
}

.data-table th {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ededed;
}

.sortable-header {
  cursor: pointer;
}

.data-table tbody tr {
  border-top: 1px solid var(--color-divider);
  background: transparent;
}

.data-table tbody tr.is-selected-row {
  background: rgba(100, 186, 255, 0.18);
}

.data-table tbody tr.is-selected-row td {
  color: var(--color-text);
}

.data-table tbody tr.is-disabled {
  color: var(--color-muted);
}

.data-table tbody tr.is-disabled .badge,
.data-table tbody tr.is-disabled .table-action {
  opacity: 0.7;
}

.data-table tbody tr.is-selected-row .badge,
.data-table tbody tr.is-selected-row .table-action {
  opacity: 1;
}

.cell-strong {
  font-weight: 400;
  color: var(--color-text);
}

.cell-actions {
  text-align: right;
}

.status-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 999px;
}

.status-dot-ok {
  background: var(--color-success);
}

.status-dot-warning {
  background: var(--color-warning);
}

.status-dot-danger {
  background: var(--color-danger);
}

.status-dot-muted {
  background: var(--color-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.badge-protocol-https,
.badge-backend-ok {
  background: #77d91b;
  color: #fff;
}

.badge-protocol-http {
  background: #f9a825;
  color: #fff;
}

.badge-backend-danger {
  background: #ef2727;
  color: #fff;
}

.badge-backend-muted {
  background: #d5d4d1;
  color: #fff;
}

.badge-backend-ok,
.badge-backend-danger,
.badge-backend-muted {
  min-width: 40px;
  text-transform: none;
}

.badge-protocol-https,
.badge-protocol-http {
  min-width: 54px;
  text-transform: uppercase;
}

.table-action,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.icon-button:hover,
.table-action:hover {
  background: rgba(64, 64, 64, 0.08);
}

.table-action {
  font-weight: 700;
  letter-spacing: 1px;
  color: #585858;
}

.row-text {
  display: inline-block;
}

.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.alert-info {
  background: rgba(15, 91, 216, 0.08);
  border-color: rgba(15, 91, 216, 0.16);
  color: #114493;
}

.logs-preview {
  font-family: var(--font-mono);
  white-space: pre-wrap;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #dbe6f3;
  background: #0f1724;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 0;
}

.logs-preview-light {
  color: var(--color-text);
  background: transparent;
  padding: 10px 16px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}

.footer {
  margin-top: 32px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
}

.modal-overlay[data-modal="critical-error"] {
  background: rgba(0, 0, 0, 0.15);
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay.is-entering,
.modal-overlay.is-open,
.modal-overlay.is-leaving {
  display: grid;
}

.modal-dialog {
  width: 544px;
  min-height: 700px;
  padding: 32px 48px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  background: rgba(245, 245, 245, 0.33);
  backdrop-filter: blur(66px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  cursor: grab;
  user-select: none;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

.modal-dialog.is-dragging {
  cursor: grabbing;
  transition: none;
}

.modal-dialog input,
.modal-dialog textarea,
.modal-dialog button,
.modal-dialog label,
.modal-dialog select {
  user-select: auto;
}

.modal-overlay.is-open .modal-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-overlay.is-leaving .modal-dialog {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
}

.modal-header {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.modal-title {
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -1px;
}

.modal-subtitle {
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -1px;
}

.modal-form {
  display: grid;
  gap: 16px;
}

.modal-field,
.modal-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.modal-label {
  display: inline-flex;
  align-items: center;
  min-height: 33px;
  padding: 4px 6px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.modal-input,
.modal-textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
}

.modal-input {
  height: 32px;
  padding: 6px;
}

.modal-input::placeholder,
.modal-textarea::placeholder {
  color: var(--color-placeholder);
}

.modal-grid {
  display: grid;
  grid-template-columns: 256px 160px;
  gap: 32px;
}

.modal-grid-radios {
  grid-template-columns: 200px 200px;
  gap: 48px;
  margin-top: 4px;
}

.modal-field-port {
  width: 160px;
}

.modal-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  cursor: pointer;
}

.modal-radio input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: #404040;
}

.modal-textarea {
  min-height: 91px;
  padding: 10px;
  resize: none;
}

.modal-dialog-state {
  box-sizing: border-box;
  width: 330px;
  height: 410px;
  min-height: 410px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-dialog-delete {
  box-sizing: border-box;
  width: 330px;
  height: 388px;
  min-height: 388px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-delete-form,
.modal-state-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}

.modal-delete-illustration {
  width: 128px;
  height: 128px;
  margin-bottom: 32px;
}

.modal-delete-illustration-image {
  display: block;
  width: 100%;
  height: 100%;
}

.modal-delete-copy {
  width: 266px;
  height: 92px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-dialog-delete .modal-title {
  width: 266px;
  min-height: 24px;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1px;
  text-align: center;
}

.modal-delete-text {
  width: 266px;
  min-height: 44px;
  margin: 0;
  color: #000;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -1px;
  text-align: center;
}

.modal-delete-actions {
  display: flex;
  gap: 16px;
  width: 256px;
  margin-top: 32px;
  min-height: 40px;
}

.modal-delete-button-secondary,
.modal-delete-button-danger {
  width: 120px;
  min-width: 120px;
  height: 40px;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  justify-content: center;
}

.modal-delete-button-secondary {
  background: #e6e6e6;
  color: #404040;
}

.modal-delete-button-secondary:hover {
  background: #ededed;
}

.modal-delete-button-danger {
  background: #f01e1e;
  color: #fff;
}

.modal-delete-button-danger:hover {
  background: #f33f3f;
}

.modal-dialog-critical {
  box-sizing: border-box;
  width: 424px;
  min-height: 388px;
  padding: 32px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #c6262e;
  backdrop-filter: blur(66px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.modal-critical-illustration {
  width: 128px;
  height: 128px;
}

.modal-critical-illustration-image {
  display: block;
  width: 100%;
  height: 100%;
}

.modal-critical-copy {
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.modal-dialog-critical .modal-title {
  width: 360px;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
  text-align: center;
}

.modal-critical-text {
  width: 360px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -1px;
  text-align: center;
}

.modal-critical-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.modal-critical-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 148px;
  min-width: 148px;
  height: 40px;
  min-height: 40px;
  padding: 10px 20px;
  border: 0;
  border-radius: 20px;
  background: #f01e1e;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.modal-critical-button:hover {
  background: #f33f3f;
}

.modal-critical-button-icon {
  display: block;
  width: 20px;
  height: 20px;
}

.modal-dialog-progress {
  box-sizing: border-box;
  width: 359px;
  height: 534px;
  min-height: 534px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-progress-illustration {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  margin-bottom: 48px;
}

.modal-progress-illustration-image {
  display: block;
  width: 100%;
  height: 100%;
}

.modal-header-progress {
  margin-bottom: 48px;
  width: 295px;
}

.modal-dialog-progress .modal-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
  text-align: center;
}

.modal-progress-details {
  width: 295px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.modal-progress-copy {
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -1px;
  text-align: center;
  width: 168px;
  white-space: nowrap;
}

.modal-progress-steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 274px;
}

.modal-progress-step {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.3px;
}

.modal-progress-step.is-active {
  font-weight: 600;
}

.modal-progress-step span:last-child {
  line-height: normal;
  white-space: nowrap;
}

.modal-progress-status-icon,
.modal-progress-spin-wrap {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.modal-progress-status-icon {
  display: block;
}

.modal-progress-spin-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-progress-status-icon-spin {
  transform-origin: center center;
  animation: modal-progress-spin 1.15s linear infinite;
}

.modal-progress-actions {
  margin-top: 48px;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.modal-progress-button {
  width: 153px;
  min-width: 153px;
  height: 40px;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
}

.modal-dialog-operational {
  box-sizing: border-box;
  width: 328px;
  height: 534px;
  min-height: 534px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.modal-operational-illustration {
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
}

.modal-operational-illustration-image {
  display: block;
  width: 100%;
  height: 100%;
}

.modal-header-operational {
  display: block;
  width: 264px;
  height: 24px;
  flex: 0 0 24px;
  margin-bottom: 0;
}

.modal-dialog-operational .modal-title {
  width: 264px;
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -1px;
  text-align: center;
}

.modal-operational-details {
  width: 264px;
  height: 134px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex: 0 0 134px;
}

.modal-operational-copy {
  width: 168px;
  height: 22px;
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 300;
  line-height: normal;
  letter-spacing: -1px;
  text-align: center;
  white-space: nowrap;
}

.modal-operational-summary {
  width: 264px;
  height: 88px;
  display: grid;
  grid-template-columns: fit-content(100%) fit-content(100%) fit-content(100%);
  grid-auto-rows: fit-content(100%);
  column-gap: 16px;
  row-gap: 8px;
}

.modal-operational-row {
  display: contents;
}

.modal-operational-label {
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.modal-operational-value {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.modal-operational-status-image {
  display: block;
  width: 24px;
  height: 24px;
}

.modal-operational-actions {
  width: 138px;
  flex: 0 0 40px;
}

.modal-operational-button {
  width: 138px;
  min-width: 138px;
  height: 40px;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.3px;
  justify-content: center;
}

.modal-dialog-warning {
  box-sizing: border-box;
  width: 401px;
  height: 640px;
  min-height: 640px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.modal-warning-illustration {
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
}

.modal-warning-illustration-image {
  display: block;
  width: 100%;
  height: 100%;
}

.modal-header-warning {
  display: block;
  width: 337px;
  height: 48px;
  flex: 0 0 48px;
  margin-bottom: 0;
}

.modal-dialog-warning .modal-title {
  width: 337px;
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -1px;
  text-align: center;
}

.modal-warning-details {
  width: 337px;
  height: 134px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex: 0 0 134px;
}

.modal-warning-copy {
  width: 168px;
  height: 22px;
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 300;
  line-height: normal;
  letter-spacing: -1px;
  text-align: center;
  white-space: nowrap;
}

.modal-warning-summary {
  width: 264px;
  height: 88px;
  display: grid;
  grid-template-columns: fit-content(100%) fit-content(100%) fit-content(100%);
  grid-auto-rows: fit-content(100%);
  column-gap: 16px;
  row-gap: 8px;
}

.modal-warning-row {
  display: contents;
}

.modal-warning-label {
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.modal-warning-value {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.modal-warning-status-image {
  display: block;
  width: 24px;
  height: 24px;
}

.modal-warning-text {
  width: 337px;
  height: 34px;
  margin: 0;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.3px;
}

.modal-warning-actions {
  width: 138px;
  flex: 0 0 40px;
}

.modal-warning-button {
  width: 138px;
  min-width: 138px;
  height: 40px;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.3px;
  justify-content: center;
}

.modal-dialog-error {
  box-sizing: border-box;
  width: 401px;
  height: 616px;
  min-height: 616px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.modal-error-illustration {
  width: 128px;
  height: 128px;
  flex: 0 0 128px;
}

.modal-error-illustration-image {
  display: block;
  width: 100%;
  height: 100%;
}

.modal-header-error {
  display: block;
  width: 337px;
  height: 24px;
  flex: 0 0 24px;
  margin-bottom: 0;
}

.modal-dialog-error .modal-title {
  width: 337px;
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -1px;
  text-align: center;
}

.modal-error-details {
  width: 337px;
  height: 134px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex: 0 0 134px;
}

.modal-error-copy {
  width: 168px;
  height: 22px;
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 300;
  line-height: normal;
  letter-spacing: -1px;
  text-align: center;
  white-space: nowrap;
}

.modal-error-summary {
  width: 264px;
  height: 88px;
  display: grid;
  grid-template-columns: fit-content(100%) fit-content(100%) fit-content(100%);
  grid-auto-rows: fit-content(100%);
  column-gap: 16px;
  row-gap: 8px;
}

.modal-error-row {
  display: contents;
}

.modal-error-label {
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.modal-error-value {
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.modal-error-status-image {
  display: block;
  width: 24px;
  height: 24px;
}

.modal-error-text {
  width: 337px;
  height: 34px;
  margin: 0;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: -0.3px;
}

.modal-error-actions {
  width: 138px;
  flex: 0 0 40px;
}

.modal-error-button {
  width: 138px;
  min-width: 138px;
  height: 40px;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -0.3px;
  justify-content: center;
}

@keyframes modal-progress-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.modal-state-illustration {
  width: 128px;
  height: 128px;
  margin-bottom: 32px;
}

.modal-state-illustration-image {
  display: block;
  width: 100%;
  height: 100%;
}

.modal-state-copy {
  width: 266px;
  height: 114px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-dialog-state .modal-title {
  width: 266px;
  margin: 0;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1px;
  text-align: center;
}

.modal-state-text {
  width: 266px;
  margin: 0;
  color: #000;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -1px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
}

.modal-state-actions {
  display: flex;
  gap: 16px;
  width: 256px;
  margin-top: 32px;
}

.modal-feedback {
  flex: 1 1 auto;
  margin: 0;
  color: #f01e1e;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  text-align: center;
}

.modal-feedback[hidden] {
  display: none;
}

.modal-button-secondary,
.modal-button-primary {
  min-width: 120px;
  justify-content: center;
}

.modal-state-button-secondary,
.modal-state-button-warning {
  width: 120px;
  min-width: 120px;
  height: 40px;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  justify-content: center;
}

.modal-state-button-secondary {
  background: #e6e6e6;
  color: #404040;
}

.modal-state-button-secondary:hover {
  background: #ededed;
}

.modal-state-button-warning {
  border: 0;
  background: #f9c440;
  color: #404040;
}

.modal-state-button-warning:hover {
  background: #fbcf61;
}

body.has-open-modal {
  overflow: hidden;
}

.context-menu {
  position: fixed;
  z-index: 950;
  display: grid;
  gap: 1px;
  width: 229px;
  padding: 16px 8px;
  border-radius: 16px;
  background: rgba(245, 245, 245, 0.33);
  backdrop-filter: blur(66px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(6px) scale(0.985);
  transition:
    opacity 120ms ease,
    transform 140ms ease;
}

.context-menu[hidden] {
  display: none !important;
}

.context-menu.is-entering,
.context-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.context-menu.is-leaving {
  opacity: 0;
  transform: translateY(6px) scale(0.985);
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 213px;
  min-height: 32px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  text-align: left;
  cursor: pointer;
}

.context-menu-item:hover:not(.is-disabled) {
  background: var(--color-primary);
  color: #fff;
}

.context-menu-item-indent {
  padding-left: 38px;
  min-height: 27px;
}

.context-menu-item.is-disabled,
.context-menu-item:disabled {
  color: var(--color-muted);
  cursor: default;
}

.context-menu-item:disabled:hover {
  background: transparent;
}

@media (max-width: 960px) {
  .sidebar {
    min-height: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-dialog {
    width: min(544px, 100%);
    padding: 24px;
  }

  .modal-grid,
  .modal-grid-radios {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modal-field-port {
    width: auto;
  }

  .modal-footer {
    flex-wrap: wrap;
  }

  .modal-feedback {
    flex-basis: 100%;
  }
}
