.settings-page-container {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
}

.settings-page__hero {
  padding: 18px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 55%, #eef4ff 100%);
  border: 1px solid #dbe7ff;
  box-shadow: 0 10px 24px rgba(23, 43, 77, 0.06);

  .ant-typography {
    margin-bottom: 0;
  }

  .ant-typography + .ant-typography {
    margin-top: 4px;
  }
}

.settings-page__side-stack {
  width: 100%;
}

.settings-page__side-stack > .ant-space-item,
.settings-page__controls > .ant-space-item {
  width: 100%;
}

.settings-page__card {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);

  .ant-card-body {
    padding: 18px 20px;
  }

  .ant-typography:last-child {
    margin-bottom: 0;
  }
}

.settings-page__card--filepaths {
  .ant-card-body {
    padding-bottom: 14px;
  }
}

.settings-page__card--automation {
  .ant-typography + .ant-typography {
    margin-top: 2px;
  }
}

.settings-page__controls {
  width: 100%;
}

.settings-page__controls > .ant-space-item > * {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fafcff;
  border: 1px solid #edf2ff;
}

.settings-page__controls > .ant-space-item > * > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-page__controls > .ant-space-item > * > div + div {
  margin-top: 8px;
}

.settings-page__controls > .ant-space-item > * > div > div:first-child {
  flex: 1;
  min-width: 0;
}

.settings-page__controls .ant-input-number {
  width: 96px;
}

.settings-filepaths {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-filepaths__header {
  width: 100%;
}

.settings-filepaths__header .ant-typography {
  margin-bottom: 0;
}

.settings-filepaths__list {
  overflow: hidden;
  border: 1px solid #edf2ff;
  border-radius: 14px;
  background: #fafcff;
}

.settings-filepaths__list .ant-list-item {
  padding: 12px 16px;
}

.settings-filepaths__list .ant-list-empty-text {
  padding: 28px 16px;
}

.settings-filepaths__list .ant-empty {
  margin-block: 8px;
}

.settings-watcher-manager {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-watcher-manager__header .ant-typography {
  margin-bottom: 0;
}

.settings-watcher-manager__content {
  width: 100%;
}

.settings-watcher-manager__toggle {
  min-width: 112px;
}

.settings-watcher-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-watcher-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.settings-watcher-status--started {
  color: #389e0d;
  background: #f6ffed;
  border-color: #b7eb8f;
}

.settings-watcher-status--stopped {
  color: #cf1322;
  background: #fff1f0;
  border-color: #ffa39e;
}

.settings-watcher-status__error {
  max-width: 100%;
}

@media (max-width: 768px) {
  .settings-page-container {
    gap: 16px;
    padding-bottom: 16px;
  }

  .settings-page__hero,
  .settings-page__card .ant-card-body {
    padding: 20px;
  }

  .settings-filepaths__header,
  .settings-watcher-manager__content {
    align-items: stretch !important;
  }

  .settings-watcher-manager__toggle {
    flex: 1;
  }
}
