.app-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.app-content.content-fit {
  overflow: hidden;
}

.app-content:not(.content-fit) > * {
  flex: none;
}

.app-content > .tbl-shell {
  flex: 1 1 0;
  min-height: 0;
}

.auth-wrap {
  height: 100%;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 16px;
  background: var(--bg-0);
}

.auth-panel {
  width: 100%;
  max-width: 380px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.dlg-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 8px;
}

.chart-box {
  height: 180px;
}

.rail-vehicle {
  flex: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ln);
}

.vehicle-sel-wrap {
  padding: 0 10px;
}

.vehicle-sel-wrap > .c-select,
.vehicle-sel-wrap > select {
  width: 100%;
}

@media (min-width: 768px) {
  .app:not([data-nav="open"]) .rail-vehicle {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .rail-vehicle {
    padding-bottom: 12px;
  }
  .vehicle-sel-wrap {
    padding: 0 16px;
  }
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8px;
  align-items: start;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.auth-copy {
  margin-top: 4px;
}

.auth-err {
  white-space: normal;
  height: auto;
  padding: 6px 8px;
}

.auth-submit {
  width: 100%;
}
