body {
  background: #f6f7f9;
  font-size: .9375rem;
}

.app-header {
  background: #111827;
  color: #fff;
  z-index: 1020;
}

.app-header-main {
  padding: .5rem 0;
}

.app-brand {
  color: #fff;
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.app-brand:hover,
.app-brand:focus {
  color: #fff;
}

.app-nav-toggler {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: .375rem;
  display: inline-flex;
  flex-direction: column;
  gap: .22rem;
  height: 2rem;
  justify-content: center;
  padding: 0 .45rem;
  width: 2.35rem;
}

.app-nav-toggler span {
  background: #fff;
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 1.05rem;
}

.app-header-actions {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: .5rem;
  justify-content: flex-end;
  min-width: 0;
}

.app-project-select {
  max-width: 28rem;
  min-width: 12rem;
}

.app-nav {
  background: #1f2937;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.app-nav-list {
  display: flex;
  gap: .2rem;
  list-style: none;
  margin: 0;
  overflow-x: auto;
  padding: .25rem 0;
  scrollbar-width: thin;
  white-space: nowrap;
}

.app-nav-link {
  border-radius: .35rem;
  color: rgba(255, 255, 255, .76);
  display: block;
  font-size: .875rem;
  line-height: 1.2;
  padding: .38rem .62rem;
  text-decoration: none;
}

.app-nav-link:hover,
.app-nav-link:focus {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.app-nav-link.active {
  background: #fff;
  color: #111827;
}

.table {
  --bs-table-cell-padding-x: .5rem;
  --bs-table-cell-padding-y: .32rem;
  font-size: .875rem;
  margin-bottom: .75rem;
}

.table td,
.table th {
  vertical-align: middle;
}

.table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  padding: .875rem;
}

.mono-log {
  background: #0f172a;
  border-radius: .5rem;
  color: #e2e8f0;
  max-height: 70vh;
  overflow: auto;
  padding: 1rem;
}

textarea.form-control,
.email-template-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.email-template-editor {
  height: 34rem;
  min-height: 34rem;
}

.template-preview-subject {
  border-bottom: 1px solid #e5e7eb;
  font-size: .875rem;
  padding-bottom: .5rem;
}

.template-preview-frame {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: .35rem;
  min-height: 18rem;
  width: 100%;
}

.template-preview-frame-modal {
  min-height: 70vh;
}

.watcher-small-value {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
}

.watch-dir-current {
  overflow-wrap: anywhere;
}

.watch-dir-row {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: space-between;
}

.watch-dir-open {
  min-width: 0;
  overflow-wrap: anywhere;
  padding-left: 0;
  text-decoration: none;
}

.smtp-test-form {
  max-width: 26rem;
}

.smtp-test-form .form-control {
  min-width: 0;
}

.smtp-test-form .btn {
  flex: 0 0 auto;
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 4rem);
}

.login-panel {
  max-width: 24rem;
  width: 100%;
}

@media (max-width: 575.98px) {
  .app-header-main .container-fluid {
    flex-wrap: wrap;
    gap: .5rem !important;
  }

  .app-header-actions {
    justify-content: flex-start;
    order: 3;
    width: 100%;
  }

  .app-project-select {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 991.98px) {
  .app-nav-list {
    display: block;
    overflow-x: visible;
    padding: .2rem 0 .45rem;
    white-space: normal;
  }

  .app-nav-list li + li {
    margin-top: .15rem;
  }
}
